/*
Theme Name: AppDL — Single App Download Page
Theme URI: https://github.com/
Author: algorithmdevz
Description: A single-niche app download page theme. Pixel-perfect Softonic-style layout. Every element — logo, title, icon, download button, breadcrumb, tabs, specs, versions, safety scan — is fully editable from Appearance → Customize. No posts needed.
Version: 17.1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: appdl
Tags: one-page, app-download, mobile-first, custom-colors, custom-logo
*/

/* ─── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

/* ─── BODY ───────────────────────────────────────── */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f3f4f6;
    color: #111827;
    font-size: 16px;
    line-height: 1.5;
}

/* ─── PAGE SHELL ─────────────────────────────────── */
#appdl-wrap {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    min-height: 100dvh;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,.12);
}

/* ─── SCROLLBAR HIDE ─────────────────────────────── */
.no-scroll::-webkit-scrollbar { display: none; }
.no-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── HEADER ─────────────────────────────────────── */
#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.header-logo-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

/* Diamond logo mark */
.logo-diamond {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #0eb493 0%, #0a88cd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-diamond-inner {
    width: 11px;
    height: 11px;
    background: #fff;
    border-radius: 3px;
}
.logo-custom-img {
    max-height: 34px;
    width: auto;
}
.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -.5px;
    line-height: 1;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    font-size: 20px;
    padding: 2px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s;
    text-decoration: none;
}
.header-icon-btn:hover { color: #111827; }

/* hamburger menu */
#nav-drawer {
    display: none;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
}
#nav-drawer.open { display: block; }
#nav-drawer ul { list-style: none; }
#nav-drawer ul li a {
    display: block;
    padding: 9px 0;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: color .15s;
}
#nav-drawer ul li a:hover { color: #111827; }

/* ─── BREADCRUMB ─────────────────────────────────── */
#breadcrumb {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #f9fafb;
}
#breadcrumb a { color: #6b7280; text-decoration: none; transition: color .15s; }
#breadcrumb a:hover { color: #111827; }
#breadcrumb .bc-sep { color: #d1d5db; margin: 0 1px; }
#breadcrumb .bc-current { color: #374151; font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }

/* ─── APP HEADER BLOCK ───────────────────────────── */
#app-header {
    padding: 16px 16px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.app-icon-wrap {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
}
.app-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    display: block;
}
.app-icon-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 30px;
}

.app-meta { flex: 1; min-width: 0; }

.app-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
    margin-bottom: 6px;
}
.app-title .app-platform {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    margin-left: 3px;
}

