/* ── Support (Donate) Overlay ────────────────────────────────────────────────
 * Light theme matching the main Ditzler site palette.
 * Fonts: Inter (body), Outfit (headings)
 * ──────────────────────────────────────────────────────────────────────────── */

/* ── Overlay backdrop (Matches Subscribe UI) ─────────────────────────────── */
.support-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(44, 76, 107, 0.75); /* academy-blue tint */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: safe center;
    justify-content: safe center;
    padding: 1.5rem;
    overflow: auto;
}

/* Keep mounted during CRT power-off; open/close timing lives in styles.css + support_ui.js */
.support-overlay.support-visible,
.support-overlay.closing {
    display: flex;
}

/* Support is the horizontal scroller once the shell hits 340px. Hide the landing bar so the two do not stack. */
html:has(#support-overlay.support-visible),
body:has(#support-overlay.support-visible) {
    overflow-x: hidden !important;
}

/* ── Unified Modal Shell ───────────────────────────────────────────── */
.support-modal-shell {
    display: flex;
    flex-direction: column;
    width: min(100%, var(--overlay-width-wide));
    height: 827px;
    min-width: var(--overlay-min-stable);
    flex-shrink: 0;
    max-width: min(var(--overlay-width-wide), 100%);
    box-sizing: border-box;
    max-height: calc(100vh - var(--overlay-viewport-inset));
    background: var(--color-milk-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-panel-data, 0 8px 32px rgba(44,76,107,0.22));
    overflow: hidden;
    /* Matches .toolbar--support-leaderboard down to search input bottom (tabs + search row). */
    --support-tab-strip-block: calc(16px + 0.9rem * 1.25 + 5px); /* btn padding + line + strip border + active underline */
    --support-search-row-offset: calc(14px + var(--support-tab-strip-block) + 12px + 44px);
    --support-pitch-header-gap: 12px;
}

/* Shared header spanning full width */
.support-shared-header.chain-details-header {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 8px;
    position: relative;
    padding: 16px 20px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(217, 182, 17, 0.3) !important;
    cursor: default;
}

.support-shared-header .heading--panel-data {
    grid-column: 2;
    justify-self: center;
    margin: 0;
}

.support-shared-header #support-close-btn {
    grid-column: 3;
    justify-self: end;
    position: static;
    transform: none;
}

@keyframes support-line-rollout {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

.support-shared-header.chain-details-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent-secondary);
    transform: scaleX(0);
    transform-origin: center;
    box-shadow: 0 0 3px var(--color-accent-secondary), 0 0 10px rgba(217, 182, 17, 0.5);
    will-change: transform;
}

.support-visible .support-shared-header.chain-details-header::after {
    animation: support-line-rollout 1.5s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}

.support-visible .demo-btn-close {
    animation: close-btn-rollout 1.0s cubic-bezier(0.34, 1.56, 0.64, 1) 1s backwards;
}

/* Two-column body */
.support-modal-columns {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.support-modal-col {
    display: flex;
    flex-direction: column;
    width: var(--overlay-width-support-column);
    flex-shrink: 0;
    box-sizing: border-box;
}

.support-modal-col--left {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}

.support-modal-col--right {
    margin-left: var(--overlay-width-support-column);
}

/* Column scrollable bodies */
.support-body-left {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    background: var(--color-milk-white);
    padding: 16px;
    text-align: center;
}

.support-body-right {
    flex: 1;
    overflow: hidden !important;
    min-height: 0;
    background: var(--color-milk-white);
    padding: 0;
}

/* Column footers */
.support-modal-footers {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    position: relative;
}

.support-modal-footers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-sandsel-beige);
    transform: scaleX(0);
    transform-origin: center;
    will-change: transform;
}

.support-visible .support-modal-footers::before {
    animation: support-line-rollout 1.5s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}

.support-modal-columns::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--color-sandsel-beige);
    z-index: 50;
}

.support-modal-col-footer {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.02);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.support-col-footer--right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: var(--overlay-width-support-column);
    flex-shrink: 0;
    box-sizing: border-box;
}

