:root {
    --bg: #FAF7F1;
    --bg-alt: #F2ECE0;
    --surface: #FFFFFF;
    --surface-hover: #FFFCF6;
    --border: #E8E1D4;
    --border-light: #F1ECE2;
    --text: #1A1614;
    --text-sub: #6B6356;
    --text-muted: #A19888;
    --accent: #2563EB;
    --accent-strong: #1D4ED8;
    --accent-bg: #EFF6FF;
    --accent-border: #BFDBFE;
    --green: #16A34A;
    --green-bg: #F0FDF4;
    --green-border: #BBF7D0;
    --red: #DC2626;
    --red-bg: #FEF2F2;
    --red-border: #FECACA;
    --amber: #D97706;
    --amber-bg: #FFFBEB;
    --amber-border: #FDE68A;
    --warm: #F59E0B;
    --shadow-sm: 0 1px 2px rgba(28,20,8,.04);
    --shadow-md: 0 4px 14px rgba(28,20,8,.06);
    --shadow-lg: 0 12px 28px rgba(28,20,8,.10);
    --shadow-accent: 0 6px 20px rgba(37,99,235,.18);
    --radius: 12px;
    --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(1100px 520px at 12% -10%, rgba(37,99,235,.10), transparent 60%),
        radial-gradient(900px 480px at 92% 12%, rgba(245,158,11,.10), transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    position: relative;
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #2563EB 0%, #6366F1 35%, #BE185D 70%, #F59E0B 100%);
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-icon { width: 28px; height: 28px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; }
.brand-tag { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.header-nav { display: flex; gap: 4px; }
.nav-link {
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
}
.nav-link:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.nav-link[aria-current="page"] { background: var(--accent-bg); color: var(--accent); }

.site-main { flex: 1; padding: 32px 0 64px; }

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 12px;
}
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row p { margin: 0; }
.footer-row nav a { color: var(--text-sub); margin: 0 4px; }

/* Hero */
.hero { text-align: center; margin: 8px 0 32px; }
.hero h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.7px;
    margin: 0 0 10px;
    line-height: 1.1;
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 45%, #7C3AED 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.hero p { color: var(--text-sub); font-size: 17px; margin: 0 auto; max-width: 520px; }

/* Search */
.search-wrap {
    position: relative;
    max-width: 520px;
    margin: 0 auto 28px;
}
.search-wrap::before {
    content: "🔍";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
}
.search-input {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    padding: 13px 16px 13px 42px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-shadow: var(--shadow-sm);
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--text-sub);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-label::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* Country grid */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}
.country-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 14px;
    text-decoration: none;
    color: var(--text);
    transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
    box-shadow: var(--shadow-sm);
    display: block;
}
.country-card:hover {
    border-color: var(--accent);
    background: var(--surface);
    text-decoration: none;
    box-shadow: var(--shadow-accent);
    transform: translateY(-2px);
}
.country-card-name { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.country-card-meta { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; font-size: 11px; color: var(--text-muted); }

/* Featured chips */
.featured-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.featured-chip {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .15s;
}
.featured-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
    text-decoration: none;
}

/* Plug badge */
.plug-badge {
    font-size: 11px;
    font-weight: 700;
    border-radius: 5px;
    padding: 2px 7px;
    border: 1px solid currentColor;
    color: var(--accent);
    line-height: 1.4;
    display: inline-block;
    text-decoration: none;
}
a.plug-badge:hover { background: var(--surface-hover, rgba(0,0,0,.05)); text-decoration: none; }

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}

/* Verdict */
.verdict {
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1.5px solid;
}
.verdict-ok {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border-color: var(--green-border);
    color: #14532D;
    box-shadow: 0 6px 20px rgba(22,163,74,.10);
}
.verdict-warn {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-color: var(--amber-border);
    color: #78350F;
    box-shadow: 0 6px 20px rgba(217,119,6,.10);
}
.verdict-icon { font-size: 28px; flex-shrink: 0; }
.verdict-title { font-size: 16px; font-weight: 700; margin: 0 0 3px; }
.verdict-body { font-size: 13px; color: var(--text-sub); line-height: 1.5; margin: 0; }

/* Notices */
.notice {
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
    border: 1.5px solid;
}
.notice-amber { background: var(--amber-bg); border-color: var(--amber-border); color: #92400E; }
.notice-blue { background: var(--accent-bg); border-color: var(--accent-border); color: #1E40AF; }
.notice-green { background: var(--green-bg); border-color: var(--green-border); color: #14532D; }

/* Plug card */
.plug-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.plug-grid h3 { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; }
.plug-stack { display: flex; flex-direction: column; gap: 10px; }
.plug-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    position: relative;
    text-align: center;
}
.plug-card.compatible { border-color: var(--green-border); box-shadow: 0 0 0 3px var(--green-border); }
.plug-card.muted { filter: grayscale(.7); opacity: .45; }
.plug-card .check {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--green);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.plug-card .name { font-size: 14px; font-weight: 700; }
.plug-card .desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.plug-card a.type-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-sub);
}
.plug-card a.type-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); text-decoration: none; }

