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

:root{
  --bg:#f8f9fc;--bg-2:#eef1f8;--bg-3:#ffffff;
  --card:rgba(255,255,255,0.72);--card-solid:#fff;
  --card-border:rgba(148,163,200,0.25);
  --accent:#2563eb;--accent-2:#1d4ed8;--accent-light:rgba(37,99,235,0.08);--accent-glow:rgba(37,99,235,0.15);
  --teal:#0d9488;--teal-light:rgba(13,148,136,0.1);
  --green:#059669;--green-light:rgba(5,150,105,0.1);
  --success:#059669;--success-bg:rgba(5,150,105,0.08);
  --error:#dc2626;--error-bg:rgba(220,38,38,0.08);
  --text:#1e293b;--text-muted:#64748b;--text-strong:#0f172a;
  --code-bg:#e2e8f0;
  --dark-bg:#0f172a;--dark-text:#e2e8f0;--dark-muted:#94a3b8;
  --radius:16px;--radius-sm:10px;--radius-lg:20px;
  --shadow:0 1px 3px rgba(0,0,0,0.05);
  --shadow-card:0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:0 4px 16px rgba(0,0,0,0.06);
  --transition:0.25s cubic-bezier(.4,0,.2,1);
  --font-sans:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;
  --font-mono:'IBM Plex Mono','Courier New',monospace;
}

@media(prefers-color-scheme:dark){
  :root{
    --bg:#0b1120;--bg-2:#111827;--bg-3:#1e293b;
    --card:rgba(30,41,59,0.7);--card-solid:#1e293b;
    --card-border:rgba(100,116,160,0.2);
    --accent:#3b82f6;--accent-2:#60a5fa;--accent-light:rgba(59,130,246,0.1);--accent-glow:rgba(59,130,246,0.2);
    --text:#cbd5e1;--text-muted:#64748b;--text-strong:#f1f5f9;
    --code-bg:#1e293b;
    --shadow:0 1px 3px rgba(0,0,0,0.3);--shadow-card:0 2px 6px rgba(0,0,0,0.25);--shadow-lg:0 4px 16px rgba(0,0,0,0.3);
  }
}

/* ── Base ──────────────────────────────────────────────────────────────── */
html{scroll-behavior:smooth}
body{font-family:var(--font-sans);background:var(--bg);color:var(--text);line-height:1.7;min-height:100vh;-webkit-font-smoothing:antialiased}
.container{width:100%;max-width:1120px;margin:0 auto;padding:0 1.5rem}
a{color:var(--accent);text-decoration:none;transition:color var(--transition)}
a:hover{color:var(--accent-2)}
code{font-family:var(--font-mono);font-size:.82em;background:var(--code-bg);color:var(--accent-2);padding:.1em .4em;border-radius:4px}
h1,h2,h3{color:var(--text-strong);font-weight:700;line-height:1.25}
h1{font-size:clamp(1.8rem,4vw,2.75rem)}
h2{font-size:clamp(1.4rem,3vw,2rem)}
ul{list-style:none}

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header{position:sticky;top:0;z-index:100;background:rgba(248,249,252,0.85);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--card-border);transition:background var(--transition)}
@media(prefers-color-scheme:dark){.site-header{background:rgba(11,17,32,0.85)}}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:flex;align-items:center;gap:.5rem;font-family:var(--font-sans);font-weight:800;font-size:1.2rem;color:var(--text-strong);text-decoration:none}
.logo-icon{display:inline-flex;color:var(--accent)}
.logo-accent{color:var(--accent)}
.site-nav{display:flex;gap:2rem;align-items:center}
.site-nav a{font-size:.875rem;font-weight:600;color:var(--text-muted);transition:color var(--transition);position:relative}
.site-nav a::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:2px;background:var(--accent);border-radius:2px;transition:width var(--transition)}
.site-nav a:hover{color:var(--accent)}
.site-nav a:hover::after{width:100%}
.nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:4px}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--text-strong);border-radius:2px;transition:var(--transition)}
.nav-toggle.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.nav-toggle.active span:nth-child(2){opacity:0}
.nav-toggle.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero{position:relative;padding:5rem 0 4rem;overflow:hidden}
.hero-bg-glow{display:none}
.hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}
.hero-content{position:relative;z-index:1}
.hero-badge{display:inline-flex;align-items:center;gap:.4rem;background:var(--accent-light);border:1px solid var(--accent-glow);color:var(--accent);font-size:.75rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:.35rem 1rem;border-radius:99px;margin-bottom:1.5rem}
.hero-gradient{background:linear-gradient(135deg,var(--accent),var(--teal));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.hero-sub{font-size:1.05rem;color:var(--text-muted);line-height:1.8;margin-top:1rem;max-width:520px}
.hero-sub strong{color:var(--text-strong);font-weight:600}
.hero-stats{display:flex;gap:2rem;margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--card-border)}
.hero-stat{text-align:center}
.hero-stat__value{display:block;font-size:1.5rem;font-weight:800;color:var(--accent);font-family:var(--font-mono)}
.hero-stat__label{font-size:.75rem;color:var(--text-muted);font-weight:500;text-transform:uppercase;letter-spacing:.05em}
.hero-stat-divider{width:1px;background:var(--card-border);align-self:stretch}

