/* ==========================================================================
   MonetizeLanka - Clean, Grounded HTML/CSS Design System
   Focus: High readability, professional light aesthetic, simple clean lines, NO heavy glows
   ========================================================================== */

:root {
  /* Clean Light Theme Palette */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-input: #ffffff;
  
  /* Brand Colors */
  --primary: #0f766e;          /* Teal 700 */
  --primary-hover: #115e59;    /* Teal 800 */
  --primary-light: #f0fdfa;    /* Teal 50 */
  --primary-border: #5eead4;   /* Teal 300 */
  
  --secondary: #1e3a8a;        /* Deep Navy Blue */
  --secondary-hover: #1e293b;
  --secondary-light: #eff6ff;
  --secondary-border: #bfdbfe;

  --accent-amber: #d97706;

  /* Typography & Slate Text Colors */
  --text-main: #0f172a;        /* Slate 900 */
  --text-muted: #475569;       /* Slate 600 */
  --text-light: #64748b;       /* Slate 500 */
  --border: #e2e8f0;           /* Slate 200 */
  --border-strong: #cbd5e1;    /* Slate 300 */
  
  /* Shadows & Radius - Subtle & Grounded */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --transition: all 0.15s ease-in-out;
}

/* Reset & Base Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

.text-emerald {
  color: var(--primary);
}

.text-navy {
  color: var(--secondary);
}

/* Top Config Bar for Supabase */
.config-banner {
  background: #1e293b;
  color: #f8fafc;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid #334155;
}

.config-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.config-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  background: #047857;
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
}

/* Header & Sticky Navigation (Glassmorphism) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  text-decoration: none;
}

.logo-badge {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.25s ease-in-out;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s, color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: scale(0.97) translateY(0);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

/* Global Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

.main-content {
  flex: 1;
}

/* ==========================================================================
   Publisher Hero Section (Animated Circles)
   ========================================================================== */
.pub-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
  text-align: center;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

/* Dot-grid background — same as index.html hero */
.pub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* Radial fade so centre text stays clean */
.pub-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(255,255,255,0.95) 25%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 1;
}

.pub-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.pub-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.pub-hero-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 0.5rem;
}

.pub-hero-content .pill-badge {
  margin-bottom: 1.25rem;
}

/* Floating orbs */
.pub-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  opacity: 0.35;
}

.pub-orb-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #a7f3d0, #10b981);
  top: -80px;
  left: -60px;
  animation: orbFloat1 9s ease-in-out infinite;
}

.pub-orb-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #c4b5fd, #6366f1);
  top: -40px;
  right: -50px;
  animation: orbFloat2 11s ease-in-out infinite;
}

.pub-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #fde68a, #f59e0b);
  bottom: -60px;
  left: 45%;
  animation: orbFloat3 13s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%,  100% { transform: translate(0px,   0px)  scale(1);    }
  33%        { transform: translate(30px, -20px) scale(1.08); }
  66%        { transform: translate(-15px, 25px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%,  100% { transform: translate(0px,   0px)  scale(1);    }
  40%        { transform: translate(-25px, 20px) scale(1.06); }
  70%        { transform: translate(20px, -15px) scale(0.97); }
}

@keyframes orbFloat3 {
  0%,  100% { transform: translate(0px,   0px)  scale(1);    }
  30%        { transform: translate(20px,  15px) scale(1.1);  }
  60%        { transform: translate(-20px,-10px) scale(0.93); }
}

/* Hero Section */
.hero {
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #cbd5e1 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* Soft radial fade over the dots so center is clean */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255,255,255,0.96) 30%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Simple Clean Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.15s;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Metric Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Section Layouts */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.step-card {
  display: flex;
  flex-direction: column;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Simple Estimator Widget */
.calc-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.calc-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.range-slider {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  cursor: pointer;
  margin: 1rem 0;
}

.result-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: center;
}

/* Audience Split Grid */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-list li span.check {
  color: var(--primary);
  font-weight: 700;
}

/* Forms & Portal Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--secondary);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  animation: toast-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateX(100%);
}

.toast.toast-success {
  background: var(--primary);
}

.toast.toast-error {
  background: #dc2626;
}

.toast.hiding {
  animation: toast-slide-out 0.25s ease-in forwards;
}

@keyframes toast-slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-slide-out {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Skeleton Loaders */
.skeleton {
  background: #e2e8f0;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  border-radius: 4px;
  background-size: 200% 100%;
  animation: 1.5s shine linear infinite;
  color: transparent !important;
  pointer-events: none;
}

.skeleton * {
  visibility: hidden;
}

@keyframes shine {
  to {
    background-position-x: -200%;
  }
}

/* Footer */
footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Mobile Hamburger Navigation
   ========================================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-md);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.hamburger:hover {
  background: var(--bg-subtle);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
  transform-origin: center;
}

