/**
 * Patron Hub Page Styles
 *
 * The page chrome (jagged left/right + green torn top/bottom) comes from the
 * shared .prv2-page primitive in patron-requests.css. This file only handles
 * Hub-specific layout: header, board-panel sections, stats, sticker grid,
 * request items, activity log, settings form.
 *
 * Patreon palette accents applied via the --salmon/--coral-deep tokens
 * inherited from .prv2-page. Local --hub-accent token kept for forward
 * flexibility if we later want a non-coral accent.
 */

/* ============================================================
   LAYOUT — board-panel sections inside the prv2-page card
   ============================================================ */

.prv2-page.patron-hub-card {
    --hub-accent: var(--coral-deep);   /* Patreon-flavored accent */
    --hub-accent-soft: rgba(233, 76, 67, 0.18);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.patron-hub-header {
    text-align: center;
    margin-bottom: 4px;
}

.patron-hub-header h2 {
    margin: 0 0 6px;
    font-size: 2rem;
    font-weight: 950;
    color: var(--cream, #fff0c7);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.patron-hub-header .patron-hub-greeting {
    margin: 0;
    color: #c9c9c9;
    font-size: 1rem;
}

/* ============================================================
   DISPLAY PREVIEW CHIP — your supporter-bar entry, top of Hub
   ============================================================ */

.patron-hub-display-chip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 240, 199, 0.1);
    border-left: 3px solid var(--coral-deep, #e94c43);
    border-radius: 10px;
    flex-wrap: wrap;
}

.patron-hub-display-chip-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.patron-hub-display-chip-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888;
    font-weight: 700;
}

.patron-hub-display-chip-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    line-height: 1.2;
}

.patron-hub-display-chip-sprite img {
    image-rendering: pixelated;
    vertical-align: middle;
}

.patron-hub-display-chip-empty {
    color: #888;
    font-size: 0.95rem;
}

.patron-hub-display-chip-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: #888;
    font-style: italic;
}

.patron-hub-display-chip-btn {
    flex: 0 0 auto;
    font-size: 0.85rem;
    padding: 8px 16px;
}

/* Smooth scroll for the in-page anchor */
html:has(a[href="#supporter-settings"]) {
    scroll-behavior: smooth;
}

#supporter-settings {
    scroll-margin-top: 100px; /* clear the fixed nav */
}

/* Reusable board panel padding — applied to every dashboard section */
.patron-hub-panel {
    padding: 22px 26px;
}

.patron-hub-panel > h3:first-child,
.patron-hub-panel > h2:first-child {
    margin-top: 0;
}

.prv2-page h2 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    color: #fff;
}

.prv2-page h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--cream, #fff0c7);
    border-bottom: 1px solid rgba(255, 240, 199, 0.15);
    padding-bottom: 8px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.prv2-page h4 {
    margin: 18px 0 8px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--cream, #fff0c7);
}

.prv2-page p {
    margin: 0 0 12px;
    line-height: 1.5;
    color: #c9c9c9;
}

/* ============================================================
   NOT SIGNED IN STATE
   ============================================================ */

.patron-hub-signin {
    text-align: center;
}

.patron-hub-signin p {
    color: #c9c9c9;
}

.patron-hub-signin-link {
    margin-top: 12px !important;
    font-size: 0.9rem;
}

