/* ===== reset + base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== nav ===== */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(13, 26, 62, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto; padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
    display: flex; align-items: center; gap: 12px;
    color: var(--text); text-decoration: none;
}
.nav-logo:hover { color: var(--text); }
.nav-logo-img { width: 40px; height: 40px; flex-shrink: 0; display: block; }
.nav-brand { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-name {
    font-weight: 800; font-size: 1.4rem; color: var(--text);
    letter-spacing: 0.08em;
}
.nav-brand-subtitle {
    font-size: 0.65rem; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-top: 2px;
}
.nav-menu { display: flex; gap: 24px; }
.nav-menu a {
    color: var(--text-dim); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    font-size: 0.9rem;
    white-space: nowrap;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.nav-menu a:hover { color: var(--accent-light); }
.nav-menu a.nav-explain { color: var(--primary); }
.nav-menu a.nav-explain:hover { color: var(--primary); opacity: 0.8; }
.nav-menu a.is-active {
    color: var(--text);
    border-bottom-color: var(--primary);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switcher {
    background: var(--bg-light); color: var(--text);
    border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px;
    font-size: 0.9rem; cursor: pointer;
}

/* ===== buttons ===== */
.btn-primary, .btn-secondary {
    display: inline-block; padding: 12px 24px; border-radius: 8px;
    font-weight: 700; font-size: 0.95rem; transition: all 0.2s;
    cursor: pointer; border: 2px solid transparent;
}
.btn-primary {
    background: var(--primary); color: #000;
    box-shadow: 0 0 0 transparent;
}
.btn-primary:hover {
    box-shadow: 0 0 24px rgba(0, 255, 136, 0.4);
    transform: translateY(-1px);
    color: #000;
}
.btn-secondary {
    border-color: var(--accent-light); color: var(--accent-light); background: transparent;
}
.btn-secondary:hover { background: rgba(0, 212, 255, 0.1); color: var(--accent-light); }

/* ===== store buttons (App Store / Google Play) ===== */
.btn-store {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 10px 18px; border-radius: 10px;
    background: #000; color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.2s; text-decoration: none;
    min-width: 180px;
}
.btn-store:hover {
    background: #1a1a1a; border-color: var(--accent-light);
    color: #fff; transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.btn-store .store-icon { width: 28px; height: 28px; flex-shrink: 0; }
.btn-store .store-text {
    display: flex; flex-direction: column; line-height: 1.1;
    text-align: left;
}
.btn-store .store-caption {
    font-size: 0.7rem; opacity: 0.8;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.btn-store .store-name {
    font-size: 1.1rem; font-weight: 600; margin-top: 2px;
}
.btn-store.is-disabled {
    opacity: 0.5; cursor: not-allowed;
    pointer-events: none;
}

/* ===== hero ===== */
.hero {
    padding: 100px 0 80px;
    background:
        radial-gradient(ellipse at center, rgba(0, 255, 136, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-nav) 0%, var(--bg) 100%);
    text-align: center;
}
.hero h1 {
    font-size: 2.8rem; font-weight: 800; line-height: 1.2;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .lead {
    font-size: 1.2rem; color: var(--text-dim);
    max-width: 700px; margin: 24px auto 40px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* hero logo */
.hero-logo {
    margin-top: 48px;
    line-height: 0;
}
.hero-logo img {
    width: 220px; height: 220px;
    border-radius: 32px;
    box-shadow:
        0 0 0 1px rgba(0, 255, 136, 0.15),
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 255, 136, 0.12);
    display: inline-block;
}

/* ===== sections ===== */
section { padding: 80px 0; }
section.alt { background: var(--bg-light); }
section h2 {
    font-size: 2rem; font-weight: 700; margin-bottom: 16px;
    text-align: center;
}
section .section-lead {
    color: var(--text-dim); max-width: 700px; margin: 0 auto 48px;
    text-align: center;
}

/* ===== section link (centered text link below content) ===== */
.section-link {
    text-align: center;
    margin-top: 40px;
}
.section-link a {
    display: inline-block;
    color: var(--accent-light);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    padding: 6px 2px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.section-link a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ===== cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.cards.cards-compact { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.cards.cards-compact .card { padding: 22px 20px; }
.cards.cards-compact .card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cards.cards-compact .card p { font-size: 0.92rem; }
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 28px;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.card:hover {
    transform: translateY(-4px); border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    color: inherit;
}
.card .icon { font-size: 2rem; margin-bottom: 16px; color: var(--accent-light); }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--text); }
.card p { color: var(--text-dim); }

/* ===== footer ===== */
.site-footer {
    background: var(--bg-nav); border-top: 1px solid var(--border);
    padding: 60px 0 24px; margin-top: 80px;
}
.footer-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: repeat(2, max-content);
    justify-content: center; gap: 80px;
}
.footer-col h4 { color: var(--text); margin-bottom: 16px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-col a { display: block; color: var(--text-dim); padding: 4px 0; font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
    text-align: center; color: var(--text-dim); padding-top: 32px; margin-top: 32px;
    border-top: 1px solid var(--border); font-size: 0.9rem;
    max-width: 1100px; margin-left: auto; margin-right: auto;
    padding-left: 24px; padding-right: 24px;
}

/* ===== how-to-start step content (mixed prose + bullet lists) ===== */
.step-content {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-dim);
    line-height: 1.7;
    text-align: center;
}
.step-content > p { margin-bottom: 0.9em; }
.step-content > p:last-child { margin-bottom: 0; }
.step-content a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}
.step-content a:hover { color: var(--primary); }
.step-content .bullet-list {
    margin: 16px auto;
    color: var(--text);
}
.step-content .step-block {
    text-align: left;
    max-width: 540px;
    margin: 0 auto;
}
.step-content .step-block .bullet-list {
    margin: 14px 0;
    width: 100%;
    max-width: 100%;
}

/* ===== bullet list (Features page, etc.) ===== */
.bullet-list {
    list-style: none;
    max-width: 700px;
    width: fit-content;
    margin: 0 auto;
    text-align: left;
}
.bullet-list li {
    padding: 10px 0 10px 32px; position: relative;
    color: var(--text); font-size: 1rem; line-height: 1.6;
}
.bullet-list li::before {
    content: "▸"; position: absolute; left: 8px;
    color: var(--primary); font-weight: 700;
}
.bullet-list a {
    color: var(--accent-light); font-weight: 600;
    text-decoration: underline; text-underline-offset: 2px;
}
.bullet-list a:hover { color: var(--primary); }
.bullet-list .bullet-list-sub {
    width: 100%;
    margin: 8px 0 4px 0;
    padding-left: 0;
    max-width: none;
}
.bullet-list .bullet-list-sub li {
    padding: 6px 0 6px 28px;
    font-size: 0.95rem;
    color: var(--text-dim);
}
.bullet-list .bullet-list-sub li::before {
    color: var(--accent-light);
    left: 8px;
}

/* ===== roles ACL grid ===== */
.acl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1100px; margin: 0 auto;
}
.role-column {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 20px;
    display: flex; flex-direction: column;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s;
}
.role-column:hover { border-color: var(--accent); }
.role-column h3 {
    color: var(--text);
    font-size: 1.15rem;
    margin-bottom: 6px;
    text-align: center;
}
.role-tagline {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 18px;
    min-height: 2.8em;
}
.acl-list {
    list-style: none; padding: 0; margin: 0; flex: 1;
}
.acl-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    border-top: 1px solid rgba(42, 48, 80, 0.4);
}
.acl-list li:first-child { border-top: 0; padding-top: 4px; }
.acl-mark {
    flex-shrink: 0;
    width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem; font-weight: 700;
    margin-top: 1px;
}
.acl-yes .acl-mark { background: rgba(0, 255, 136, 0.15); color: var(--primary); }
.acl-no  .acl-mark { background: rgba(120, 120, 140, 0.12); color: var(--text-dim); }
.acl-yes .acl-text { color: var(--text); }
.acl-no  .acl-text { color: var(--text-dim); opacity: 0.55; }
@media (max-width: 768px) {
    .role-tagline { min-height: auto; }
}

/* ===== FAQ accordion ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; margin-bottom: 12px;
    overflow: hidden; transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--accent); }
.faq-item summary {
    cursor: pointer; padding: 18px 24px;
    font-weight: 600; color: var(--text);
    list-style: none; position: relative; padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%); color: var(--accent-light);
    font-size: 1.6rem; font-weight: 400; transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
    padding: 0 24px 20px; color: var(--text-dim); line-height: 1.7;
}

/* ===== contact ===== */
.contact-grid {
    max-width: 700px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr; gap: 16px;
}
.contact-row {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 20px 24px;
    display: flex; align-items: center; gap: 16px;
}
.contact-row .label {
    color: var(--text-dim); font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    min-width: 100px;
}
.contact-row .value { color: var(--text); flex: 1; }
.contact-row .value a { color: var(--accent-light); }
.contact-row.contact-row-stores {
    flex-direction: column; align-items: stretch; gap: 14px;
}
.contact-row.contact-row-stores .label { min-width: 0; margin-bottom: 0; }
.contact-row.contact-row-stores .value {
    display: flex; flex-wrap: wrap; gap: 12px;
}
.email-text { user-select: all; }

/* ===== story section (origin) ===== */
.story { padding-top: 40px; }
.story .container { max-width: 760px; }
.story h2 { text-align: center; margin-bottom: 36px; }
.story p {
    color: var(--text); line-height: 1.75; font-size: 1.02rem;
    margin-bottom: 1.2em;
}
.story .story-acronym {
    display: inline-block; color: var(--text-dim);
    margin-top: 6px;
}
.story .acronym-letter {
    color: var(--accent-light); font-weight: 800;
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
}
.story strong { color: var(--primary); font-weight: 700; }
.story-timeline {
    list-style: none; padding: 0; margin: 32px 0;
    border-left: 2px solid var(--accent);
}
.story-timeline li {
    padding: 10px 0 10px 20px; position: relative;
    color: var(--text);
}
.story-timeline li::before {
    content: ""; position: absolute; left: -7px; top: 18px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}
.story-timeline .timeline-label { color: var(--text-dim); margin-right: 10px; }
.story-timeline .timeline-date { color: var(--text); font-weight: 600; }
.story-thanks {
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid var(--border);
    font-style: italic; color: var(--text-dim);
    text-align: center;
}

/* ===== feedback public list (bugs/features) ===== */
.feedback-list-container { max-width: 880px; }
.state-filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 24px;
}
.state-filters > a {
    padding: 6px 14px; border-radius: 999px;
    background: var(--bg-nav); border: 1px solid rgba(122, 133, 168, 0.25);
    color: var(--text-dim); font-size: 0.88rem; font-weight: 600;
    text-decoration: none; transition: all 0.15s;
}
.state-filters > a:hover { color: var(--text); border-color: var(--accent-light); }
.state-filters > a.active { background: rgba(0, 212, 255, 0.10); border-color: var(--accent-light); color: var(--text); }
.state-filters .state-filter-chip { padding: 4px 10px; }
.state-filters .state-filter-chip .state-badge { font-size: 0.78rem; }
.state-filters .state-filter-chip:hover .state-badge { filter: brightness(1.2); }
.state-filters .state-filter-chip.active { background: rgba(0, 212, 255, 0.15); }

.feedback-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.feedback-list-item {
    background: var(--bg-nav); border: 1px solid rgba(122, 133, 168, 0.18);
    border-radius: 10px; padding: 18px 20px;
    transition: border-color 0.15s, transform 0.15s;
}
.feedback-list-item:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
}
.feedback-list-item .fl-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 0.88rem; color: var(--text-dim); margin-bottom: 8px;
}
.feedback-list-item .fl-votes { font-weight: 700; color: var(--accent-light); }
.feedback-list-item .fl-date { color: var(--text-dim); margin-left: auto; }
.feedback-list-item .fl-title { font-size: 1.05rem; margin: 0 0 6px 0; }
.feedback-list-item .fl-title a { color: var(--text); text-decoration: none; }
.feedback-list-item .fl-title a:hover { color: var(--accent-light); }
.feedback-list-item .fl-excerpt { color: var(--text-dim); margin: 0; line-height: 1.5; font-size: 0.93rem; }
.feedback-list-empty {
    text-align: center; opacity: 0.6;
    padding: 32px; background: var(--bg-card); border: 1px dashed var(--border); border-radius: 10px;
}