/* Open state */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  pointer-events: none;
}

.mobile-nav-drawer.is-open {
  pointer-events: all;
}

.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-drawer.is-open .mobile-nav-overlay {
  opacity: 1;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #ffffff;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.is-open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-close {
  align-self: flex-end;
  background: var(--bg-subtle);
  border: none;
  border-radius: var(--radius-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transition: background 0.15s;
}

.mobile-nav-close:hover {
  background: var(--border);
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.mobile-nav-actions .btn {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 900px) {
  .audience-grid, .calc-flex, .portal-grid {
    grid-template-columns: 1fr !important;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav-drawer {
    display: block;
  }
}

@media (max-width: 600px) {
  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-lg {
    width: 100%;
  }

  .section {
    padding: 3rem 0;
  }
}

/* ==========================================================================
   Publisher Page Tabs
   ========================================================================== */
.pub-tab-bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.pub-tab-bar::-webkit-scrollbar { display: none; }

.pub-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.pub-tab:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.pub-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-light);
}

/* Tab panels — hidden by default, shown when active */
.pub-tab-panel {
  display: none;
  animation: tabFadeIn 0.2s ease;
}

.pub-tab-panel.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Full-width card inside non-dashboard panels */
.tab-panel-full {
  width: 100%;
}

/* Tip cards in the full-width tips panel */
.tip-item-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .tips-full-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   3-Column Grid (Milestones / Guide / Tips)
   ========================================================================== */
.three-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .three-col-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .three-col-grid {
    grid-template-columns: 1fr;
  }
}

/* Shared card header (icon + title row) */
.milestone-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.milestone-card-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Milestones ─────────────────────────────────────────── */
.milestone-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: background 0.15s;
}

.milestone-item.unlocked {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.milestone-badge-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.locked-icon {
  filter: grayscale(1);
  opacity: 0.4;
}

.milestone-info {
  flex: 1;
  min-width: 0;
}

.milestone-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.milestone-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.milestone-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.unlocked-badge {
  background: #dcfce7;
  color: #16a34a;
}

.locked-badge {
  background: #f1f5f9;
  color: #94a3b8;
}

/* ── Quick Start Guide ──────────────────────────────────── */
.guide-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  position: relative;
}

/* Vertical connector line between steps */
.guide-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 36px;
  width: 2px;
  height: calc(100% - 14px);
  background: var(--border);
  border-radius: 2px;
}

.guide-step.done:not(:last-child)::after {
  background: #86efac;
}

.guide-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.done-num {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.guide-step-body {
  padding-top: 0.2rem;
}

.guide-step-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.guide-step.done .guide-step-title {
  color: var(--text-muted);
  text-decoration: line-through;
}

.guide-step-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.4;
}

.guide-progress-bar-wrap {
  margin-top: 0.5rem;
}

/* ── Performance Tips ───────────────────────────────────── */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tip-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.tip-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.tip-desc {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Payout Method Picker
   ========================================================================== */
.payout-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.85rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg-subtle);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  text-align: center;
  user-select: none;
}

.payout-method-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.payout-method-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-border);
}

.pmethod-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.pmethod-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.pmethod-min {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Ad Formats UI Component
   ========================================================================== */
.ad-formats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  align-items: stretch;
}

.ad-format-col {
  min-width: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
}

.tinted-col {
  background-color: #f8f6ff; /* Soft indigo-purple tint */
}

.white-col {
  background-color: #ffffff; 
  box-shadow: 0 4px 20px -2px rgba(0,0,0,0.03); /* Subtle separation from page bg */
}

.col-header {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.format-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05), 0 2px 6px -2px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  flex: 1;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.format-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1), 0 10px 15px -6px rgba(0, 0, 0, 0.05);
}

.format-icon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 12px;
  height: 160px;
  flex-shrink: 0;
  margin-bottom: 1.25rem;
  border: none;
}

