/* ====== VoteCraft App — Coinbase-style Dashboard ====== */

:root {
    --primary: #2563eb;
    --teal: #14CCB0;
    --orange: #F32B44;
    --purple: #8b5cf6;
    --green: #16a34a;
    --bg: #fff;
    --bg-gray: #f9fafb;
    --border: #e5e7eb;
    --text: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-pill: 24px;
    --sidebar-width: 220px;
    --panel-width: 360px;
    --topbar-height: 56px;
}

/* Dark mode overrides */
body[data-theme="dark"] {
    --bg: #0f172a;
    --bg-gray: #1e293b;
    --border: #334155;
    --text: #f9fafb;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
}

body[data-theme="dark"] .topbar { background: #0f172a; }
body[data-theme="dark"] .sidebar { border-color: #334155; }
body[data-theme="dark"] .main-content { border-color: #334155; }
body[data-theme="dark"] .topbar-icon-btn { border-color: #334155; background: #0f172a; }
body[data-theme="dark"] .topbar-icon-btn svg { stroke: #94a3b8; }
body[data-theme="dark"] .np-initial { color: #f9fafb; }
body[data-theme="dark"] .asset-donate-btn { background: #1e293b; color: #f9fafb; }
body[data-theme="dark"] .asset-donate-btn:hover { background: #334155; }
body[data-theme="dark"] .panel-preset { border-color: #334155; color: #f9fafb; }
body[data-theme="dark"] .panel-preset:hover:not(.active) { background: #1e293b; }
body[data-theme="dark"] .panel-preset-input { border-color: #334155; color: #f9fafb; background: #0f172a; }
body[data-theme="dark"] .panel-field-icon svg { fill: #94a3b8; }
body[data-theme="dark"] .paired-game-name { color: #f9fafb; }
body[data-theme="dark"] .badge-card { border-color: #334155; }
body[data-theme="dark"] .tag-earning-info { border-color: #334155; }
body[data-theme="dark"] .tag-earning-row { border-color: #334155; }
body[data-theme="dark"] .onboarding-card { border-color: #334155; }
body[data-theme="dark"] .watchlist-empty { border-color: #334155; }
body[data-theme="dark"] .profile-card { border-color: #334155; }
body[data-theme="dark"] .privacy-row { border-color: #334155; }
body[data-theme="dark"] .tag-preview-card { border-color: #334155; }
body[data-theme="dark"] .sidebar-logo-svg path { fill: #f9fafb; }
body[data-theme="dark"] .sidebar-logo-svg .vca-logo-text { fill: #f9fafb; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; width: 100%; }
body { overflow-x: hidden; width: 100%; position: relative; }

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
}

/* ====== TOP BAR ====== */

.topbar {
    display: flex;
    align-items: center;
    height: var(--topbar-height);
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 100;
}

.topbar-search {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
}

.topbar-search-icon { flex-shrink: 0; }

.topbar-search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
}

.topbar-search-input::placeholder { color: var(--text-tertiary); }

.topbar-tagline {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.topbar-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

.topbar-icon-btn:hover { background: var(--bg-gray); }

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* ====== DASHBOARD GRID ====== */

.dashboard {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--panel-width);
    height: 100vh;
}

/* ====== LEFT SIDEBAR ====== */

.sidebar {
    border-right: 1px solid var(--border);
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

.sidebar-logo {
    display: block;
    padding: 20px 16px 28px;
    text-decoration: none;
}

.sidebar-logo-svg {
    width: 160px;
    height: auto;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border: none;
    background: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background 0.1s;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.sidebar-item {
    text-decoration: none;
    color: inherit;
}

a.asset-row,
a.panel-action-row,
a.section-arrow-btn,
a.watchlist-add-btn,
a.explore-all-btn {
    text-decoration: none;
    color: inherit;
}

a.explore-all-btn,
a.watchlist-add-btn {
    display: block;
    text-align: center;
}

.sidebar-item:hover { background: var(--bg-gray); }

.sidebar-item.active {
    background: #eff6ff;
    color: var(--primary);
}

.sidebar-item svg { flex-shrink: 0; }

/* ====== MAIN CONTENT ====== */

.main-content {
    overflow-y: auto;
    padding: 32px 40px;
    padding-top: calc(var(--topbar-height) + 32px);
    border-right: 1px solid var(--border);
    scrollbar-width: none;
}

.main-content::-webkit-scrollbar { display: none; }

.main-view { display: none; }
.main-view.active { display: block; }

.main-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.main-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ====== HOME HERO WITH SPINNING COIN ====== */

.home-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}

.home-hero .main-title { margin-bottom: 2px; }

.home-coin-size {
    width: 72px;
    height: 72px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.home-coin-size .coin {
    width: 72px;
    height: 72px;
}

.home-coin-size .coin-text {
    font-size: 1.8rem;
    color: #fff;
}

.balance-big {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 4px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0 0 12px;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.section-arrow-btn:hover { background: var(--bg-gray); }

/* ====== ASSET ROWS (Coinbase-style) ====== */

.asset-list {
    display: flex;
    flex-direction: column;
}

.asset-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.1s;
}

.asset-row:hover {
    background: var(--bg-gray);
    margin: 0 -8px;
    padding: 16px 8px;
    border-radius: var(--radius);
}

.asset-row:last-child { border-bottom: none; }

.asset-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.asset-icon-teal { background: var(--teal); }
.asset-icon-blue { background: var(--primary); }
.asset-icon-orange { background: var(--orange); }
.asset-icon-purple { background: var(--purple); }
.asset-icon-green { background: var(--green); }

.asset-icon-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.asset-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====== ABOUT PAGE: looser section spacing ======
   .section-title/.about-body/etc. are shared across every app page at a tighter default
   rhythm that suits their denser dashboard-style layouts. This page is mostly long-form
   reading, so it gets more breathing room -- scoped to .about-page (set on <main> in
   about.html) rather than changing the shared defaults everywhere else. */

.about-page .section-title { margin-top: 48px; margin-bottom: 10px; }
/* No :first-of-type reset here (unlike .tags-page): the first title, "What is VCA?",
   follows the rate card, so it needs the same 48px above it as every other title. */
.about-page .section-subtitle { margin-bottom: 20px; }
.about-page .about-body { margin-bottom: 20px; }
.about-page .flow-diagram { margin-bottom: 20px; }

/* About page's "100 VCA = $1" rate card, above the flow diagram - same bordered-card
   shell as .cashout-rate-card, with the flow diagram's round icons, enlarged. */
.vca-rate-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 32px;
}

.vca-rate-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.vca-rate-side {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vca-rate-icon { width: 56px; height: 56px; margin-bottom: 8px; }
.vca-rate-icon .flow-icon-text { font-size: 15px; }

.vca-rate-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

.vca-rate-equals {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-tertiary);
}

.vca-rate-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 12px;
}

.about-page .tag-earning-info { margin-bottom: 8px; }
.about-page .milestone-list { margin-bottom: 20px; }

/* ====== ALTRUISM TAGS PAGE: looser section spacing ======
   Same idea as .about-page above -- the default rhythm felt too tight between this page's
   five sections (Your Tags / Your Badges / How tags work / How you earn tag counts /
   All tag types), so it gets more room too, scoped to .tags-page rather than changing the
   shared defaults everywhere else. */

.tags-page .section-title { margin-top: 44px; margin-bottom: 8px; }
.tags-page .section-title:first-of-type { margin-top: 0; }
.tags-page .section-subtitle { margin-bottom: 16px; }
.tags-page .profile-tags { margin-bottom: 8px; }
.tags-page .badges-grid { margin-bottom: 8px; }
.tags-page .accordion-list { margin-bottom: 8px; }
.tags-page .tag-earning-info { margin-bottom: 8px; }
.tags-page .tags-grid-2x2 { margin-bottom: 8px; }

/* ====== WALLET PAGE: looser section spacing ======
   Same idea as .tags-page/.about-page: more room between the wallet card, Your VCA cards,
   Your Tags and Your Badges. No :first-of-type reset here - the first .section-title
   ("Your VCA cards") follows the wallet card, so it needs the full top margin too. */

.wallet-page .wallet-card { margin-bottom: 0; }
.wallet-page .section-title { margin-top: 48px; margin-bottom: 8px; }
.wallet-page .section-subtitle { margin-bottom: 16px; }
.wallet-page .profile-tags { margin-bottom: 8px; }
.wallet-page .badges-grid { margin-bottom: 8px; }

/* Alternating row stripe on the two tag-earning-info tables on this page (How VCA is
   different / Not a social score) -- first row shaded, then every other one. Scoped here
   rather than on .tag-earning-row everywhere, since tags.html's own table wasn't asked for
   this and already reads fine plain. */
.about-page .tag-earning-info .tag-earning-row:nth-child(odd) {
    background: color-mix(in srgb, var(--primary) 8%, var(--bg));
}

/* ====== ABOUT PAGE: body copy + "how it works" flow diagram ======
   New here (about.html), not reused elsewhere yet — reuses the existing asset-icon color
   variants/tokens rather than inventing a new palette. Horizontal on desktop, stacked with a
   downward arrow on mobile (matches how every other multi-column layout in this file collapses). */

.about-body {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.about-body a { color: var(--primary); text-decoration: none; }
.about-body a:hover { text-decoration: underline; }

.flow-diagram {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    margin: 0 0 28px;
    overflow-x: auto;
    padding: 24px 20px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-gray);
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150px;
    flex-shrink: 0;
}

.flow-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.flow-icon-teal { background: var(--teal); }
.flow-icon-blue { background: var(--primary); }
.flow-icon-purple { background: var(--purple); }
.flow-icon-green { background: var(--green); }

.flow-icon-text {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.flow-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.flow-caption {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.flow-arrow {
    color: var(--text-tertiary);
    font-size: 18px;
    flex-shrink: 0;
    padding-top: 12px;
}

@media (max-width: 640px) {
    .flow-diagram {
        flex-direction: column;
        align-items: stretch;
        overflow-x: visible;
    }
    /* Icon on the left spanning both rows; bold title stacked over its caption on the right. */
    .flow-step {
        width: 100%;
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto;
        column-gap: 14px;
        align-items: center;
        text-align: left;
    }
    .flow-icon { margin-bottom: 0; grid-column: 1; grid-row: 1 / span 2; }
    .flow-label { grid-column: 2; grid-row: 1; align-self: end; font-size: 15px; margin-bottom: 2px; }
    .flow-caption { grid-column: 2; grid-row: 2; align-self: start; font-size: 13px; }
    /* Arrow centered across the card, pointing down: the HTML's "→" is hidden
       (font-size 0) and a "↓" drawn in its place. */
    .flow-arrow { align-self: center; padding: 2px 0; font-size: 0; }
    .flow-arrow::before { content: "\2193"; font-size: 18px; }
}

.asset-info { flex: 1; min-width: 0; }


.asset-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-sub { font-size: 12px; color: var(--text-secondary); }

.asset-value {
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.asset-value-teal { color: var(--teal); }

/* Paired game recommendation */
.asset-paired-game {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.paired-game-plus {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.asset-row:has(.paired-game-plus) .asset-info {
    flex: 1;
}

.asset-row:has(.paired-game-plus) .asset-paired-game {
    flex: 1;
    justify-content: flex-start;
}

.asset-row:has(.paired-game-plus) .asset-donate-btn {
    flex: none;
}

.paired-game-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.paired-game-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.asset-donate-btn {
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--bg-gray);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    font-family: inherit;
    transition: background 0.15s;
}

.asset-donate-btn:hover { background: #e5e7eb; }

.asset-price-discount-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--orange);
    border-radius: var(--radius-pill);
    padding: 2px 7px;
}

.asset-price-regular {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-decoration: line-through;
}

.asset-price-bundled {
    font-size: 14px;
    font-weight: 700;
    color: var(--teal);
}

.asset-vca-hint {
    font-size: 12px;
    font-weight: 700;
    color: var(--teal);
    flex-shrink: 0;
}

/* Games list rows (#gamesList is unique to it). The description now lives in
   .accordion-content (see renderGamesList()), not inline, so the trigger row is just a
   single line on desktop and can use the plain .asset-row flex layout nonprofit rows
   already use — .asset-name just needs flex:1 to push the price cluster/arrow to the
   right, since it's no longer wrapped in a flex:1 .asset-info container. */
#gamesList .asset-name { flex: 1; min-width: 0; }

/* Mobile in-place foundation/game picker header (see openInlinePicker() in vca-app.js) -
   reuses .right-panel-close/.donate-summary-close's back-button look. */
.inline-picker-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.inline-picker-back {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
}
.inline-picker-title { font-size: 18px; font-weight: 700; }

/* ====== NONPROFIT ROW ====== */

/* Hidden until the row's hovered, or it's already watched (then it stays visible so
   there's still a way to un-star it without re-hovering to rediscover it). */
.watchlist-star-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--text);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.1s;
}

.asset-row:hover .watchlist-star-btn,
.watchlist-star-btn.watched {
    opacity: 1;
}

.watchlist-star-btn.watched {
    color: var(--text-secondary);
}

.np-category-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--bg-gray);
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.np-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    flex-shrink: 0;
}

/* Games page only - its icon circles (the emoji per game) use the same darker gray as the
   watchlist buttons; .np-initial's default var(--bg-gray) is shared with Explore/Watchlist's
   fallback-initial circles elsewhere, which weren't asked for here. */
#gamesList .np-initial {
    background: var(--border);
}

/* ====== WATCHLIST ====== */

.watchlist-empty {
    text-align: center;
    padding: 32px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
}

.watchlist-empty-circles {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    height: 48px;
}

.wl-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: absolute;
    top: 8px;
}

.wl-circle-yellow { background: var(--orange); left: calc(50% - 24px); z-index: 1; }
.wl-circle-blue { background: var(--primary); left: calc(50% - 8px); z-index: 2; top: 16px; }
.wl-circle-gray { background: var(--teal); left: calc(50% + 8px); z-index: 1; }
.wl-circle-plus {
    background: var(--orange);
    left: calc(50% + 2px);
    top: 0;
    z-index: 3;
    width: 20px;
    height: 20px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watchlist-empty-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

.watchlist-empty-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.watchlist-section {
    text-align: left;
    margin-bottom: 16px;
}

.watchlist-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.watchlist-add-btn,
.explore-all-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--bg-gray);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.watchlist-add-row {
    display: flex;
    gap: 8px;
}

.watchlist-add-row .watchlist-add-btn {
    width: auto;
    flex: 1;
}

.watchlist-add-btn {
    background: var(--border);
}

.watchlist-add-btn:hover {
    background: color-mix(in srgb, var(--text) 15%, var(--border));
}

.explore-all-btn:hover { background: #e5e7eb; }

.explore-all-btn { margin-top: 12px; }

/* ====== EARN ALTRUISM TAGS PREVIEW ====== */

.tags-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tag-preview-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    align-items: flex-start;
}

/* ====== ACCORDION ====== */

.accordion-list {
    display: flex;
    flex-direction: column;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-item:last-child { border-bottom: none; }

.accordion-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.1s;
}

.accordion-trigger:hover {
    background: var(--bg-gray);
    margin: 0 -8px;
    padding: 16px 8px;
    border-radius: var(--radius);
}

.accordion-arrow {
    font-size: 20px;
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: transform 0.25s;
}

.accordion-item.open .accordion-arrow {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0 0 48px;
}

.accordion-item.open .accordion-content {
    max-height: 400px;
    padding: 0 0 16px 48px;
}

.accordion-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.accordion-link-btn {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.accordion-link-btn:hover {
    text-decoration: underline;
}

.accordion-list--cards {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.accordion-list-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 600px) {
    .accordion-list--cards { flex-direction: column; }
}

.accordion-list--cards .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0 16px;
}

.accordion-list--cards .accordion-item:last-child {
    border-bottom: 1px solid var(--border);
}

.accordion-list--cards .accordion-content {
    padding-left: 0;
}

.accordion-list--cards .accordion-item.open .accordion-content {
    padding: 0 0 16px;
}

.tags-grid-2x2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ====== TAG EARNING INFO ====== */

.tag-earning-info {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 8px;
}

.tag-earning-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.tag-earning-row:last-child { border-bottom: none; }

.tag-earning-action {
    font-size: 14px;
    font-weight: 600;
}

.tag-earning-result {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
}

@media (max-width: 600px) {
    .tags-grid-2x2 { grid-template-columns: 1fr; }
    .tag-earning-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .tag-earning-result { text-align: left; }
}

/* ====== BADGES ====== */

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.badge-card {
    border: 3px solid var(--primary);
    border-radius: 50%;
    aspect-ratio: 1;
    padding: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered, not top-anchored: a 2-line badge name (e.g. "Democracy Advocate")
       otherwise pushes the progress bar/text down toward the circle's narrower lower
       edge, where overflow:hidden clips it - centering keeps the whole cluster around
       the circle's widest point regardless of how many lines the name wraps to. */
    justify-content: center;
    transition: background 0.15s ease;
    cursor: pointer;
}

.badge-card:hover, .badge-card.open {
    background: var(--primary);
}

.badge-card .badge-progress-bar {
    width: 80%;
}

.badge-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.4;
}

.badge-icon-earned {
    opacity: 1;
}

.badge-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0;
    color: var(--primary);
}

.badge-icon, .badge-name, .badge-progress-bar, .badge-progress-text {
    transition: opacity 0.15s ease;
}

.badge-card:hover .badge-icon,
.badge-card:hover .badge-name,
.badge-card:hover .badge-progress-bar,
.badge-card:hover .badge-progress-text,
.badge-card.open .badge-icon,
.badge-card.open .badge-name,
.badge-card.open .badge-progress-bar,
.badge-card.open .badge-progress-text {
    opacity: 0;
}

/* .badge-req fills the circle on hover, replacing the icon/name/progress rather than
   floating above the card — the full category breakdown only shows up when you want it.
   Hover alone isn't reachable on touch devices, so tapping a badge (see js/vca-app.js)
   toggles the same .open class the rest of this file's :hover rules key off. */
.badge-req {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.badge-card:hover .badge-req, .badge-card.open .badge-req {
    opacity: 1;
}

.badge-progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 14px;
    margin-bottom: 4px;
}

.badge-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s;
}

.badge-progress-text {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* Wallet's $5 off cards (wallet.html): the same badge, squared off. Locked = upcoming
   cards past the one currently filling, grayed out until earlier cards are earned. */
.badge-card--square { border-radius: var(--radius-lg); }

.badge-card--locked { border-color: var(--border); }
.badge-card--locked .badge-name,
.badge-card--locked .badge-progress-text { color: var(--text-tertiary); }
.badge-card--locked:hover, .badge-card--locked.open { background: var(--text-tertiary); }

/* Wallet's always-first "Our thank you card": solid blue with white text, and it stays
   that way on hover/tap (no .badge-req to reveal, so the name never fades out). */
.badge-card--thanks { background: var(--primary); border-color: var(--primary); cursor: default; }
.badge-card--thanks .badge-name { color: #fff; }
.badge-card--thanks:hover .badge-name, .badge-card--thanks.open .badge-name { opacity: 1; }

.tag-type-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}

@media (max-width: 600px) {
    .tags-preview-grid { grid-template-columns: 1fr; }
}

/* ====== ONBOARDING ====== */

.onboarding-card {
    border: none;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-top: 24px;
    background: var(--primary);
    color: #fff;
}

.onboarding-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.onboarding-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.onboarding-title { font-weight: 700; font-size: 15px; }
.onboarding-progress { margin-left: auto; font-size: 12px; color: rgba(255, 255, 255, 0.7); }

.onboarding-steps { display: flex; flex-direction: column; gap: 8px; }

.onboarding-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.onboarding-step.done { font-weight: 700; cursor: default; }

.onboarding-step:not(.done):hover { font-weight: 700; }

.step-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.step-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.step-arrow { margin-left: auto; color: rgba(255, 255, 255, 0.5); }

/* ====== EXPLORE SEARCH & CHIPS ====== */

.explore-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 12px;
}

.explore-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    flex: 1;
    min-width: 0;
}

.explore-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    flex-shrink: 0;
}

.explore-filter-btn:hover { background: var(--border); }

.explore-filter-count {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.explore-search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
}

.explore-search-input::placeholder { color: var(--text-tertiary); }

.explore-search-clear {
    background: #e5e7eb;
    border: none;
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explore-count { font-size: 12px; color: var(--text-tertiary); margin-bottom: 4px; }

.explore-empty { text-align: center; padding: 48px 16px; }
.explore-empty-icon { font-size: 48px; margin-bottom: 12px; }
.explore-empty-text { font-size: 14px; color: var(--text-secondary); }

/* ====== FILTER BY CAUSE MODAL (explore.html) ====== */

.filter-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 399;
}

.filter-modal-overlay.open { display: block; }

.filter-modal {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: calc(100vw - 32px);
    max-height: 80vh;
    background: var(--bg);
    border-radius: var(--radius-lg);
    z-index: 400;
    overflow: hidden;
}

.filter-modal.open { display: flex; }

.filter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.filter-modal-title { font-size: 16px; font-weight: 700; }

.filter-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

.filter-modal-body {
    padding: 4px 20px;
    overflow-y: auto;
    flex: 1;
}

.filter-tag-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 10px;
}

.filter-tag-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    padding: 5px 0;
}

.filter-tag-checkbox {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-modal-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.filter-clear-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 8px 4px;
    white-space: nowrap;
}

.filter-clear-btn:hover { color: var(--text); }

.panel-clear-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    padding: 10px 4px 0;
}

.panel-clear-btn:hover { color: var(--text-secondary); }

/* Donate breakdown modal — adapted from the marketing site's demo-summary
   (js/vca-coin-demo.js, css/vca-coin-demo.css) with the same math, ported to
   this app's real NONPROFITS/GAMES data and using CSS variables so it
   supports dark mode like the rest of this file. */

.donate-summary-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 399;
}

.donate-summary-overlay.open { display: block; }

.donate-summary-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100vw - 32px);
    max-height: 85vh;
    overflow-y: auto;
    z-index: 400;
}

.donate-summary-modal.open { display: block; }

.donate-summary-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    z-index: 1;
}

.demo-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    width: 380px;
    max-width: calc(100vw - 32px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.demo-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.demo-summary-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.demo-summary-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.demo-summary-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.demo-summary-price-final {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
}

.demo-summary-split { padding: 4px 0; }

.demo-summary-split-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.demo-summary-gift-name-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.demo-summary-gift-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.demo-summary-gift-name svg { flex-shrink: 0; }
body[data-theme="dark"] .demo-summary-gift-name svg { color: #94a3b8; }


.demo-summary-gift-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.demo-summary-gift-option {
    flex: 1;
    background: var(--bg-gray);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 10px;
    cursor: pointer;
}

.demo-summary-gift-option.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.demo-summary-split-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.demo-summary-split-icon { display: flex; flex-shrink: 0; }
.demo-summary-split-icon svg { width: 18px; height: 18px; }
body[data-theme="dark"] .demo-summary-split-icon svg { fill: #94a3b8; }

.demo-summary-split-name {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 500;
}

.demo-summary-cause-name { font-size: 0.95rem; font-weight: 700; }

.demo-summary-split-amount {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
}

#summaryGameShare { color: var(--primary); }

#summarySavings { color: var(--teal); }

.demo-summary-split-cause { color: var(--teal); }

.summary-was-price {
    color: var(--text-tertiary);
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 2px;
}

.demo-summary-split-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0 4px;
    background: var(--bg-gray);
}

.demo-summary-split-fill-game { background: var(--primary); height: 100%; }
.demo-summary-split-fill-cause { background: var(--teal); height: 100%; }

.demo-summary-tags-block { margin-top: 16px; text-align: center; }

.demo-summary-tags-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.demo-summary-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-modal-footer .panel-primary-btn { flex: 1; margin: 0; }

#summaryContinueBtn { margin-top: 15px; }

/* ====== RIGHT PANEL ====== */

.right-panel {
    padding: 24px;
    padding-top: calc(var(--topbar-height) + 24px);
    overflow-y: auto;
}

.panel-tabs {
    display: flex;
    background: var(--bg-gray);
    border-radius: var(--radius-pill);
    padding: 3px;
    margin-bottom: 12px;
}

.panel-tab {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: var(--radius-pill);
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.panel-tab.active { background: var(--primary); color: #fff; }

.panel-tab-content { display: none; }
.panel-tab-content.active { display: block; }

.panel-amount-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
    margin-top: 8px;
}

.panel-amount-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-tertiary);
}

.panel-amount-value.has-value { color: var(--text); }

.panel-amount-currency {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-tertiary);
}

.panel-amount-discount-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--orange);
    border-radius: var(--radius-pill);
    padding: 2px 7px;
    margin-left: 4px;
}

.panel-amount-vca {
    text-align: center;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 12px;
}

#panelEarnVca {
    margin-top: 4px;
    margin-bottom: 12px;
}

.panel-amount-presets {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.panel-preset {
    flex: 1;
    padding: 8px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.panel-preset.active { background: var(--text); color: #fff; border-color: var(--text); }
.panel-preset:hover:not(.active) { background: var(--bg-gray); }

.panel-preset-input {
    flex: 1;
    padding: 8px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    font-family: inherit;
    text-align: center;
    outline: none;
    min-width: 0;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}

.panel-preset-input::-webkit-outer-spin-button,
.panel-preset-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.panel-preset-input:focus {
    border-color: var(--primary);
}

.panel-preset-input.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.panel-preset-input::placeholder { color: var(--text-tertiary); font-weight: 600; }

.panel-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    margin: 0 -24px;
    border-top: 1px solid var(--border);
    cursor: pointer;
}

.panel-field-icon { font-size: 18px; display: flex; align-items: center; }
.panel-field-icon svg { width: 26px; height: 26px; }
.panel-field-info { flex: 1; }
.panel-field-label { font-size: 12px; color: var(--text-secondary); }
.panel-field-value { font-size: 14px; font-weight: 600; }
.panel-field-arrow { font-size: 18px; color: var(--text-tertiary); }

.panel-primary-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: 4px;
    transition: opacity 0.15s;
}

.panel-primary-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.panel-primary-btn:not(:disabled):hover { opacity: 0.9; }

.panel-info-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 16px 0;
}



.panel-divider { height: 1px; background: var(--border); margin: 20px -24px; }

.panel-actions { display: flex; flex-direction: column; gap: 4px; }

.panel-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    font-family: inherit;
    text-align: left;
    width: 100%;
    transition: background 0.1s;
}

.panel-action-row:hover {
    background: var(--bg-gray);
    margin: 0 -8px;
    padding: 12px 8px;
    border-radius: var(--radius);
}

.panel-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.panel-action-blue { background: var(--primary); }
.panel-action-teal { background: var(--primary); }
.panel-action-green { background: var(--primary); }
.panel-action-purple { background: var(--primary); }

.panel-action-arrow { margin-left: auto; font-size: 18px; color: var(--text-tertiary); }

/* ====== PROFILE ====== */

.profile-card {
    text-align: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin: 16px 0;
}

.profile-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.profile-name-lg { font-size: 20px; font-weight: 700; }
.profile-badge-lg { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.tag-pill {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
}

.tag-contribution { background: rgba(20, 204, 176, 0.15); color: #0d9488; }
.tag-impact { background: rgba(37, 99, 235, 0.15); color: #2563eb; }
.tag-effort { background: rgba(243, 43, 68, 0.15); color: #dc2626; }
.tag-culture { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }
.tag-count { font-size: 11px; opacity: 0.7; }

.engagement-tags-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .engagement-tags-grid { grid-template-columns: 1fr; }
}

.engagement-tag-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.engagement-tag-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.privacy-list { display: flex; flex-direction: column; }

.privacy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.privacy-title { font-size: 14px; font-weight: 600; }
.privacy-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle input:checked + .toggle-slider { background: #2563eb; }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ====== MAIN FOOTER ====== */

.main-footer {
    margin-top: 48px;
    padding-bottom: 24px;
}

.main-footer-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 16px;
    margin-left: -40px;
    margin-right: -40px;
    max-width: none;
}

.main-footer-links {
    display: flex;
    gap: 24px;
}

.main-footer-link {
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: none;
}

/* ====== CASH OUT PAGE ====== */

.cashout-rate-card {
    text-align: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
}

.cashout-rate-big {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.cashout-rate-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Wallet card (wallet.html) - same bordered-card shell as .cashout-rate-card: balance,
   what it's worth in $5 off cards, and the cash-out alternative. The $5 off cards
   themselves are .badge-card--square below. */
.wallet-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
}

.wallet-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.wallet-card-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.wallet-card-balance {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.wallet-card-worth {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-top: 12px;
}

.wallet-card-status {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.milestone-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.milestone-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.milestone-active {
    border-color: var(--primary);
    background: #eff6ff;
}

body[data-theme="dark"] .milestone-active {
    background: rgba(37, 99, 235, 0.15);
}

.milestone-locked {
    opacity: 0.5;
}

.milestone-bar {
    width: 40px;
    height: 6px;
    background: var(--bg-gray);
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.milestone-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

.milestone-info {
    flex: 1;
}

.milestone-label {
    font-size: 14px;
    font-weight: 600;
}

.milestone-rate {
    font-size: 12px;
    color: var(--text-secondary);
}

.milestone-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.milestone-badge-current {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
}

/* ====== INFOGRAPHIC ====== */

.infographic {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    margin-top: 24px;
    text-align: center;
}

.infographic-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 24px;
}

.infographic-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.infographic-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 6px;
}

.infographic-circle-blue { background: var(--primary); }
.infographic-circle-teal { background: var(--teal); }
.infographic-circle-dark { background: #111827; }
.infographic-circle-gray { background: #6b7280; }

body[data-theme="dark"] .infographic-circle-dark { background: #e5e7eb; color: #111827; }

.infographic-arrow {
    font-size: 24px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.infographic-arrow-down {
    font-size: 24px;
    color: var(--text-tertiary);
    margin: 16px 0;
}

.infographic-split {
    display: flex;
    gap: 20px;
}

.infographic-branch {
    text-align: center;
}

.infographic-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}

.infographic-sublabel {
    font-size: 11px;
    color: var(--text-tertiary);
}

.infographic-rewards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
}

.infographic-reward {
    display: flex;
    align-items: center;
    gap: 6px;
}

.infographic-reward-icon {
    font-size: 20px;
}

.infographic-reward-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.infographic-reward-plus {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.infographic-footer {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Fee timeline infographic */

.fee-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 0 8px;
    margin-bottom: 32px;
}

.fee-timeline-track {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.fee-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.fee-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--border);
    margin-bottom: 8px;
}

.fee-dot-active {
    border-color: var(--primary);
    background: var(--primary);
}

.fee-dot-goal {
    border-color: var(--teal);
    background: var(--teal);
}

.fee-stage-info {
    text-align: center;
}

.fee-stage-users {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
}

.fee-stage-pct {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.fee-stage-pct-goal {
    color: var(--teal);
    font-weight: 700;
}

.fee-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.fee-compare-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    text-align: center;
    flex: 1;
    max-width: 220px;
}

.fee-compare-card-goal {
    border-color: var(--teal);
    background: rgba(20, 204, 176, 0.05);
}

body[data-theme="dark"] .fee-compare-card-goal {
    background: rgba(20, 204, 176, 0.1);
}

.fee-compare-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.fee-compare-split {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
}

.fee-compare-you {
    color: var(--text);
}

.fee-compare-you-goal {
    color: var(--teal);
}

.fee-compare-vca {
    color: var(--text-tertiary);
}

.fee-compare-arrow {
    font-size: 20px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .infographic-flow { flex-direction: column; }
    .infographic-split { flex-direction: column; gap: 12px; }
    .infographic-arrow { transform: rotate(90deg); }
    .infographic-rewards { flex-direction: column; gap: 8px; }
    .fee-comparison { flex-direction: column; }
    .fee-compare-arrow { transform: rotate(90deg); }
    .fee-compare-card { max-width: none; }
    .fee-stage-users { font-size: 10px; }
    .fee-stage-pct { font-size: 10px; }
}

.main-footer-link:hover {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* ====== LEGAL PAGE ====== */

.legal-disclaimer {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 8px;
}

body[data-theme="dark"] .legal-disclaimer {
    background: #1e293b;
}

.legal-section {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 6px;
}

.legal-section p {
    margin: 8px 0;
}

.legal-section ul {
    margin: 8px 0 8px 20px;
}

.legal-section li {
    margin: 4px 0;
}

/* ====== RESPONSIVE ====== */

/* Hidden on large desktop, shown via media query */
.mobile-cta-bar { display: none; }
.right-panel-drag-handle { display: none; }
.right-panel-close { display: none; }

/* Hamburger button (hidden on desktop) */
.hamburger-btn {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.hamburger-btn.open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-btn.open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
}

.sidebar-overlay.open { display: block; }

@media (max-width: 1024px) {
    .dashboard { grid-template-columns: 1fr; display: block; width: 100%; max-width: 100vw; overflow-x: hidden; }

    /* .right-panel becomes the mobile bottom sheet's content - animated via `bottom`,
       never `transform`, since #donateSummaryModal inside it centers itself against the
       viewport with `transform: translate(-50%,-50%)`; a transform on this ancestor would
       create a new containing block and break that centering. */
    .right-panel {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: -100%;
        top: auto;
        width: 100%;
        max-height: 80vh;
        background: var(--bg);
        padding: 20px;
        padding-top: 12px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
        z-index: 300;
        overflow-y: auto;
        transition: bottom 0.3s ease;
    }
    .right-panel.open { bottom: 0; }

    /* A thin 36x4 visible bar, but the draggable/tappable element itself is a wider,
       taller invisible zone around it (via ::before), since 36x4 alone is too small a
       touch target to reliably grab. */
    .right-panel-drag-handle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 24px;
        margin: -8px 0 4px;
        touch-action: none;
        cursor: grab;
    }
    .right-panel-drag-handle::before {
        content: '';
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: var(--border);
    }

    .right-panel-close {
        display: block;
        position: absolute;
        top: 12px;
        right: 16px;
        background: none;
        border: none;
        font-size: 22px;
        line-height: 1;
        color: var(--text-secondary);
        cursor: pointer;
        padding: 4px;
        z-index: 1;
    }

    /* The large $XX number just repeats the highlighted preset button and eats vertical
       space in the sheet, pushing the foundation/game fields and submit button further
       down than the sheet's own max-height comfortably shows. */
    .panel-amount-input { display: none; }

    /* Progressive reveal (Donate tab only), 3 steps:
       1. Only "Donate to" shows.
       2. Picking a foundation (selectNonprofit() adds .donate-revealed) reveals "Get a
          gift" too.
       3. Picking a game (selectGame() adds .donate-fully-revealed) reveals the rest -
          amount, reciprocity row, Donate button, VCA text, Clear button. */
    #panelDonate:not(.donate-revealed) #panelGetGiftField {
        display: none;
    }
    #panelDonate:not(.donate-fully-revealed) .panel-amount-presets,
    #panelDonate:not(.donate-fully-revealed) .panel-field:not(#panelNonprofitField):not(#panelGetGiftField),
    #panelDonate:not(.donate-fully-revealed) #panelDonateBtn,
    #panelDonate:not(.donate-fully-revealed) #panelAmountVca,
    #panelDonate:not(.donate-fully-revealed) #panelClearBtn {
        display: none;
    }

    /* Cash Out VCA / Send VCA quick links don't belong in the mobile donate sheet at
       all - not part of the progressive reveal above, just removed outright. */
    .panel-actions { display: none; }

    .topbar { left: 0; width: 100%; }

    .hamburger-btn { display: flex; }

    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100vh;
        z-index: 200;
        background: var(--bg);
        transition: left 0.25s ease;
        box-shadow: none;
    }

    .sidebar.open {
        left: 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .main-content {
        border-right: none;
        padding: 16px;
        padding-top: calc(var(--topbar-height) + 16px);
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        padding-bottom: 100px;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        width: 100%;
    }

    .dashboard {
        height: auto;
        min-height: calc(100vh - var(--topbar-height));
        overflow-x: hidden;
    }

    /* Stack hero vertically */
    .home-hero {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .main-title {
        font-size: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .home-coin-size, .home-coin-size .coin {
        width: 52px;
        height: 52px;
    }

    .home-coin-size .coin-text { font-size: 1.2rem; }

    /* Kill ALL negative margins */
    .main-footer-divider { margin-left: 0 !important; margin-right: 0 !important; }
    .panel-field { margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
    .panel-divider { margin-left: 0 !important; margin-right: 0 !important; }

    /* Bundled Reciprocity — horizontal scroll on mobile */
    #featuredNonprofits {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 12px;
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
    }

    #featuredNonprofits::-webkit-scrollbar { height: 4px; }
    #featuredNonprofits::-webkit-scrollbar-track { background: transparent; }
    #featuredNonprofits::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

    #featuredNonprofits .asset-row {
        flex-shrink: 0;
        width: 280px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        border-bottom: 1px solid var(--border);
        scroll-snap-align: start;
    }

    #featuredNonprofits .asset-row:hover {
        margin: 0;
        padding: 12px;
    }

    #featuredNonprofits .asset-paired-game { margin-left: 0; }

    .np-category-badge { display: none !important; }

    /* Constrain all children */
    .accordion-list, .asset-list, .onboarding-card, .watchlist-empty,
    .tags-preview-grid, .tag-earning-info, .badges-grid, .milestone-list,
    .infographic, .legal-section, .legal-disclaimer, .profile-card,
    .privacy-list, .home-hero {
        max-width: 100%;
        overflow: hidden;
    }

    /* Mobile CTA bar */
    .mobile-cta-bar {
        display: flex;
        gap: 12px;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg);
        border-top: 1px solid var(--border);
        z-index: 150;
    }

    .mobile-cta-btn {
        flex: 1;
        padding: 14px 0;
        border-radius: var(--radius-pill);
        font-size: 14px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        border: none;
        text-align: center;
    }

    .mobile-cta-btn-outline {
        background: var(--bg);
        color: var(--primary);
        border: 2px solid var(--border);
    }

    .mobile-cta-btn-fill {
        background: var(--primary);
        color: #fff;
    }
}

@media (max-width: 600px) {
    .main-content { padding: 16px; padding-top: calc(var(--topbar-height) + 16px); width: 100%; max-width: 100vw; }

    /* 3-up CTA bar (Donate/Buy/Get VCA) needs tighter spacing on narrow phones */
    .mobile-cta-bar { gap: 8px; padding: 10px 12px; }
    .mobile-cta-btn { padding: 12px 0; font-size: 13px; }

    /* Kill all negative margins on mobile */
    .main-footer-divider { margin-left: 0 !important; margin-right: 0 !important; }
    .panel-field { margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
    .panel-divider { margin-left: 0 !important; margin-right: 0 !important; }
    .asset-row:hover { margin: 0; }

    .main-title { font-size: 22px; }
    .balance-big { font-size: 24px; }
    .section-title { font-size: 16px; }

    /* Topbar */
    .topbar { padding: 0 12px; }
    .topbar-tagline { font-size: 12px; }

    /* Home hero */
    .home-hero { gap: 12px; flex-direction: column; text-align: center; }
    .home-coin-size, .home-coin-size .coin { width: 52px; height: 52px; }
    .home-coin-size .coin-text { font-size: 1.2rem; }
    .main-title { font-size: 20px; word-wrap: break-word; }

    /* Accordion */
    .accordion-trigger { padding: 12px 0; }
    .accordion-content { padding: 0 0 0 40px; }
    .accordion-item.open .accordion-content { padding: 0 0 12px 40px; }

    /* Asset rows — general phone-width tightening (applies to every .asset-row: games,
       foundations, etc.). Truncate the description the same way the name already is. */
    .asset-row { padding: 12px 0; gap: 8px; }
    .asset-row:hover { margin: 0; padding: 12px 0; }
    .asset-icon, .asset-icon-img, .np-initial { width: 30px; height: 30px; }
    .asset-name { font-size: 13px; }
    .asset-sub {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Games list rows only (#gamesList is unique to it — foundation/nonprofit rows
       elsewhere have no price column at all). Regular price stays on the title row next
       to the name (same font size as the name); the discount badge sits directly below
       the name, and the final (discounted) price sits directly below the regular price.
       The description lives in .accordion-content, not inline, so there's no desc row
       here at all. */
    #gamesList .asset-row {
        display: grid;
        grid-template-columns: 30px 1fr auto auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "icon name  regular arrow"
            "icon badge bundled arrow";
        align-items: center;
        column-gap: 8px;
        row-gap: 2px;
    }
    #gamesList .np-initial { grid-area: icon; }
    #gamesList .asset-name {
        grid-area: name;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #gamesList .asset-price-regular { grid-area: regular; justify-self: start; }
    #gamesList .asset-price-discount-badge { grid-area: badge; justify-self: start; }
    #gamesList .asset-price-bundled { grid-area: bundled; justify-self: start; }
    #gamesList .accordion-arrow { grid-area: arrow; }
    #gamesList .asset-price-regular,
    #gamesList .asset-price-bundled { font-size: 13px; }
    #gamesList .asset-price-discount-badge { font-size: 10px; padding: 2px 6px; }
    /* No room in this row's 4-column grid, and hover-to-reveal doesn't apply on touch anyway
       (same reasoning as .np-category-badge being hidden on mobile elsewhere) — watched state
       still persists in localStorage, just not shown here until there's a mobile affordance. */
    #gamesList .watchlist-star-btn { display: none; }

    /* Onboarding */
    .onboarding-card { padding: 12px 16px; margin-left: 0; margin-right: 0; }

    /* Prevent any overflow */
    .accordion-list, .asset-list, .onboarding-card, .watchlist-empty,
    .tags-preview-grid, .tag-earning-info, .badges-grid, .milestone-list {
        max-width: 100%;
        overflow: hidden;
    }

    /* Watchlist */
    .watchlist-empty { padding: 24px 12px; }

    /* Tags */
    .tags-grid-2x2 { grid-template-columns: 1fr; }
    .tags-preview-grid { grid-template-columns: 1fr; }
    .badges-grid { grid-template-columns: 1fr 1fr; }
    .tag-earning-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .tag-earning-result { text-align: left; }

    /* Badge circles: smaller text/icon so the progress bar + fraction reliably fit
       inside the circle at 2-column mobile width, regardless of how many lines the
       badge name wraps to. */
    .badge-card { padding: 12px; }
    .badge-icon { font-size: 22px; margin-bottom: 4px; }
    .badge-name { font-size: 13px; line-height: 1.2; }
    .badge-progress-bar { margin-top: 8px; margin-bottom: 3px; }
    .badge-progress-text { font-size: 11px; }
    .badge-req { font-size: 11px; padding: 14px; }

    /* Cashout page */
    .cashout-rate-card { padding: 16px; }
    .wallet-card { padding: 16px; }
    .wallet-card-balance { font-size: 26px; }
    .cashout-rate-big { font-size: 36px; }
    .milestone-item { padding: 10px 12px; gap: 10px; }
    .milestone-label { font-size: 13px; }

    /* Infographic */
    .infographic { padding: 20px 16px; }
    .infographic-title { font-size: 14px; }
    .infographic-flow { flex-direction: column; gap: 12px; }
    .infographic-split { flex-direction: column; gap: 12px; }
    .infographic-arrow { transform: rotate(90deg); }
    .infographic-circle { width: 52px; height: 52px; font-size: 12px; }
    .infographic-rewards { flex-direction: column; gap: 8px; padding: 12px 16px; }
    .infographic-reward-text { font-size: 12px; }

    /* Fee timeline */
    .fee-timeline { gap: 4px; }
    .fee-stage-users { font-size: 9px; }
    .fee-stage-pct { font-size: 9px; }
    .fee-dot { width: 14px; height: 14px; }
    .fee-comparison { flex-direction: column; gap: 8px; }
    .fee-compare-arrow { transform: rotate(90deg); }
    .fee-compare-card { max-width: none; }

    /* Dividers full bleed — match 16px mobile padding */
    .main-footer-divider { margin-left: -16px !important; margin-right: -16px !important; }

    /* Prevent overflow */
    .main-content { overflow-x: hidden; max-width: 100vw; width: 100%; }
    .infographic { overflow: hidden; }
    .fee-timeline { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tag-earning-info { overflow: hidden; }
    .panel-amount-presets { flex-wrap: wrap; }

    /* Profile */
    .profile-card { padding: 16px; }
    .profile-avatar-lg { width: 48px; height: 48px; font-size: 18px; }
    .profile-name-lg { font-size: 18px; }
    .privacy-row { flex-direction: row; gap: 12px; }

    /* Legal */
    .legal-section { font-size: 13px; }
    .legal-disclaimer { padding: 12px 16px; font-size: 13px; }

    /* Footer */
    .main-footer-links { flex-direction: column; gap: 8px; }

}