/* feedback detail — public detail page */
.feedback-detail-container { max-width: 760px; }
.feedback-detail-container .admin-section { display: block; }
.feedback-detail-container .admin-section h3 {
    margin: 0 0 16px 0; color: var(--text); font-size: 1rem;
    text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
    border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.feedback-detail-container > .admin-section + .admin-section { margin-top: 32px; }
.vote-success {
    display: inline-block;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.35);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 18px;
}
.vote-locked {
    display: flex; align-items: center; gap: 12px;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--text);
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}
.vote-locked::before {
    content: "🔒";
    font-size: 1.2rem;
    flex-shrink: 0;
}
.vote-locked strong { color: var(--warning); }
.vote-explainer {
    color: var(--text-dim);
    margin: 0 0 18px 0;
    line-height: 1.55;
    font-size: 0.95rem;
}
.vote-form { gap: 14px; }
.vote-form button {
    font-size: 1.05rem;
    padding: 12px 28px;
    align-self: flex-start;
}

.captcha-block { margin: 0; }
.captcha-block.captcha-math {
    display: flex; flex-direction: column; gap: 8px;
    background: var(--bg); border: 1px solid rgba(122, 133, 168, 0.30);
    border-radius: 8px; padding: 14px 16px;
    max-width: 360px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.captcha-block.captcha-math > span {
    color: var(--text); font-size: 0.92rem; font-weight: 600;
}
.captcha-block.captcha-math input[type=text] {
    max-width: 140px;
    background: var(--bg-light) !important;
}
.captcha-block .h-captcha { display: inline-block; }

/* feedback landing — 4 cards */
.feedback-cards.feedback-cards-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feedback-cards .card-list { background: var(--bg-light); }
.feedback-cards .card-list:hover { background: var(--bg-nav); }
.feedback-cards .card-count { color: var(--accent-light); font-weight: 700; }

/* ===== feedback landing cards ===== */
.feedback-cards .card {
    background: var(--bg-nav);
    border: 1px solid rgba(0, 212, 255, 0.18);
    text-align: center;
    padding: 36px 28px;
    backdrop-filter: none;
}
.feedback-cards .card .icon { font-size: 3rem; margin-bottom: 18px; color: inherit; }
.feedback-cards .card h3 { margin-bottom: 10px; }
.feedback-cards .card:hover {
    border-color: var(--accent-light);
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 212, 255, 0.18);
}