.format-title {
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  text-align: center;
}

.format-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: center;
}

.format-features {
  list-style-type: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  text-align: left;
}

.format-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.check-icon {
  color: #22c55e;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.format-btn-inline {
  display: inline-flex;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  align-self: center;
}


.btn-purple {
  background-color: #6366f1; /* purple-indigo */
  color: #ffffff;
  border: 1px solid transparent;
}

.btn-purple:hover {
  background-color: #4f46e5;
  color: #ffffff;
}

.btn-outline-purple {
  background-color: #ffffff;
  color: #6366f1;
  border: 1px solid #6366f1;
}

.btn-outline-purple:hover {
  background-color: #e0e7ff;
  color: #4f46e5;
}
/* Container & Grid Setup */
.ad-formats-wrapper {
  display: flex;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  font-family: 'Inter', system-ui, sans-serif;
}

.format-column {
  flex: 1;
  border-radius: 20px;
  padding: 24px;
}

/* The subtle background tint for the recommended side */
.recommend-column {
  background-color: #f7f7fc; /* Soft purple/blue tint */
}

.standard-column {
  background-color: #ffffff;
}

.column-header {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 24px;
}

/* The Card Itself */
.format-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Graphic Placeholders (Replace with your actual images later) */
.card-graphic {
  height: 140px;
  border-radius: 12px;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Typography */
.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px 0;
}

.card-desc {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
  margin: 0 0 20px 0;
  min-height: 42px; /* Keeps buttons aligned */
}

/* Custom Checkmark List */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-grow: 1; /* Pushes the button to the bottom */
}

.feature-list li {
  font-size: 13px;
  color: #495057;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

.check {
  color: #22c55e;
  font-weight: bold;
  margin-right: 10px;
  font-size: 14px;
}

/* Mobile Responsiveness for ad formats */
@media (max-width: 768px) {
  .ad-formats-wrapper {
    flex-direction: column;
  }
  .ad-formats-container {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Auth Page Shared Styles
   ========================================================================== */
.auth-page-bg {
  background: #f8fafc;
  background-image: radial-gradient(circle, #e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  padding: 2.75rem;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04), 0 20px 40px -8px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-border) 100%);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header .auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.auth-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.auth-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-footer-link {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer-link a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}

.auth-footer-link a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.forgot-password-link {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.3rem;
  margin-bottom: 0.25rem;
  transition: color 0.15s;
}

.forgot-password-link:hover {
  color: var(--primary);
}

.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
}

.role-toggle-btn {
  padding: 0.55rem 0.5rem;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius-md) - 2px);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  text-align: center;
}

.role-toggle-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.role-toggle-btn:hover:not(.active) {
  background: rgba(255,255,255,0.6);
  color: var(--text-main);
}

.password-field-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.password-toggle:hover {
  color: var(--text-main);
}

.btn-auth {
  width: 100%;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  margin-top: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.btn-auth:hover {
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
  transform: translateY(-1px);
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
}

.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ==========================================================================
   Sinhala (සිංහල) Typography & Language Switcher Styles
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala:wght@400;500;600;700;800&display=swap');

body.lang-si, html[lang="si"] body {
  font-family: 'Noto Sans Sinhala', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
}

body.lang-si h1, body.lang-si h2, body.lang-si h3, body.lang-si h4, body.lang-si .lead {
  font-family: 'Noto Sans Sinhala', 'Plus Jakarta Sans', sans-serif;
  line-height: 1.38;
  letter-spacing: normal;
}

body.lang-si .btn {
  font-family: 'Noto Sans Sinhala', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

/* Smooth Language Switch Micro-Transition */
body.lang-transitioning {
  opacity: 0.88;
  transition: opacity 0.12s ease-in-out !important;
}

/* Smooth Segmented Language Toggle */
.lang-switch-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 3px;
  user-select: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  z-index: 10;
}

.lang-switch-toggle:hover {
  border-color: var(--primary-border);
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.1);
}

.lang-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  pointer-events: none;
}

.lang-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  padding: 0.32rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', 'Noto Sans Sinhala', sans-serif;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  color: var(--primary);
  font-weight: 800;
}

.lang-btn .lang-flag {
  font-size: 0.95rem;
  line-height: 1;
}

/* Mobile Nav Language Toggle */
.mobile-nav-lang-wrap {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-lang-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

