/**
 * CPMBazar — Earn Page Stylesheet (assets/css/earn.css)
 * Self-contained stylesheet for /earn.php
 * Governs tabs, referral tier table, step cards, deep-dive tutorials, and responsive layouts.
 * Fully theme-aware across Dark (default) and Light mode.
 */

/* ==============================================================
   1. DESIGN TOKENS (Dark & Light)
   ============================================================== */
:root {
  --earn-bg: #0b0e14;
  --earn-card: #121722;
  --earn-card-solid: #121722;
  --earn-accent: #2563eb;
  --earn-accent-text: #60a5fa;
  --earn-accent-rgb: 37, 99, 235;
  --earn-border: rgba(148, 163, 184, 0.16);
  --earn-border-muted: rgba(148, 163, 184, 0.10);
  --earn-text: #f1f5f9;
  --earn-text-muted: #94a3b8;
  --earn-text-dim: #64748b;
  --earn-title-color: #f1f5f9;
  --earn-card-shadow: none;
}

[data-theme="light"] {
  --earn-bg: #f6f7f9;
  --earn-card: #FFFFFF;
  --earn-card-solid: #FFFFFF;
  --earn-accent: #2563eb;
  --earn-accent-text: #2563eb;
  --earn-accent-rgb: 37, 99, 235;
  --earn-border: #CBD5E1;
  --earn-border-muted: #E2E8F0;
  --earn-text: #0F172A;
  --earn-text-muted: #475569;
  --earn-text-dim: #64748B;
  --earn-title-color: #0F172A;
  --earn-card-shadow: none;
}

/* Base Page Container */
.earn-page {
  padding: 96px 24px 70px;
  min-height: calc(100vh - 64px);
  max-width: 1140px;
  margin: 0 auto;
  box-sizing: border-box;
  color: var(--earn-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Inline Code Element */
.earn-page code {
  background: rgba(37, 99, 235, 0.14);
  color: var(--earn-accent-text);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.88em;
  font-weight: 500;
}

[data-theme="light"] .earn-page code {
  background: #eff6ff;
  color: #1d4ed8;
}

/* ==============================================================
   2. HERO SECTION
   ============================================================== */
.earn-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.earn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--earn-accent-text);
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid var(--earn-border);
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}

[data-theme="light"] .earn-eyebrow {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.earn-title {
  font-size: clamp(28px, 4.6vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--earn-title-color);
}

[data-theme="light"] .earn-title {
  color: #0F172A;
}

.earn-title .accent-text {
  color: var(--earn-accent-text);
}

.earn-subtitle {
  font-size: 16px;
  color: var(--earn-text-muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 620px;
}

/* ==============================================================
   3. TAB NAVIGATION & BADGES
   ============================================================== */
.earn-tabs-wrapper {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.earn-tabs-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--earn-card);
  border: 1px solid var(--earn-border);
  padding: 5px;
  border-radius: 10px;
  box-shadow: none;
  max-width: 100%;
  overflow-x: auto;
}

[data-theme="light"] .earn-tabs-nav {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: none;
}

.earn-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--earn-text-muted);
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 42px;
  box-sizing: border-box;
  font-family: inherit;
  transition: background-color 0.16s cubic-bezier(0.22, 1, 0.36, 1), color 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.earn-tab-btn:hover {
  color: var(--earn-text);
  background: rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .earn-tab-btn {
  color: #475569;
}

[data-theme="light"] .earn-tab-btn:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.earn-tab-btn[aria-selected="true"] {
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: none;
  border-color: #2563eb;
}

.earn-tab-btn:focus-visible {
  outline: 2px solid var(--earn-accent);
  outline-offset: 2px;
}

/* Tab Badges: Soon & Live */
.tab-soon-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1;
}

[data-theme="light"] .tab-soon-badge {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FDE68A;
}

.tab-live-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(34, 192, 138, 0.15);
  color: #22c08a;
  border: 1px solid rgba(34, 192, 138, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1;
}

