/* ==========================================================================
   Project: WhatsApp Statement Cleaner (Premium Emerald Edition - V4)
   - Fixed Hero Overlap (CTA/Trust Row)
   - Pro Highlights (Comparison Table & Pricing Cards)
   - Smooth Scroll & Link Fixes
   - Maintained all V3 Spacing & Layout
   - ADDED: Centered Paywall Modal & Overlay Fix
   ========================================================================== */

:root {
   /* WhatsApp Official Premium Palette */
   --wa-green: #25d366;
   --wa-teal: #128c7e;
   --wa-dark-teal: #075e54;

   /* System Colors */
   --bg-deep: #0b141a;
   --bg-surface: #111b21;
   --text-primary: #e9edef;
   --text-secondary: #8696a0;
   --accent: #00a884;
   --border: rgba(255, 255, 255, 0.1);

   /* Layout */
   --radius-lg: 20px;
   --radius-md: 12px;

   /* Spacing Variable based on your Hero/Dropzone gap */
   --section-gap: 60px;
}

/* Smooth Scrolling for Footer/Nav links */
html {
   scroll-behavior: smooth;
}

/* Light Mode Support */
body:not(.dark) {
   --bg-deep: #f8fafc;
   --bg-surface: #ffffff;
   --text-primary: #0f172a;
   /* Pehle se zyada dark */
   --text-secondary: #334155;
   /* Slate color: dhundhla nahi dikhega */
   --border: #cbd5e1;
   --wa-green-text: #064e3b;
   /* Extra dark green for light mode labels */
}

/* ================================
   Base & Typography
================================ */
* {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

body {
   font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
   background-color: var(--bg-deep);
   color: var(--text-primary);
   line-height: 1.5;
}

.container {
   max-width: 1100px;
   margin: 0 auto;
   padding: 0 20px;
}

/* Uniform Section Spacing */
section,
.marketing-block {
   margin-bottom: var(--section-gap) !important;
}

/* ================================
   Header & Navigation
================================ */
.sticky {
   position: sticky;
   top: 0;
   background: var(--bg-surface);
   border-bottom: 1px solid var(--border);
   z-index: 1000;
}

.header-inner {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 12px 20px;
   max-width: 1100px;
   margin: 0 auto;
}

.header-actions {
   display: flex;
   align-items: center;
   gap: 12px;
}

.logo {
   font-weight: 700;
   color: var(--wa-green);
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 1.1rem;
   text-decoration: none;
}

/* ================================
   Hero & Overlap Fix
================================ */
.hero {
   padding: 60px 20px;
   text-align: center;
   background: radial-gradient(circle at top, var(--wa-dark-teal), transparent);
}

.hero h1 {
   font-size: clamp(2rem, 5vw, 3.5rem);
   font-weight: 800;
   margin-bottom: 15px;
}

.hero-sub {
   color: var(--text-secondary);
   font-size: 1.1rem;
   max-width: 700px;
   margin: 0 auto 25px;
   font-weight: 500;
   /* Weight badhaya taaki text clear dikhe */
}

/* Fix for Button and Trust Row overlapping */
.hero-cta {
   margin-bottom: 30px;
}

.trust-row {
   background: rgba(37, 211, 102, 0.1);
   border: 1px solid var(--wa-green);
   color: var(--wa-green);
   padding: 10px 20px;
   border-radius: 50px;
   display: inline-flex;
   align-items: center;
   gap: 15px;
   font-size: 0.85rem;
   justify-content: center;
   flex-wrap: wrap;
   font-weight: 600;
   /* Boldness for readability */
}

body:not(.dark) .trust-row {
   color: var(--wa-green-text);
   background: #ecfdf5;
   border-color: #10b981;
}

/* ================================
   Dropzone
================================ */
.dropzone {
   background: var(--bg-surface);
   border: 2px dashed var(--wa-teal);
   border-radius: var(--radius-lg);
   padding: 60px 40px;
   text-align: center;
   cursor: pointer;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
   margin-bottom: var(--section-gap);
   transition: 0.3s ease;
}

.dropzone:hover {
   background: rgba(37, 211, 102, 0.05);
   border-color: var(--wa-green);
}

/* ================================
   Feature Grid (Single Horizontal Line)
================================ */
.feature-grid {
   display: grid;
   grid-template-columns: repeat(5, 1fr);
   gap: 15px;
   width: 100%;
}

.feature {
   background: var(--bg-surface);
   padding: 20px 15px;
   border-radius: var(--radius-md);
   border: 1px solid var(--border);
   text-align: center;
}

.feature h4 {
   color: var(--wa-green);
   margin-bottom: 8px;
   font-size: 0.95rem;
}

body:not(.dark) .feature h4 {
    color: var(--wa-teal); /* Light mode me green heading thodi dark dikhegi */
} /*optional*/

.feature p {
   font-size: 0.8rem;
   color: var(--text-secondary);
}

/* ================================
   Settings & License (Tightened)
================================ */
.settings h3 {
   margin-bottom: 12px;
}

.settings label {
   display: flex;
   align-items: center;
   gap: 10px;
   color: var(--text-secondary);
   font-size: 0.95rem;
}

#licenseInput {
   background: var(--bg-surface);
   border: 1px solid var(--border);
   padding: 8px 12px;
   border-radius: 8px;
   color: white;
   outline: none;
}