.patron-hub-signin-link a {
    color: var(--salmon, #f96854);
    text-decoration: none;
}

.patron-hub-signin-link a:hover {
    color: var(--salmon-hover, #fa7c6a);
    text-decoration: underline;
}

/* ============================================================
   STATS OVERVIEW (points, tier, stickers)
   ============================================================ */

.patron-hub-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.patron-hub-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    border: 1px solid rgba(255, 240, 199, 0.08);
}

.patron-hub-stat .prv2-coin {
    margin-bottom: 4px;
}

.patron-hub-stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 950;
    color: var(--cream, #fff0c7);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.patron-hub-stat-value.points-balance {
    color: var(--coin-gold, #ffc936);
}

.patron-hub-stat-label {
    display: block;
    font-size: 0.78rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* Tier badge colors */
.patron-hub-stat-value.tier-bronze { color: #cd7f32; }
.patron-hub-stat-value.tier-silver { color: #c0c0c0; }
.patron-hub-stat-value.tier-gold   { color: #ffd700; }

/* ============================================================
   PATREON ACCOUNT LINK
   ============================================================ */

.patron-hub-patreon-linked {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 240, 199, 0.08);
    border-left: 3px solid var(--coral-deep, #e94c43);
    border-radius: 10px;
    padding: 18px 20px;
}

.patron-hub-patreon-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.patron-hub-patreon-sprite {
    flex-shrink: 0;
}

.patron-hub-patreon-sprite img {
    image-rendering: pixelated;
}

.patron-hub-patreon-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.patron-hub-patreon-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.patron-hub-patreon-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.patron-hub-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.patron-hub-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.patron-hub-status-badge-active {
    background: rgba(77, 164, 75, 0.15);
    border: 1px solid #4da44b;
    color: #6ed06c;
}

.patron-hub-status-badge-former {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #b8860b;
    color: #daa520;
}

.patron-hub-peak-tier {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 16px;
}

/* Month timeline */
.patron-hub-months-section {
    margin-top: 16px;
}

.patron-hub-months-header {
    margin-bottom: 10px;
}

.patron-hub-months-count {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 600;
}

.patron-hub-months-timeline {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.patron-hub-month-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid;
    transition: transform 0.15s ease;
}

.patron-hub-month-box:hover {
    transform: scale(1.15);
    z-index: 1;
}

.patron-hub-month-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
}

.patron-hub-month-year {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
}

.patron-hub-patreon-unlinked {
    background: #222;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 8px;
}

.patron-hub-link-help {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #999;
    line-height: 1.4;
}

.patron-hub-link-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.patron-hub-contact-info {
    margin-top: 16px;
    padding: 16px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
}

.patron-hub-contact-info p {
    margin: 0 0 8px !important;
    color: #ccc !important;
}

.patron-hub-contact-info ul {
    margin: 0 0 8px;
    padding-left: 20px;
}

.patron-hub-contact-info li {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* ============================================================
   STICKER INVENTORY
   ============================================================ */

.patron-hub-stickers-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.patron-hub-sticker-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 240, 199, 0.08);
    border-radius: 8px;
    padding: 10px 16px;
    transition: border-color 0.2s ease;
    text-decoration: none;
    gap: 12px;
}

.patron-hub-sticker-item:hover {
    border-color: var(--coral-deep, #e94c43);
}

.patron-hub-sticker-preview {
    flex: 2;
    min-width: 0;
    overflow: visible;
}

.patron-hub-sticker-info {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.patron-hub-sticker-game {
    font-size: 0.85rem;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.patron-hub-sticker-date {
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
}

.patron-hub-empty {
    color: #666;
    font-style: italic;
    padding: 16px 0;
}

/* ============================================================
   ACTIVITY LOG
   ============================================================ */

.patron-hub-log {
    list-style: none;
    margin: 0;
    padding: 0;
}

.patron-hub-log li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.9rem;
}

.patron-hub-log li:last-child {
    border-bottom: none;
}

.patron-hub-log-desc {
    color: #ccc;
    flex: 1;
}

.patron-hub-log-action {
    color: #666;
    font-size: 0.75rem;
    margin-left: 8px;
    flex-shrink: 0;
}

.patron-hub-log-points {
    font-weight: bold;
    margin-left: 12px;
    flex-shrink: 0;
}

.patron-hub-log-points.positive { color: #4da44b; }
.patron-hub-log-points.negative { color: #dc3545; }

.patron-hub-log-date {
    color: #555;
    font-size: 0.75rem;
    margin-left: 12px;
    flex-shrink: 0;
}

/* ============================================================
   BUTTONS (reuse patron-settings patterns)
   ============================================================ */

.patron-hub-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.patron-hub-btn:hover {
    transform: translateY(-1px);
}

.patron-hub-btn-primary {
    background: var(--coral-deep, #e94c43);
    color: #fff;
}

.patron-hub-btn-primary:hover {
    background: var(--salmon-hover, #fa7c6a);
    color: #fff;
}

.patron-hub-btn-patreon,
a.patron-hub-btn-patreon {
    background: #ff424d;
    color: #fff !important;
}

.patron-hub-btn-patreon:hover,
a.patron-hub-btn-patreon:hover {
    background: #e03740;
    color: #fff !important;
}

.patron-hub-btn-secondary {
    background: #333;
    color: #ccc;
}

.patron-hub-btn-secondary:hover {
    background: #444;
    color: #fff;
}

/* ============================================================
   LINKS
   ============================================================ */

.patron-hub-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #333;
    text-align: center;
}

.patron-hub-footer a {
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
}

.patron-hub-footer a:hover {
    color: #4da44b;
}

.patron-hub-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

@media (max-width: 600px) {
    .patron-hub-card {
        padding: 24px 16px;
    }

    .patron-hub-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .patron-hub-sticker-item {
        flex-direction: column;
        text-align: center;
    }

    .patron-hub-sticker-info {
        text-align: center;
    }

    .patron-hub-log li {
        flex-wrap: wrap;
        gap: 4px;
    }

    .patron-hub-log-date {
        width: 100%;
        margin-left: 0;
    }
}

/* ============================================================================
   REQUEST SYSTEM
   ============================================================================ */

/* Perks list for non-patrons */
.patron-hub-perks {
    margin-top: 32px;
    text-align: left;
    border-top: 1px solid #333;
    padding-top: 24px;
}

.patron-hub-perks h3 {
    margin: 0 0 16px;
    text-align: center;
    font-size: 1.15rem;
    color: #e0e0e0;
    border-bottom: none;
    padding-bottom: 0;
}

.patron-hub-inline-coin {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    image-rendering: pixelated;
}

/* Current-balance card for non-patron upgrade view */
.patron-hub-current {
    margin: 24px 0 8px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #1f2a1f 0%, #243024 100%);
    border: 1px solid #4da44b;
    border-radius: 8px;
    text-align: center;
}
.patron-hub-current-balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}
.patron-hub-current-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
}
.patron-hub-current-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1;
}
.patron-hub-current-rate {
    font-size: 0.85rem;
    color: #bbb;
}

/* Tier upgrade list */
.patron-hub-tier-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: grid;
    gap: 8px;
}
.patron-hub-tier-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(135deg, #222 0%, #2a2a2a 100%);
    border: 1px solid #404040;
    border-left: 3px solid #4da44b;
    border-radius: 6px;
    font-size: 0.9rem;
}
.patron-hub-tier-name {
    color: #e0e0e0;
    font-weight: 600;
}
.patron-hub-tier-rate {
    color: #4da44b;
    font-weight: 700;
}
.patron-hub-perks-link-note {
    margin-top: 14px;
    font-size: 0.82rem;
    color: #888;
    text-align: center;
}
.patron-hub-perks-link-note a {
    color: #4da44b;
}
.patron-hub-cta-line {
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
}
.patron-hub-cta-line a {
    color: #4da44b;
    font-weight: 600;
}

.patron-hub-section-desc {
    color: #888;
    font-size: 0.9rem;
    margin: -8px 0 16px;
}

.patron-hub-request-form {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 240, 199, 0.08);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    position: relative;
}

.patron-hub-request-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.patron-hub-request-row:last-of-type {
    margin-bottom: 0;
}

.patron-hub-select,
.patron-hub-input {
    background: #1a1a1a;
    border: 1px solid #555;
    border-radius: 6px;
    color: #e0e0e0;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-family: inherit;
}

.patron-hub-select {
    min-width: 200px;
    max-width: 280px;
    flex: 0 0 auto;
}

.patron-hub-input-wide {
    flex: 1;
}

.patron-hub-game-results {
    position: absolute;
    left: 16px;
    right: 16px;
    background: #1a1a1a;
    border: 1px solid #555;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 20;
    max-height: 200px;
    overflow-y: auto;
}

.patron-hub-game-result {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

.patron-hub-game-result:hover {
    background: #333;
}

.patron-hub-game-result-thumb {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}

.patron-hub-game-result-title {
    color: #e0e0e0;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
}

.patron-hub-game-result-type {
    color: #888;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* External ID picker (suggest_game / add_game only). */
.patron-hub-extid-row {
    margin: 6px 0 10px;
}
.patron-hub-extid-help {
    flex: 0 0 auto;
    background: transparent;
    border: 1px dashed #4da44b;
    color: #4da44b;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
}
.patron-hub-extid-help:hover {
    background: rgba(77, 164, 75, 0.12);
}
.patron-hub-extid-hint {
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(77, 164, 75, 0.08);
    border-left: 3px solid #4da44b;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.5;
}
.patron-hub-extid-hint p { margin: 0 0 6px; }
.patron-hub-extid-hint p:last-child { margin-bottom: 0; }
.patron-hub-extid-hint ul {
    margin: 4px 0 8px;
    padding-left: 18px;
}
.patron-hub-extid-hint li { margin-bottom: 4px; }
.patron-hub-extid-hint code {
    background: #1a1a1a;
    padding: 1px 5px;
    border-radius: 3px;
    color: #e0e0e0;
    font-size: 0.92em;
}
.patron-hub-extid-hint em {
    font-style: normal;
    color: #4da44b;
    font-weight: 700;
}

/* Multi-game picker */
.patron-hub-multi-games {
    margin-bottom: 10px;
}

.patron-hub-multi-games-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
}

.patron-hub-multi-games-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 32px;
}

.patron-hub-game-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #333;
    border: 1px solid #4da44b;
    border-radius: 16px;
    padding: 4px 8px 4px 12px;
    font-size: 0.85rem;
    color: #e0e0e0;
}

.patron-hub-game-pill-remove {
    background: none;
    border: none;
    color: #e53935;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 2px;
}

.patron-hub-game-pill-hint {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    align-self: center;
}

/* Game recommendation display — box art row */
.patron-hub-rec-games {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 8px 0;
    flex-wrap: wrap;
}

.patron-hub-rec-game {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 6px 10px;
}

.patron-hub-rec-game img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 3px;
}

.patron-hub-rec-game-name {
    color: #4da44b;
    font-weight: 700;
    font-size: 0.9rem;
}

.patron-hub-rec-vs {
    color: #f59e0b;
    font-weight: 800;
    font-size: 0.85rem;
}

.patron-hub-request-msg {
    margin-top: 8px;
    font-size: 0.85rem;
    min-height: 1.2em;
}

/* Coin in stats overview */
.patron-hub-stat-coin {
    width: 36px;
    height: 36px;
    image-rendering: pixelated;
    margin-bottom: 4px;
}

.patron-hub-vote-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--salmon-soft, rgba(249, 104, 84, 0.15));
    border: 1px solid var(--salmon-edge, rgba(249, 104, 84, 0.35));
    color: var(--salmon, #f96854);
    padding: 6px 14px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    font-family: inherit;
}

.patron-hub-vote-btn-inline:hover {
    background: rgba(249, 104, 84, 0.25);
    border-color: var(--salmon, #f96854);
    color: var(--salmon-hover, #fa7c6a);
}

.patron-hub-vote-btn-inline:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* ============================================================================
   COMMUNITY REQUESTS BANNER — "How It Works"
   ============================================================================ */

.cr-banner {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px 24px 20px;
    margin-bottom: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 4px solid;
    border-image: linear-gradient(90deg, #4da44b, #b05c8a, #7b68ae) 1;
}

.cr-banner-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 14px;
}

.cr-banner-badge {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4da44b;
    letter-spacing: 3px;
    border: 2px solid #4da44b;
    padding: 6px 16px;
    border-radius: 3px;
    transform: rotate(-3deg);
}

/* Steps */
.cr-banner-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}

.cr-step {
    background: #111;
    border-radius: 6px;
    padding: 16px;
    width: 180px;
    min-height: 140px;
    text-align: left;
    border: 2px solid;
    flex: 0 0 180px;
}

.cr-step-green { border-color: #4da44b; }
.cr-step-pink { border-color: #b05c8a; }
.cr-step-purple { border-color: #7b68ae; }

.cr-step-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.cr-step-green .cr-step-num { color: #4da44b; }
.cr-step-pink .cr-step-num { color: #d4879e; }
.cr-step-purple .cr-step-num { color: #a594d0; }

.cr-step-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.cr-step-desc {
    font-size: 0.78rem;
    color: #9ca3af;
    line-height: 1.4;
}

.cr-step-arrow {
    font-size: 2rem;
    font-weight: 700;
    padding: 0 6px;
    letter-spacing: -4px;
    flex-shrink: 0;
    align-self: center;
}

.cr-arrow-green { color: #4da44b; }
.cr-arrow-pink { color: #b05c8a; }
.cr-arrow-purple { color: #7b68ae; }

/* Actions */
.cr-banner-actions-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #4da44b;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.cr-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.cr-action {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #111;
    padding: 8px 14px;
    border-radius: 3px;
    border: 2px solid;
}

.cr-action-green { border-color: #4da44b; box-shadow: 3px 3px 0 rgba(77,164,75,0.15); }
.cr-action-pink { border-color: #b05c8a; box-shadow: 3px 3px 0 rgba(176,92,138,0.15); }
.cr-action-purple { border-color: #7b68ae; box-shadow: 3px 3px 0 rgba(123,104,174,0.15); }

/* Credits + Costs tables */
.cr-banner-tables {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
}

.cr-banner-table {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 14px;
    flex: 1;
    max-width: 280px;
}

.cr-table-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #4da44b;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: center;
}

.cr-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid #1a1a1a;
}

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

.cr-table-row span:first-child {
    color: #ccc;
}

.cr-table-row span:last-child {
    color: #f5c842;
    font-weight: 700;
}

@media (max-width: 600px) {
    .cr-banner-tables {
        flex-direction: column;
        align-items: center;
    }
    .cr-banner-table {
        max-width: 100%;
        width: 100%;
    }
}

.cr-banner-footnote {
    font-size: 0.7rem;
    color: #777;
    text-align: center;
    margin-bottom: 12px;
    font-style: italic;
}

/* CTA */
.cr-banner-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid #222;
}

.cr-cta-btn {
    background: #4da44b;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 10px 24px;
    border-radius: 3px;
    text-decoration: none;
}

.cr-cta-btn:hover {
    background: #3d8c3b;
    color: #fff !important;
}

.cr-cta-text {
    font-size: 0.85rem;
    color: #999;
}

/* Banner responsive */
@media (max-width: 900px) {
    .cr-banner-steps {
        flex-direction: column;
        gap: 8px;
    }
    .cr-step {
        width: 100%;
        max-width: 300px;
    }
    .cr-step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }
}

@media (max-width: 600px) {
    .cr-banner-title { font-size: 1.6rem; }
    .cr-banner-cta { flex-direction: column; gap: 10px; }
}

@media (max-width: 600px) {
    .patron-hub-request-row {
        flex-direction: column;
    }

    .patron-hub-select {
        min-width: auto;
        width: 100%;
    }
}

/* ============================================================================
   ROADMAP / WHAT'S NEXT PAGE
   ============================================================================ */

.roadmap-section {
    margin-bottom: 36px;
}

.roadmap-section-title {
    color: #fff;
    font-size: 1.4rem;
    margin: 0 0 4px;
    border-bottom: 2px solid #4da44b;
    padding-bottom: 8px;
}

.roadmap-section-desc {
    color: #888;
    font-size: 0.85rem;
    margin: 0 0 16px;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.roadmap-card {
    display: flex;
    flex-direction: column;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.roadmap-card:hover {
    border-color: #4da44b;
    transform: translateY(-2px);
}

.roadmap-card-thumb {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: #1a1a1a;
}

.roadmap-card-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #333;
}

.roadmap-card-placeholder span {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
}

.roadmap-card-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.roadmap-card-title {
    color: #e0e0e0;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
}

.roadmap-card-type {
    color: #888;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roadmap-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
    width: fit-content;
}

.roadmap-tag-reviewed { background: #4da44b; }
.roadmap-tag-needs { background: #e53935; }
.roadmap-tag-early { background: #f59e0b; }

/* Backlog — compact list */
.roadmap-backlog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.roadmap-backlog-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #222;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: #ccc;
    text-decoration: none;
    transition: border-color 0.2s;
}

.roadmap-backlog-item:hover {
    border-color: #4da44b;
    color: #fff;
}

.roadmap-backlog-type {
    font-size: 0.65rem;
    font-weight: 700;
    color: #888;
    background: #1a1a1a;
    padding: 1px 4px;
    border-radius: 2px;
}

/* Weekly schedule visual grid — split tile layout */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 8px;
}

.schedule-tile {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.schedule-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.schedule-tile-full-left,
.schedule-tile-full-right {
    grid-column: 1 / -1;
}

.schedule-tile-full-right .schedule-tile-link {
    flex-direction: row-reverse;
}

.schedule-tile-full-left .schedule-tile-label,
.schedule-tile-full-right .schedule-tile-label {
    flex: 0 0 35%;
}

.schedule-tile-full-left .schedule-tile-day,
.schedule-tile-full-right .schedule-tile-day {
    font-size: 0.9rem;
    letter-spacing: 3px;
}

.schedule-tile-full-left .schedule-tile-title,
.schedule-tile-full-right .schedule-tile-title {
    font-size: 1.5rem;
}

.schedule-tile-full-left .schedule-tile-activity,
.schedule-tile-full-right .schedule-tile-activity {
    font-size: 0.9rem;
}

.schedule-tile-large {
    grid-column: span 2;
    grid-row: span 2;
}

.schedule-tile-medium {
    grid-column: span 2;
}

.schedule-tile-small {
    grid-column: span 1;
}

.schedule-tile-link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Colored text panel */
.schedule-tile-label {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    flex: 0 0 45%;
    gap: 12px;
}

.schedule-tile-label-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Box art inside the label panel (full-width tiles) */
.schedule-tile-boxart {
    width: 80px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.schedule-tile-full-left .schedule-tile-boxart,
.schedule-tile-full-right .schedule-tile-boxart {
    width: 90px;
    max-height: 140px;
}

.schedule-tile-day {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
}

.schedule-tile-large .schedule-tile-day {
    font-size: 0.85rem;
    letter-spacing: 3px;
}

.schedule-tile-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.schedule-tile-large .schedule-tile-title {
    font-size: 1.6rem;
}

.schedule-tile-small .schedule-tile-title {
    font-size: 0.85rem;
}

.schedule-tile-activity {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.schedule-tile-large .schedule-tile-activity {
    font-size: 0.9rem;
}

/* Artwork panel */
.schedule-tile-art {
    flex: 1;
    background-size: cover;
    background-position: center;
}

.schedule-tile-art-empty {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-tile-art-empty span {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
}

@media (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }
    .schedule-tile-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .schedule-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 120px;
    }
    .schedule-tile-large,
    .schedule-tile-medium {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   ABSORBED FROM patron-settings.css (Phase 1 fold of /patron-settings/ → Hub)
   Renders: .patron-hub-settings, .patron-hub-patreon-signin, and the form/
   message/icon-picker primitives those sections use.
   ========================================================================== */

.patron-hub-settings,
.patron-hub-patreon-signin {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #333;
}
.patron-hub-settings h3,
.patron-hub-settings h4,
.patron-hub-patreon-signin h3 {
    margin: 24px 0 8px;
    font-size: 1.05rem;
    color: #ddd;
}
.patron-hub-settings h3:first-child,
.patron-hub-patreon-signin h3:first-child {
    margin-top: 0;
}
.patron-hub-greeting {
    color: #4da44b;
    font-weight: 600;
    margin: 0 0 14px;
}
.patron-current-look {
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.patron-current-look-label {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.patron-current-look-entry {
    display: flex;
    align-items: center;
    gap: 8px;
}
.patron-current-look-entry strong {
    color: #4da44b;
    font-size: 1.05rem;
}

/* Messages */
.patron-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 14px 0 18px;
    font-size: 0.9rem;
}
.patron-success {
    background: rgba(77, 164, 75, 0.15);
    border: 1px solid #4da44b;
    color: #6ed06c;
}
.patron-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid #dc3545;
    color: #f0858d;
}

/* Form primitives */
.patron-form {
    margin: 0 0 16px;
}
.patron-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #ccc;
    font-size: 0.9rem;
}
.patron-form input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 1rem;
    box-sizing: border-box;
}
.patron-form input[type="text"]:focus {
    outline: none;
    border-color: #4da44b;
    box-shadow: 0 0 0 2px rgba(77, 164, 75, 0.25);
}
.patron-form input[type="text"]::placeholder {
    color: #666;
}
.patron-hint {
    font-size: 0.8rem;
    color: #777;
    margin: 6px 0 0;
}
.patron-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* Buttons (shared between Settings + sign-in CTAs) */
.patron-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s, background 0.2s;
}
.patron-btn:hover { opacity: 0.92; }
.patron-btn-primary   { background: #4da44b; color: #fff; }
.patron-btn-primary:hover   { background: #3d8c3b; color: #fff; }
.patron-btn-secondary { background: #333;    color: #ccc; border: 1px solid #555; }
.patron-btn-secondary:hover { background: #444;    color: #fff; }
.patron-btn-patreon {
    background: #F96854;
    color: #fff;
    font-size: 1.1rem;
    padding: 14px 32px;
}
.patron-btn-patreon:hover { background: #e55a48; color: #fff; }

/* Live preview */
.patron-preview {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 18px;
}
.patron-preview-label {
    display: block;
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.patron-preview-entry {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icon picker grid */
.patron-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    margin-bottom: 8px;
}
.patron-icon-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: #1a1a1a;
}
.patron-icon-choice:hover {
    border-color: #555;
    background: #222;
}
.patron-icon-choice input[type="radio"] { display: none; }
.patron-icon-choice.patron-icon-selected,
.patron-icon-choice:has(input:checked) {
    border-color: #4da44b;
    background: rgba(77, 164, 75, 0.15);
}
.patron-icon-choice img { display: block; }
.patron-icon-grid::-webkit-scrollbar { width: 6px; }
.patron-icon-grid::-webkit-scrollbar-track { background: #111; }
.patron-icon-grid::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

/* Sign-out / footer link inside settings */
.patron-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #333;
    text-align: center;
}
.patron-footer a { color: #888; text-decoration: none; font-size: 0.85rem; }
.patron-footer a:hover { color: #ccc; }

/* Help / contact reveal block */
.patron-hub-help { margin-top: 18px; }
.patron-hub-help-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.patron-hub-help-detail {
    margin-top: 12px;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 6px;
}
.patron-hub-help-detail ul { margin: 8px 0; padding-left: 20px; }

@media (max-width: 540px) {
    .patron-actions { flex-direction: column; }
    .patron-btn { width: 100%; text-align: center; }
}

/* ============================================================
   MONTH-ON-PATREON GRID (GitHub-style heatmap)
   ============================================================ */
.patron-month-grid-wrap {
    width: 100%;
}

.patron-month-grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.patron-month-grid-title {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.patron-month-grid-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #aaa;
    flex-wrap: wrap;
}

.patron-month-grid-legend .legend-swatch {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.patron-month-grid-legend .legend-empty       { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.patron-month-grid-legend .legend-8bit_fans   { background: #4da44b; }
.patron-month-grid-legend .legend-16bit_allies{ background: #5fb4d8; }
.patron-month-grid-legend .legend-32bit_insiders { background: #ffc936; }

.patron-month-grid-legend .legend-label {
    margin-right: 6px;
}

.patron-month-grid {
    display: inline-block;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow-x: auto;
    max-width: 100%;
}

.patron-month-grid-cols,
.patron-month-grid-row {
    display: grid;
    grid-template-columns: 36px repeat(12, 1fr);
    gap: 4px;
    align-items: center;
}

.patron-month-grid-cols {
    margin-bottom: 4px;
}

.patron-month-grid-corner {
    /* spacer above year labels */
}

.patron-month-grid-month {
    font-size: 10px;
    color: #888;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.patron-month-grid-year {
    font-size: 11px;
    color: #aaa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-align: right;
    padding-right: 4px;
}

.patron-month-cell {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-width: 18px;
    min-height: 18px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform 0.12s ease;
    cursor: help;
}

.patron-month-cell:hover {
    transform: scale(1.15);
    z-index: 2;
    position: relative;
}

.patron-month-cell.patron-month-empty {
    background: rgba(255, 255, 255, 0.06);
}

.patron-month-cell.patron-month-future {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    cursor: default;
}

.patron-month-cell.patron-month-8bit_fans      { background: #4da44b; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); }
.patron-month-cell.patron-month-16bit_allies   { background: #5fb4d8; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3); }
.patron-month-cell.patron-month-32bit_insiders { background: #ffc936; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4); }

.patron-month-grid-footer {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #ccc;
}

.patron-month-grid-footer strong {
    color: var(--coral-deep, #e94c43);
    font-weight: 700;
}

@media (max-width: 540px) {
    .patron-month-grid-cols,
    .patron-month-grid-row {
        grid-template-columns: 28px repeat(12, 1fr);
        gap: 3px;
    }
    .patron-month-cell {
        min-width: 14px;
        min-height: 14px;
    }
    .patron-month-grid-month {
        font-size: 8px;
    }
}