[data-theme="light"] .tab-live-badge {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

/* When the Tab is Selected (Cobalt Active Background) */
.earn-tab-btn[aria-selected="true"] .tab-soon-badge,
.earn-tab-btn[aria-selected="true"] .tab-live-badge {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Panels */
.earn-panel {
  display: none;
  outline: none;
}

.earn-panel.active {
  display: block;
  animation: earnPanelFadeIn 0.25s ease-out;
}

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

/* ==============================================================
   4. HOW IT WORKS / STEP CARDS
   ============================================================== */
.earn-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.earn-step-card {
  background: var(--earn-card);
  border: 1px solid var(--earn-border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.earn-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--earn-accent-rgb), 0.35);
}

[data-theme="light"] .earn-step-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.step-num-pill {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(var(--earn-accent-rgb), 0.12);
  color: var(--earn-accent);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgba(var(--earn-accent-rgb), 0.25);
}

[data-theme="light"] .step-num-pill {
  background: #E0F2FE;
  color: #0284C7;
  border-color: #BAE6FD;
}

.step-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

[data-theme="light"] .step-card-title {
  color: #0F172A;
}

.step-card-desc {
  font-size: 14px;
  color: var(--earn-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ==============================================================
   5. RATES TABLE SECTION
   ============================================================== */
.earn-rates-section {
  margin-bottom: 36px;
}

.rates-section-header {
  margin-bottom: 18px;
}

.rates-section-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}

[data-theme="light"] .rates-section-title {
  color: #0F172A;
}

.rates-section-lead {
  font-size: 14.5px;
  color: var(--earn-text-muted);
  margin: 0;
  line-height: 1.5;
}

.rates-callout-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--earn-accent-rgb), 0.08);
  border: 1px solid rgba(var(--earn-accent-rgb), 0.28);
  color: var(--earn-accent);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  margin: 14px 0 20px;
}

[data-theme="light"] .rates-callout-pill {
  background: #E0F2FE;
  color: #0369A1;
  border-color: #BAE6FD;
}

.rates-callout-pill svg {
  flex-shrink: 0;
}

/* Rates Table Desktop */
.rates-table-card {
  background: var(--earn-card);
  border: 1px solid var(--earn-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .rates-table-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.rates-table th {
  background: rgba(7, 18, 38, 0.6);
  color: var(--earn-text-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--earn-border);
}

[data-theme="light"] .rates-table th {
  background: #F8FAFC;
  color: #475569;
  border-bottom-color: #E2E8F0;
}

.rates-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--earn-border-muted);
  vertical-align: middle;
}

[data-theme="light"] .rates-table td {
  border-bottom-color: #F1F5F9;
}

.rates-table tbody tr:last-child td {
  border-bottom: none;
}

.rates-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}

[data-theme="light"] .rates-table tbody tr:hover {
  background: #F8FAFC;
}

/* Category column */
.cat-cell-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(var(--earn-accent-rgb), 0.08);
  border: 1px solid rgba(var(--earn-accent-rgb), 0.2);
  color: var(--earn-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .cat-icon-box {
  background: #E0F2FE;
  color: #0284C7;
  border-color: #BAE6FD;
}

.cat-name-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-primary-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 14.5px;
}

[data-theme="light"] .cat-primary-name {
  color: #0F172A;
}

.cat-name-block .cat-included-text {
  display: none;
}

.cat-included-text {
  font-size: 12.5px;
  color: var(--earn-text-muted);
  line-height: 1.35;
}

[data-theme="light"] .cat-included-text,
[data-theme="light"] .basis-text {
  color: #475569 !important;
}

[data-theme="light"] .rate-badge {
  background: #E0F2FE !important;
  color: #0284C7 !important;
  border-color: #BAE6FD !important;
}

[data-theme="light"] .earn-footnote {
  color: #64748B !important;
}

/* Commission column */
.rate-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(var(--earn-accent-rgb), 0.12);
  color: var(--earn-accent);
  font-size: 14px;
  font-weight: 800;
  border: 1px solid rgba(var(--earn-accent-rgb), 0.25);
  font-family: 'JetBrains Mono', monospace;
}