.app-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}
.app-price   { color: #16a34a; font-weight: 700; font-size: 14px; }
.app-rating  { display: flex; align-items: center; gap: 4px; }
.app-rating .star-icon { color: #f59e0b; font-size: 12px; }
.app-dls     { display: flex; align-items: center; gap: 4px; }
.app-dls .dl-icon { color: #16a34a; font-size: 12px; }

.app-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.badge-trusted {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(21,128,61,.08);
}
.badge-trusted i { color: #16a34a; font-size: 12px; }
.badge-version {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}
.badge-version .v-label {
    font-size: 11px;
    color: #9ca3af;
    border-bottom: 1px dashed #9ca3af;
    padding-bottom: 1px;
    line-height: 1;
}

/* ─── DOWNLOAD BUTTON ────────────────────────────── */
#download-section {
    padding: 20px 16px 4px;
}
#download-btn {
    width: 100%;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px 22px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(22,163,74,.35);
    transition: background .2s, transform .1s, box-shadow .2s;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
#download-btn:hover { background: #15803d; box-shadow: 0 6px 18px rgba(22,163,74,.40); }
#download-btn:active { transform: scale(.99); }

.dl-btn-label { flex: 1; text-align: center; padding-right: 4px; }
.dl-btn-icon  { font-size: 22px; flex-shrink: 0; }

.dl-subtitle {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ─── TABS ───────────────────────────────────────── */
#tabs-bar {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-top: 18px;
}
.tab-btn {
    flex: 1;
    text-align: center;
    padding: 13px 4px;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.tab-btn:hover { color: #374151; }
.tab-btn.active,
.tab-btn[aria-selected="true"] {
    color: #111827;
    font-weight: 700;
    border-bottom-color: #111827;
}

/* ─── TAB PANELS ─────────────────────────────────── */
.tab-panel { display: none; padding: 20px 16px; }
.tab-panel.active,
.tab-panel:not([hidden]) { display: block; }

/* reviewer row */
.reviewer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.reviewer-row img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.reviewer-name { font-size: 14px; font-weight: 700; color: #111827; }
.reviewer-date { font-size: 12px; color: #9ca3af; margin-top: 1px; display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.reviewer-date-sep { color:#d1d5db; }
.reviewer-date-note { font-size: 11px; color: #6b7280; margin-top: 4px; }

/* article headline */
.article-headline {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 14px;
}

/* article body */
.article-body {
    font-size: 16px;
    color: #374151;
    line-height: 1.75;
}
.article-body p { margin-bottom: 14px; }
.article-body a { color: #2563eb; text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body strong { font-weight: 700; color: #111827; }

/* ad slot */
.ad-slot {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    margin: 18px 0;
    font-size: 13px;
    color: #6b7280;
    background: #fafafa;
}
.ad-label {
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
    margin-bottom: 6px;
}

/* specs */
.specs-table { width: 100%; margin-top: 20px; }
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}
.spec-row:last-child { border-bottom: none; }
.spec-key   { color: #6b7280; }
.spec-val   { color: #111827; font-weight: 600; text-align: right; max-width: 55%; }

/* versions */
.version-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}
.version-row:last-child { border-bottom: none; }
.ver-label  { font-size: 16px; font-weight: 600; color: #111827; }
.ver-date   { font-size: 11px; color: #9ca3af; margin-top: 3px; }
.ver-btn {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 9px;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s;
}
.ver-btn:hover { background: #dcfce7; }

/* safety */
.safety-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #16a34a;
}
.safety-headline {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    text-align: center;
    margin-bottom: 8px;
}
.safety-desc {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}
.safety-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
}
.safety-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}
.safety-row:first-child { padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; margin-bottom: 6px; }
.safety-label { font-size: 13px; font-weight: 600; color: #374151; }
.safety-badge {
    font-size: 11px;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #86efac;
    padding: 4px 9px;
    border-radius: 6px;
}

/* empty state */
.empty-state {
    text-align: center;
    padding: 40px 0;
    color: #9ca3af;
}
.empty-state i { font-size: 32px; display: block; margin-bottom: 12px; }
.empty-state p { font-size: 13px; }

/* ─── MODAL ──────────────────────────────────────── */
#modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
#modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    max-width: 320px;
    width: calc(100% - 32px);
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    transform: scale(.94) translateY(8px);
    transition: transform .25s;
}
#modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.modal-title { font-size: 18px; font-weight: 800; color: #111827; }
.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 18px;
    padding: 2px;
    transition: color .15s;
    margin-left: 12px;
}
.modal-close:hover { color: #374151; }
.modal-text { font-size: 14px; color: #6b7280; line-height: 1.6; margin-bottom: 18px; }
.modal-confirm-btn {
    width: 100%;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}
.modal-confirm-btn:hover { background: #15803d; }

/* ─── FOOTER ─────────────────────────────────────── */
#site-footer {
    text-align: center;
    padding: 20px 16px;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
    color: #d1d5db;
}

/* ═══════════════════════════════════════════════
   SAFETY SCAN — Redesigned
═══════════════════════════════════════════════ */

/* ── Hero block ── */
.sf-hero {
    text-align: center;
    padding: 28px 16px 10px;
}

.sf-shield-ring {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
}
.sf-shield-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22,163,74,.18) 0%, rgba(22,163,74,0) 70%);
    animation: sfPulse 2.4s ease-in-out infinite;
}
@keyframes sfPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.18); opacity: .5; }
}
.sf-shield-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(145deg, #16a34a 0%, #0a8040 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(22,163,74,.35), 0 2px 6px rgba(0,0,0,.1);
    position: relative;
}
.sf-shield-icon .fa-shield-halved {
    font-size: 30px;
    color: rgba(255,255,255,.3);
    position: absolute;
}
.sf-check-mark {
    font-size: 32px !important;
    color: #fff;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}

.sf-headline {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.2;
}
.sf-subline {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* ── Counter pill ── */
.sf-counter-wrap {
    margin: 18px 16px 0;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}
.sf-counter-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 10px;
}
.sf-counter-num {
    font-size: 36px;
    font-weight: 900;
    color: #15803d;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    min-width: 46px;
    display: inline-block;
    text-align: right;
}
.sf-counter-sep {
    font-size: 22px;
    font-weight: 700;
    color: #4ade80;
    margin: 0 1px;
}
.sf-counter-total {
    font-size: 22px;
    font-weight: 700;
    color: #16a34a;
}
.sf-counter-label {
    font-size: 12px;
    font-weight: 600;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-left: 8px;
    align-self: center;
}
.sf-counter-bar-track {
    height: 6px;
    background: #dcfce7;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}
.sf-counter-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4ade80, #16a34a);
    border-radius: 10px;
    transition: width .05s linear;
}
.sf-counter-caption {
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
}

/* ── Engine grid ── */
.sf-engine-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 16px;
}
.sf-engine-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .25s, transform .25s;
}
.sf-engine-chip.sf-chip-visible {
    opacity: 1;
    transform: scale(1);
}
.sf-engine-chip i {
    font-size: 10px;
    color: #16a34a;
}

/* ── Result cards ── */
.sf-result-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 16px 20px;
}
.sf-result-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 13px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.sf-result-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.sf-card-vt .sf-result-icon { background: #fff7ed; color: #ea580c; }
.sf-card-av .sf-result-icon { background: #f0fdf4; color: #16a34a; }
.sf-result-body { flex: 1; min-width: 0; }
.sf-result-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.sf-result-val  { font-size: 12px; color: #64748b; margin-top: 1px; }
.sf-result-badge {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

/* ── FAVICON / LOGO ICON ── */
.logo-favicon-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}


/* Softonic-style alternative apps + permissions */
.panel-kicker{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#9ca3af;margin-bottom:10px}.lang-block{margin-top:22px}.lang-block-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#9ca3af;margin-bottom:10px}.lang-chip-wrap{display:flex;flex-wrap:wrap;gap:8px}.lang-chip{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;color:#2563eb;text-decoration:none;font-size:13px;font-weight:600}.lang-chip:hover{border-color:#bfdbfe;background:#eff6ff}.alt-feature-card,.alt-row{display:flex;align-items:center;gap:12px;text-decoration:none;color:#111827;border:1px solid #e5e7eb;border-radius:16px;background:#fff}.alt-feature-card{padding:14px;margin-bottom:14px;box-shadow:0 8px 24px rgba(17,24,39,.05)}.alt-feature-icon{width:44px;height:44px;border-radius:14px;background:#eff6ff;color:#2563eb;display:flex;align-items:center;justify-content:center;font-size:19px;flex-shrink:0}.alt-feature-body{flex:1;min-width:0}.alt-feature-title,.alt-row-name{font-size:15px;font-weight:700;color:#111827}.alt-feature-meta,.alt-row-meta{font-size:12px;color:#6b7280;margin-top:2px}.alt-feature-copy{font-size:13px;color:#4b5563;margin-top:6px}.alt-feature-arrow{color:#9ca3af}.alt-list{display:flex;flex-direction:column;gap:10px}.alt-row{padding:12px 14px;justify-content:space-between}.alt-row-cta{font-size:12px;font-weight:700;color:#16a34a}.perm-headline{font-size:22px;line-height:1.2;margin-bottom:10px}.perm-intro,.perm-group-copy{font-size:14px;color:#4b5563}.perm-visual-grid{display:grid;grid-template-columns:1fr;gap:14px;margin:18px 0}.perm-card,.perm-group{border:1px solid #e5e7eb;border-radius:16px;background:#fff;padding:14px}.perm-card-title{font-size:14px;font-weight:700;margin-bottom:10px}.perm-split-bar{display:flex;height:12px;border-radius:999px;overflow:hidden;background:#e5e7eb;margin-bottom:10px}.perm-split-bar span{display:block;background:#16a34a}.perm-split-bar .is-sensitive{background:#f59e0b}.perm-split-bar .is-collected{background:#2563eb}.perm-split-bar .is-shared{background:#7c3aed}.perm-legend-row,.perm-legend-grid{display:grid;gap:8px;font-size:12px;color:#4b5563}.perm-legend-row{grid-template-columns:1fr 1fr}.perm-legend-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.perm-group{margin-top:14px}.perm-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.perm-group-head h3{font-size:16px}.perm-group-head span{font-size:12px;font-weight:700;color:#6b7280}.perm-item-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}.perm-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:12px;background:#f9fafb}.perm-item-name{font-size:13px;font-weight:600;word-break:break-all}.perm-item-badge{font-size:11px;font-weight:700;color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:999px;padding:4px 8px}@media (max-width:480px){.perm-legend-grid{grid-template-columns:1fr}}

/* Responsive fixes for added Softonic sections */
@media (max-width: 520px) {
    #tabs-bar {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        gap: 14px;
        padding: 0 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #tabs-bar::-webkit-scrollbar { display: none; }
    .tab-btn {
        flex: 0 0 auto;
        min-width: max-content;
        padding: 13px 0 11px;
        font-size: 13px;
    }

    .spec-row {
        display: block;
        padding: 11px 0;
    }
    .spec-key {
        display: block;
        margin-bottom: 4px;
    }
    .spec-val {
        display: block;
        max-width: none;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .alt-feature-card,
    .alt-row {
        align-items: flex-start;
    }
    .alt-row {
        flex-wrap: wrap;
    }
    .alt-row-cta {
        width: 100%;
        margin-left: 56px;
    }

    .perm-legend-row,
    .perm-legend-grid {
        grid-template-columns: 1fr;
    }
    .perm-group-head,
    .perm-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .perm-item-badge {
        align-self: flex-start;
    }
}

/* Mobile width + tab overflow hotfix */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    #appdl-wrap {
        width: 100%;
        max-width: none;
        margin: 0;
        box-shadow: none;
        overflow-x: hidden;
    }

    #tabs-bar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 12px;
        padding: 0 14px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        white-space: normal;
    }

    .tab-btn {
        flex: 0 0 auto;
        min-width: auto;
        white-space: nowrap;
    }

    .tab-panel,
    .article-body,
    .specs-table,
    .alt-list,
    .perm-visual-grid,
    .reviewer-row > div {
        min-width: 0;
        max-width: 100%;
    }
}


/* Robust default tab visibility */
#panel-info { display: block; }
.tab-panel[hidden] { display: none !important; }


/* Full fixed theme additions */
.reviewer-name a{color:inherit;text-decoration:none}
.reviewer-name a:hover{text-decoration:underline}
.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0 0}
.info-card{border:1px solid #e5e7eb;border-radius:18px;background:#fff;padding:16px}
.info-card-pros{background:#f0fdf4;border-color:#bbf7d0}
.info-card-cons{background:#fff7ed;border-color:#fed7aa}
.info-card-title{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#374151;margin-bottom:10px}
.info-list{padding-left:18px;display:grid;gap:8px}
.info-list li{color:#374151}
.faq-block{margin-top:24px}
.faq-block-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#9ca3af;margin-bottom:10px}
.faq-list{display:grid;gap:10px}
.faq-item{border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:0 14px}
.faq-item summary{cursor:pointer;list-style:none;padding:14px 0;font-weight:700;color:#111827}
.faq-item summary::-webkit-details-marker{display:none}
.faq-answer{padding:0 0 14px;color:#4b5563;font-size:14px}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 14px;margin-top:12px}
.footer-links a{font-size:13px;color:#4b5563;text-decoration:none}
.footer-links a:hover{color:#111827;text-decoration:underline}

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

@media (max-width: 1024px){
    body{background:#fff}
    #appdl-wrap{width:100vw;max-width:100vw;min-height:100dvh;margin:0;box-shadow:none;overflow-x:hidden}
    #site-header,#breadcrumb,#app-header,#tabs-bar,.tab-panel,#site-footer{width:100%;max-width:100%}
}