.support-col-footer--left {
    width: var(--overlay-width-support-column);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.support-col-footer--leaderboard-disabled button,
.support-col-footer--leaderboard-disabled .demo-pagination-info {
    visibility: hidden;
    pointer-events: none;
}

/* Flag OFF: remove leaderboard panel entirely (MSWE-149).
 * Keep left column absolutely filling the columns region (same as two-column mode)
 * so .support-body-left flex:1 has a definite height — static layout collapses it. */
.support-modal-shell--donations-only {
    width: min(100%, var(--overlay-width-support-column));
    max-width: min(var(--overlay-width-support-column), 100%);
}

.support-modal-shell--donations-only .support-modal-col--right,
.support-modal-shell--donations-only .support-col-footer--right {
    display: none !important;
}

.support-modal-shell--donations-only .support-modal-columns::after {
    display: none;
}

.support-modal-shell--donations-only .support-modal-col--left,
.support-modal-shell--donations-only #support-panel-left {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
}

.support-modal-shell--donations-only .support-col-footer--left {
    width: 100%;
}

/* Panel Override for Support Modal (Inherits .chain-details-panel) */
/* Override global chain-details-panel defaults (display:none, position:absolute) */
#support-panel-left,
#support-panel-right {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    max-height: none !important;
    max-width: none !important;
    z-index: auto !important;
    overflow: hidden !important;
    width: var(--overlay-width-support-column) !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
#support-panel-right {
    border-right: none !important;
}
#support-panel-left {
    border-right: none !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
}

@media (max-width: 1000px) {
    .layout--support-split {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        overflow-y: auto;
        padding-top: 20px;
    }
    .panel-data--support {
        width: 100%;
        max-width: var(--overlay-width-support-column);
        height: auto;
        min-height: 500px;
    }
}


/* ── Header ───────────────────────────────────────────────────────────────── */
/* Force header to display as flex-row inside support panels */
#support-panel-left .chain-details-header,
#support-panel-right .chain-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px 14px;
    background: var(--color-vintage-sky, #8CC8EA);
    border-bottom: 2px solid var(--color-accent-secondary, #D9B611);
    flex-shrink: 0;
    position: relative;
}

.heading--panel-section {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-milk-white, #FAF8F2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.heading--group {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-secondary, #D9B611);
    margin-bottom: 8px;
}

.heading--subgroup {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-accent-secondary, #D9B611);
    margin-bottom: 6px;
}


/* ── Left Data Panel Styles ── */
.support-body-left {
    padding: 4px 24px 28px !important;
    display: flex;
    flex-direction: column;
}

.support-pitch-card {
    /* DS Data Card styling matching ORIGINATOR */
    background: linear-gradient(165deg, var(--color-milk-white) 0%, rgba(102, 191, 191, 0.28) 100%);
    border: 1px solid var(--color-caribbean-turquoise);
    border-radius: var(--radius-sm, 8px);
    box-shadow: 0 1px 4px rgba(44, 76, 107, 0.07);
    padding: 4px 8px;
    box-sizing: border-box;
    flex-shrink: 0;
    margin-top: var(--support-pitch-header-gap);
    /* Bottom edge aligns with #support-search; payment stack offset unchanged below. */
    height: calc(var(--support-search-row-offset) - 4px - var(--support-pitch-header-gap));
    margin-bottom: calc(134px - var(--support-search-row-offset));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-pitch-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(44, 76, 107, 0.12);
}

.support-pitch-card .text.text--body-prose {
    font-size: 14px;
    line-height: 1.15;
    margin: 0;
}


.support-u-stack {
    display: flex;
    flex-direction: column;
}

.support-u-stack--gap-4 { gap: 4px; }
.support-u-stack--gap-6 { gap: 6px; }
.support-u-stack--mt-10 { margin-top: 10px; }
.support-u-stack--mt-24 { margin-top: 24px; }

.support-group-title--tight {
    margin-bottom: 4px !important;
}

.support-group-note--spaced {
    margin-bottom: 12px;
}

.support-group-note--compact {
    margin-bottom: 8px;
}

.support-action-area {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Increased gap between payment buttons */
}


.column--support-left .text--body-prose {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--color-text-muted, #5F7D8B);
    margin: 0;
    padding: 0;
}

.column--support-left .text--body-prose strong {
    font-weight: 700;
}

/* ── Amount & Payment Method Controls ────────────────────────────────────── */
.support-label {
    display: block;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-muted, #5F7D8B);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.support-method-group-frame {
    /* DS Data Card (#ds-data-card) standard */
    background: var(--color-wimbledon-white);
    padding: 16px;
    border: 1px solid var(--color-sandsel-beige);
    border-radius: var(--radius-sm, 8px);
    box-shadow: 0 1px 4px rgba(44, 76, 107, 0.07);
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    gap: 12px;
    margin-bottom: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* MSWE-220 — group frames are also hop-item data cards; keep frame chrome, DS title + pink rule */
.support-method-card.hop-item.card.card--hop.support-method-group-frame {
    background: var(--color-wimbledon-white);
    border: 1px solid var(--color-sandsel-beige);
    box-shadow: 0 1px 4px rgba(44, 76, 107, 0.07);
}

.support-method-card-header.hop-header {
    margin: 0 0 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--data-card-header-separator);
    color: var(--color-academy-blue);
}

.support-method-card-title {
    margin: 0;
    color: inherit;
}

.support-method-card-details.hop-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

/* Last card in left column stretches to fill remaining height */
.support-body-left .support-method-group-frame:last-of-type {
    flex: 1;
    margin-bottom: 0;
}

.support-method-group-frame:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(44, 76, 107, 0.12);
}