[data-theme="light"] .rate-badge {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

/* Calculation basis column */
.basis-text {
  color: var(--earn-text-muted);
  font-size: 13px;
}

/* Status column */
.status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-active {
  background: rgba(49, 200, 122, 0.12);
  color: #31c87a;
  border: 1px solid rgba(49, 200, 122, 0.3);
}

[data-theme="light"] .status-active {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

.status-soon {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

[data-theme="light"] .status-soon {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FDE68A;
}

/* ==============================================================
   6. REFERRAL EXAMPLE BOX
   ============================================================== */
.earn-example-box {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(var(--earn-accent-rgb), 0.25);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

[data-theme="light"] .earn-example-box {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.22);
}

.example-icon {
  width: 22px;
  height: 22px;
  color: var(--earn-accent);
  flex-shrink: 0;
}

[data-theme="light"] .example-icon {
  color: #0284C7;
}

.example-text {
  font-size: 14.5px;
  color: var(--earn-text);
  line-height: 1.5;
}

[data-theme="light"] .example-text {
  color: #334155;
}

.example-text strong {
  color: #ffffff;
}

[data-theme="light"] .example-text strong {
  color: #0F172A;
}

.example-text .amt-spend {
  color: #ffffff;
  font-weight: 700;
}

[data-theme="light"] .example-text .amt-spend {
  color: #0F172A;
}

.example-text .amt-earn {
  color: var(--earn-accent);
  font-weight: 800;
}

[data-theme="light"] .example-text .amt-earn {
  color: #0284C7;
}

/* Footnote */
.earn-footnote {
  font-size: 12.5px;
  color: var(--earn-text-dim);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ==============================================================
   7. REFERRAL BOTTOM CTA BOX
   ============================================================== */
.earn-bottom-cta {
  background: var(--earn-card-solid);
  border: 1px solid var(--earn-border);
  border-radius: 18px;
  padding: 38px 24px;
  text-align: center;
  margin-top: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .earn-bottom-cta {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.cta-box-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
}

[data-theme="light"] .cta-box-title {
  color: #0F172A;
}

.cta-box-sub {
  font-size: 15px;
  color: var(--earn-text-muted);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

[data-theme="light"] .cta-box-sub {
  color: #475569;
}

.btn-earn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  min-height: 44px;
  box-sizing: border-box;
  transition: background-color 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: none;
  border: 1px solid #2563eb;
}

.btn-earn-cta:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff !important;
}

/* ==============================================================
   8. COMING SOON CARD (Social Accounts Sell)
   ============================================================== */
.coming-soon-card {
  max-width: 560px;
  margin: 36px auto;
  padding: 40px 24px;
  background: var(--earn-card-solid);
  border: 1px solid var(--earn-border);
  border-radius: 14px;
  text-align: center;
  box-shadow: none;
}

[data-theme="light"] .coming-soon-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.cs-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

[data-theme="light"] .cs-badge {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FDE68A;
}

.cs-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
}

[data-theme="light"] .cs-title {
  color: #0F172A;
}

.cs-desc {
  font-size: 15px;
  color: var(--earn-text-muted);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 24px;
}

[data-theme="light"] .cs-desc {
  color: #475569;
}

.btn-tg-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.14);
  color: #ffffff;
  border: 1px solid rgba(var(--earn-accent-rgb), 0.35);
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  min-height: 44px;
  box-sizing: border-box;
  transition: background-color 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-tg-channel:hover {
  background: #2563eb;
  color: #ffffff !important;
  border-color: #2563eb;
}

[data-theme="light"] .btn-tg-channel {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.28);
}

[data-theme="light"] .btn-tg-channel:hover {
  background: #2563eb;
  color: #ffffff !important;
  border-color: #2563eb;
}

.btn-tg-channel svg {
  flex-shrink: 0;
}

/* ==============================================================
   9. GMAIL RENT GUIDE DEDICATED COMPONENTS
   ============================================================== */
.gr-guide-hero {
  text-align: center;
  margin-bottom: 40px;
}

.gr-guide-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .gr-guide-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gr-guide-grid-4 {
    grid-template-columns: 1fr;
  }
}

.gr-mobile-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 850px) {
  .gr-mobile-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .gr-mobile-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Cookie Extraction Box (Desktop) */
.gr-cookie-box {
  background: var(--earn-card);
  border: 1px solid var(--earn-border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .gr-cookie-box {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.gr-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(1, 184, 254, 0.15);
  padding-bottom: 14px;
}

[data-theme="light"] .gr-box-header {
  border-bottom-color: #E2E8F0;
}

.gr-box-header-green {
  border-bottom: 1px solid rgba(34, 192, 138, 0.2);
}

[data-theme="light"] .gr-box-header-green {
  border-bottom-color: rgba(16, 185, 129, 0.2);
}

/* Step Tags */
.gr-step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(var(--earn-accent-rgb), 0.15);
  color: var(--earn-accent);
  margin-bottom: 8px;
}

[data-theme="light"] .gr-step-tag {
  background: #E0F2FE;
  color: #0369A1;
}

.gr-step-tag-green {
  background: rgba(34, 192, 138, 0.18);
  color: #22c08a;
}

[data-theme="light"] .gr-step-tag-green {
  background: #DCFCE7;
  color: #047857;
}

/* Sub-Cards inside Extraction Tutorials */
.gr-sub-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--earn-border);
  border-radius: 10px;
  padding: 16px;
  transition: border-color 0.2s ease;
}