/* ── Upload Card (Glassmorphism) ──────────────────────────────────────── */
.hero-tool{position:relative;z-index:1}
.upload-card{background:var(--card);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--card-border);border-radius:var(--radius-lg);padding:1.75rem;box-shadow:var(--shadow-lg);transition:box-shadow var(--transition)}
.upload-card:hover{box-shadow:var(--shadow-lg)}
.upload-card__header{display:flex;align-items:center;gap:.5rem;font-weight:700;font-size:.9rem;color:var(--text-strong);margin-bottom:1.25rem;padding-bottom:.75rem;border-bottom:1px solid var(--card-border)}
.upload-card__lock{margin-left:auto;color:var(--success);opacity:.7}

/* ── Drop Zone ────────────────────────────────────────────────────────── */
.drop-zone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;border:2px dashed var(--card-border);border-radius:var(--radius);background:var(--bg);padding:3rem 2rem;cursor:pointer;transition:all var(--transition);user-select:none}
.drop-zone:hover,.drop-zone:focus,.drop-zone.drag-over{border-color:var(--accent);background:var(--accent-light);outline:none}
.drop-zone.has-file{border-color:var(--success);background:var(--success-bg)}
.drop-zone input[type="file"]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.drop-zone__icon{color:var(--accent);opacity:.6;transition:all var(--transition);margin-bottom:.25rem}
.drop-zone:hover .drop-zone__icon,.drop-zone.drag-over .drop-zone__icon{opacity:1;transform:translateY(-4px)}
.drop-zone__text{font-size:1rem;font-weight:600;color:var(--text-strong)}
.drop-zone__sub{font-size:.85rem;color:var(--text-muted)}
.drop-zone__link{color:var(--accent);font-weight:600;text-decoration:underline}