/* ================================
   Highlight: Pro Comparison Column
================================ */
.comparison {
   width: 100%;
   border-collapse: collapse;
   background: var(--bg-surface);
   border-radius: var(--radius-md);
   overflow: hidden;
}

/* Targetting 3rd column (Pro) */
.comparison td:nth-child(3),
.comparison th:nth-child(3) {
   background: rgba(37, 211, 102, 0.04);
   border-left: 1px solid rgba(37, 211, 102, 0.2);
   border-right: 1px solid rgba(37, 211, 102, 0.2);
}

.comparison th {
   color: var(--wa-green);
   font-weight: 700;
   padding: 16px;
   border-bottom: 1px solid var(--border);
}

.comparison td {
   padding: 16px;
   border-bottom: 1px solid var(--border);
   color: var(--text-secondary);
}

/* ================================
   Highlight: Pro Pricing Card
================================ */
.price-card.pro {
   border: 2px solid var(--wa-green) !important;
   transform: scale(1.03);
   /* Subtle pop */
   position: relative;
   box-shadow: 0 15px 40px rgba(37, 211, 102, 0.15);
}

/* Most Popular Badge */
.price-card.pro::after {
   content: "Offer Price $9";
   position: absolute;
   top: -12px;
   left: 50%;
   transform: translateX(-50%);
   background: var(--wa-green);
   color: #0b141a;
   padding: 2px 12px;
   border-radius: 20px;
   font-size: 0.7rem;
   font-weight: 800;
}

.pricing-grid {
   display: flex;
   gap: 25px;
   align-items: center;
   margin-top: 30px;
}

.card,
.summary-box,
.price-card,
.example-box {
   background: var(--bg-surface);
   padding: 24px;
   border-radius: var(--radius-md);
   border: 1px solid var(--border);
}

/* ================================
   Paywall Modal Fix (Centered & Overlay)
================================ */
.modal {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background: rgba(11, 20, 26, 0.9);
   backdrop-filter: blur(8px);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 9999;
   pointer-events: auto;
}

.modal.hidden {
   display: none;
}

.modal-content {
   background: var(--bg-surface);
   border-radius: var(--radius-lg);
   padding: 40px;
   width: 90%;
   max-width: 450px;
   border: 1px solid var(--border);
   box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
   text-align: center;
}

.pro-list {
   text-align: left;
   margin: 20px auto;
   display: inline-block;
}

.pro-list li {
   margin-bottom: 10px;
   list-style: none;
   color: var(--text-secondary);
   font-size: 0.9rem;
}

.pro-list li::before {
   content: "✓";
   color: var(--wa-green);
   margin-right: 10px;
   font-weight: bold;
}

.price {
   font-size: 1.5rem;
   font-weight: 800;
   color: var(--wa-green);
   margin: 15px 0;
}

