* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f4f6f9; color: #1e2430; line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.site-header { background: #141a26; padding: 14px 0; }
.header-inner { display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; align-items: center; }
.logo { color: #ffd43b; font-size: 1.4rem; font-weight: bold; text-decoration: none; }
.header-tools { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.edition-badge { background:#1a3a6b; color:#9ec1ff; margin:0; }
#darkToggle { background:none; border:1px solid #33405a; color:#cfd6e4; border-radius:8px; padding:4px 10px; cursor:pointer; font-size:1rem; }
nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
nav a { color: #cfd6e4; text-decoration: none; }
nav a:hover { color: #ffd43b; }

main { padding: 30px 0 50px; }
h1 { margin-bottom: 20px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.card h3 a { color: #141a26; text-decoration: none; }
.card h3 a:hover { color: #2f6fed; }

.stars { color: #f5a623; font-size: 1.1rem; }
.score { color: #666; font-size: .9rem; margin-left: 6px; }
.no-rating { color: #999; font-size: .9rem; }

.badge { display: inline-block; background: #e7f0ff; color: #2f6fed; border-radius: 20px; padding: 2px 12px; font-size: .8rem; margin-bottom: 8px; }
.badge.verified { background: #e6f9ee; color: #1a9e54; }

.review { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.review-meta { color: #888; font-size: .85rem; margin-bottom: 6px; }

.btn { display: inline-block; background: #2f6fed; color: #fff; border: none; border-radius: 8px; padding: 10px 20px; cursor: pointer; text-decoration: none; font-size: 1rem; }
.btn:hover { background: #2258c7; }

input, select, textarea { width: 100%; padding: 10px; border: 1px solid #ccd3dd; border-radius: 8px; margin-bottom: 14px; font-family: inherit; }
label { font-weight: 600; display: block; margin-bottom: 4px; }

form.search-form { display: flex; gap: 10px; margin-bottom: 26px; }
form.search-form input { flex: 1; margin-bottom: 0; }

img { max-width: 100%; }
.card h3, .card p, .card .badge, .card .review-meta, .card .stars { display: block; }

.site-footer { background: #141a26; color: #8b94a7; text-align: center; padding: 20px 0; margin-top: 40px; }

/* ===== Phase 2 additions ===== */
.pager { margin: 22px 0; }
.pager a { display: inline-block; padding: 6px 12px; margin-right: 6px; background: #fff;
           border: 1px solid #ccd3dd; border-radius: 6px; color: #2f6fed; text-decoration: none; }
.pager a.active { background: #2f6fed; color: #fff; border-color: #2f6fed; }

.review-photos { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
img.thumb { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; }

.btn.voted { background: #1a9e54; }
form .btn { margin-right: 8px; }

/* ===== Phase 3: guides & news ===== */
.guide-content { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.guide-content h3 { margin: 26px 0 10px; color: #141a26; }
.guide-content p { margin-bottom: 14px; }
.guide-content ul { margin: 0 0 16px 22px; }
.guide-content li { margin-bottom: 8px; }
.guide-content strong { color: #2f6fed; }

/* ===== Phase 4: comparison ===== */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #eef1f5; vertical-align: top; }
.compare-table th { background: #141a26; color: #fff; }
.compare-table tr td:first-child { background: #f8fafc; white-space: nowrap; }
.compare-table tr:hover td { background: #f0f5ff; }
.compare-table tr:hover td:first-child { background: #e7f0ff; }

/* ===== Phase 5: FAQ ===== */
details.faq-item { background: #fff; border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
details.faq-item summary { font-weight: 600; cursor: pointer; }
details.faq-item p { margin-top: 10px; color: #444; }

/* ===== Share buttons ===== */
.share { margin: 18px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.share span { font-weight: 600; color: #666; }
.share a { background: #141a26; color: #fff; padding: 6px 14px; border-radius: 20px; text-decoration: none; font-size: .88rem; }
.share a:hover { background: #2f6fed; }

/* ===== Dark mode ===== */
html.dark body { background: #0f141c; color: #d7dfea; }
html.dark .card, html.dark .guide-content, html.dark .review, html.dark details.faq-item { background: #1a2230; color: #d7dfea; }
html.dark .card h3 a { color: #e8eef7; }
html.dark .guide-content h3 { color: #e8eef7; }
html.dark .guide-content strong { color: #7fb0ff; }
html.dark .compare-table { background: #1a2230; }
html.dark .compare-table th { background: #0b0f16; }
html.dark .compare-table td { border-bottom-color: #26314a; }
html.dark .compare-table tr td:first-child { background: #141c29; }
html.dark .compare-table tr:hover td { background: #1d2940; }
html.dark .compare-table tr:hover td:first-child { background: #22304d; }
html.dark input, html.dark select, html.dark textarea { background: #0f141c; color: #d7dfea; border-color: #33405a; }
html.dark .pager a { background: #1a2230; color: #7fb0ff; border-color: #33405a; }
html.dark .pager a.active { background: #2f6fed; color: #fff; }
html.dark .site-footer { background: #0a0e14; }
html.dark .badge { background: #22304d; color: #9ec1ff; }
html.dark .badge.verified { background: #123524; color: #4ade80; }
html.dark .review-meta { color: #8894a8; }
html.dark a { color: #7fb0ff; }

/* ===== Phase 10: product images ===== */
img.pimg { width: 100%; height: 170px; object-fit: cover; border-radius: 10px 10px 0 0; display: block; background: #141a26; }
.card { padding: 0; overflow: hidden; }
.card > *:not(img.pimg) { margin-left: 22px; margin-right: 22px; }
.card > img.pimg ~ *:first-of-type { margin-top: 16px; }
.card > *:last-child { margin-bottom: 22px; }
.review-hero { display: flex; gap: 26px; align-items: flex-start; margin-bottom: 8px; }
.review-hero img { width: 340px; max-width: 45%; border-radius: 14px; }
.compare-table img.th { width: 90px; height: 60px; object-fit: cover; border-radius: 6px; }
html.dark img.pimg { background: #0b0f16; }
@media (max-width: 640px) { .review-hero { flex-direction: column; } .review-hero img { max-width: 100%; } }
@media (max-width: 760px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .header-inner { grid-template-columns: 1fr auto; gap: 10px; }
    .logo { font-size: 1.15rem; }
    .edition-badge { display: none; }
    nav { grid-column: 1 / -1; gap: 8px 14px; max-height: 120px; overflow-y: auto; padding-top: 4px; }
    nav a { font-size: .9rem; }
    .card-grid { grid-template-columns: 1fr; }
    form.search-form { flex-direction: column; }
    form.search-form .btn { width: 100%; }
    .compare-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ===== Phase 11: lightbox + back-to-top ===== */
#lightbox { display: none; position: fixed; inset: 0; background: rgba(8,10,16,.92); z-index: 1000;
            align-items: center; justify-content: center; cursor: zoom-out; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 92%; max-height: 92%; border-radius: 10px; box-shadow: 0 10px 60px rgba(0,0,0,.6); }
#backToTop { display: none; position: fixed; bottom: 24px; right: 24px; z-index: 900;
             width: 46px; height: 46px; border-radius: 50%; border: none; background: #2f6fed;
             color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
#backToTop:hover { background: #2258c7; }
.review-photos img { cursor: zoom-in; }

/* ===== Professional editorial redesign ===== */
:root { --ink:#111827; --muted:#667085; --line:#e6eaf0; --paper:#f7f8fb; --blue:#2563eb; --cyan:#22d3ee; --gold:#f4c84b; }
body { background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.container { max-width: 1180px; }
.site-header { background: rgba(17,24,39,.97); border-bottom: 1px solid rgba(255,255,255,.08); padding: 18px 0 16px; position: relative; z-index: 5; }
.header-inner { grid-template-columns: auto 1fr; gap: 14px 34px; }
.logo { letter-spacing:-.04em; font-size:1.35rem; }
nav { border-top:1px solid rgba(255,255,255,.09); padding-top:13px; gap:7px 20px; }
nav a { font-size:.86rem; color:#b7c1d2; transition:color .2s, transform .2s; }
nav a:hover { color:#fff; transform:translateY(-1px); }
main.container { padding-top: 44px; }
h1, h2, h3 { letter-spacing:-.035em; line-height:1.15; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2vw, 2rem); }
h3 { font-size:1.08rem; }
p { color:var(--muted); }
a { color:var(--blue); }
.eyebrow { display:block; color:#64748b; font-size:.69rem; font-weight:800; letter-spacing:.16em; margin-bottom:10px; }
.hero-panel { min-height:390px; display:grid; grid-template-columns:1.1fr .9fr; align-items:center; overflow:hidden; position:relative; border-radius:24px; padding:56px 64px; margin-bottom:60px; color:#fff; background:radial-gradient(circle at 82% 22%,rgba(34,211,238,.28),transparent 25%), linear-gradient(120deg,#0b1220 0%,#162849 55%,#174b66 100%); box-shadow:0 20px 50px rgba(15,23,42,.16); }
.hero-panel .eyebrow { color:#7dd3fc; }
.hero-panel h1 { max-width:620px; color:#fff; margin-bottom:18px; }
.hero-lead { max-width:540px; font-size:1.12rem; line-height:1.7; color:#dbeafe; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.btn { border-radius:999px; padding:12px 20px; font-weight:700; border:1px solid transparent; transition:transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform:translateY(-2px); box-shadow:0 8px 18px rgba(15,23,42,.15); }
.btn-primary { background:var(--gold); color:#1f2937; }
.btn-primary:hover { background:#ffe083; }
.btn-ghost { background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.28); color:#fff; }
.hero-proof { display:flex; flex-wrap:wrap; gap:14px 22px; margin-top:28px; color:#b9e6ef; font-size:.78rem; }
.hero-art { height:280px; position:relative; }
.hero-orb { position:absolute; border-radius:50%; filter:blur(1px); }
.orb-one { width:250px; height:250px; right:20px; top:10px; background:linear-gradient(135deg,rgba(34,211,238,.45),rgba(37,99,235,.05)); border:1px solid rgba(125,211,252,.32); }
.orb-two { width:150px; height:150px; right:150px; bottom:5px; background:rgba(244,200,75,.18); }
.hero-device { position:absolute; right:62px; top:34px; width:150px; height:218px; border:8px solid #e5f6ff; border-radius:26px; transform:rotate(11deg); background:linear-gradient(145deg,#253c63,#0f172a); box-shadow:14px 20px 30px rgba(0,0,0,.28); display:grid; place-items:center; text-align:center; color:#7dd3fc; font-size:1.1rem; letter-spacing:.12em; }
.hero-device b { color:#ffd43b; font-size:1.6rem; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:18px; margin-bottom:20px; }
.section-heading .eyebrow { margin-bottom:6px; }
.section-heading h2 { margin:0; }
.section-heading-spaced { margin-top:64px; }
.text-link { font-weight:700; font-size:.9rem; text-decoration:none; white-space:nowrap; }
.card-grid { gap:20px; }
.card { border:1px solid var(--line); border-radius:16px; box-shadow:0 8px 24px rgba(15,23,42,.05); transition:transform .22s, box-shadow .22s, border-color .22s; }
.card:hover { transform:translateY(-4px); border-color:#cbd8ee; box-shadow:0 15px 32px rgba(15,23,42,.1); }
.card > *:not(img.pimg) { margin-left:20px; margin-right:20px; }
.card > *:last-child { margin-bottom:20px; }
img.pimg { height:190px; background:#eef4ff; }
.badge { font-weight:700; letter-spacing:.02em; }
.site-footer { margin-top:84px; padding:48px 0 28px; text-align:left; background:#0d1422; }
.footer-grid { display:grid; grid-template-columns:1fr 1fr; gap:34px; align-items:center; }
.footer-intro h3 { color:#fff; font-size:1.55rem; margin-bottom:10px; }
.footer-intro p { max-width:430px; color:#9eabc0; }
.footer-signup { max-width:460px; justify-self:end; width:100%; }
.footer-signup h3 { color:#fff; margin-bottom:8px; }
.footer-signup form { display:flex; gap:8px; }
.footer-signup input { background:#fff; }
.pop-tools { grid-column:1 / -1; border-top:1px solid #263247; padding-top:22px; }
html.dark body { background:#0b1018; }
html.dark .card { border-color:#263247; box-shadow:none; }
html.dark .section-heading .eyebrow, html.dark .eyebrow { color:#9eabc0; }
html.dark p { color:#aab6c8; }
@media (max-width:760px) {
    main.container { padding-top:26px; }
    .hero-panel { grid-template-columns:1fr; padding:34px 26px; min-height:auto; margin-bottom:42px; }
    .hero-art { height:170px; margin-top:20px; }
    .orb-one { width:170px; height:170px; right:18px; }
    .hero-device { transform:rotate(8deg) scale(.78); right:44px; top:-4px; }
    .section-heading { align-items:start; flex-direction:column; }
    .section-heading-spaced { margin-top:44px; }
    .footer-grid { grid-template-columns:1fr; }
    .footer-signup { justify-self:stretch; }
}

/* ===== Shared page polish: lists, forms, tables, notices and admin views ===== */
.page-shell > h1:first-child { max-width:820px; margin-bottom:12px; }
.page-shell > h1:first-child + p { max-width:780px; font-size:1.04rem; }
.page-shell > p { margin-bottom:18px; }
.page-shell > hr { border:0; border-top:1px solid var(--line); margin:30px 0; }
.page-shell ul, .page-shell ol { color:var(--muted); padding-left:1.35rem; }
.page-shell li { margin:.45rem 0; }
.page-shell table:not(.compare-table) { width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 8px 24px rgba(15,23,42,.04); }
.page-shell table:not(.compare-table) th { background:#f1f5fb; color:#344054; font-size:.76rem; text-transform:uppercase; letter-spacing:.08em; text-align:left; }
.page-shell table:not(.compare-table) th, .page-shell table:not(.compare-table) td { padding:13px 15px; border-bottom:1px solid #edf0f5; vertical-align:top; }
.page-shell table:not(.compare-table) tr:last-child td { border-bottom:0; }
.page-shell table:not(.compare-table) a { font-weight:650; }
.page-shell form:not(.search-form) { max-width:760px; }
.page-shell form:not(.search-form) label { color:#344054; font-size:.86rem; }
.page-shell input, .page-shell select, .page-shell textarea { background:#fff; border:1px solid #d8dee9; min-height:44px; transition:border-color .2s, box-shadow .2s; }
.page-shell input:focus, .page-shell select:focus, .page-shell textarea:focus { outline:0; border-color:#7aa2ed; box-shadow:0 0 0 4px rgba(37,99,235,.12); }
.page-shell textarea { min-height:130px; resize:vertical; }
.page-shell button:not(#darkToggle), .page-shell input[type=submit] { border:0; }
.page-shell .notice, .page-shell .alert, .page-shell .success, .page-shell .error { border-radius:12px; padding:13px 16px; margin:14px 0; border:1px solid #dbe5f5; background:#f4f8ff; color:#304b75; }
.page-shell .error { background:#fff5f5; border-color:#ffd7d7; color:#a22c2c; }
.page-shell .success { background:#effbf4; border-color:#c8efd5; color:#167345; }
.page-shell .btn-secondary { background:#eef3fb; color:#29466f; }
.page-shell .btn-danger { background:#dc3545; color:#fff; }
.page-shell .actions, .page-shell .toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:20px 0; }
.page-shell .toolbar { justify-content:space-between; padding:14px 16px; background:#fff; border:1px solid var(--line); border-radius:14px; }
.page-shell .review, .page-shell .guide-content { max-width:860px; }
.page-shell .review h2, .page-shell .guide-content h2 { margin:30px 0 12px; }
.page-shell .review p, .page-shell .guide-content p { max-width:760px; }
.page-shell .review-hero { background:#fff; border:1px solid var(--line); border-radius:18px; padding:24px; box-shadow:0 8px 24px rgba(15,23,42,.05); }
.page-shell .review-hero h1 { margin-top:6px; }
.page-shell .pager { display:flex; flex-wrap:wrap; gap:6px; }
.page-shell .pager a { margin:0; min-width:38px; text-align:center; }
.page-shell .share a { color:#fff; }
.site-footer a:hover { color:#fff !important; }
@media (max-width:760px) {
    .page-shell table:not(.compare-table) { display:block; overflow-x:auto; white-space:nowrap; }
    .page-shell .toolbar { align-items:flex-start; flex-direction:column; }
    .footer-signup form { flex-direction:column; }
    .footer-signup .btn { width:100%; }
}