/* ── File Info ─────────────────────────────────────────────────────────── */
.file-info{display:flex;align-items:center;gap:.75rem;background:var(--bg);border:1px solid var(--card-border);border-radius:var(--radius-sm);padding:.75rem 1rem;margin-top:1rem;font-family:var(--font-mono);font-size:.83rem;color:var(--text);animation:fadeIn .25s ease}
.file-info .fi-name{color:var(--text-strong);font-weight:600}
.file-info .fi-size{color:var(--text-muted)}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--font-sans);font-weight:700;font-size:.9rem;border:none;border-radius:var(--radius-sm);cursor:pointer;transition:all var(--transition);text-decoration:none}
.btn--primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;padding:.7rem 1.5rem}
.btn--primary:hover:not(:disabled){transform:translateY(-1px);color:#fff;filter:brightness(1.05)}
.btn--primary:disabled{opacity:.4;cursor:not-allowed;transform:none}
.btn--lg{padding:.85rem 2rem;font-size:1rem;margin-top:1.25rem;width:100%;justify-content:center}
.btn--outline{background:transparent;color:var(--accent);border:1.5px solid var(--accent);padding:.5rem 1.1rem}
.btn--outline:hover{background:var(--accent-light);color:var(--accent-2)}
.btn--success{background:var(--success);color:#fff;padding:.5rem 1.1rem}
.btn--success:hover{filter:brightness(1.1);transform:translateY(-1px);color:#fff}
.btn--zip{background:linear-gradient(135deg,var(--accent),var(--success));color:#fff;padding:.7rem 1.5rem;margin-top:1rem}
.btn--zip:hover{filter:brightness(1.1);transform:translateY(-1px);color:#fff}
.btn-icon{display:inline-flex;align-items:center;flex-shrink:0}
.btn-icon svg{display:block}

/* ── Spinner ──────────────────────────────────────────────────────────── */
.spinner-wrap{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:2.5rem 0;animation:fadeIn .2s ease}
.spinner{width:42px;height:42px;border:3px solid var(--card-border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}
.spinner-text{font-size:.85rem;color:var(--text-muted)}

/* ── Alert ────────────────────────────────────────────────────────────── */
.alert{display:flex;align-items:flex-start;gap:.75rem;padding:1rem 1.25rem;border-radius:var(--radius-sm);font-size:.9rem;margin-top:1.25rem;animation:fadeIn .25s ease}
.alert--error{background:var(--error-bg);border:1px solid var(--error);color:var(--error)}

/* ── Results Section (full-width, between hero and trust banner) ───────── */
.results-section{padding:2.5rem 0;background:var(--bg);border-bottom:1px solid var(--card-border)}
.results{margin:0}
.results-panel{background:var(--card-solid);border:1px solid var(--card-border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);animation:slideUp .3s ease}

.results-panel__header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;background:var(--bg-2);border-bottom:1px solid var(--card-border)}
.results-panel__title{display:flex;align-items:center;gap:.5rem;font-family:var(--font-mono);font-size:.9rem;font-weight:700;color:var(--text-strong)}
.results-panel__icon{color:var(--success);display:flex}
.results-badge{background:var(--success-bg);border:1px solid var(--success);color:var(--success);font-family:var(--font-mono);font-size:.72rem;font-weight:600;padding:.2rem .7rem;border-radius:99px}

/* ── Cert Row ─────────────────────────────────────────────────────────── */
.cert-row{border-bottom:1px solid var(--card-border);transition:background var(--transition)}
.cert-row:last-child{border-bottom:none}
.cert-row:hover{background:var(--bg-2)}

.cert-row__inner{display:flex;align-items:flex-start;gap:1rem;padding:1.25rem 1.5rem}

.cert-row__num{flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--accent-light);color:var(--accent);font-family:var(--font-mono);font-size:.8rem;font-weight:700;margin-top:.1rem}

.cert-row__info{flex:1;min-width:0}
.cert-row__fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.5rem .75rem}

.cert-field{display:flex;flex-direction:column;gap:.1rem}
.cert-field__label{font-family:var(--font-mono);font-size:.65rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted)}
.cert-field__value{font-size:.82rem;color:var(--text-strong);word-break:break-all}

.cert-row__downloads{flex-shrink:0;display:flex;flex-direction:column;gap:.4rem;align-items:stretch;min-width:90px}

/* ── Download Buttons ─────────────────────────────────────────────────── */
.btn-dl{display:inline-flex;align-items:center;gap:.3rem;padding:.4rem .75rem;font-size:.75rem;font-weight:600;font-family:var(--font-mono);border-radius:var(--radius-sm);border:1px solid var(--accent);color:var(--accent);background:transparent;text-decoration:none;transition:all var(--transition);cursor:pointer;white-space:nowrap;justify-content:center}
.btn-dl:hover{background:var(--accent);color:#fff}
.btn-dl--alt{border-color:var(--green);color:var(--green)}
.btn-dl--alt:hover{background:var(--green);color:#fff}

/* ── ZIP Bar ──────────────────────────────────────────────────────────── */
.cert-table__zip{padding:.85rem 1.5rem;border-top:1px solid var(--card-border);background:var(--bg-2);display:flex;justify-content:flex-end}

/* ── Trust Banner ─────────────────────────────────────────────────────── */
.trust-banner{background:var(--bg-2);border-top:1px solid var(--card-border);border-bottom:1px solid var(--card-border);padding:1rem 0}
.trust-banner__inner{display:flex;align-items:center;justify-content:center;gap:1rem;flex-wrap:wrap}
.trust-banner__label{font-size:.8rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em}
.trust-banner__items{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.trust-banner__item{font-size:.85rem;font-weight:600;color:var(--text-strong);letter-spacing:.02em}
.trust-banner__dot{color:var(--accent);font-size:.6rem;opacity:.5}
.trust-banner__sub{display:flex;align-items:center;justify-content:center;gap:.5rem;font-size:.78rem;color:var(--text-muted);margin-top:.35rem}
.trust-banner__sub .heart{color:#e74c3c}

/* ── Features / How It Works ──────────────────────────────────────────── */
.features-section{padding:5rem 0;background:var(--bg-2)}
.section-header{text-align:center;margin-bottom:3.5rem}
.section-label{display:inline-block;font-size:.75rem;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.08em;margin-bottom:.5rem}
.section-title{margin-bottom:.75rem}
.section-sub{font-size:1rem;color:var(--text-muted);max-width:560px;margin:0 auto}
.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.feature-card{background:var(--card-solid);border:1px solid var(--card-border);border-radius:var(--radius);padding:2rem 1.75rem;text-align:center;transition:all var(--transition)}
.feature-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.feature-card__icon{width:64px;height:64px;border-radius:16px;display:flex;align-items:center;justify-content:center;margin:0 auto 1.25rem}
.feature-card__icon--blue{background:var(--accent-light);color:var(--accent)}
.feature-card__icon--teal{background:var(--teal-light);color:var(--teal)}
.feature-card__icon--green{background:var(--green-light);color:var(--green)}
.feature-card__step{font-size:.7rem;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.1em;margin-bottom:.5rem}
.feature-card__title{font-size:1.1rem;font-weight:700;margin-bottom:.5rem;color:var(--text-strong)}
.feature-card__desc{font-size:.88rem;color:var(--text-muted);line-height:1.7}

/* ── Security Section ─────────────────────────────────────────────────── */
.security-section{background:var(--dark-bg);color:var(--dark-text);padding:4rem 0}
.security-inner{display:flex;align-items:center;gap:2.5rem}
.security-icon{flex-shrink:0;width:80px;height:80px;border-radius:20px;background:rgba(37,99,235,0.15);display:flex;align-items:center;justify-content:center;color:var(--accent)}
.security-text h2{color:#fff;font-size:clamp(1.2rem,2.5vw,1.6rem);margin-bottom:.75rem}
.security-text p{color:var(--dark-muted);font-size:.95rem;line-height:1.8;max-width:640px}

/* ── Ad Slots & Sidebar Layout ────────────────────────────────────────── */
.ad-slot{padding:1rem 0;background:transparent}
.ad-slot--top{padding-top:.5rem}
.ad-slot--inline{margin:2rem 0;padding:1rem 0}
.ad-slot--bottom{padding-bottom:.5rem}
.ad-slot__inner{display:flex;justify-content:center}

/* Sidebar ads: fixed to viewport edges on ultra-wide screens */
.sidebar-ad{display:none}
.sidebar-ad__inner{display:flex;flex-direction:column;gap:1rem}

@media(min-width:1440px){
  .sidebar-ad{display:block;position:fixed;top:80px;width:160px;z-index:50}
  .sidebar-ad--left{left:calc((100vw - 1120px)/2 - 180px)}
  .sidebar-ad--right{right:calc((100vw - 1120px)/2 - 180px)}
  .sidebar-ad__inner{position:sticky;top:80px}
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-section{padding:5rem 0;background:var(--bg)}
.faq-list{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:.75rem}
.faq-item{background:var(--card-solid);border:1px solid var(--card-border);border-radius:var(--radius);overflow:hidden;transition:all var(--transition)}
.faq-item[open]{border-color:var(--accent)}
.faq-question{display:flex;align-items:center;justify-content:space-between;padding:1.15rem 1.5rem;font-weight:600;font-size:.95rem;color:var(--text-strong);cursor:pointer;list-style:none;gap:1rem;transition:background var(--transition)}
.faq-question::-webkit-details-marker{display:none}
.faq-question::after{content:"+";font-size:1.4rem;font-weight:500;color:var(--accent);flex-shrink:0;transition:transform var(--transition);width:24px;text-align:center}
details[open] .faq-question::after{transform:rotate(45deg)}
.faq-question:hover{background:var(--bg-2)}
.faq-answer{padding:0 1.5rem 1.25rem;font-size:.9rem;line-height:1.8;color:var(--text);border-top:1px solid var(--card-border)}
.faq-answer p+p{margin-top:.75rem}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer{background:var(--dark-bg);color:var(--dark-muted);padding:3.5rem 0 2rem;border-top:2px solid var(--accent)}
.footer-inner{max-width:1120px}
.footer-top{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2.5rem;margin-bottom:2.5rem;padding-bottom:2rem;border-bottom:1px solid rgba(100,116,160,0.2)}
.footer-brand{max-width:320px}
.footer-logo{display:flex;align-items:center;gap:.5rem;font-weight:800;font-size:1.15rem;color:#fff;margin-bottom:.75rem}
.footer-logo .logo-accent{color:var(--accent)}
.footer-tagline{font-size:.85rem;line-height:1.7;color:var(--dark-muted)}
.footer-links-group{display:flex;flex-direction:column;gap:.5rem}
.footer-links-group h4{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#fff;margin-bottom:.25rem}
.footer-links-group a{font-size:.85rem;color:var(--dark-muted);transition:color var(--transition)}
.footer-links-group a:hover{color:var(--accent)}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
.footer-copy{font-size:.8rem}
.footer-worldwide{font-size:.78rem;color:var(--dark-muted);opacity:.7}
.footer-india{font-size:.8rem}
.heart{color:var(--accent)}

/* ── Utilities ────────────────────────────────────────────────────────── */
.hidden{display:none !important}

/* ── Animations ───────────────────────────────────────────────────────── */
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.animate-target{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease}
.animate-target.animate-in{opacity:1;transform:translateY(0)}

/* ── Content / Article Sections ─────────────────────────────────────── */
.content-section{padding:4rem 0;background:var(--bg-2);border-top:1px solid var(--card-border)}
.content-inner{max-width:800px;margin:0 auto}
.content-inner h2{font-size:clamp(1.2rem,2.5vw,1.5rem);margin-top:2.5rem;margin-bottom:1rem;color:var(--text-strong);padding-bottom:.5rem;border-bottom:1px solid var(--card-border)}
.content-inner h2:first-child{margin-top:0}
.content-inner p{font-size:.95rem;line-height:1.85;color:var(--text);margin-bottom:.85rem}
.content-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:.7rem;margin-bottom:1rem}
.content-list li{font-size:.93rem;line-height:1.8;color:var(--text);padding-left:1.4rem;position:relative}
.content-list li::before{content:"";position:absolute;left:0;top:.7em;width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}
.content-ol{list-style:none;padding:0;counter-reset:steps;display:flex;flex-direction:column;gap:.7rem;margin-bottom:1rem}
.content-ol li{font-size:.93rem;line-height:1.8;color:var(--text);padding-left:2rem;position:relative;counter-increment:steps}
.content-ol li::before{content:counter(steps);position:absolute;left:0;top:.15em;width:1.4rem;height:1.4rem;border-radius:50%;background:var(--accent);color:#fff;font-size:.72rem;font-weight:700;display:flex;align-items:center;justify-content:center;font-family:var(--font-mono)}

/* ── Related Tools Section ───────────────────────────────────────────── */
.related-tools-section{padding:4rem 0;background:var(--bg)}
.feature-card--link{text-decoration:none;display:block;cursor:pointer}
.feature-card--link:hover{color:inherit}
.feature-card--link h3{color:var(--text-strong)}
.feature-card--link p{color:var(--text-muted)}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media(max-width:1100px){
  .footer-top{grid-template-columns:1fr 1fr 1fr;gap:2rem}
  .footer-brand{grid-column:1/-1}
  .footer-logo{justify-content:center}
  .footer-brand{max-width:100%;text-align:center}
  .footer-tagline{margin:0 auto}
}
@media(max-width:900px){
  .hero-inner{grid-template-columns:1fr;gap:2.5rem;text-align:center}
  .hero-sub{margin-left:auto;margin-right:auto}
  .hero-stats{justify-content:center}
  .features-grid{grid-template-columns:1fr}
  .security-inner{flex-direction:column;text-align:center}
  .footer-top{grid-template-columns:1fr;text-align:center}
  .footer-brand{max-width:100%}
  .footer-logo{justify-content:center}
  .footer-bottom{justify-content:center;text-align:center}
}

@media(max-width:640px){
  .site-nav{display:none;position:absolute;top:64px;left:0;right:0;background:var(--card-solid);flex-direction:column;padding:1.5rem;gap:1rem;border-bottom:1px solid var(--card-border);box-shadow:var(--shadow)}
  .site-nav.open{display:flex}
  .nav-toggle{display:flex}
  .hero{padding:3rem 0 2.5rem}
  .hero-stats{flex-direction:column;gap:1rem}
  .hero-stat-divider{width:60px;height:1px}
  .cert-row__inner{flex-direction:column;gap:.75rem;padding:1rem}
  .cert-row__num{width:28px;height:28px;font-size:.72rem}
  .cert-row__fields{grid-template-columns:1fr 1fr}
  .cert-row__downloads{flex-direction:row;width:100%}
  .btn-dl{flex:1}
  .btn--lg{width:100%;justify-content:center}
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* MODE: EXPIRY — Validity dates + countdown badges                        */
/* ══════════════════════════════════════════════════════════════════════════ */

.expiry-card{display:flex;flex-direction:column;gap:1rem}
.expiry-card__top{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.expiry-card__signer{display:flex;flex-direction:column;gap:.15rem}
.expiry-card__name{font-size:1.1rem;font-weight:700;color:var(--text-strong)}

.expiry-badge{display:inline-flex;align-items:center;gap:.4rem;padding:.4rem 1rem;border-radius:99px;font-size:.8rem;font-weight:700;letter-spacing:.03em;flex-shrink:0}
.expiry-badge__icon{display:flex;align-items:center}
.expiry-badge.expiry-active{background:var(--green-light);color:var(--green);border:1px solid var(--green)}
.expiry-badge.expiry-expired{background:var(--error-bg);color:var(--error);border:1px solid var(--error)}
.expiry-badge.expiry-warning{background:rgba(245,158,11,0.1);color:#d97706;border:1px solid #d97706}

.expiry-card__dates{display:flex;align-items:stretch;gap:0;background:var(--bg);border:1px solid var(--card-border);border-radius:var(--radius-sm);overflow:hidden}
.expiry-date-block{flex:1;padding:1rem 1.25rem;display:flex;flex-direction:column;gap:.25rem}
.expiry-date-separator{width:1px;background:var(--card-border);align-self:stretch}
.expiry-date-value{font-family:var(--font-mono);font-size:.95rem;font-weight:600;color:var(--text-strong)}
.expiry-date-value--highlight{color:var(--accent)}

.expiry-countdown{text-align:center;padding:.6rem 1rem;border-radius:var(--radius-sm);font-family:var(--font-mono);font-size:.85rem;font-weight:700;letter-spacing:.02em}
.expiry-countdown.expiry-active{background:var(--green-light);color:var(--green)}
.expiry-countdown.expiry-expired{background:var(--error-bg);color:var(--error)}
.expiry-countdown.expiry-warning{background:rgba(245,158,11,0.1);color:#d97706}

.expiry-card__meta{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
.expiry-meta-item{display:flex;flex-direction:column;gap:.1rem}

@media(max-width:640px){
  .expiry-card__top{flex-direction:column;align-items:flex-start}
  .expiry-card__dates{flex-direction:column}
  .expiry-date-separator{width:100%;height:1px}
  .expiry-card__meta{grid-template-columns:1fr}
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* MODE: DOWNLOAD — Big download buttons, minimal info                     */
/* ══════════════════════════════════════════════════════════════════════════ */

.download-row{align-items:center;flex-wrap:wrap;gap:1rem}
.download-card__signer{display:flex;flex-direction:column;gap:.15rem}
.download-card__name{font-size:1.05rem;font-weight:700;color:var(--text-strong)}
.download-card__issuer{font-size:.82rem;color:var(--text-muted)}

.download-actions{display:flex;gap:.75rem;flex-shrink:0;flex-wrap:wrap}
.download-btn-lg{display:inline-flex;align-items:center;gap:.5rem;padding:.65rem 1.5rem;font-size:.9rem;font-weight:700;border-radius:var(--radius-sm);text-decoration:none;transition:all var(--transition);cursor:pointer;white-space:nowrap}
.download-btn-lg:hover{transform:translateY(-2px);filter:brightness(1.1);color:#fff}

@media(max-width:640px){
  .download-row{flex-direction:column;align-items:flex-start}
  .download-actions{width:100%}
  .download-btn-lg{flex:1;justify-content:center}
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* MODE: VERIFY — Verdict banner + signer/issuer info                      */
/* ══════════════════════════════════════════════════════════════════════════ */

.verify-card{display:flex;flex-direction:column;gap:1rem}

.verify-verdict{display:flex;align-items:flex-start;gap:.85rem;padding:1rem 1.25rem;border-radius:var(--radius-sm);border:1px solid}
.verify-verdict__icon{flex-shrink:0;display:flex;margin-top:.15rem}
.verify-verdict__text{display:flex;flex-direction:column;gap:.25rem;font-size:.88rem;line-height:1.6}
.verify-verdict__text strong{font-size:1rem}

.verify-valid{background:var(--green-light);border-color:var(--green);color:var(--green)}
.verify-valid .verify-verdict__text span{color:var(--text)}
.verify-expired{background:var(--error-bg);border-color:var(--error);color:var(--error)}
.verify-expired .verify-verdict__text span{color:var(--text)}

.verify-details{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.5rem .75rem;padding-top:.5rem}

@media(max-width:640px){
  .verify-details{grid-template-columns:1fr 1fr}
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* MODE: SIGNER — Identity card layout, no downloads                       */
/* ══════════════════════════════════════════════════════════════════════════ */

.signer-card{display:flex;flex-direction:column;gap:1rem}
.signer-card__header{display:flex;align-items:center;gap:.65rem;padding-bottom:.75rem;border-bottom:1px solid var(--card-border)}
.signer-card__icon{display:flex;color:var(--accent)}
.signer-card__name{font-size:1.1rem;font-weight:700;color:var(--text-strong)}
.signer-card__fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.5rem .75rem}

@media(max-width:640px){
  .signer-card__fields{grid-template-columns:1fr 1fr}
}
