/* IdentifyFree AI — white premium theme, green accent #16a34a */
:root{--green:#16a34a;--green-dark:#15803d;--ink:#0f172a;--muted:#64748b;--border:#e2e8f0;--bg:#ffffff;--bg-soft:#f8fafc;--radius:12px}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--bg);line-height:1.55}
html{background:#052e16}
body{min-height:100vh;display:flex;flex-direction:column}
body>main{flex:1 0 auto}
a{color:var(--green);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
h1{font-size:2rem;line-height:1.2;margin:0 0 12px}
h2{font-size:1.5rem;margin:28px 0 12px}
h3{font-size:1.15rem;margin:0 0 8px}
p{margin:0 0 12px}

/* Header */
.announcement-bar{background:#dcfce7;color:#14532d;text-align:center;padding:8px 14px;font-size:0.9rem}
.site-header{position:sticky;top:0;background:rgba(255,255,255,.96);border-bottom:1px solid var(--border);z-index:50;backdrop-filter:blur(8px)}
.header-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;gap:18px;padding:12px 20px;flex-wrap:wrap}
.brand-link{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-weight:800;font-size:1.25rem}
.brand-icon{font-size:1.5rem}
.brand-logo{height:42px;width:auto}
/* v2: the hamburger is a <label> for a hidden checkbox, so the mobile menu opens with pure CSS even when JavaScript is unavailable. */
.nav-check{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.nav-toggle{display:none;background:var(--green);color:#fff;border:0;border-radius:8px;min-width:44px;min-height:44px;padding:0 12px;font-size:1.4rem;line-height:1;cursor:pointer;margin-left:auto;align-items:center;justify-content:center;user-select:none;-webkit-tap-highlight-color:transparent}
.nav-links{display:flex;align-items:center;gap:4px;margin-left:auto}
.nav-link{color:#334155;padding:8px 12px;border-radius:8px;font-weight:600;font-size:0.95rem;white-space:nowrap}
.nav-link:hover{background:var(--bg-soft);text-decoration:none}
.nav-link.active{color:var(--green-dark)}
.nav-dd{position:relative}
.nav-dd summary{list-style:none;cursor:pointer}
.nav-dd summary::-webkit-details-marker{display:none}
.nav-dd[open ] .dd-menu{display:block}
.dd-menu{display:none;position:absolute;top:100%;left:0;min-width:240px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 32px rgba(15,23,42,.12);padding:6px;z-index:60}
.dd-menu a{display:block;padding:8px 12px;color:#334155;border-radius:6px;font-size:0.92rem}
.dd-menu a:hover{background:var(--bg-soft);color:var(--green-dark);text-decoration:none}
.dd-menu a.dd-all{font-weight:700;color:var(--green-dark)}
.btn-identify{background:var(--green);color:#fff !important;padding:9px 18px;border-radius:999px;font-weight:700;font-size:0.92rem;margin-left:8px;white-space:nowrap}
.btn-identify:hover{background:var(--green-dark);text-decoration:none}

/* Layout */
.page-main{max-width:1200px;margin:0 auto;padding:28px 20px 60px}
.breadcrumbs{font-size:0.88rem;color:var(--muted);margin-bottom:18px}
.breadcrumbs a{color:var(--muted)}
.page-intro{color:var(--muted);max-width:720px;font-size:1.05rem}

/* Hero */
.hero{background:linear-gradient(135deg,#f0fdf4,#dcfce7);border:1px solid #bbf7d0;border-radius:20px;padding:40px 28px;text-align:center;margin-bottom:40px}
.hero h1{font-size:2.4rem;margin-bottom:10px}
.hero-subtitle{font-size:1.15rem;color:#334155;margin-bottom:24px}
.scanner-card{max-width:640px;margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:16px;padding:22px;box-shadow:0 8px 30px rgba(15,23,42,.06)}
.dropzone{border:2px dashed #a7f3d0;border-radius:12px;padding:32px 18px;cursor:pointer;transition:border-color .2s,background .2s}
.dropzone.drag-over{border-color:var(--green);background:#f0fdf4}
.upload-icon{font-size:2.6rem}
.upload-title{font-weight:700;font-size:1.05rem;margin:8px 0 4px}
.upload-subtitle{color:var(--muted);font-size:0.92rem;margin-bottom:14px}
.btn-browse{background:var(--green);color:#fff;border:0;padding:10px 20px;border-radius:8px;font-weight:600;cursor:pointer}
.btn-browse:hover{background:var(--green-dark)}
.preview-wrap img{max-height:320px;border-radius:10px;display:block;margin:0 auto 10px}
.preview-actions{display:flex;gap:10px;justify-content:center}
.btn-small{background:#e2e8f0;color:#334155;border:0;padding:7px 14px;border-radius:6px;cursor:pointer;font-weight:600}
.btn-danger-outline{background:#fee2e2;color:#b91c1c}
.identify-controls{margin:16px 0;text-align:left}
.identify-controls label{font-weight:600;display:block;margin-bottom:6px}
.identify-controls select{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}
.scan-action-row{margin-top:8px}
.btn-scan{background:var(--green);color:#fff;border:0;padding:14px 30px;border-radius:10px;font-size:1.05rem;font-weight:700;cursor:pointer;width:100%}
.btn-scan:disabled{opacity:.55;cursor:not-allowed}
.btn-scan:hover:not(:disabled){background:var(--green-dark)}
.spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite;vertical-align:-3px;margin-left:8px}
@keyframes spin{to{transform:rotate(360deg)}}
.scan-error{background:#fee2e2;color:#b91c1c;padding:12px;border-radius:8px;margin-top:12px;text-align:left}
.loading{color:var(--muted);padding:20px 0}

/* Sections (homepage) */
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.section{padding:48px 0}
.section-alt{background:var(--bg-soft)}
.section-header{text-align:center;margin-bottom:28px}
.section-desc{color:var(--muted)}
.hero-badge{display:inline-block;background:#dcfce7;color:#14532d;border-radius:999px;padding:5px 14px;font-size:0.85rem;font-weight:700;margin-bottom:14px}
.hero-title{font-size:2.4rem}
.hero-desc{color:#334155;max-width:640px;margin:0 auto 24px}
.step-card{border:1px solid var(--border);border-radius:var(--radius);padding:20px;text-align:center;background:#fff}
.feature-card{border:1px solid var(--border);border-radius:var(--radius);padding:20px;background:#fff}
.cta-section{background:var(--green);color:#fff;border-radius:20px;padding:36px;text-align:center;margin:48px 20px 0}
.cta-section h2{color:#fff;margin-top:0}
.cta-section p{color:#dcfce7}
.cta-section .btn-scan{background:#fff;color:var(--green-dark);max-width:320px}

/* Tool cards */
.section-title{margin-top:44px}
.section-subtitle{color:var(--muted);margin-bottom:20px}
.tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.tool-card{display:block;border:1px solid var(--border);border-radius:var(--radius);padding:20px;background:#fff;color:var(--ink);transition:transform .15s,box-shadow .15s}
.tool-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(15,23,42,.08);text-decoration:none;border-color:#86efac}
.tool-icon{font-size:2rem;margin-bottom:10px}
.tool-name{font-size:1.05rem;margin-bottom:6px}
.tool-desc{color:var(--muted);font-size:0.92rem;margin-bottom:10px}
.tool-link{color:var(--green-dark);font-weight:700;font-size:0.9rem}

/* Steps / features */
.steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:20px 0}
.step{border:1px solid var(--border);border-radius:var(--radius);padding:20px;text-align:center;background:var(--bg-soft)}
.step-num{width:44px;height:44px;border-radius:50%;background:var(--green);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:1.2rem;margin-bottom:10px}
.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.feature{border:1px solid var(--border);border-radius:var(--radius);padding:20px}
.feature-icon{font-size:1.6rem;margin-bottom:8px}

/* Blog */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.blog-card{border:1px solid var(--border);border-radius:var(--radius);padding:18px;background:#fff}
.blog-card h3{font-size:1.05rem}
.blog-list-item{border-bottom:1px solid var(--border);padding:16px 0}
.blog-list-item h2{margin:0 0 6px;font-size:1.25rem}
.article-meta{color:var(--muted);font-size:0.88rem}
.tag{display:inline-block;background:#dcfce7;color:#14532d;border-radius:999px;padding:3px 10px;font-size:0.8rem;margin-right:6px}
.pagination{margin:24px 0}
.pagination a{padding:8px 12px;border:1px solid var(--border);border-radius:6px;margin-right:6px;color:var(--ink)}
.pagination a.current{background:var(--green);color:#fff;border-color:var(--green)}
.pagination a:hover{text-decoration:none}

/* FAQ */
.faq-list{max-width:800px}
.faq-item{border:1px solid var(--border);border-radius:10px;margin-bottom:10px;padding:4px 16px;background:#fff}
.faq-item summary{cursor:pointer;font-weight:600;padding:12px 0;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item p{color:var(--muted)}

/* Results */
.result-card{border:1px solid #86efac;border-radius:14px;padding:22px;margin-top:20px;text-align:left;background:#f0fdf4}
.result-card h2{margin-top:0}
.result-name{font-size:1.4rem;font-weight:800}
.result-sci{font-style:italic;color:#166534}
.conf-badge{display:inline-block;background:var(--green);color:#fff;border-radius:999px;padding:4px 12px;font-size:0.85rem;font-weight:700}
.result-section{margin:14px 0}
.result-section h4{margin:0 0 4px;font-size:0.95rem;color:#166534;text-transform:uppercase;letter-spacing:0.04em}
.result-section p,.result-section li{margin:0;color:#334155}
.alt-list{list-style:none;padding:0;margin:0}
.alt-list li{padding:8px 0;border-bottom:1px solid #bbf7d0}
.alt-list li:last-child{border-bottom:0}
.warning-box{background:#fef3c7;border:1px solid #f59e0b;color:#78350f;padding:14px;border-radius:10px;margin:14px 0}
.info-box{background:#eff6ff;border:1px solid #bfdbfe;padding:16px;border-radius:10px;margin:20px 0}
.source-label{font-size:0.8rem;color:#64748b;font-style:italic}
.result-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.btn-secondary{background:#e2e8f0;color:#334155;border:0;padding:10px 18px;border-radius:8px;cursor:pointer;font-weight:600;text-decoration:none;display:inline-block}
.btn-secondary:hover{background:#cbd5e1;text-decoration:none}
.btn-primary{background:var(--green);color:#fff;border:0;padding:10px 18px;border-radius:8px;cursor:pointer;font-weight:600}
.btn-primary:hover{background:var(--green-dark)}

/* CTA */
.final-cta{background:var(--green);color:#fff;border-radius:20px;padding:36px;text-align:center;margin-top:48px}
.final-cta h2{color:#fff;margin-top:0}
.final-cta p{color:#dcfce7}
.final-cta .btn-scan{background:#fff;color:var(--green-dark);max-width:320px;margin-top:8px}
.final-cta .btn-scan:hover{background:#f0fdf4}

/* Footer */
.site-footer{background:#052e16;color:#bbf7d0;margin-top:40px}
.footer-container{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:24px;padding:40px 20px}
.footer-col h4{color:#fff;margin-bottom:12px}
.footer-col a{display:block;color:#bbf7d0;margin-bottom:8px;font-size:0.92rem}
.footer-desc{font-size:0.92rem}
.footer-bottom{border-top:1px solid #14532d;padding:16px;text-align:center;font-size:0.88rem;color:#86efac}
.footer-bottom p{margin:0}

.ad-slot{overflow:hidden}

/* Responsive */
@media(max-width:820px){
  .hero h1{font-size:1.7rem}
  .nav-toggle{display:inline-flex}
  .nav-links{display:none;flex-direction:column;align-items:stretch;width:100%;margin-left:0}
  .nav-links.open{display:flex}
  /* v2: CSS-only fallback — when the hidden checkbox is checked (tapping the ☰ label), show the menu even if JavaScript failed. */
  .nav-check:checked ~ .nav-links{display:flex}
  .nav-dd[open ] .dd-menu{display:block}
  .dd-menu{position:static;box-shadow:none;border:0;padding-left:12px}
  .btn-identify{margin:6px 0;text-align:center}
  .footer-container{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
  .footer-container{grid-template-columns:1fr}
  .hero{padding:28px 16px}
  .scanner-card{padding:14px}
}

/* ================= Premium branded layer (v2) =================
   Modern branded product look: gradient hero with animated shapes,
   glassmorphism cards, 3D tilt/lift, entrance animations, gradient
   buttons, polished sticky header, animated dropzone, loading shimmer.
   White premium base + green accents are kept. All rules live here and
   are inlined into every page, so the design renders with no external files. */
html{scroll-behavior:smooth}
body{background:#fff}

/* Branded gradient headings */
.hero-title{background:linear-gradient(92deg,#14532d 0%,#16a34a 55%,#059669 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.site-header .brand-text{background:linear-gradient(92deg,#16a34a,#15803d);-webkit-background-clip:text;background-clip:text;color:transparent}

/* Polished sticky header */
.site-header{box-shadow:0 1px 0 rgba(15,23,42,.05),0 10px 30px rgba(15,23,42,.06)}

/* Gradient buttons with shadows + lift */
.btn-scan,.btn-identify,.btn-browse,.btn-primary{background:linear-gradient(135deg,#22c55e,#16a34a 55%,#15803d);box-shadow:0 10px 24px rgba(22,163,74,.35);transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.btn-scan:hover:not(:disabled),.btn-identify:hover,.btn-browse:hover,.btn-primary:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(22,163,74,.42);text-decoration:none}
.btn-browse{display:inline-block}
.btn-secondary{transition:transform .2s ease,background .2s ease}
.btn-secondary:hover{transform:translateY(-1px)}

/* Rich gradient hero + animated shapes + drifting particle dots */
.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#ecfdf5 0%,#d1fae5 45%,#a7f3d0 100%);background-image:radial-gradient(rgba(22,163,74,.16) 1.5px,transparent 1.5px),linear-gradient(135deg,#ecfdf5 0%,#d1fae5 45%,#a7f3d0 100%);background-size:26px 26px,100% 100%}
.hero::before,.hero::after{content:"";position:absolute;border-radius:50%;filter:blur(60px);opacity:.55;pointer-events:none}
.hero::before{width:340px;height:340px;background:#86efac;top:-120px;right:-80px;animation:orbFloat 12s ease-in-out infinite}
.hero::after{width:280px;height:280px;background:#6ee7b7;bottom:-140px;left:-60px;animation:orbFloat 15s ease-in-out infinite reverse}
.hero .container{position:relative;z-index:1}
@keyframes orbFloat{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-24px,20px) scale(1.08)}}
@keyframes dotDrift{to{background-position:26px 26px,0 0}}
.hero-badge{background:rgba(255,255,255,.72);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.85);box-shadow:0 4px 14px rgba(21,101,52,.10)}

/* Glassmorphism scanner card */
.scanner-card{background:rgba(255,255,255,.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.75);box-shadow:0 24px 60px rgba(21,101,52,.16)}

/* Entrance animations (fill backwards: content stays visible after the
   animation ends, so hover transforms keep working and no-JS is safe) */
@keyframes fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
.hero{animation:fadeUp .7s ease backwards,dotDrift 36s linear infinite}
.tools-grid .tool-card{animation:fadeUp .6s ease backwards}
.tools-grid .tool-card:nth-child(1){animation-delay:.05s}
.tools-grid .tool-card:nth-child(2){animation-delay:.1s}
.tools-grid .tool-card:nth-child(3){animation-delay:.15s}
.tools-grid .tool-card:nth-child(4){animation-delay:.2s}
.tools-grid .tool-card:nth-child(5){animation-delay:.25s}
.tools-grid .tool-card:nth-child(6){animation-delay:.3s}
.steps-grid .step-card,.features-grid .feature-card{animation:fadeUp .6s ease backwards}
.blog-grid .blog-card{animation:fadeUp .6s ease backwards}

/* 3D tilt / lift on tool cards (JS mousemove tilt adds cursor-following
   rotation on top of this; hover alone still lifts in 3D) */
.tool-card{transform-style:preserve-3d;will-change:transform}
.tool-card:hover{transform:perspective(900px) translateY(-6px) rotateX(3deg) rotateY(-3deg);box-shadow:0 22px 44px rgba(15,23,42,.14);border-color:#86efac}

/* Styled dropzone + drag-over animation */
.dropzone{transition:border-color .25s ease,background .25s ease,transform .25s ease,box-shadow .25s ease}
.dropzone.drag-over{border-color:var(--green);background:#f0fdf4;transform:scale(1.015);box-shadow:0 0 0 5px rgba(22,163,74,.16),0 18px 40px rgba(22,163,74,.18)}

/* Skeleton / loading shimmer while identifying */
.loading{position:relative;overflow:hidden;background:linear-gradient(90deg,#f0fdf4 25%,#dcfce7 50%,#f0fdf4 75%);background-size:200% 100%;animation:shimmer 1.4s linear infinite;border-radius:10px}
.loading::after{content:"";display:block;height:6px;border-radius:999px;margin-top:12px;background:linear-gradient(90deg,#16a34a,#4ade80,#16a34a);background-size:200% 100%;animation:shimmer 1.2s linear infinite}
@keyframes shimmer{to{background-position:-200% 0}}

/* Gradient CTA sections */
.cta-section,.final-cta{background:linear-gradient(135deg,#16a34a,#15803d);box-shadow:0 24px 50px rgba(21,101,52,.28)}

/* Result card polish */
.result-card{box-shadow:0 18px 40px rgba(21,101,52,.10)}

/* Clean modern footer */
.site-footer{background:linear-gradient(135deg,#052e16 0%,#14532d 100%)}
.footer-col h4{letter-spacing:.04em}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none !important;transition:none !important;scroll-behavior:auto !important}
}

/* ================= v3: premium animated header (WHITE background kept),
   branded animated 3D footer (dark green, never white) === */

/* Header: white premium background, 3D logo + links (v4: gradient line removed) */
.site-header{background:#fff;animation:headerIn .5s ease backwards;box-shadow:0 1px 0 rgba(255,255,255,.9),0 10px 30px rgba(15,23,42,.08)}
/* v3: once the page scrolls, the sticky white header gains a deeper soft
   shadow (class added by JS; no-JS pages simply keep the base shadow). */
.site-header.header-scrolled{box-shadow:0 1px 0 rgba(255,255,255,.9),0 18px 44px rgba(15,23,42,.16)}
@keyframes headerIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
/* v4: the gradient line under the header was removed — the header is now pure white. The accent moved to the hero top edge. */
.brand-link{transition:transform .25s ease;transform-style:preserve-3d}
.brand-link:hover{transform:perspective(800px) translateY(-1px) scale(1.02) rotateY(-4deg);text-decoration:none}
.brand-icon{display:inline-block;animation:iconFloat 3.5s ease-in-out infinite;filter:drop-shadow(0 3px 5px rgba(22,163,74,.35))}
@keyframes iconFloat{0%,100%{transform:translateY(0) rotate(0deg)}50%{transform:translateY(-3px) rotate(-4deg)}}
.nav-link{position:relative;transition:transform .2s ease,color .2s ease,background .2s ease;transform-style:preserve-3d}
.nav-link::after{content:"";position:absolute;left:12px;right:12px;bottom:2px;height:2px;border-radius:2px;background:linear-gradient(90deg,#16a34a,#4ade80);transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
.nav-link:hover::after,.nav-link.active::after{transform:scaleX(1)}
.nav-link:hover{transform:perspective(700px) translateY(-1px) rotateX(6deg)}
/* v3: dropdown menus open with a subtle 3D entrance. */
.nav-dd[open] .dd-menu{animation:ddIn .25s ease backwards}
@keyframes ddIn{from{opacity:0;transform:perspective(700px) translateY(-6px) rotateX(-8deg)}to{opacity:1;transform:perspective(700px) translateY(0) rotateX(0)}}
.nav-toggle{transition:transform .2s ease,box-shadow .2s ease}
.nav-toggle:hover{transform:translateY(-1px) scale(1.04);box-shadow:0 8px 18px rgba(22,163,74,.4)}

/* Footer: dark branded, animated gradient flow + glow + 3D hover lift.
   High-specificity selectors so the footer can never render white. */
footer.site-footer{position:relative;overflow:hidden;background:linear-gradient(120deg,#052e16 0%,#14532d 45%,#052e16 100%);background-size:200% 200%;animation:footerFlow 14s ease-in-out infinite;color:#bbf7d0;box-shadow:0 -14px 44px rgba(5,46,22,.35);margin-top:auto}
@keyframes footerFlow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
footer.site-footer::before{content:"";position:absolute;inset:0;background:radial-gradient(620px 130px at 20% 0,rgba(74,222,128,.28),transparent 60%),radial-gradient(500px 120px at 85% 100%,rgba(34,197,94,.20),transparent 60%);pointer-events:none}
footer.site-footer .footer-container{position:relative;z-index:1}
footer.site-footer .footer-col{transition:transform .3s ease}
footer.site-footer .footer-col:hover{transform:translateY(-4px)}
footer.site-footer .footer-col h4{color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.35)}
footer.site-footer .footer-col a{transition:color .2s ease,transform .2s ease}
footer.site-footer .footer-col a:hover{color:#fff;transform:translateX(3px);text-decoration:none}
footer.site-footer .footer-brand .brand-text{font-size:1.25rem;font-weight:800;background:linear-gradient(92deg,#4ade80,#bbf7d0);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none}
footer.site-footer .footer-bottom{position:relative;z-index:1;border-top:1px solid rgba(134,239,172,.35)}


/* ================= v4: pure-white premium header + richer 3D design =====
   Header: unmistakably pure white. The v3 animated gradient line under the
   header is removed entirely (the accent moves to the hero top edge); no
   translucency and no backdrop blur, so the header reads as white at a
   glance on desktop and mobile. Bold logo, bold nav, layered 3D shadow. */
.site-header{background:#ffffff !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;border-bottom:1px solid #e2e8f0;box-shadow:0 1px 0 #e2e8f0,0 14px 34px rgba(15,23,42,.10),0 2px 8px rgba(15,23,42,.05)}
.site-header::after{display:none !important}
.site-header.header-scrolled{box-shadow:0 1px 0 #e2e8f0,0 20px 48px rgba(15,23,42,.16),0 3px 10px rgba(15,23,42,.06)}
.brand-link{font-weight:800}
.brand-text{font-weight:800;font-size:1.3rem}
.nav-link{font-weight:700;color:#0f172a}
html{background:#ffffff}

/* Hero carries the gradient accent now (green top edge + richer orbs). */
.hero{border-top:5px solid #16a34a;box-shadow:0 24px 60px rgba(21,101,52,.16),inset 0 1px 0 rgba(255,255,255,.7)}

/* Richer 3D depth across the site */
.scanner-card{box-shadow:0 28px 70px rgba(21,101,52,.18),0 4px 14px rgba(15,23,42,.06);border:1px solid rgba(255,255,255,.9)}
.step-card,.feature-card,.blog-card{transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;transform-style:preserve-3d}
.step-card:hover,.feature-card:hover,.blog-card:hover{transform:perspective(900px) translateY(-6px) rotateX(2deg);box-shadow:0 22px 44px rgba(15,23,42,.13);border-color:#86efac}
.tool-card::before{content:"";display:block;height:4px;border-radius:99px;background:linear-gradient(90deg,#16a34a,#4ade80);opacity:0;transition:opacity .25s ease;margin-bottom:12px}
.tool-card:hover::before{opacity:1}
.section-title{background:linear-gradient(92deg,#14532d,#16a34a 60%,#059669);-webkit-background-clip:text;background-clip:text;color:transparent}
.faq-item{transition:transform .2s ease,box-shadow .2s ease}
.faq-item:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(15,23,42,.08)}

/* v4 result layout: details first, buttons below */
.result-card{background:linear-gradient(180deg,#ffffff,#f0fdf4);border:1px solid #86efac;box-shadow:0 24px 56px rgba(21,101,52,.14)}
.result-photo img{max-height:320px;border-radius:14px;box-shadow:0 16px 36px rgba(15,23,42,.18);border:1px solid #e2e8f0}
.details-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:18px 0}
.detail-item{background:#fff;border:1px solid #bbf7d0;border-radius:12px;padding:14px;box-shadow:0 8px 20px rgba(21,101,52,.08);transition:transform .2s ease,box-shadow .2s ease;transform-style:preserve-3d}
.detail-item:hover{transform:perspective(800px) translateY(-3px) rotateX(3deg);box-shadow:0 16px 32px rgba(21,101,52,.14)}
.detail-icon{font-size:1.4rem;margin-bottom:4px}
.detail-label{font-size:0.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#15803d}
.detail-value{font-size:0.95rem;color:#0f172a;margin-top:2px}
.more-detail-row{margin:22px 0 6px;padding-top:16px;border-top:1px solid #bbf7d0}
.more-detail-row h4{margin:0 0 10px;font-size:0.95rem;color:#166534;text-transform:uppercase;letter-spacing:.04em}
.more-detail-btns{display:flex;gap:10px;flex-wrap:wrap}
.more-btn{display:inline-block;text-decoration:none}
.lens-explain{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:16px;margin:16px 0}
.lens-explain h4{margin:0 0 6px;color:#1e40af}
.lens-explain p{color:#334155}
.risk-section{background:#fef2f2;border:1px solid #fecaca;border-radius:10px;padding:14px}
.risk-section h4{color:#b91c1c}

/* Name lookup box + Gemini setup card */
.lookup-box{background:linear-gradient(135deg,#f0fdf4,#dcfce7);border:1px solid #86efac;border-radius:14px;padding:18px;margin:18px 0;box-shadow:0 12px 28px rgba(21,101,52,.10)}
.lookup-box h4{margin:0 0 6px;color:#14532d}
.lookup-box p{margin:0 0 10px;color:#334155}
.lookup-form{display:flex;gap:8px;flex-wrap:wrap}
.lookup-form input[type=search]{flex:1;min-width:200px;padding:11px 14px;border:1px solid #86efac;border-radius:10px;font-size:1rem;background:#fff}
.lookup-form input[type=search]:focus{outline:2px solid #16a34a;outline-offset:1px}
.setup-card{background:linear-gradient(135deg,#fffbeb,#fef3c7);border:2px solid #f59e0b;border-radius:14px;padding:20px;margin:18px 0;box-shadow:0 14px 32px rgba(245,158,11,.16)}
.setup-card h4{margin:0 0 8px;color:#92400e}
.setup-card p{color:#451a03}
.setup-card ol{margin:8px 0 8px 20px;color:#451a03}
.setup-card li{margin-bottom:4px}

/* ================= v4.1: all-white page (owner update) =================
   Header white, footer white, PAGE white. Green lives only in buttons,
   badges and small accents (logo text, links, borders, the hero title
   gradient, the hero top edge). The mint result-card / hero
   backgrounds are gone — they made the whole page read green. */
body{background:#fff}
.section-alt{background:#fff}
.hero{background:#fff;box-shadow:0 24px 60px rgba(21,101,52,.14),inset 0 1px 0 rgba(255,255,255,.7)}
.hero::before,.hero::after{display:none}
.result-card{background:#fff}
.lookup-box{background:#fff}
.cta-section,.final-cta{background:#fff;border:2px solid #16a34a;box-shadow:0 24px 50px rgba(21,101,52,.14)}
.cta-section h2,.final-cta h2{color:#0f172a}
.cta-section p,.final-cta p{color:#475569}
.cta-section .btn-scan,.final-cta .btn-scan{background:linear-gradient(135deg,#22c55e,#16a34a 55%,#15803d);color:#fff}
.announcement-bar{background:#fff;color:#15803d;border-bottom:1px solid #bbf7d0}

/* Footer: white background, dark text (v4.1 reverses the dark footer). */
footer.site-footer{background:#ffffff !important;color:#334155;box-shadow:0 -12px 32px rgba(15,23,42,.08);border-top:1px solid #e2e8f0;animation:none;margin-top:auto}
footer.site-footer::before{display:none}
footer.site-footer .footer-col h4{color:#0f172a;text-shadow:none}
footer.site-footer .footer-col a{color:#475569}
footer.site-footer .footer-col a:hover{color:#15803d}
footer.site-footer .footer-desc{color:#64748b}
footer.site-footer .footer-bottom{border-top:1px solid #e2e8f0;color:#64748b}

/* v5.3: Language switcher — native <select>, bundled (offline) translations.
   No external widget: nothing is injected into the page, no banner frame,
   no history/hash change, so the Back button always works. */
.lang-switcher{display:inline-flex;align-items:center;gap:6px;padding:4px 6px 4px 10px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;font-size:14px;color:#0f172a;white-space:nowrap;line-height:1.2}
.lang-switcher .lang-label{font-weight:600}
#if-lang-select{border:0;background:transparent;font:inherit;font-size:13px;color:#0f172a;max-width:132px;padding:2px 0;cursor:pointer;outline:none}
#if-lang-select:focus-visible{outline:2px solid #16a34a;outline-offset:2px;border-radius:6px}
@media (max-width:900px){.lang-switcher{margin:6px 0}}
/* v5.3: RTL (Urdu, Arabic) — flexbox flips automatically with dir=rtl;
   these rules keep text aligned and dropdown menus on the right side. */
[dir=rtl] body{text-align:right}
[dir=rtl] input,[dir=rtl] select,[dir=rtl] textarea{text-align:right}
[dir=rtl] .dd-menu{left:auto;right:0}
[dir=rtl] .breadcrumbs{text-align:right}
[dir=rtl] .tool-card,[dir=rtl] .blog-card,[dir=rtl] .blog-list-item,[dir=rtl] .faq-item{text-align:right}
[dir=rtl] .lang-switcher{padding:4px 10px 4px 6px}
[dir=rtl] #if-lang-select{direction:rtl}