/* breadcrumb (above hero h1) */
.breadcrumb {
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: var(--text-dim);
}
.breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.breadcrumb a:hover {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}

/* feedback-tabs (toggle bug ↔ feature on form pages) */
.feedback-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 32px;
    flex-wrap: wrap;
}
.feedback-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--bg-nav);
    border: 1px solid rgba(122, 133, 168, 0.25);
    border-radius: 999px;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.15s;
}
.feedback-tabs a:hover {
    border-color: var(--accent-light);
    color: var(--text);
}
.feedback-tabs a.active {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--accent-light);
    color: var(--accent-light);
    cursor: default;
}

/* ===== feedback forms + admin tables ===== */
.feedback-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.feedback-form label { display: flex; flex-direction: column; gap: 6px; }
.feedback-form label > span { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.feedback-form input[type=text],
.feedback-form input[type=email],
.feedback-form input[type=password],
.feedback-form select,
.feedback-form textarea {
    background: var(--bg); color: var(--text);
    border: 1px solid rgba(122, 133, 168, 0.35);
    border-radius: 8px;
    padding: 10px 12px; font: inherit; font-size: 0.95rem;
    width: 100%; transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.feedback-form textarea { resize: vertical; min-height: 100px; font-family: inherit; }
.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    border-color: var(--accent-light); outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.feedback-form select option { background: var(--bg-nav); color: var(--text); }
.feedback-form small { color: var(--text-dim); font-size: 0.85rem; }
.feedback-form button { align-self: flex-start; }
.feedback-form .hp-field {
    position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;
}
.form-error {
    background: rgba(239, 68, 68, 0.12); border: 1px solid var(--danger);
    color: var(--text); border-radius: 8px;
    padding: 12px 16px; margin-bottom: 20px; max-width: 600px;
    margin-left: auto; margin-right: auto;
}

.admin-filters { font-size: 0.9rem; margin-bottom: 18px; line-height: 1.9; color: var(--text-dim); }
.admin-filters a {
    color: var(--text-dim); padding: 3px 8px; border-radius: 5px;
    background: var(--bg-light); border: 1px solid var(--border); margin: 0 2px;
}
.admin-filters a:hover { color: var(--accent-light); }
.admin-filters a.active { color: var(--text); border-color: var(--accent); background: rgba(51, 136, 255, 0.12); }

.admin-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    overflow: hidden; font-size: 0.92rem;
}
.admin-table th {
    background: var(--bg-light); text-align: left; padding: 10px 12px;
    color: var(--text-dim); font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; font-size: 0.78rem; border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table a { color: var(--accent-light); }

.state-badge {
    display: inline-block; padding: 2px 8px; border-radius: 12px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
    background: rgba(122, 133, 168, 0.18); color: var(--text-dim);
}
.state-badge.state-submitted    { background: rgba(0, 212, 255, 0.15); color: var(--accent-light); }
.state-badge.state-under_review { background: rgba(245, 158, 11, 0.18); color: var(--warning); }
.state-badge.state-planned      { background: rgba(51, 136, 255, 0.18); color: var(--accent); }
.state-badge.state-in_progress  { background: rgba(245, 158, 11, 0.22); color: var(--warning); }
.state-badge.state-shipped      { background: rgba(0, 255, 136, 0.18); color: var(--primary); }
.state-badge.state-rejected     { background: rgba(239, 68, 68, 0.20); color: var(--danger); }
.state-badge.state-postponed    { background: rgba(122, 133, 168, 0.20); color: var(--text-dim); }

.admin-table .empty-row { text-align: center; opacity: 0.6; padding: 24px; }

.saved-flag { color: var(--primary); font-weight: 600; }

.admin-detail-container { max-width: 800px; }
.admin-detail { display: flex; flex-direction: column; gap: 28px; }
.admin-detail .admin-section { padding: 0; }
.admin-detail .admin-section h3 {
    margin: 0 0 14px 0;
    color: var(--text);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.admin-detail dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 24px;
    margin: 0;
}
.admin-detail dt {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
}
.admin-detail dd {
    color: var(--text);
    margin: 0;
    word-break: break-word;
}
.admin-detail dd a { color: var(--accent-light); }
.description-block {
    background: var(--bg);
    border: 1px solid rgba(122, 133, 168, 0.25);
    border-radius: 8px;
    padding: 16px 18px;
    line-height: 1.65;
    white-space: pre-wrap;
    color: var(--text);
    font-size: 0.96rem;
}
.admin-detail .feedback-form { max-width: none; }

@media (max-width: 600px) {
    .admin-detail dl { grid-template-columns: 1fr; gap: 4px 0; }
    .admin-detail dd { padding-bottom: 8px; }
}

/* ===== mobile nav helpers ===== */
.mobile-only { display: none; }

.nav-hamburger {
    display: none;
    background: transparent; border: 0; cursor: pointer;
    width: 40px; height: 40px; padding: 8px;
    position: relative;
}
.nav-hamburger span {
    display: block; width: 100%; height: 2px;
    background: var(--text); margin: 5px 0;
    transition: all 0.25s ease;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== screenshots gallery ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; max-width: 1100px; margin: 0 auto;
}
.gallery-item {
    border-radius: 10px; overflow: hidden; cursor: zoom-in;
    border: 1px solid var(--border); background: var(--bg-card);
    transition: all 0.2s;
}
.gallery-item:hover {
    border-color: var(--accent); transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-empty {
    text-align: center; padding: 60px 24px; max-width: 600px; margin: 0 auto;
    background: var(--bg-card); border: 1px dashed var(--border);
    border-radius: 12px; color: var(--text-dim);
}

/* ===== lightbox ===== */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none; align-items: center; justify-content: center;
    z-index: 200; padding: 24px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 0 60px rgba(0, 212, 255, 0.2); }
.lightbox-close {
    position: absolute; top: 24px; right: 24px;
    background: transparent; border: 0; color: var(--text);
    font-size: 2.4rem; cursor: pointer; line-height: 1;
}

/* ===== explanation page ===== */
/* offset anchored sections so they clear the sticky header */
:target { scroll-margin-top: 90px; }

.explain-toc {
    max-width: 720px; margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    backdrop-filter: blur(8px);
}
.explain-toc-title {
    font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-dim); text-align: left; margin-bottom: 14px;
}
.explain-toc ul { list-style: none; }
.explain-toc li { padding: 7px 0; }
.explain-toc li a {
    color: var(--accent-light); font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.explain-toc li a::before { content: "▸ "; color: var(--primary); }
.explain-toc li a:hover { color: var(--primary); border-bottom-color: var(--primary); }

.explain-modes {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    max-width: 980px; margin: 0 auto;
}
.explain-mode {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s;
}
.explain-mode:hover { border-color: var(--accent); }
.explain-mode h3 {
    color: var(--text); font-size: 1.3rem;
    text-align: center; margin-bottom: 6px;
}
.explain-mode-lead {
    color: var(--text-dim); font-size: 0.95rem;
    text-align: center; margin-bottom: 8px;
}

.explain-prose {
    max-width: 720px; margin: 0 auto;
    color: var(--text-dim); line-height: 1.7; text-align: center;
}
.explain-prose > p { margin-bottom: 0.9em; }
.explain-prose > p:last-child { margin-bottom: 0; }
.explain-example {
    background: var(--bg-light);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 16px 20px;
    text-align: left;
    color: var(--text);
}
.explain-example strong { color: var(--primary); }
.explain-benefits-title,
.explain-subtitle {
    color: var(--text); font-size: 1.2rem;
    text-align: center; margin: 48px 0 4px;
}

/* numbered setup steps */
.explain-steps {
    max-width: 720px; margin: 18px auto 0;
    list-style: none; counter-reset: est;
}
.explain-steps li {
    position: relative; padding: 14px 0 14px 48px;
    color: var(--text-dim); line-height: 1.65;
}
.explain-steps li::before {
    counter-increment: est; content: counter(est);
    position: absolute; left: 0; top: 12px;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--primary); color: #000;
    font-weight: 700; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center;
}
.explain-steps .est-label {
    display: block; color: var(--text);
    font-weight: 700; margin-bottom: 3px;
}

/* screenshots */
.explain-figures {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px; max-width: 900px; margin: 26px auto 0;
}
.explain-shot { margin: 0; }
.explain-shot figcaption {
    margin-top: 10px; text-align: center;
    color: var(--text-dim); font-size: 0.88rem; line-height: 1.5;
}

/* back-to-contents link (end of each anchored section) */
.back-to-contents {
    text-align: center; margin-top: 36px;
}
.back-to-contents a {
    color: var(--text-dim); font-size: 0.82rem;
    text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.back-to-contents a:hover {
    color: var(--accent-light); border-bottom-color: var(--accent-light);
}

/* ===== mobile ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.9rem; }
    .hero .lead { font-size: 1rem; }
    section { padding: 56px 0; }
    .hero { padding: 64px 0 48px; }

    .hero-logo { margin-top: 32px; }
    .hero-logo img { width: 160px; height: 160px; border-radius: 24px; }
    .nav-inner { gap: 12px; padding: 12px 16px; }
    .nav-actions { gap: 8px; }
    .nav-logo-img { width: 32px; height: 32px; }
    .nav-brand-subtitle { display: none; }
    .nav-brand-name { font-size: 1.2rem; }
    .lang-switcher { padding: 4px 6px; font-size: 0.85rem; }

    /* show hamburger on mobile */
    .nav-hamburger { display: block; }

    /* drop backdrop-filter on mobile — it creates a containing block
       that breaks position:fixed for the slide-in menu */
    .site-nav { backdrop-filter: none; background: #0d1a3e; }

    /* mobile menu = list overlay slide-in (sits below sticky header) */
    .nav-menu {
        position: fixed; top: 57px; left: 0; right: 0; bottom: 0;
        background: linear-gradient(180deg, #0a1230 0%, #060a18 100%);
        flex-direction: column;
        align-items: stretch; justify-content: flex-start;
        gap: 0; padding: 8px 0 24px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 99;
        overflow-y: auto;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-menu a {
        font-size: 1.15rem; color: var(--text); font-weight: 500;
        padding: 18px 28px;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu a:hover, .nav-menu a:active {
        color: var(--accent-light);
        background: rgba(0, 212, 255, 0.06);
    }
    .nav-menu a.is-active {
        color: var(--text);
        background: rgba(0, 255, 136, 0.10);
        border-bottom-color: var(--border);
        box-shadow: inset 4px 0 0 var(--primary);
    }
    .mobile-only { display: block; }

    /* explanation page */
    .explain-modes { grid-template-columns: 1fr; gap: 16px; }
    .explain-figures { grid-template-columns: 1fr; gap: 16px; }
    .explain-toc { padding: 20px; }
    .explain-mode { padding: 22px 18px; }

    /* story */
    .story p { font-size: 0.98rem; line-height: 1.7; }
    .story-timeline li {
        display: flex; flex-direction: column; gap: 2px;
        padding: 10px 0 10px 18px;
    }
    .story-timeline .timeline-label { margin-right: 0; }

    /* footer */
    .site-footer { padding: 48px 0 20px; margin-top: 48px; }
    .footer-inner {
        grid-template-columns: 1fr; gap: 28px;
        text-align: center;
    }
    .footer-col h4 { margin-bottom: 10px; }
    .footer-col a { padding: 6px 0; }
    .footer-bottom { padding-top: 20px; margin-top: 20px; }
}