[data-theme="light"] .gr-sub-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.gr-sub-card-cyan strong {
  color: #60a5fa;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

[data-theme="light"] .gr-sub-card-cyan strong {
  color: #2563eb;
}

/* Android Box (Green theme) */
.gr-android-box {
  background: var(--earn-card);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 40px;
}

[data-theme="light"] .gr-android-box {
  background: #FFFFFF;
  border-color: rgba(5, 150, 105, 0.35);
}

.gr-sub-card-green {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(34, 192, 138, 0.2);
  border-radius: 10px;
  padding: 14px;
}

[data-theme="light"] .gr-sub-card-green {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.gr-sub-card-green strong {
  color: #22c08a;
  font-size: 13.5px;
  display: block;
  margin-bottom: 6px;
}

[data-theme="light"] .gr-sub-card-green strong {
  color: #047857;
}

.gr-tip-box-green {
  background: rgba(34, 192, 138, 0.1);
  border: 1px solid rgba(34, 192, 138, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #22c08a;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .gr-tip-box-green {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #047857;
}

/* Code Sample Box */
.gr-code-sample {
  background: #060b13;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12px;
  color: #9FB3D6;
  word-break: break-all;
  margin: 10px 0;
  line-height: 1.5;
}

[data-theme="light"] .gr-code-sample {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

/* Feature Grid */
.gr-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

@media (max-width: 800px) {
  .gr-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ Items */
.gr-faq-item {
  background: var(--earn-card);
  border: 1px solid var(--earn-border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
}

[data-theme="light"] .gr-faq-item {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.gr-faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--earn-text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .gr-faq-q {
  color: #0F172A;
}

.faq-q-accent {
  color: var(--earn-accent);
  font-weight: 800;
}

[data-theme="light"] .faq-q-accent {
  color: #0284C7;
}

.gr-faq-a {
  font-size: 13.5px;
  color: var(--earn-text-muted);
  line-height: 1.55;
  margin: 0;
}

[data-theme="light"] .gr-faq-a {
  color: #475569;
}

/* Bottom Launch CTA Card on Gmail Rent */
.gr-launch-cta {
  background: var(--earn-card-solid);
  border: 1px solid var(--earn-border);
  border-radius: 14px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: none;
}

[data-theme="light"] .gr-launch-cta {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: none;
}

.gr-launch-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
}

[data-theme="light"] .gr-launch-title {
  color: #0F172A;
}

.gr-launch-desc {
  color: var(--earn-text-muted);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

[data-theme="light"] .gr-launch-desc {
  color: #475569;
}

/* ==============================================================
   10. RESPONSIVE DESIGN (Tablets & Phones)
   ============================================================== */
@media (max-width: 900px) {
  .earn-page {
    padding: 85px 16px 50px;
  }
  .earn-steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  /* Tabs bar horizontal scroll on narrow viewports */
  .earn-tabs-wrapper {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .earn-tabs-wrapper::-webkit-scrollbar {
    display: none;
  }
  .earn-tabs-nav {
    flex-wrap: nowrap;
    border-radius: 14px;
  }
  .earn-tab-btn {
    padding: 10px 16px;
    font-size: 13.5px;
  }

  /* Table becomes stacked cards */
  .rates-table thead {
    display: none;
  }
  .rates-table, 
  .rates-table tbody, 
  .rates-table tr, 
  .rates-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .rates-table-card {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
  .rates-table tr {
    background: var(--earn-card);
    border: 1px solid var(--earn-border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
  }
  [data-theme="light"] .rates-table tr {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  }
  .rates-table td {
    padding: 8px 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .rates-table td.cat-cell {
    display: block;
    border-bottom: 1px solid var(--earn-border-muted);
    padding-bottom: 12px;
    margin-bottom: 8px;
  }
  .rates-table td::before {
    content: attr(data-label);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--earn-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .rates-table td.cat-cell::before {
    display: none;
  }
  .cat-cell-content {
    align-items: flex-start;
  }
}

/* ==============================================================
   11. SELL PRODUCTS SHOWCASE & CALCULATOR COMPONENTS
   ============================================================== */
.earn-tabs-nav {
  max-width: 100%;
}

@media (min-width: 769px) and (max-width: 960px) {
  .earn-tabs-nav {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 20px;
  }
}

.sp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.sp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .sp-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .sp-grid-2,
  .sp-grid-3 {
    grid-template-columns: 1fr;
  }
}

.sp-panel-card {
  background: var(--earn-card);
  border: 1px solid var(--earn-border);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 36px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .sp-panel-card {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.sp-card-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.sp-badge-cyan {
  background: rgba(37, 99, 235, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 6px;
}

[data-theme="light"] .sp-badge-cyan {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.24);
}

.sp-badge-green {
  background: rgba(34, 192, 138, 0.14);
  color: #22c08a;
  border: 1px solid rgba(34, 192, 138, 0.3);
}

[data-theme="light"] .sp-badge-green {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

.sp-badge-amber {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

[data-theme="light"] .sp-badge-amber {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FDE68A;
}

/* Interactive Seller Earnings Calculator */
.sp-calc-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 820px) {
  .sp-calc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.sp-calc-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(7, 18, 38, 0.72);
  border: 1px solid var(--earn-border);
  border-radius: 12px;
  padding: 4px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sp-calc-input-wrap:focus-within {
  border-color: var(--earn-accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .sp-calc-input-wrap {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.sp-calc-currency {
  font-size: 18px;
  font-weight: 800;
  color: var(--earn-accent);
  margin-right: 10px;
}

[data-theme="light"] .sp-calc-currency {
  color: #2563eb;
}

.sp-calc-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--earn-text);
  font-size: 20px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  padding: 10px 0;
}

[data-theme="light"] .sp-calc-input {
  color: #0F172A;
}

.sp-calc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sp-calc-preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--earn-border-muted);
  color: var(--earn-text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sp-calc-preset-btn:hover,
.sp-calc-preset-btn.active {
  background: rgba(37, 99, 235, 0.16);
  border-color: #2563eb;
  color: var(--earn-accent-text);
}

[data-theme="light"] .sp-calc-preset-btn {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #475569;
}

[data-theme="light"] .sp-calc-preset-btn:hover,
[data-theme="light"] .sp-calc-preset-btn.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

.sp-calc-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .sp-calc-stats {
    grid-template-columns: 1fr;
  }
}

.sp-stat-tile {
  background: var(--earn-card-solid);
  border: 1px solid var(--earn-border-muted);
  border-radius: 10px;
  padding: 14px 16px;
}

[data-theme="light"] .sp-stat-tile {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.sp-stat-tile.sp-stat-highlight {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(52, 211, 153, 0.35);
}

[data-theme="light"] .sp-stat-tile.sp-stat-highlight {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.sp-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--earn-text-dim);
  margin-bottom: 4px;
}

.sp-stat-value {
  font-size: 20px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  color: var(--earn-text);
}

.sp-stat-tile.sp-stat-highlight .sp-stat-value {
  color: #34d399;
}

[data-theme="light"] .sp-stat-tile.sp-stat-highlight .sp-stat-value {
  color: #047857;
}

.sp-stat-sub {
  font-size: 12px;
  color: var(--earn-text-muted);
  margin-top: 2px;
}

/* URL Preview & Format Chips */
.sp-url-box {
  background: var(--earn-bg);
  border: 1px solid var(--earn-border-muted);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: #60a5fa;
  word-break: break-all;
  margin-top: 10px;
}

[data-theme="light"] .sp-url-box {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #1d4ed8;
}

.sp-ext-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.sp-ext-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(1, 184, 254, 0.1);
  border: 1px solid rgba(1, 184, 254, 0.22);
  color: var(--earn-accent);
}

[data-theme="light"] .sp-ext-pill {
  background: #E0F2FE;
  border-color: #BAE6FD;
  color: #0369A1;
}

.sp-checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.sp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--earn-text-muted);
  line-height: 1.5;
}

.sp-checklist-icon {
  color: #22c08a;
  font-weight: 800;
  flex-shrink: 0;
}

[data-theme="light"] .sp-checklist-icon {
  color: #047857;
}