/* Specs */
.specs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}
.specs.no-home { grid-template-columns: 1fr; }
.spec-cell { text-align: center; }
.spec-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.spec-value { font-size: 26px; font-weight: 800; }
.spec-sub { font-size: 12px; color: var(--text-muted); }
.spec-pill {
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    padding: 4px 10px;
    border: 1px solid;
}
.spec-pill.match { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }
.spec-pill.diff { background: var(--red-bg); border-color: var(--red-border); color: var(--red); }

/* Affiliate */
.affiliate-list { display: flex; flex-direction: column; gap: 8px; }
.affiliate-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 16px;
    text-decoration: none;
    color: var(--text);
    transition: all .15s;
    box-shadow: var(--shadow-sm);
}
.affiliate-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
    text-decoration: none;
    transform: translateY(-2px);
}
.affiliate-icon { font-size: 24px; flex-shrink: 0; }
.affiliate-body { flex: 1; min-width: 0; }
.affiliate-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 2px; flex-wrap: wrap; }
.affiliate-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: 20px;
    padding: 2px 7px;
    white-space: nowrap;
}
.affiliate-desc { font-size: 12px; color: var(--text-muted); }
.affiliate-cta { font-size: 12px; color: var(--accent); font-weight: 600; flex-shrink: 0; }
.affiliate-disclaimer { font-size: 11px; color: var(--text-muted); margin-top: 8px; font-style: italic; }

/* Compare form */
.compare-box {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.compare-box.active { background: var(--accent-bg); border-color: var(--accent-border); }
.compare-label { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.compare-row { display: flex; gap: 8px; flex-wrap: wrap; }
.compare-suggestion {
    border: 1.5px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
    padding: 6px 12px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-sub);
}
.compare-suggestion:hover { border-color: var(--accent); color: var(--accent); }

/* Buttons / nav row */
.btn-back {
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    color: var(--text-sub);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-back:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.title-row h1 { font-size: 28px; font-weight: 800; margin: 0; flex: 1; letter-spacing: -0.4px; }

/* Prose */
.prose { color: var(--text); font-size: 15px; line-height: 1.65; }
.prose p { margin: 0 0 14px; }
.prose h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }

/* Plug types overview */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.regions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
@@media (max-width: 700px) {
    .regions-grid { grid-template-columns: repeat(3, 1fr); }
}
.type-tile {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 10px 14px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .15s, border-color .15s, box-shadow .15s;
    position: relative;
    overflow: hidden;
}
.type-tile::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--accent);
    opacity: .85;
}
.type-tile:hover {
    border-color: var(--accent);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}
.type-tile .name { font-size: 13px; font-weight: 700; }
.type-tile .desc { font-size: 10px; color: var(--text-muted); line-height: 1.3; }
.type-tile .voltage { font-size: 10px; color: var(--text-muted); }
/* Per-region accent stripe */
.regions-grid .type-tile:nth-child(1)::before { background: #2563EB; } /* Europe */
.regions-grid .type-tile:nth-child(2)::before { background: #B45309; } /* North America */
.regions-grid .type-tile:nth-child(3)::before { background: #16A34A; } /* South America */
.regions-grid .type-tile:nth-child(4)::before { background: #BE185D; } /* Asia */
.regions-grid .type-tile:nth-child(5)::before { background: #C2410C; } /* Africa */
.regions-grid .type-tile:nth-child(6)::before { background: #0F766E; } /* Oceania */

/* Country table */
.country-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}
.country-table th {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    text-align: left;
}
.country-table th.right, .country-table td.right { text-align: right; }
.country-table td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.country-table tr:last-child td { border-bottom: none; }
.country-table a { font-weight: 500; }
.empty { text-align: center; color: var(--text-muted); padding: 32px 0; }

/* Selected type header */
.selected-type {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1.5px solid var(--border);
    background: var(--surface);
}
.selected-type .name { font-size: 18px; font-weight: 700; }
.selected-type .desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* FAQ details */
details.faq {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}
details.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details.faq[open] summary { margin-bottom: 8px; }
details.faq p { margin: 0; color: var(--text-sub); font-size: 14px; line-height: 1.6; }

/* Mobile tweaks */
@@media (max-width: 600px) {
    .header-row { padding: 12px 16px; }
    .brand-name { font-size: 17px; }
    .hero h1 { font-size: 26px; }
    .title-row h1 { font-size: 22px; }
    .plug-grid { grid-template-columns: 1fr 1fr; }
    .specs { grid-template-columns: 1fr 1fr; }
    .specs .spec-pill-cell { display: none; }
    .footer-row { flex-direction: column; align-items: center; text-align: center; }
}