.support-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted, #5F7D8B);
    margin: 4px 0 8px;
    padding-bottom: 4px;
}

.support-group-note {
    font-size: 0.7rem;
    color: var(--color-text-muted, #5F7D8B);
    margin-top: 4px;
    font-weight: 500;
}

#support-recurring-crypto-note {
    font-style: italic;
    font-size: 0.75rem;
}

#support-email-group .support-label {
    text-transform: none;
}

.support-input-group {
    display: flex;
    flex-direction: column;
}

.support-method-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-custom-input::placeholder {
    color: rgba(44, 76, 107, 0.4);
    font-size: 0.85rem;
    font-style: normal !important;
}

#support-name::placeholder {
    font-style: italic !important; /* Strictly Anonymous only */
}

.support-method-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.support-method-item {
    position: relative;
    cursor: pointer;
    display: block;
}

.support-method-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.method-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--color-milk-white);
    border: 1.5px solid rgba(44, 76, 107, 0.1);
    border-radius: var(--radius-sm, 6px);
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(44, 76, 107, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-copy-btn {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-copy-btn:hover {
    background: rgba(44, 76, 107, 0.05);
}

.support-copy-btn.copied {
    color: #4CAF50;
    pointer-events: none;
}

.support-method-item:hover:not(.disabled) .method-box {
    border-color: var(--color-caribbean-turquoise, #66BFBF);
    background: rgba(102, 191, 191, 0.03);
}

.support-method-item input[type="radio"]:checked + .method-box {
    border-color: var(--color-caribbean-turquoise, #66BFBF);
    background: rgba(102, 191, 191, 0.08);
    box-shadow: 0 2px 8px rgba(102, 191, 191, 0.15);
}

.support-method-item input[type="radio"]:checked + .method-box::after {
    content: '✓';
    margin-left: auto;
    color: var(--color-caribbean-turquoise, #66BFBF);
    font-weight: 900;
}

.support-method-item.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.support-method-item.disabled .method-box {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.method-icon {
    font-size: 1.2rem;
}

.method-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-academy-blue, #2C4C6B);
}

/* Custom Amount Input */

/* Custom Amount Input */
.support-custom-row {
    position: relative;
    display: flex;
    align-items: center;
}

.support-custom-symbol {
    position: absolute;
    left: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-academy-blue, #2C4C6B);
}

.support-custom-input {
    width: 100%;
    padding: 8px 12px 8px 24px; /* Space for $ symbol */
    border: 1.5px solid rgba(44, 76, 107, 0.2);
    border-radius: var(--radius-sm, 6px);
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-academy-blue, #2C4C6B);
    transition: all 0.2s;
    outline: none;
}

#support-name.support-custom-input {
    padding: 8px 12px; /* No symbol on name field */
}

.support-custom-input:focus {
    border-color: var(--color-caribbean-turquoise, #66BFBF);
    box-shadow: 0 0 0 3px rgba(102, 191, 191, 0.22);
}

.support-custom-input.active {
    border-color: var(--color-caribbean-turquoise, #66BFBF);
    background: rgba(102, 191, 191, 0.05);
}

/* ── Payment Action ──────────────────────────────────────────────────────── */
.support-action-area {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Increased gap between Stripe and PayPal buttons */
    align-items: center;
}

.support-submit-btn { width: 100%; margin-top: 10px; }





.support-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-muted, #5F7D8B);
    text-align: center;
}

/* ── Right Column (Top Supporters) ───────────────────────────────────────── */
.column--support-right {
    flex: 1;
    background: var(--color-corinthian-white, #F3E8D6);
    display: flex;
    flex-direction: column;
}

.toolbar--support-leaderboard {
    padding: 14px 20px 12px;
    border-bottom: none;
    background: transparent;
    height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-tab-strip-full {
    width: 100%;
}

.support-tab-strip-full .demo-btn-tab {
    flex: 1;
    text-align: center;
}

.support-sorters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.support-sorter-btn { position: relative; }







/* DS Search styles are now managed in styles.css */


/* Leaderboard List */
.column--support-right .panel-region--list {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.list--supporters {
    flex: 1;
    overflow: hidden !important;
    padding: 12px 20px 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Pagination Layouts */
.column--support-left .panel-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(44, 76, 107, 0.05);
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted, #5F7D8B);
    height: 56px;
    box-sizing: border-box;
}

.column--support-right .nav--pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(44, 76, 107, 0.05);
    flex-shrink: 0;
    height: 56px;
    box-sizing: border-box;
}







.text--pagination-meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted, #5F7D8B);
    min-width: 80px;
    text-align: center;
}

/* Leaderboard custom scrollbar */
.list--supporters::-webkit-scrollbar { width: 8px; }
.list--supporters::-webkit-scrollbar-track { background: var(--color-corinthian-white, #F3E8D6); border-radius: 4px; }
.list--supporters::-webkit-scrollbar-thumb { background: var(--color-seafoam-mint, #A7D3B4); border-radius: 4px; }
.list--supporters::-webkit-scrollbar-thumb:hover { background: var(--color-accent-pink, #F28C8C); }

.supporter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    height: 46px;
    background: var(--color-wimbledon-white);
    border: 1px solid var(--color-sandsel-beige);
    border-radius: var(--radius-sm, 8px);
    box-shadow: 0 1px 4px rgba(44, 76, 107, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.supporter-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.supporter-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.supporter-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(44, 76, 107, 0.12);
}


.supporter-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-academy-blue, #2C4C6B);
}

.supporter-name--anonymous {
    font-style: italic;
}


.supporter-empty {
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted, #5F7D8B);
    font-style: italic;
}

.supporter-empty--placeholder {
    padding: 48px 24px;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── Other Ways to Support ──────────────────────────────────────────────── */
.support-other-ways {
    background: var(--color-milk-white);
    padding: 18px;
    border: 2px dashed var(--color-sandsel-beige, #D8CCBC);
    border-radius: var(--radius-sm, 8px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── DS Component Standard Implementation ── */

/* Gateway / Branded Image Buttons */
.demo-btn-gateway-branded {
    display: inline-block; padding: 0; border-radius: var(--radius-pill);
    overflow: visible; flex-shrink: 0; position: relative;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s, box-shadow 0.2s;
    cursor: pointer; border: 1px solid var(--color-academy-blue); width: 100%; max-width: 240px; height: 48px;
}
.demo-btn-gateway-branded:hover { transform: translateY(-2px); box-shadow: var(--shadow-classic); border-color: var(--color-accent-secondary); }
.demo-btn-gateway-branded:active { transform: scale(0.96); }
.demo-btn-gateway-branded img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Specific modifier for large gateways like PayPal group */
.demo-btn-gateway-branded--paypal-group {
    width: auto; height: auto; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.demo-btn-gateway-branded--paypal-inner {
    background-color: #ffc439;
    border-radius: var(--radius-sm);
}

/* Mini Buttons for P2P */
.demo-btn-gateway-mini {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; border-radius: 20px; border: 1px solid var(--color-academy-blue);
    background-color: var(--color-milk-white); cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; width: 120px; height: 32px; overflow: visible;
}

.demo-btn-gateway-logo-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-btn-gateway-mini img { width: 100%; height: 100%; display: block; object-fit: cover; }
.demo-btn-gateway-mini:hover { transform: translateY(-2px); border-color: var(--color-accent-secondary); box-shadow: var(--shadow-classic); }
.demo-btn-gateway-mini:active { transform: scale(0.96); }

/* Payment Action Icons (Copy/QR) */
.demo-btn-payment-action {
    background: none; border: 1px solid var(--color-academy-blue); font-size: 1.1rem; cursor: pointer;
    padding: 6px; border-radius: 6px; transition: background 0.2s ease, transform 0.1s;
    line-height: 1; display: inline-flex; align-items: center; justify-content: center;
    color: var(--color-academy-blue); position: relative;
    backface-visibility: hidden; will-change: transform; -webkit-font-smoothing: antialiased;
}
.demo-btn-payment-action:hover:not(:disabled) { background: rgba(44, 76, 107, 0.08); transform: scale(1.1); }
.demo-btn-payment-action:active:not(:disabled) { transform: scale(0.9); }
.demo-btn-payment-action:disabled { opacity: 0.4; cursor: not-allowed; }

/* Tooltip Dark — DS standard, mirrors globe-tooltip from production (#ds-tooltip data-overlay) */
.demo-tooltip-dark-host { position: relative; }
.demo-tooltip-dark-host::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(44, 76, 107, 0.95);
    color: var(--color-milk-white);
    border: none;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}
.demo-tooltip-dark-host:hover::after,
.demo-tooltip-dark-host:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Form Elements */
.demo-input {
    width: 100%; padding: 10px 14px;
    background: var(--color-milk-white); border: 2px solid var(--color-caribbean-turquoise);
    border-radius: var(--radius-sm); color: var(--color-text-main);
    font-family: var(--font-sans); font-size: 0.95rem;
    transition: all 0.2s; outline: none !important;
}
.demo-input:focus { 
    border-color: var(--color-goldenrod-yellow); 
    box-shadow: 0 0 0 4px rgba(217, 182, 17, 0.1);
}

/* Badges */
.demo-badge {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 3px 12px; border-radius: 20px;
    border: 1px solid var(--color-border);
    font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
    text-align: center; white-space: nowrap;
}
.demo-badge-active { background: var(--color-caribbean-turquoise); color: var(--color-academy-blue); }
.demo-badge-unverified { background: var(--color-milk-white); color: var(--color-academy-blue); }
.demo-badge--tab {
    cursor: pointer;
    transition: all 0.2s;
}
.demo-badge--tab.active {
    background: var(--color-academy-blue);
    color: var(--color-milk-white);
    border-color: var(--color-academy-blue);
}

/* Action Buttons */
.demo-btn-action-primary {
    background-color: var(--color-academy-blue);
    color: var(--color-milk-white);
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 700; font-size: 0.85rem;
    cursor: pointer; transition: all 0.2s ease;
}
.demo-btn-action-primary:hover:not(:disabled) { 
    background-color: var(--color-caribbean-turquoise);
    transform: translateY(-2px);
}

.support-other-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.support-other-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--color-milk-white, #FAF8F2);
    border: 1.5px solid rgba(44, 76, 107, 0.1);
    border-radius: 6px;
    text-decoration: none;
    color: var(--color-academy-blue, #2C4C6B);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.support-other-btn:hover {
    border-color: var(--color-caribbean-turquoise, #66BFBF);
    background: var(--color-milk-white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.other-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* DS standard buttons */
.btn-gateway-branded {
    display: inline-block;
    width: 195px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.btn-gateway-branded img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border: none;
}

.btn-gateway-branded:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* Modifiers */
.btn-gateway-branded--stripe {
    background-color: #635BFF;
}

.btn-gateway-branded--paypal-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: auto;
    overflow: visible;
    box-shadow: none;
}

.btn-gateway-branded--paypal-inner {
    background-color: #ffc439;
    transition: none;
}

.btn-gateway-branded--paypal-inner img {
    object-fit: fill;
    pointer-events: none;
}

.support-paypal-cc-fallback {
    margin-top: 0px;
    width: 147px;
    height: 18px;
    overflow: hidden;
    position: relative;
}

.support-paypal-cc-fallback img {
    position: absolute;
    left: 0;
    pointer-events: none;
}

.btn-gateway-branded--nowpayments img {
    border: 1.5px solid rgba(44,76,107,0.2);
    box-shadow: none;
    object-position: left;
}

.btn-gateway-branded--patreon {
    background-image: url('/support/buttons/btn_patreon.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1.5px solid rgba(44,76,107,0.2);
    box-sizing: border-box;
}

.btn-gateway-branded--bmac img {
    object-position: left;
}

/* Success state for mini buttons — Standardized Turquoise feedback (No scale as per user request) */
.demo-btn-gateway-mini.copied {
    border-color: var(--color-caribbean-turquoise) !important;
}

/* ── Success Overlay ──────────────────────────────────────────────────────── */
.support-success-overlay {
    position: absolute;
    inset: 0;
    z-index: 1000;
    background: rgba(44, 76, 107, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease-out;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeOutOverlay {
    from { opacity: 1; }
    to { opacity: 0; }
}
.support-qr-overlay.closing {
    animation: fadeOutOverlay 0.2s ease-in forwards;
}

.support-success-card {
    background: var(--color-milk-white);
    border-radius: 16px;
    padding: 40px 32px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    border: 3px solid var(--color-caribbean-turquoise, #66BFBF);
    transform-origin: center;
    animation: dropInCard 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropInCard {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.support-success-icon {
    width: 60px;
    height: 60px;
    background: var(--color-caribbean-turquoise, #66BFBF);
    color: white;
    font-size: 28px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(102, 191, 191, 0.4);
}

.support-success-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.6rem;
    color: var(--color-academy-blue, #2C4C6B);
    margin: 0 0 16px 0;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.support-success-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-muted, #5F7D8B);
    margin-bottom: 28px;
    padding: 0 10px;
}
/* ── Failure Overlay ──────────────────────────────────────────────────────── */
.support-failure-overlay {
    position: absolute;
    inset: 0;
    z-index: 1000;
    background: rgba(44, 76, 107, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease-out;
}

.support-error-card {
    background: var(--color-milk-white);
    border-radius: 16px;
    padding: 40px 32px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    border: 3px solid #e53e3e; /* error-red */
    transform-origin: center;
    animation: dropInCard 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.support-error-icon {
    width: 60px;
    height: 60px;
    background: #e53e3e;
    color: white;
    font-size: 28px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

.support-error-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.6rem;
    color: var(--color-academy-blue, #2C4C6B);
    margin: 0 0 16px 0;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.support-error-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-muted, #5F7D8B);
    margin-bottom: 28px;
    padding: 0 10px;
}

/* ── Crypto Table ────────────────────────────────────────────────────────── */
.support-crypto-table-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    background: transparent;
}

/* P2P and crypto tables fill the data card and keep the same column shares as they shrink.
   Shares match the 426px pane: P2P 134/75/75, crypto 64/110/77/77. */
#support-p2p-table,
#support-crypto-table {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
}
#support-p2p-table th,
#support-p2p-table td,
#support-crypto-table th,
#support-crypto-table td {
    text-align: center;
    min-width: 0;
    overflow-wrap: break-word;
    padding: 8px 4px;
}
#support-p2p-table thead th:nth-child(1) { width: 47.18%; }
#support-p2p-table thead th:nth-child(2) { width: 26.41%; }
#support-p2p-table thead th:nth-child(3) { width: 26.41%; }
#support-crypto-table thead th:nth-child(1) { width: 19.51%; } /* Coin */
#support-crypto-table thead th:nth-child(2) { width: 33.54%; } /* Network */
#support-crypto-table thead th:nth-child(3) { width: 23.48%; } /* Wallet ID */
#support-crypto-table thead th:nth-child(4) { width: 23.47%; } /* QR Code */
#support-p2p-table .demo-btn-gateway-mini {
    width: 100%;
    max-width: 120px;
    box-sizing: border-box;
}
.support-p2p-cell-stack,
.support-p2p-action-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
#support-p2p-table .demo-btn-payment-action,
#support-crypto-table .demo-btn-payment-action {
    max-width: 100%;
    box-sizing: border-box;
}

/* MSWE-189: tip host is cell-wide for edge flush; height hugs the control like Copy tips. */
#support-p2p-table td:first-child .support-p2p-cell-center,
#support-p2p-table td:first-child .support-p2p-cell-stack {
    width: 100%;
    box-sizing: border-box;
}
#support-p2p-table td:last-child .support-qr-tip-host,
#support-crypto-table td:last-child .support-qr-tip-host,
#support-p2p-table td:first-child .support-system-tip-host {
    display: flex;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}
#support-p2p-table td:last-child .support-qr-tip-host::after,
#support-crypto-table td:last-child .support-qr-tip-host::after {
    left: auto;
    /* Reach the table border past the cell’s 4px horizontal padding. */
    right: -4px;
    bottom: calc(100% + 8px);
    transform: translateX(0) translateY(4px);
}
#support-p2p-table td:first-child .support-system-tip-host::after {
    left: -4px;
    right: auto;
    bottom: calc(100% + 8px);
    transform: translateX(0) translateY(4px);
}
#support-p2p-table td:last-child .support-qr-tip-host:hover::after,
#support-p2p-table td:last-child .support-qr-tip-host:focus-within::after,
#support-crypto-table td:last-child .support-qr-tip-host:hover::after,
#support-crypto-table td:last-child .support-qr-tip-host:focus-within::after,
#support-p2p-table td:first-child .support-system-tip-host:hover::after,
#support-p2p-table td:first-child .support-system-tip-host:focus-within::after {
    transform: translateX(0) translateY(0);
}
#support-p2p-table td:first-child .support-system-tip-host.copied::after {
    transform: translateX(0) translateY(-5px) !important;
}


/* ── QR Code Modal ───────────────────────────────────────────────────────── */
.support-qr-overlay {
    position: fixed;
    inset: 0;
    z-index: 10100;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.2s ease-out;
}









/* ── Second Tier Refinements: UI Shadows & Hover FX ────────────────────────── */
.copy-wallet-btn {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.copy-wallet-btn.copied {
    color: var(--color-caribbean-turquoise) !important;
    transform: scale(1.15);
}

.copy-wallet-btn.copied svg {
    animation: support-success-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes support-success-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1.15); }
}


/* DS standard mini buttons */
.btn-gateway-mini {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    padding: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s, box-shadow 0.2s, border-radius 0.2s;
    background-color: transparent;
}

.btn-gateway-mini img {
    width: 100px;
    height: 28px;
    display: block;
    border-radius: 6px;
    object-fit: cover;
    pointer-events: none;
    border: none;
}

.btn-gateway-mini:hover:not(:disabled) {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Modifiers */
.btn-gateway-mini--paypal {
    background-color: #ffc439;
}

.btn-gateway-mini--zelle img {
    object-position: left;
}


.support-qr-card {
    position: relative;
    background: transparent !important;
    border-radius: 12px;
    padding: 0 !important;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.support-qr-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    border: 4px solid var(--color-sandsel-beige, #D8CCBC);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    display: block;
    background: transparent;
}

.support-qr-close {
    position: absolute;
    top: -24px;
    right: -24px;
    background: var(--color-academy-blue, #2C4C6B);
    border: 2px solid white;
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    z-index: 10110;
}

.support-qr-close:hover {
    transform: scale(1.1);
    background: #1a2f42;
}

/* Support payment tables — layout from former inline styles (MSWE-100 Main completion) */
.support-p2p-cell-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.support-p2p-cell-center {
    display: flex;
    justify-content: center;
}

.support-p2p-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.support-p2p-hint {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    line-height: 1.1;
    font-style: italic;
    margin-top: 4px;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
}

.btn--payment-action[disabled],
.btn-gateway-mini[disabled],
.btn-gateway-branded[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn--payment-action {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.1s;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-academy-blue, #2C4C6B);
}

.btn--payment-action:hover:not(:disabled) {
    background: rgba(44, 76, 107, 0.05);
    transform: scale(1.1);
}

.btn--payment-action.copied,
.demo-btn-payment-action.copied,
.demo-btn-gateway-mini.copied {
    color: var(--color-caribbean-turquoise) !important;
    border-color: var(--color-caribbean-turquoise) !important;
}

.demo-tooltip-dark-host.copied::after {
    content: "Copied" !important;
    background-color: var(--color-caribbean-turquoise) !important;
    color: var(--color-milk-white) !important;
    border-color: var(--color-caribbean-turquoise) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(-5px) !important;
}


.support-method-group-frame > .support-u-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.support-method-group-frame > .support-u-stack.support-u-stack--gap-4 {
    gap: 4px;
}

.support-method-group-frame > .support-u-stack.support-u-stack--gap-6 {
    gap: 6px;
}

.support-method-group-frame > .support-u-stack.support-u-stack--mt-10 {
    margin-top: 10px;
}

.support-method-group-frame > .support-u-stack.support-u-stack--mt-24 {
    margin-top: 24px;
}

.support-group-title.support-group-title--tight {
    margin-top: 0;
    margin-bottom: -4px;
    line-height: 1;
}

.support-group-note.support-group-note--spaced {
    margin-top: 0;
    margin-bottom: 6px; /* Decreased gap above action area */
    font-style: italic;
    line-height: 1;
}

.support-group-note.support-group-note--compact {
    margin-top: 0;
    font-style: italic;
    line-height: 1;
}

.support-crypto-nowpayments {
    text-align: center;
    margin: 0;
}

.support-gateway-label-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 28px;
    border-radius: 6px;
    border: none;
    padding: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    opacity: 0.6;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 0.8rem;
    pointer-events: none;
    cursor: not-allowed;
}

.support-gateway-label-btn--venmo {
    background-color: #008cff;
    color: white;
}

.support-gateway-label-btn--cashapp {
    background-color: #00d632;
    color: white;
}

/* Site Menu Content embeds the Support overlay in the default shell (MSWE-200). */
.site-menu-content__page:has(#support-overlay.support-menu-admin),
.site-menu-content__page.site-menu-content__page--support {
    height: min(827px, calc(100vh - var(--overlay-viewport-inset)));
    height: min(827px, calc(100dvh - var(--overlay-viewport-inset)));
    max-height: calc(100vh - var(--overlay-viewport-inset));
    max-height: calc(100dvh - var(--overlay-viewport-inset));
    min-height: 0;
}

.site-menu-content__page #support-overlay.support-menu-admin {
    position: relative;
    inset: auto;
    z-index: auto;
    display: flex;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 0;
    align-items: stretch;
    justify-content: stretch;
}

.site-menu-content__page #support-overlay.support-menu-admin .support-modal-shell {
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: 100%;
    min-height: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.site-menu-content__page #support-overlay.support-menu-admin .support-shared-header {
    border-radius: 0;
}

.site-menu-content__page #support-overlay.support-menu-admin #support-close-btn {
    pointer-events: none;
    opacity: 0.55;
}

.site-menu-content__page #support-overlay.support-menu-admin .support-menu-admin__note-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.site-menu-content__page #support-overlay.support-menu-admin .support-menu-admin__note-card {
    margin: 0;
    text-align: left;
}

.site-menu-content__page #support-overlay.support-menu-admin .hop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--data-card-header-separator, rgba(44, 76, 107, 0.15));
    color: var(--color-academy-blue);
}

.site-menu-content__page #support-overlay.support-menu-admin .control-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.site-menu-content__page #support-overlay.support-menu-admin .support-pitch-card {
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 10px 14px;
    margin-bottom: 16px;
    margin-top: 12px;
    text-align: left;
}

.site-menu-content__page #support-overlay.support-menu-admin .support-pitch-card .text.text--body-prose {
    margin-top: 4px;
}

.site-menu-content__page #support-overlay.support-menu-admin .support-method-group-frame {
    margin-bottom: 16px;
}

.site-menu-content__page #support-overlay.support-menu-admin .support-method-group-frame:last-of-type {
    margin-bottom: 16px;
}