.paywall-actions {
   display: flex;
   gap: 12px;
   margin-top: 20px;
}

.paywall-actions .btn {
   flex: 1;
}

/* ================================
   Premium Footer
=============================== */
.site-footer {
   background: #070d11;
   padding: 60px 0 30px;
   border-top: 1px solid var(--border);
}

body:not(.dark) .site-footer {
   background: #f8fafc;
   /* Very light gray instead of pure white */
}

.footer-brand p,
.footer-links a,
.footer-bottom {
   color: var(--text-secondary);
   /* Ab ye naya dark slate color use karega */
}
/*
.footer-inner {
   display: grid;
   grid-template-columns: 1.5fr 1fr;
   gap: 40px;
   max-width: 1100px;
   margin: 0 auto;
}*/

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto; /* Links side ab phailenge nahi */
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center; /* Branding aur Links ko ek line mein align karne ke liye */
}

.footer-brand strong {
   color: var(--wa-green);
   font-size: 1.2rem;
   margin-bottom: 10px;
   display: block;
}

.footer-brand p {
   color: var(--text-secondary);
   font-size: 0.9rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-links ul {
   list-style: none;
   padding: 0;
   margin: 0;
}

.footer-links li {
   margin-bottom: 6px;
}

.footer-links a:hover {
   color: var(--wa-teal);
   font-weight: 600;
}

/*
.footer-bottom {
   grid-column: span 2;
   text-align: center;
   padding-top: 30px;
   margin-top: 30px;
   border-top: 1px solid var(--border);
   color: var(--text-secondary);
   font-size: 0.8rem;
}
*/

.footer-bottom {
    grid-column: span 3;
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ================================
   Buttons & Utils
================================ */
.btn {
   background: var(--wa-teal);
   color: white;
   border: none;
   padding: 10px 22px;
   border-radius: 50px;
   font-weight: 600;
   cursor: pointer;
   transition: 0.2s;
   font-size: 0.85rem;
}

.btn:hover {
   background: var(--wa-green);
   transform: translateY(-1px);
}

.btn.secondary {
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid var(--border);
}

/* Secondary Button Visibility in Light Mode */
body:not(.dark) .btn.secondary {
    background: #f1f5f9;      /* Light Gray background */
    color: #0f172a;           /* Dark Text */
    border: 1px solid #cbd5e1; /* Visible Border */
}

/* Hover effect taaki interactive lage */
body:not(.dark) .btn.secondary:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.dark-btn {
   background: none;
   border: none;
   font-size: 1.2rem;
   cursor: pointer;
}

.hidden {
   display: none;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
   .feature-grid {
      grid-template-columns: repeat(3, 1fr);
   }

   .footer-inner {
      grid-template-columns: 1fr;
      text-align: center;
   }

   .footer-links {
   display: flex;
   flex-direction: column;
   gap: 10px;
}

   .footer-brand p {
      margin: 0 auto;
   }
}

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

   .pricing-grid {
      flex-direction: column;
   }

   .price-card.pro {
      transform: scale(1);
   }

   /* Disable scale on mobile */
}

/* How It Works - Indentation Fix */
.steps {
    padding-left: 25px; /* List ko andar push karne ke liye */
    margin-top: 20px;
    color: var(--text-secondary);
}

.steps li {
    margin-bottom: 15px; /* Har step ke beech gap */
    padding-left: 10px;  /* Text aur number ke beech gap */
}

.old-price{
text-decoration:line-through;
opacity:.6;
margin-right:6px;
font-size:.9em;
}

.new-price{
font-weight:800;
color:var(--wa-green);
margin-right:4px;
}

.lifetime{
font-size:.8em;
opacity:.8;
}

/* --- Export Bar & Clear Button Fix --- */

.export-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px; /* Isse card se chipkega nahi */
    justify-content: center;
    padding-bottom: 20px;
}

#clearBtn {
    display: inline-flex !important; /* Ab ye dikhne lagega */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

/* Light mode visibility fix */
body:not(.dark) #clearBtn {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}