/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #13131b;
    --bg-secondary: #1a1a24;
    --bg-tertiary: #242430;
    --bg-card: #1e1e2a;
    --bg-hover: #2a2a38;
    --text-primary: #e0e0e0;
    --text-secondary: #999;
    --text-muted: #666;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --success: #22c55e;
    --success-bright: #4ade80;
    --success-bg: rgba(34, 197, 94, 0.12);
    --success-border: rgba(34, 197, 94, 0.3);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --warning-border: rgba(245, 158, 11, 0.3);
    --danger: #ef4444;
    --danger-bright: #f87171;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --danger-border: rgba(239, 68, 68, 0.3);
    --info: #3b82f6;
    --info-bright: #60a5fa;
    --info-bg: rgba(59, 130, 246, 0.12);
    --info-border: rgba(59, 130, 246, 0.3);
    --success-hover: #16a34a;
    --success-btn: #15803d;
    --success-btn-hover: #166534;
    --danger-hover: #dc2626;
    --danger-btn: #b91c1c;
    --danger-btn-hover: #991b1b;
    --text-primary-inverse: #1a1a1a;
    --bg-google-hover: #f5f5f5;
    --solana: #9945ff;
    --border: #2a2a2a;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --text-heading: #fff;
    --bg-void: #000;
    --border-hover: #333;
    --accent-purple: #a78bfa;
    --accent-light: #a5b4fc;
    --warning-bright: #eab308;
    --warning-dark: #d97706;
    --code-bg: #0d1117;
    --code-text: #c9d1d9;
    --color-x-brand: #1da1f2;
    --solana-green: #14f195;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Scroll-margin for anchored sections so sticky nav doesn't cover them */
#features,
#how-it-works,
#organizers {
    scroll-margin-top: var(--header-height);
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    background: linear-gradient(170deg, #13131b 0%, #14141e 40%, #111118 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===== Layout ===== */
.container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Subtle ambient glow behind page content (admin/scanner) */
.page-container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    max-width: 100vw;
    height: 500px;
    background: radial-gradient(
        ellipse at center,
        rgba(99, 102, 241, 0.04) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.page-container > * {
    position: relative;
    z-index: 1;
}

.center-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 1.5rem;
    position: relative;
}

/* Subtle ambient glow behind the center content */
.center-page::before {
    content: "";
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-width: 100vw;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(99, 102, 241, 0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.center-page > * {
    position: relative;
    z-index: 1;
}

/* ===== Typography ===== */
h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
}

/* ===== SVG Icon System ===== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    flex-shrink: 0;
}
.icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.icon-xs {
    width: 0.75em;
    height: 0.75em;
}
.icon-sm {
    width: 0.875em;
    height: 0.875em;
}
.icon-md {
    width: 1.25em;
    height: 1.25em;
}
.icon-lg {
    width: 1.5em;
    height: 1.5em;
}
.icon-xl {
    width: 2em;
    height: 2em;
}
.icon-2xl {
    width: 2.5em;
    height: 2.5em;
}
.icon-3xl {
    width: 3em;
    height: 3em;
}
.icon-success {
    color: var(--success);
}
.icon-warning {
    color: var(--warning);
}
.icon-danger {
    color: var(--danger);
}
.icon-info {
    color: var(--info);
}
.icon-muted {
    color: var(--text-muted);
}
.icon-accent {
    color: var(--accent);
}
.icon-white {
    color: var(--text-heading);
}

/* ===== Logo ===== */
.logo {
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Brand gradient text for the BeThere logo */
.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 40%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 0.5rem;
}

.brand-logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-top: -0.25rem;
    margin-bottom: 1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.15s,
        box-shadow 0.2s,
        opacity 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn:active {
    transform: scale(0.97) translateY(0);
    opacity: 0.9;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    background: var(--text-heading);
    color: var(--text-primary-inverse);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    position: relative;
    box-shadow:
        0 2px 16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition:
        background 0.2s,
        transform 0.15s,
        box-shadow 0.2s;
}

.btn-google:hover {
    background: var(--bg-google-hover);
    transform: translateY(-1px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.btn-google:active {
    transform: scale(0.98) translateY(0);
    box-shadow:
        0 1px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    color: var(--text-heading);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #818cf8 0%, #a5b4fc 100%);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-success {
    background: var(--success-btn);
    color: var(--text-heading);
}

.btn-success:hover {
    background: var(--success-btn-hover);
}

.btn-danger {
    background: var(--danger-btn);
    color: var(--text-heading);
}

.btn-danger:hover {
    background: var(--danger-btn-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-hover);
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

.btn-xs {
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    line-height: 1;
}

.btn-block {
    width: 100%;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.15s;
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Finance icon accents (kept for admin/status SVG icons) */

/* ===== Stats ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: linear-gradient(
        135deg,
        rgba(30, 30, 30, 0.95) 0%,
        rgba(26, 26, 26, 0.98) 100%
    );
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    transition:
        border-color 0.3s,
        box-shadow 0.3s;
}

.stat-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.stat-card.success {
    border-color: rgba(34, 197, 94, 0.25);
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.06) 0%,
        rgba(30, 30, 30, 0.95) 100%
    );
}

.stat-card.warning {
    border-color: rgba(245, 158, 11, 0.25);
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.06) 0%,
        rgba(30, 30, 30, 0.95) 100%
    );
}

.stat-card.info {
    border-color: rgba(59, 130, 246, 0.25);
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.06) 0%,
        rgba(30, 30, 30, 0.95) 100%
    );
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card.success .stat-value {
    color: var(--success);
}

.stat-card.warning .stat-value {
    color: var(--warning);
}

.stat-card.info .stat-value {
    color: var(--info);
}

/* ===== Progress Bar ===== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

/* ===== Header / Nav ===== */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.header-logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 40%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-page-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-nav {
    display: flex;
    gap: 0.25rem;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.15s ease;
}

.header-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
}

.header-nav-label {
    font-size: 0.8rem;
}

.header-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    color: var(--text-heading);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    flex-shrink: 0;
}

.header-sign-out {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.header-sign-out-icon {
    font-size: 0.9rem;
}

.header-sign-out-label {
    font-size: 0.8rem;
}

/* Active nav link in header */
nav a[aria-current="page"],
nav a.active {
    background: var(--accent);
    color: var(--text-heading);
    border-color: var(--accent);
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.tab {
    flex: 1;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition:
        color 0.2s,
        border-color 0.2s;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ===== Attendee List ===== */
.attendee-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* attendee-item gradient styles defined below (near EOF) */

.attendee-name {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 1rem;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.5rem;
}

.attendee-row-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attendee-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
    padding-left: 32px; /* align with name (checkbox width + gap) */
}

.attendee-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.attendee-email-inline {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.admin-ticket-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
}

.admin-time-ago-inline {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.attendee-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* .attendee-status removed — replaced by .attendee-actions in card layout */

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger-bright);
    border: 1px solid var(--danger-border);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info-bright);
    border: 1px solid var(--info-border);
}

/* Small badge variants for event list indicators */
.badge-warning-xs {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success-xs {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    font-weight: 600;
    white-space: nowrap;
}

/* Enhanced pill variant for participation type badges (scanner) */
.badge-pill {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
}

/* ===== Scanner ===== */
.scanner-area {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-void);
}

.scanner-area video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scanner-frame {
    width: 65%;
    aspect-ratio: 1;
    border: 3px solid rgba(99, 102, 241, 0.8);
    border-radius: var(--radius);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

.scanner-line {
    position: absolute;
    width: 60%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0%,
    100% {
        top: 20%;
    }
    50% {
        top: 75%;
    }
}

.scanner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
}

.scanner-placeholder .icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.manual-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.manual-input-group input {
    flex: 1;
    padding: 0.7rem 0.85rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.manual-input-group input:focus {
    border-color: var(--accent);
}

.manual-input-group input::placeholder {
    color: var(--text-muted);
}

/* ===== Result Panel ===== */
.result-panel {
    display: none;
    margin-top: 1rem;
}

.result-panel.visible {
    display: block;
}

/* result-success/error/warning gradient styles defined below (near EOF) */

.result-details {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.result-details p {
    margin-bottom: 0.25rem;
}

/* ===== Alerts / Messages ===== */
.error-msg {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius);
    color: var(--danger-bright);
    font-size: 0.9rem;
    line-height: 1.5;
    display: none;
}

.error-msg.visible {
    display: block;
}

.info-msg {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: var(--radius);
    color: var(--info);
    font-size: 0.9rem;
    line-height: 1.5;
    display: none;
}

.info-msg.visible {
    display: block;
}

/* ===== Loading / Spinner ===== */
.loading {
    display: none;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.loading.visible {
    display: block;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-secondary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.spinner-lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.spinner-sm {
    width: 12px;
    height: 12px;
    border-width: 1.5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes claim-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: var(--text-secondary);
    gap: 0.75rem;
}

/* ===== Search ===== */
.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-box input {
    width: 100%;
    padding: 0.7rem 0.85rem 0.7rem 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--accent);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
}

.search-box .search-icon::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 2px;
    background: var(--text-muted);
    bottom: -3px;
    right: -4px;
    transform: rotate(45deg);
    border-radius: 1px;
}

/* ===== QR Code Display ===== */
.qr-display {
    text-align: center;
    padding: 1rem;
}

.qr-display img {
    max-width: 256px;
    max-height: 256px;
    border-radius: var(--radius);
    border: 4px solid var(--text-heading);
}

/* ===== Footer ===== */
.footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===== Utility ===== */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}
.mt-1 {
    margin-top: 0.5rem;
}
.mt-2 {
    margin-top: 1rem;
}
.mt-3 {
    margin-top: 1.5rem;
}
.mb-1 {
    margin-bottom: 0.5rem;
}
.mb-2 {
    margin-bottom: 1rem;
}
.mb-3 {
    margin-bottom: 1.5rem;
}
.gap-1 {
    gap: 0.5rem;
}
.gap-2 {
    gap: 1rem;
}
.flex {
    display: flex;
}
.flex-col {
    flex-direction: column;
}
.items-center {
    align-items: center;
}
.justify-between {
    justify-content: space-between;
}
.hidden {
    display: none !important;
}
.w-full {
    width: 100%;
}

/* ===== Claim Page: Brand Header ===== */
.claim-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.claim-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.claim-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.claim-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ===== Deposit Page: Event Context Header ===== */
.event-context-header {
    margin: 0.5rem auto 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.event-context-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.event-context-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ===== Landing Page: Event Card ===== */
.event-card-link {
    text-decoration: none;
}

.event-card {
    cursor: pointer;
    transition:
        transform 0.15s,
        border-color 0.15s;
}

.event-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

/* ===== Claim Page: Event Info Card ===== */
/* ===== Claim Page: Welcome Card ===== */
.claim-welcome-card {
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.08) 0%,
        rgba(30, 30, 30, 0.95) 100%
    );
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.claim-welcome-card h3 {
    color: var(--text-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.claim-welcome-card .checked-in-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== Claim Page: NFT Badge Preview ===== */
.nft-preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.06) 0%,
        rgba(30, 30, 30, 0.95) 100%
    );
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.nft-preview-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.4),
        transparent,
        rgba(129, 140, 248, 0.3)
    );
    z-index: -1;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1px;
}

.nft-preview-badge {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}

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

.nft-preview-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.nft-preview-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Claim Page: NFT Coming Soon ===== */
.claim-nft-soon-card {
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.06) 0%,
        rgba(30, 30, 30, 0.95) 100%
    );
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.claim-nft-soon-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(245, 158, 11, 0.04),
        transparent
    );
    animation: shimmer-slide 3s ease-in-out infinite;
}

@keyframes shimmer-slide {
    0% {
        left: -60%;
    }
    100% {
        left: 160%;
    }
}

.claim-nft-soon-card h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.claim-nft-soon-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
}

.claim-nft-soon-card .nft-description {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(245, 158, 11, 0.15);
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
}

/* ===== Claim Page: Wallet Input ===== */
.claim-wallet-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 0.75rem 0.85rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: "SF Mono", "Fira Code", monospace;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.claim-wallet-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.claim-wallet-input::placeholder {
    color: var(--text-muted);
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== Claim Page: Locked Wallet Indicator ===== */
.claim-wallet-locked {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 9999px;
    padding: 0.3rem 0.65rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.claim-wallet-locked svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.7;
}

.claim-wallet-locked .locked-wallet-addr {
    font-family: var(
        --font-mono,
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace
    );
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Claim Page: Paste Button ===== */
.claim-paste-btn {
    flex-shrink: 0;
    min-height: 44px;
    padding: 0.65rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-sm);
    color: var(--text-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.claim-paste-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
}

.claim-paste-btn:active {
    transform: scale(0.95);
}

/* ===== Claim Page: Claim Button ===== */
.claim-btn-mint {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    color: var(--text-heading);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 2px 16px rgba(99, 102, 241, 0.3);
    margin-top: 0.5rem;
}

.claim-btn-mint:hover:not(:disabled) {
    background: linear-gradient(135deg, #818cf8 0%, #a5b4fc 100%);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.claim-btn-mint:active:not(:disabled) {
    transform: scale(0.98) translateY(0);
}

.claim-btn-mint:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== Claim Page: Component Styles ===== */

/* Main claim container — centered column layout */
.claim-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Claim state wrapper — full width within center-page */
.claim-state-full {
    width: 100%;
}

/* Shimmer skeleton row — avatar + text lines */
.claim-shimmer-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Shimmer inner column — text line placeholders */
.claim-shimmer-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Shimmer NFT square */
.claim-shimmer-nft {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    flex-shrink: 0;
}

/* Shimmer input bar */
.claim-shimmer-input {
    width: 100%;
    height: 42px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

/* Wallet label */
.claim-wallet-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

/* Wallet input row — flex for input + paste button */
.claim-wallet-row {
    display: flex;
    gap: 0.5rem;
}

/* Wallet divider between adapter buttons and manual input */
.claim-wallet-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.claim-wallet-divider::before,
.claim-wallet-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Wallet hint text */
.claim-wallet-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Minting state container */
.claim-minting {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    animation: claim-fade-in 0.3s ease-out;
}

/* Minting spinner wrapper */
.claim-minting-spinner {
    position: relative;
    width: 64px;
    height: 64px;
}

/* Minting spinner shimmer bg */
.claim-minting-shimmer {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Minting spinner position */
.claim-minting-spinner .spinner-lg {
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 1;
}

/* Minting title */
.claim-minting-title {
    color: var(--text-primary);
    font-weight: 600;
}

/* Minting sub-detail */
.claim-minting-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Minting timing hint */
.claim-minting-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Adventure gate — shown when adventure is required before claiming */
.claim-adventure-gate {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(255, 107, 53, 0.08) 0%,
        rgba(30, 30, 30, 0.95) 100%
    );
    border: 1px solid var(--warning-border);
    border-radius: var(--radius);
    text-align: center;
    animation: claim-fade-in 0.3s ease-out;
}

.claim-adventure-gate h2 {
    color: var(--warning);
    font-size: 1.25rem;
    font-weight: 700;
}

.claim-adventure-status {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.claim-adventure-info {
    max-width: 400px;
}

.claim-adventure-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.claim-adventure-hint {
    color: var(--text-muted);
    font-size: 0.85rem !important;
}

.claim-adventure-btn {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
}

/* Share to X button */
.claim-share-x {
    border-color: var(--color-x-brand);
    color: var(--color-x-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.claim-share-x:hover {
    opacity: 0.8;
    border-color: var(--color-x-brand);
    background: rgba(29, 161, 242, 0.08);
}
.claim-share-x svg {
    width: 18px;
    height: 18px;
}

/* Already claimed detail text */
.claim-already-detail {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Pixelated SVG rendering for avatar */
.claim-avatar-svg {
    image-rendering: pixelated;
}

/* Retry button margin */
.claim-retry-btn {
    margin-top: 1rem;
}

/* ===== Claim Page: Success State ===== */
.claim-success {
    width: 100%;
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.08) 0%,
        rgba(30, 30, 30, 0.95) 100%
    );
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.08);
}

.claim-success::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.3),
        transparent,
        rgba(99, 102, 241, 0.2)
    );
    z-index: -1;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1px;
}

.claim-success h2 {
    color: var(--success);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.claim-success .success-check,
.success-check {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.claim-success .success-check svg,
.success-check svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-heading);
    stroke-width: 3;
    fill: none;
}

.claim-success .success-details {
    text-align: left;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.claim-success .success-details p {
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.claim-success .success-details strong {
    color: var(--text-primary);
}

.claim-success .success-details code {
    font-size: 0.75rem;
    color: var(--accent);
    word-break: break-all;
    font-family: "SF Mono", "Fira Code", monospace;
}

.claim-success .success-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== Claim Page: Error State ===== */
.claim-error {
    width: 100%;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    animation: claim-fade-in 0.3s ease-out;
}

.claim-error h2 {
    color: var(--danger);
    font-size: 1.25rem;
    font-weight: 700;
}

/* ===== Claim Page: Warning State (Already Claimed) ===== */
.claim-warning {
    width: 100%;
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.06) 0%,
        rgba(30, 30, 30, 0.95) 100%
    );
    border: 1px solid var(--warning-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.claim-warning h2 {
    color: var(--warning);
    font-size: 1.25rem;
    font-weight: 700;
}

/* ===== Claim Page: Loading State ===== */
.claim-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-secondary);
}

.claim-loading h3 {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== Claim Page: Bookmark Footer ===== */
.claim-bookmark-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

.claim-bookmark-hint a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 500;
}

.claim-bookmark-hint a:hover {
    color: var(--accent-hover);
}

/* ===== Claim Page: Event Link ===== */
.claim-event-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.25rem;
}

.claim-event-link a {
    color: var(--accent);
    text-decoration: underline;
    word-break: break-all;
}

/* ===== Claim Page: Footer Brand ===== */
.claim-footer {
    margin-top: 2.5rem;
    text-align: center;
}

.claim-footer .brand-line {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.claim-footer .brand-line .accent {
    color: var(--accent);
    font-weight: 600;
}

/* ===== Shared: Scanner Success Title ===== */
.claim-success-title {
    color: var(--success);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* ===== Shared: Result Cards Enhancement ===== */
.result-success {
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.08) 0%,
        rgba(30, 30, 30, 0.95) 100%
    );
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.result-error {
    background: linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.08) 0%,
        rgba(30, 30, 30, 0.95) 100%
    );
    border: 1px solid var(--danger-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.result-warning {
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.08) 0%,
        rgba(30, 30, 30, 0.95) 100%
    );
    border: 1px solid var(--warning-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.result-success h2,
.result-error h2,
.result-warning h2 {
    margin-bottom: 0.5rem;
}

.result-success h2 {
    color: var(--success);
}

.result-error h2 {
    color: var(--danger);
}

.result-warning h2 {
    color: var(--warning);
}

.result-success .icon,
.result-error .icon,
.result-warning .icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* ===== Shared: Attendee Item Enhancement ===== */
.attendee-item {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 1rem;
    background: linear-gradient(
        135deg,
        rgba(30, 30, 30, 0.95) 0%,
        rgba(26, 26, 26, 0.98) 100%
    );
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.attendee-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

/* Attendee checkbox */
.attendee-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 4px;
    border: 2px solid var(--border);
    background: transparent;
    color: transparent;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
    align-self: center;
}

.attendee-checkbox:hover:not(:disabled) {
    border-color: var(--accent);
}

.attendee-checkbox.checked {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-heading);
}

.attendee-checkbox:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.attendee-item.selected {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Bulk action bar */
.bulk-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.bulk-action-bar span {
    font-weight: 500;
}

/* ===== Responsive ===== */

/* Tiny phones (< 360px) */
@media (max-width: 359px) {
    .container {
        max-width: 480px;
        padding: 1rem 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 1.25rem;
    }

    .claim-title {
        font-size: 1.25rem;
    }

    .brand-logo {
        font-size: 1.5rem;
    }

    .btn {
        min-height: 44px;
    }

    .tab {
        padding: 0.65rem 0.25rem;
        font-size: 0.8rem;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .header-nav-label {
        display: none;
    }

    .header-sign-out-label {
        display: none;
    }

    .header-page-title {
        display: none;
    }

    .scanner-area {
        max-width: 280px;
    }

    .page-container::before {
        width: 300px;
        height: 225px;
    }

    .center-page::before {
        width: 300px;
        height: 300px;
    }

    .claim-success {
        padding: 1.25rem 1rem;
    }

    .header-logo {
        font-size: 0.95rem;
    }

    .header-nav-link {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
    }

    .header-user-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .center-page {
        padding: 1rem 0.75rem;
    }

    .filter-pill {
        font-size: 0.72rem;
        padding: 0.3rem 0.5rem;
    }

    .bulk-action-bar {
        font-size: 0.78rem;
        padding: 0.6rem 0.75rem;
    }

    .attendee-item {
        padding: 0.5rem 0.75rem;
        gap: 0.25rem;
    }

    .attendee-name {
        font-size: 0.85rem;
    }

    .attendee-email-inline {
        font-size: 0.7rem;
        max-width: 140px;
    }

    .attendee-row-bottom {
        padding-left: 28px;
    }

    .claim-welcome-card {
        padding: 1rem;
    }

    .claim-welcome-card h3 {
        font-size: 0.95rem;
    }

    .claim-wallet-input {
        font-size: 0.75rem;
        padding: 0.6rem 0.65rem;
    }

    .claim-paste-btn {
        padding: 0.6rem 0.65rem;
        font-size: 0.75rem;
        min-height: 40px;
    }

    .claim-success {
        padding: 1rem 0.75rem;
    }

    .claim-success h2 {
        font-size: 1.15rem;
    }

    .claim-asset-card {
        padding: 0.75rem;
    }

    .claim-asset-code {
        font-size: 0.7rem;
    }

    .claim-nft-soon-card {
        padding: 1rem;
    }

    .claim-error,
    .claim-warning {
        padding: 1rem;
    }

    .session-timer {
        font-size: 0.72rem;
        padding: 0.3rem 0.65rem;
        gap: 0.35rem;
    }

    .timer-label {
        font-size: 0.62rem;
    }

    .timer-value {
        font-size: 0.78rem;
    }

    .participant-avatar-pixel {
        width: 56px;
        height: 56px;
    }

    .nft-preview-card {
        padding: 0.75rem;
    }

    .nft-preview-card::before {
        display: none;
    }

    /* Quiz responsive (Issue 002) */
    .claim-quiz-intro {
        padding: 1rem 0.85rem;
    }
    .claim-quiz-intro h3 {
        font-size: 1rem;
    }
    .claim-quiz-icon {
        width: 40px;
        height: 40px;
    }
    .claim-quiz-icon svg {
        width: 22px;
        height: 22px;
    }
    .claim-quiz-desc {
        font-size: 0.82rem;
    }
    .claim-quiz-question {
        padding: 1rem 0.85rem;
    }
    .claim-quiz-q-text {
        font-size: 0.88rem;
    }
    .claim-quiz-opt {
        padding: 0.6rem 0.75rem;
        font-size: 0.82rem;
        gap: 0.5rem;
    }
    .claim-quiz-result {
        padding: 1rem 0.85rem;
    }
    .claim-quiz-score-num {
        font-size: 2rem;
    }
    .claim-quiz-result-icon {
        width: 48px;
        height: 48px;
    }
    .claim-quiz-result-icon svg {
        width: 28px;
        height: 28px;
    }
    .claim-quiz-explanations {
        padding: 1rem 0.85rem;
    }
    .claim-quiz-exp-q {
        font-size: 0.8rem;
    }
    .claim-quiz-exp-text {
        font-size: 0.78rem;
    }
    .claim-quiz-submit-count {
        font-size: 0.78rem;
    }
    .claim-quiz-exhausted {
        padding: 1rem;
    }
}

/* Attendee list: stack actions on narrow screens */
@media (max-width: 480px) {
    .attendee-row-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 28px;
    }
    .attendee-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.25rem;
    }
    .attendee-email-inline {
        max-width: 160px;
    }
}

/* Standard phones (360-480px) */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .page-container::before {
        width: 400px;
        height: 300px;
    }

    .center-page::before {
        width: 400px;
        height: 400px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .claim-title {
        font-size: 1.5rem;
    }

    .claim-success {
        padding: 1.5rem 1.25rem;
    }

    .header-logo {
        font-size: 1.05rem;
    }

    .header-nav-label {
        display: none;
    }

    .header-sign-out-label {
        display: none;
    }

    /* Touch targets: minimum 44px height on mobile */
    .btn {
        min-height: 44px;
    }

    .claim-btn-mint {
        min-height: 48px;
    }

    .center-page {
        padding: 1.25rem;
    }

    .filter-pill {
        font-size: 0.78rem;
    }

    .bulk-action-bar {
        gap: 0.5rem;
    }

    .search-box input {
        font-size: 0.85rem;
    }

    .claim-welcome-card {
        padding: 1.1rem;
    }

    .claim-success {
        padding: 1.25rem 1rem;
    }

    .claim-success h2 {
        font-size: 1.3rem;
    }

    .claim-wallet-input {
        font-size: 0.82rem;
    }

    .claim-event-link {
        font-size: 0.78rem;
    }

    /* Quiz responsive (Issue 002) */
    .claim-quiz-opt {
        font-size: 0.84rem;
    }
    .claim-quiz-q-text {
        font-size: 0.92rem;
    }
    .claim-quiz-score-num {
        font-size: 2.2rem;
    }

    .session-timer {
        font-size: 0.8rem;
        padding: 0.35rem 0.85rem;
    }

    .nft-preview-card {
        padding: 1rem;
    }
}

/* Large phones & mini tablets (481-767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        max-width: 600px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .page-container {
        padding: 1.5rem;
    }

    .scanner-area {
        max-width: 360px;
    }

    .claim-success {
        padding: 1.75rem 1.5rem;
    }
}

/* Tablets & desktop (768px+) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .page-container {
        max-width: 900px;
        padding: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .header-inner {
        max-width: 900px;
    }

    .header-logo {
        font-size: 1.3rem;
    }

    .header-page-title {
        font-size: 0.9rem;
    }

    .header-actions {
        gap: 0.75rem;
    }

    .claim-success {
        padding: 2.5rem 2rem;
    }

    .timeline-item {
        font-size: 0.85rem;
    }

    .claim-wallet-input {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }

    .scanner-area {
        max-width: 400px;
    }
}

/* Landscape phones (short height) */
@media (max-height: 500px) and (orientation: landscape) {
    .center-page {
        min-height: auto;
        padding: 1rem;
    }

    .scanner-area {
        max-height: 250px;
        aspect-ratio: auto;
    }

    .claim-loading {
        padding: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .page-container {
        padding: 1rem;
    }
}

/* ===== Quiz (Issue 002 — activity-gated claim) ===== */
.claim-quiz-intro {
    text-align: center;
    padding: 1.5rem 1.25rem;
}
.claim-quiz-intro h3 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fg);
}
.claim-quiz-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
}
.claim-quiz-icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
}
.claim-quiz-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.5rem 0;
}
.claim-quiz-desc strong {
    color: var(--primary);
}
.claim-quiz-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}
.claim-quiz-sep {
    opacity: 0.4;
}
.claim-quiz-question {
    padding: 1.25rem;
}
.claim-quiz-q-header {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}
.claim-quiz-q-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}
.claim-quiz-q-of {
    font-size: 0.75rem;
    color: var(--muted);
}
.claim-quiz-q-text {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 0.85rem;
    color: var(--fg);
}
.claim-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.claim-quiz-opt {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--fg);
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}
.claim-quiz-opt:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.04);
}
.claim-quiz-opt-selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    font-weight: 500;
}
.claim-quiz-opt-radio {
    flex-shrink: 0;
    font-size: 0.75rem;
    line-height: 1;
    color: var(--muted);
    width: 16px;
    text-align: center;
}
.claim-quiz-opt-selected .claim-quiz-opt-radio {
    color: var(--primary);
}
.claim-quiz-submit {
    margin-top: 0.5rem;
}
.claim-quiz-submit-count {
    opacity: 0.75;
    font-size: 0.85rem;
    margin-left: 0.3rem;
}
.claim-quiz-result {
    text-align: center;
    padding: 1.5rem 1.25rem;
}
.claim-quiz-result h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem;
}
.claim-quiz-passed h3 {
    color: var(--success);
}
.claim-quiz-failed h3 {
    color: var(--warning);
}
.claim-quiz-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
}
.claim-quiz-passed .claim-quiz-result-icon {
    background: rgba(16, 185, 129, 0.1);
}
.claim-quiz-failed .claim-quiz-result-icon {
    background: rgba(245, 158, 11, 0.1);
}
.claim-quiz-result-icon svg {
    width: 32px;
    height: 32px;
}
.claim-quiz-score {
    display: inline-flex;
    align-items: baseline;
    margin: 0.5rem 0;
}
.claim-quiz-score-num {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}
.claim-quiz-passed .claim-quiz-score-num {
    color: var(--success);
}
.claim-quiz-failed .claim-quiz-score-num {
    color: var(--warning);
}

/* Quiz passed → adventure check transition */
.claim-quiz-adventure-check {
    text-align: center;
    padding: 1rem 1.25rem;
}
.claim-quiz-passed-msg {
    color: var(--success);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}
.claim-quiz-score-pct {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.7;
    margin-left: 2px;
}
.claim-quiz-score-detail {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0.25rem 0 0.5rem;
}
.claim-quiz-retry-info {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}
.claim-quiz-retry-btn {
    margin-top: 0.75rem;
    background: var(--bg);
    color: var(--fg);
    border: 1.5px solid var(--border);
}
.claim-quiz-retry-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}
.claim-quiz-exhausted {
    text-align: center;
    padding: 1.25rem;
}
.claim-quiz-exhausted p {
    color: var(--muted);
    font-size: 0.9rem;
}
.claim-quiz-explanations {
    padding: 1.25rem;
}
.claim-quiz-explanations h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--fg);
}
.claim-quiz-exp-item {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}
.claim-quiz-exp-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.claim-quiz-exp-header {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.claim-quiz-exp-correct {
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}
.claim-quiz-exp-wrong {
    color: var(--warning);
    font-weight: 700;
    flex-shrink: 0;
}
.claim-quiz-exp-q {
    font-size: 0.85rem;
    color: var(--fg);
    line-height: 1.4;
}
.claim-quiz-exp-text {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0.3rem 0 0 1.4rem;
    line-height: 1.45;
}

/* ===== Hearts Widget ===== */
.hearts-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0 0.5rem;
    padding: 1rem;
}

.heart-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 9999px;
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--danger);
}

.heart-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.05);
}

.heart-btn:active {
    transform: scale(0.95);
}

.heart-count {
    font-size: 1rem;
    font-weight: 700;
    color: var(--danger);
    min-width: 1.5rem;
    text-align: center;
}

.hearts-container {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    pointer-events: none;
}

.floating-heart {
    position: absolute;
    bottom: 0;
    animation: float-up 3s ease-out forwards;
    opacity: 0;
}

@keyframes float-up {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120px) scale(0.3) rotate(15deg);
        opacity: 0;
    }
}

/* ===== Session Timer ===== */
.session-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    margin: 0.75rem 0;
    font-size: 0.85rem;
}

.timer-label {
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.timer-value {
    color: var(--text-primary);
    font-family: "SF Mono", "Fira Code", monospace;
    font-weight: 500;
}

/* ===== Claim Progress Stepper ===== */
.claim-stepper {
    width: 100%;
    max-width: 320px;
    margin: 0.75rem auto;
}

.claim-stepper-track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.claim-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.claim-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    margin-bottom: 0.35rem;
    z-index: 1;
}

.claim-step-circle.completed {
    background: var(--success);
    color: var(--text-heading);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.claim-step-circle.current {
    background: var(--accent);
    color: var(--text-heading);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
    animation: claim-step-pulse 2s infinite;
}

.claim-step-circle.upcoming {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.claim-step-label {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
}

.claim-step-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* Connector lines between steps */
.claim-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16px;
    left: calc(50% + 16px);
    width: calc(100% - 32px);
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 0;
}

.claim-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 16px;
    left: calc(50% + 16px);
    height: 2px;
    background: var(--accent);
    z-index: 0;
    width: 0;
    transition: width 0.5s ease;
}

.claim-step-circle.completed
    + .claim-step-label
    ~ .claim-step:not(:last-child)::before {
    width: calc(100% - 32px);
}

@keyframes claim-step-pulse {
    0%,
    100% {
        box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    }
}

/* ===== Participant Pixel Avatar ===== */
.participant-avatar-pixel {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.claim-welcome-card .participant-avatar-pixel {
    margin-bottom: 0.5rem;
}

/* ===== Shimmer Skeleton Loading ===== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 25%,
        rgba(255, 255, 255, 0.04) 50%,
        var(--bg-secondary) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    border-radius: var(--radius-sm);
}

.shimmer-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.shimmer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.shimmer-line {
    height: 14px;
    border-radius: 4px;
}

.shimmer-line-sm {
    height: 10px;
    border-radius: 4px;
}

.shimmer-btn {
    height: 48px;
    border-radius: var(--radius);
}

/* ===== Asset ID Card (Claim Success) ===== */
.claim-asset-card {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.claim-asset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.claim-asset-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: "SF Mono", "Fira Code", monospace;
}

.claim-asset-status {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--success);
}

.claim-asset-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

.claim-asset-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
}

.claim-asset-code {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-family: "SF Mono", "Fira Code", monospace;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.claim-copy-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        color 0.2s,
        transform 0.1s;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.claim-copy-btn:hover {
    color: var(--accent-hover);
}

.claim-copy-btn:active {
    transform: scale(0.9);
}

.claim-copy-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== Scanner: Fullscreen Camera ===== */
.scanner-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: var(--bg-void);
}

.scanner-fullscreen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-frame-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.scanner-scan-hint {
    position: absolute;
    bottom: 35%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(31, 31, 39, 0.8);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    white-space: nowrap;
    pointer-events: none;
}

/* ===== Scanner: Bottom Sheet ===== */
.scanner-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(26, 26, 26, 0.95);
    border-top: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 0.75rem 1rem 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-height: 70vh;
    overflow-y: auto;
}

.scanner-bottom-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 0.75rem;
    opacity: 0.5;
}

.scanner-bottom-session {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.scanner-bottom-session-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scanner-bottom-session-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
}

.scanner-bottom-session-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Scanner session stats */
.scanner-session-stats {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.scanner-session-stat {
    flex: 1;
    text-align: center;
}

.scanner-session-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.scanner-session-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.scanner-manual-toggle {
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.scanner-manual-toggle:hover {
    color: var(--text-primary);
}

.scanner-settings-btn {
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 0.25rem;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
}

.scanner-settings-btn:hover {
    color: var(--text-primary);
}

.scanner-settings-popover {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 160px;
}

.scanner-settings-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem 0;
    font-family: inherit;
}

.scanner-settings-toggle:hover {
    color: var(--text-primary);
}

.scanner-settings-toggle.is-on {
    color: var(--accent);
}

.scanner-manual-form {
    padding-top: 0.5rem;
}

.scanner-manual-form .manual-input-group {
    margin-top: 0;
}

/* ===== Scanner: Glass Panel Result Overlay ===== */
.scanner-result-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 1rem;
    pointer-events: auto;
}

.scanner-glass-card {
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.scanner-glass-card .result-success,
.scanner-glass-card .result-error,
.scanner-glass-card .result-warning {
    background: transparent;
    border: none;
    padding: 0;
}

.scanner-glass-card .card {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.scanner-glass-card .btn-block {
    margin-top: 1rem;
}

/* ===== Scanner: Success Flash ===== */
.scanner-success-flash {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: radial-gradient(
        circle,
        rgba(34, 197, 94, 0.12) 0%,
        rgba(34, 197, 94, 0) 70%
    );
    pointer-events: none;
    animation: flash-fade 1.5s ease-out forwards;
}

@keyframes flash-fade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* ===== Scanner: State View Components ===== */
.scanner-state-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.scanner-state-loading {
    text-align: center;
}

.scanner-state-loading .page-loading {
    min-height: auto;
    padding: 1rem;
}

.scanner-attendee-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 0.75rem;
}

.scanner-attendee-name {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.scanner-attendee-email {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.scanner-attendee-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.scanner-attendee-detail {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.scanner-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.scanner-qr-wrapper {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
}

.scanner-qr-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--text-heading);
    border-radius: var(--radius);
    /* Uniform padding for geometric centering. */
    padding: 1rem;
}

.scanner-qr-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.scanner-qr-img {
    display: block;
    width: 240px;
    height: 240px;
}

.scanner-qr-copy-btn {
    margin-top: 0.75rem;
    width: 100%;
}

.scanner-result-detail-line {
    margin-top: 0.5rem;
}

/* ===== Scanner: Responsive Overrides ===== */
@media (max-width: 480px) {
    .scanner-bottom-sheet {
        max-height: 45vh;
        padding: 0.75rem;
    }
    .scanner-glass-card {
        max-width: calc(100vw - 2rem);
        padding: 1rem;
    }
    .scanner-qr-img {
        width: 160px;
        height: 160px;
    }
    .scanner-bottom-session {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 359px) {
    .scanner-bottom-session-title {
        font-size: 0.9rem;
    }
    .scanner-bottom-session-sub {
        font-size: 0.65rem;
    }
    .scanner-bottom-session {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .scanner-manual-toggle {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
    .scanner-session-stats {
        gap: 0.5rem;
    }
    .scanner-qr-img {
        width: 140px;
        height: 140px;
    }
}

/* ===== Landing Page — Phase B ===== */

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.landing-nav-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.landing-nav-links a:hover {
    color: var(--text-heading);
}

.solana-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--solana);
    background: rgba(153, 69, 255, 0.08);
    border: 1px solid rgba(153, 69, 255, 0.2);
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.solana-pill svg {
    width: 14px;
    height: 14px;
}

.landing-svg-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.landing-svg-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-svg-icon.icon-clipboard {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.landing-svg-icon.icon-clipboard svg {
    stroke: var(--info);
}

.landing-svg-icon.icon-chart {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.landing-svg-icon.icon-chart svg {
    stroke: var(--warning);
}

.landing-svg-icon.icon-proof {
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.25);
}

.landing-svg-icon.icon-proof svg {
    stroke: var(--accent-purple);
}

.landing-footer-brand {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 1rem 1rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.landing-footer-brand .accent {
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Admin Page — Phase B ===== */

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-pill {
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.filter-pill:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.filter-pill.active {
    color: var(--text-heading);
    background: var(--accent);
    border-color: var(--accent);
}

.stat-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.6rem;
}

.stat-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.stat-card.success .stat-progress-fill {
    background: var(--success);
}

.stat-card.warning .stat-progress-fill {
    background: var(--warning);
}

.stat-card.info .stat-progress-fill {
    background: var(--info);
}

.attendee-item.vip {
    border-color: rgba(234, 179, 8, 0.3);
    background: linear-gradient(
        135deg,
        rgba(234, 179, 8, 0.06) 0%,
        rgba(30, 30, 30, 0.95) 100%
    );
}

.attendee-item.vip:hover {
    border-color: rgba(234, 179, 8, 0.5);
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--warning-bright);
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.35rem;
}

.walkin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--info, #3b82f6);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.35rem;
}

/* ===== Social Proof ===== */
.social-proof {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    text-align: center;
}

.social-proof-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.social-proof-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.social-proof-pill {
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

/* ===== Landing Footer ===== */
.landing-footer {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.landing-footer-grid {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.landing-footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.landing-footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.landing-footer-col a:hover {
    color: var(--accent);
}

.landing-footer-brand-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    line-height: 1.5;
}

.landing-footer-bottom {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.landing-footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.landing-footer-powered {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.landing-footer-powered svg {
    width: 14px;
    height: 14px;
    color: var(--solana);
}

.swimlane-mockup {
    animation: swimlane-fade-in 0.25s ease-out;
}

@keyframes swimlane-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .landing-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* ===== Concentric Success Rings ===== */
.claim-success-rings {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.claim-success-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.15);
    animation: ring-pulse 2s ease-out infinite;
}

.claim-success-ring-1 {
    width: 80px;
    height: 80px;
    border-color: rgba(34, 197, 94, 0.3);
    animation-delay: 0s;
}

.claim-success-ring-2 {
    width: 100px;
    height: 100px;
    border-color: rgba(34, 197, 94, 0.15);
    animation-delay: 0.4s;
}

.claim-success-ring-3 {
    width: 120px;
    height: 120px;
    border-color: rgba(34, 197, 94, 0.07);
    animation-delay: 0.8s;
}

.claim-success-rings .success-check {
    position: relative;
    z-index: 2;
}

/* ===== Admin Sidebar Layout ===== */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 60px);
    background: var(--bg-secondary);
}

.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    align-self: start;
}

.admin-sidebar-section {
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
}

/* Sidebar navigation group (3 groups: Event Setup, Check-in, Payments) */
.admin-sidebar-group {
    padding: 0 0.75rem;
    margin-bottom: 1rem;
}

.admin-sidebar-group-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.35rem;
    opacity: 0.7;
}

.admin-sidebar-group .admin-sidebar-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.admin-sidebar-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.admin-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    text-align: left;
}

.admin-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.admin-sidebar-item.active {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.admin-sidebar-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-sidebar-icon svg {
    width: 100%;
    height: 100%;
}

.admin-sidebar-kbd {
    font-size: 0.65rem;
    color: var(--text-muted, #888);
    background: var(--bg-primary, #0d0d1a);
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    margin-left: auto;
    font-family: monospace;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.admin-sidebar-item:hover .admin-sidebar-kbd,
.admin-sidebar-item.active .admin-sidebar-kbd {
    opacity: 1;
}

.admin-sidebar-stats {
    margin-top: auto;
    padding: 1rem 1rem 0.5rem;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.admin-sidebar-stat {
    text-align: center;
}

.admin-sidebar-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-sidebar-stat-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.admin-sidebar-stats-empty {
    text-align: center;
    color: var(--text-muted, #888);
    font-size: 0.75rem;
    padding: 0.75rem;
    grid-column: 1 / -1;
}

.admin-content {
    padding: 1.25rem;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--bg-primary);
}

.admin-content .page-container {
    max-width: 100%;
    padding: 0;
}

.admin-content .page-container::before {
    display: none;
}

/* Mobile: stack sidebar into horizontal nav */
@media (max-width: 767px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-content {
        padding: 0.75rem;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 0.75rem;
        gap: 0.5rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .admin-sidebar-section {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
    }

    .admin-sidebar-heading {
        display: none;
    }

    .admin-sidebar-group {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0;
        margin-bottom: 0;
    }

    .admin-sidebar-group-label {
        display: none;
    }

    .admin-sidebar-item {
        white-space: nowrap;
        padding: 0.4rem 0.75rem;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: var(--radius-sm);
        font-size: 0.82rem;
    }

    .admin-sidebar-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent);
    }

    .admin-sidebar-stats {
        display: none;
    }

    .admin-event-selector {
        min-width: 0;
        overflow: hidden;
    }

    .admin-event-select {
        width: 100%;
        max-width: 200px;
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        background: white;
    }

    .admin-sidebar-kbd {
        display: none;
    }
}

/* ===== Admin Inline Style Classes ===== */
.admin-stat-value-success {
    color: var(--success);
}

.admin-stat-value-warning {
    color: var(--warning);
}

.admin-actions-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-force-regen-row {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-force-regen-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-count-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.admin-count-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.admin-empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.admin-load-more {
    text-align: center;
    padding: 1rem 0 1.5rem;
}

.admin-load-more .btn {
    min-width: 200px;
}

.admin-empty-state-sm {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
}

/* .admin-ticket-row removed — replaced by .admin-ticket-tag in card layout */
/* .admin-time-ago (block) removed — replaced by .admin-time-ago-inline */

.admin-cross-tab-summary {
    text-align: center;
    margin: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-tab-switch-link {
    cursor: pointer;
    text-decoration: underline;
}

.admin-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.admin-progress-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-progress-pct {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.admin-qr-result-card {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.05);
}

.admin-qr-result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.admin-qr-result-title {
    font-weight: 600;
    color: var(--text-primary);
}

.admin-qr-stats-row {
    display: flex;
    gap: 1rem;
}

.admin-qr-count-success {
    font-weight: 600;
    color: var(--success);
}

.admin-qr-count-warning {
    font-weight: 600;
    color: var(--warning);
}

.admin-qr-count-label {
    color: var(--text-secondary);
}

.admin-section-heading {
    margin-bottom: 0.75rem;
}

.admin-recent-email {
    font-size: 0.8rem;
}

.admin-badge-inline {
    font-size: 0.7rem;
    margin-bottom: 4px;
    display: inline-block;
}

.admin-checkin-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@keyframes ring-pulse {
    0% {
        transform: scale(0.85);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* ===== Landing Waitlist Responsive ===== */
@media (max-width: 480px) {
    .landing-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Landing Nav — Hamburger Menu (Mobile) ===== */
.landing-nav-hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    padding: 0.4rem;
    cursor: pointer;
    transition:
        color 0.2s,
        border-color 0.2s;
    align-items: center;
    justify-content: center;
}

.landing-nav-hamburger:hover {
    color: var(--text-heading);
    border-color: var(--text-secondary);
}

.landing-nav-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    border-top: 1px solid var(--border);
    background: rgba(15, 15, 15, 0.95);
}

.landing-nav-mobile-menu a {
    display: block;
    padding: 0.65rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.landing-nav-mobile-menu a:last-child {
    border-bottom: none;
}

.landing-nav-mobile-menu a:hover {
    color: var(--text-heading);
}

@media (max-width: 767px) {
    .landing-nav-links {
        display: none;
    }
    .landing-nav-actions {
        display: none;
    }
    .landing-nav-hamburger {
        display: flex;
    }
}

/* ===== Quiz Editor (Admin) ===== */
.quiz-editor {
    max-width: 800px;
}

/* State cards (error / empty) */
.quiz-error-card,
.quiz-empty-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.quiz-state-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.quiz-state-icon-lg {
    font-size: 3rem;
}

.quiz-state-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.75rem 0 1.25rem;
    line-height: 1.5;
}

/* Editor header */
.quiz-editor-header {
    margin-bottom: 1.25rem;
}

.quiz-editor-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.quiz-editor-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.quiz-editor-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.quiz-status-badge {
    margin-top: 0.5rem;
    display: inline-block;
}

/* Settings card */
.quiz-settings-card {
    margin-bottom: 1.25rem;
}

.quiz-section-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.quiz-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.quiz-setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.quiz-setting-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.quiz-setting-input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quiz-range-input {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.quiz-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg-primary);
}

.quiz-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg-primary);
}

.quiz-range-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    min-width: 3rem;
    text-align: right;
}

.quiz-number-input {
    width: 100%;
    padding: 0.45rem 0.65rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.quiz-number-input:focus {
    border-color: var(--accent);
}

.quiz-number-input[type="datetime-local"] {
    color-scheme: dark;
}

.quiz-setting-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Questions list */
.quiz-questions-heading {
    margin-bottom: 0.75rem;
}

.quiz-questions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-question-card {
    padding: 1.25rem;
    transition: border-color 0.2s;
}

.quiz-question-card:hover {
    border-color: var(--accent-hover);
}

.quiz-question-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.quiz-question-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.12);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
}

.quiz-question-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.quiz-question-controls {
    margin-left: auto;
    display: flex;
    gap: 0.25rem;
}

.quiz-ctrl-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
    padding: 0;
}

.quiz-ctrl-btn:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.quiz-ctrl-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quiz-ctrl-delete:hover:not(:disabled) {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger);
}

/* Question fields */
.quiz-field {
    margin-bottom: 0.75rem;
}

.quiz-field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.quiz-textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    line-height: 1.5;
}

.quiz-textarea:focus {
    border-color: var(--accent);
}

.quiz-textarea-sm {
    min-height: 50px;
}

/* Option rows */
.quiz-option-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.quiz-option-radio {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.15s;
    padding: 0;
    flex-shrink: 0;
}

.quiz-option-radio:hover {
    border-color: var(--success);
    color: var(--success);
}

.quiz-option-correct {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success);
}

.quiz-option-letter {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 1.2rem;
    flex-shrink: 0;
}

.quiz-option-input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.quiz-option-input:focus {
    border-color: var(--accent);
}

.quiz-add-option-btn {
    margin-top: 0.35rem;
    font-size: 0.78rem;
}

/* Add question button */
.quiz-add-question {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

/* Save bar */
.quiz-save-bar {
    display: flex;
    justify-content: flex-end;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

/* ===== Quiz Preview ===== */
.quiz-preview {
    padding: 0.5rem 0;
}

.quiz-preview-info {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.quiz-preview-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.quiz-preview-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.quiz-preview-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.quiz-preview-questions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-preview-question {
    padding: 1rem 1.25rem;
}

.quiz-preview-question-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.quiz-preview-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-left: 0.5rem;
}

.quiz-preview-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: background 0.15s;
}

.quiz-preview-option:hover {
    background: var(--bg-hover);
}

.quiz-preview-option-letter {
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.quiz-preview-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 1.25rem;
    font-style: italic;
}

/* ===== Quiz Question Disabled State ===== */
.quiz-question-disabled {
    opacity: 0.55;
    border-color: var(--border);
}

.quiz-question-disabled:hover {
    border-color: var(--border);
}

.quiz-toggle-on {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success);
}

.quiz-toggle-off {
    background: var(--bg-tertiary);
    border-color: var(--border);
    color: var(--text-muted);
}

/* ===== Quiz Import Modal ===== */
.quiz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.quiz-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

.quiz-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.quiz-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.quiz-modal-body {
    padding: 1rem 1.25rem;
}

.quiz-modal-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.quiz-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
}

.quiz-import-mode {
    margin-bottom: 0.75rem;
}

.quiz-import-mode-btns {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.quiz-import-textarea {
    font-family: monospace;
    font-size: 0.82rem;
    min-height: 200px;
}

/* ===== Quiz Editor Responsive ===== */
@media (max-width: 640px) {
    .quiz-editor-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .quiz-settings-grid {
        grid-template-columns: 1fr;
    }

    .quiz-preview-info {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .quiz-option-row {
        flex-wrap: wrap;
    }

    .quiz-option-input {
        min-width: 0;
    }
}

/* ============================================================
   Rust Adventures — Game Styles
   ============================================================ */

.adventure-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    --tile-size: 36px;
    background: linear-gradient(
        180deg,
        var(--bg-primary) 0%,
        var(--bg-secondary) 100%
    );
}

.adventure-header {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.adventure-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.adventure-logo {
    font-size: 1.5rem;
    color: var(--danger-bright);
    filter: drop-shadow(0 0 6px rgba(248, 113, 113, 0.3));
}

.adventure-title {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #818cf8, #6366f1, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.adventure-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.adventure-moves {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

/* Keys bar */
.adventure-keys-bar {
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0.4rem 0;
    margin-bottom: 0.5rem;
    min-height: 2rem;
}

.keys-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.key-empty {
    font-size: 0.8rem;
    color: var(--text-muted, #666);
    font-style: italic;
}

.key-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: "SF Mono", "Fira Code", monospace;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 4px;
    animation: keyBadgePop 0.3s ease;
}

@keyframes keyBadgePop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Notification toast */
.adventure-notification {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1000;
    animation:
        notifySlideIn 0.3s ease,
        notifyFadeOut 0.5s ease 2.5s forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes notifySlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes notifyFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Game grid */
.adventure-grid-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0.5rem;
    overflow: auto;
    max-width: 100%;
    max-height: 60vh;
    scroll-behavior: smooth;
    border-radius: var(--radius-sm);
    /* Subtle inner shadow for depth */
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.adventure-grid {
    display: grid;
    gap: 1px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.tile {
    width: var(--tile-size);
    height: var(--tile-size);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--tile-size) * 0.45);
    font-weight: 600;
    user-select: none;
    transition:
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.tile-floor {
    background: var(--bg-secondary);
    color: transparent;
}

.tile-wall {
    background: linear-gradient(135deg, #2d2d3f, #1f1f2e);
    color: transparent;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.05),
        inset -1px -1px 0 rgba(0, 0, 0, 0.3);
}

.tile-player {
    font-size: calc(var(--tile-size) * 0.65);
    z-index: 10;
    color: var(--text-primary, inherit);
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.6));
    animation: playerFloat 2s ease-in-out infinite;
}

@keyframes playerFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.tile-exit {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    font-size: calc(var(--tile-size) * 0.55);
}

.tile-key {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-purple);
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: calc(var(--tile-size) * 0.32);
    font-weight: 700;
    border: 1px dashed rgba(99, 102, 241, 0.3);
    animation: keyPulse 2s ease-in-out infinite;
}

@keyframes keyPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
    50% {
        box-shadow: 0 0 8px 2px rgba(99, 102, 241, 0.3);
    }
}

.tile-npc {
    background: rgba(245, 158, 11, 0.08);
    font-size: calc(var(--tile-size) * 0.6);
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.3));
}

.tile-gate {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    font-size: calc(var(--tile-size) * 0.55);
}

.tile-gate-open {
    background: var(--bg-secondary);
    color: var(--success);
    opacity: 0.5;
}

.tile-code {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    font-size: calc(var(--tile-size) * 0.45);
    filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.3));
}

.tile-water {
    background: rgba(59, 130, 246, 0.15);
    color: rgba(59, 130, 246, 0.3);
    animation: waterShimmer 3s ease-in-out infinite;
}

@keyframes waterShimmer {
    0%,
    100% {
        background: rgba(59, 130, 246, 0.12);
    }
    50% {
        background: rgba(59, 130, 246, 0.22);
    }
}

.tile-sign {
    background: rgba(245, 158, 11, 0.05);
    font-size: calc(var(--tile-size) * 0.5);
}

/* Overlays */
.adventure-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: overlayFadeIn 0.2s ease;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.adventure-overlay-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.adventure-overlay-card h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
}

.adventure-overlay-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.adventure-overlay-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Toggle switch (used in adventure config) */
.quiz-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.quiz-toggle-checkbox {
    display: none;
}

.quiz-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: var(--bg-tertiary, var(--border-hover));
    border-radius: 9999px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.quiz-toggle-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.quiz-toggle-checkbox:checked + .quiz-toggle-switch {
    background: var(--accent);
}

.quiz-toggle-checkbox:checked + .quiz-toggle-switch::after {
    transform: translateX(20px);
}

.quiz-toggle-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.adventure-overlay-card-success {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.08) 0%,
        var(--bg-card) 100%
    );
}

.adventure-success-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: success-pulse 1.5s ease-in-out infinite;
}

@keyframes success-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.85;
    }
}

.adventure-stars {
    font-size: 1.8rem;
    margin: 0.25rem 0 0.5rem 0;
    letter-spacing: 0.25rem;
}

.adventure-save-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
    opacity: 0.85;
}

.adventure-moves-final {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0.5rem 0 1rem 0;
}

/* Dialog card */
.adventure-dialog-card {
    background: var(--bg-card);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    text-align: left;
}

.dialog-speaker {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--warning);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.dialog-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Puzzle card */
.adventure-overlay-puzzle {
    background: rgba(0, 0, 0, 0.85);
}

.adventure-puzzle-card {
    background: var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 480px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
}

.adventure-puzzle-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.puzzle-instruction {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.puzzle-code {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0.5rem 0;
    overflow-x: auto;
    white-space: pre-wrap;
}

.puzzle-code-broken {
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.puzzle-pieces {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.75rem 0;
}

.puzzle-piece {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

.puzzle-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.puzzle-opt {
    padding: 0.4rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.puzzle-opt:hover {
    border-color: var(--accent);
}

.puzzle-opt-selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    color: var(--accent-purple);
}

.puzzle-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--code-bg);
    color: var(--code-text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 0.85rem;
    outline: none;
}

.puzzle-input:focus {
    border-color: var(--accent);
}

.puzzle-pairs {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.puzzle-pair {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 0.8rem;
}

.pair-left {
    color: var(--code-text);
    background: var(--code-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}

.pair-arrow {
    color: var(--text-muted);
}

.pair-right {
    color: var(--accent-purple);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}

.puzzle-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.puzzle-feedback {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.puzzle-correct {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
    animation: feedbackPop 0.4s ease;
}

.puzzle-wrong {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    animation: feedbackShake 0.4s ease;
}

@keyframes feedbackPop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes feedbackShake {
    0%,
    100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-4px);
    }
    40% {
        transform: translateX(4px);
    }
    60% {
        transform: translateX(-3px);
    }
    80% {
        transform: translateX(3px);
    }
}

.puzzle-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.75rem;
    font-style: italic;
}

/* D-pad */
.adventure-dpad {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 1rem;
    padding: 0.5rem;
}

.dpad-row {
    display: flex;
    gap: 2px;
    align-items: center;
}

.dpad-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: all 0.1s ease;
    /* Larger touch target */
    padding: 4px;
}

.dpad-btn:active {
    background: var(--accent);
    transform: scale(0.95);
}

.dpad-center {
    width: 56px;
    height: 56px;
}

/* Show D-pad on touch devices */
@media (hover: none) and (pointer: coarse) {
    .adventure-dpad {
        display: flex;
    }
    .adventure-page {
        --tile-size: 28px;
    }
    .dpad-btn {
        width: 64px;
        height: 64px;
        font-size: 1.4rem;
    }
    .dpad-center {
        width: 64px;
        height: 64px;
    }
}

/* Controls hint */
.adventure-controls-hint {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Footer */
.adventure-footer {
    margin-top: auto;
    padding: 1rem 0;
}

.adventure-back {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
}

.adventure-back:hover {
    color: var(--accent);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .adventure-page {
        --tile-size: 26px;
        padding: 0.5rem;
    }

    .adventure-header {
        padding: 0.25rem 0;
    }

    .adventure-title {
        font-size: 1rem;
    }

    .adventure-overlay-card,
    .adventure-dialog-card,
    .adventure-puzzle-card {
        padding: 1rem;
        max-width: 95%;
    }

    .adventure-puzzle-card {
        max-height: 80vh;
    }
}

@media (max-width: 359px) {
    .adventure-page {
        --tile-size: 22px;
    }

    .adventure-header-right {
        gap: 0.4rem;
    }

    .adventure-moves {
        font-size: 0.75rem;
    }
}

/* ============================================================
   Rust Adventures — Phase 2 Styles
   ============================================================ */

/* Timer */
.adventure-timer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    font-family: "SF Mono", "Fira Code", monospace;
    min-width: 3.5em;
}

/* Level name */
.adventure-level-name {
    width: 100%;
    max-width: 600px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.25rem;
}

/* Hint bar (missing keys) */
.adventure-hint-bar {
    width: 100%;
    max-width: 600px;
    font-size: 0.75rem;
    color: var(--warning);
    padding: 0.2rem 0;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* Exit tile glow when unlocked */
.tile-exit-unlocked {
    background: rgba(34, 197, 94, 0.2);
    animation: exitPulse 1.5s ease-in-out infinite;
}

@keyframes exitPulse {
    0%,
    100% {
        box-shadow: inset 0 0 4px rgba(34, 197, 94, 0.3);
    }
    50% {
        box-shadow: inset 0 0 10px rgba(34, 197, 94, 0.5);
    }
}

/* Gate animation on solve */
.tile-gate-animating {
    animation: gateOpen 0.6s ease forwards;
}

@keyframes gateOpen {
    0% {
        background: rgba(239, 68, 68, 0.12);
        transform: scale(1);
    }
    50% {
        background: rgba(34, 197, 94, 0.2);
        transform: scale(1.1);
    }
    100% {
        background: var(--bg-secondary);
        transform: scale(1);
        opacity: 0.4;
    }
}

/* === Level Success Overlay === */
.adventure-overlay-success {
    background: rgba(0, 0, 0, 0.8);
}

/* === Info Banner (no-token demo mode) === */
.adventure-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid;
}
.adventure-banner-info {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-bottom-color: var(--border-hover);
}
.adventure-banner-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.adventure-banner b {
    color: var(--warning);
}

/* === Claim Button (golden) === */
.adventure-claim-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.65rem 1.5rem;
    text-decoration: none;
    display: inline-block;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
    animation: claimGlow 2s ease-in-out infinite;
}

@keyframes claimGlow {
    0%,
    100% {
        box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
    }
    50% {
        box-shadow: 0 0 24px rgba(245, 158, 11, 0.5);
    }
}

.adventure-claim-btn:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
}

/* === Level Select === */
.adventure-level-select-card {
    max-width: 420px;
    text-align: center;
}

.level-select-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.level-select-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    color: var(--text-primary);
}

.level-select-item:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.05);
}

.level-select-active {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.level-select-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Completed level checkmark */
.level-select-completed .level-select-num {
    background: var(--success);
}

.level-select-check {
    font-size: 0.7rem;
    color: var(--success);
    flex-shrink: 0;
}

.level-select-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.level-select-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.level-select-concept {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* === Intro overlay enhanced === */
.adventure-intro-card {
    max-width: 420px;
}

.adventure-intro-level {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.adventure-intro-controls {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-sm);
}

.control-key-pair {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.control-keys {
    font-family: "SF Mono", "Fira Code", monospace;
    color: var(--accent);
    font-size: 0.75rem;
}

.control-desc {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* === Stats (level complete) === */
.adventure-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(34, 197, 94, 0.05);
    border-radius: var(--radius-sm);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.adventure-success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.adventure-all-complete {
    padding: 0.75rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    color: var(--warning);
    font-weight: 600;
    font-size: 0.9rem;
}

/* === Arrange puzzle interactive === */
.puzzle-hint-small {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.puzzle-pieces-interactive {
    gap: 0.3rem;
}

.puzzle-piece-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.puzzle-move-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.1s ease;
}

.puzzle-move-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.puzzle-move-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.puzzle-piece-num {
    color: var(--text-muted);
    margin-right: 0.5rem;
    font-size: 0.7rem;
}

/* === Match Pairs === */
.puzzle-match-area {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
    justify-content: center;
}

.match-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
}

.match-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 0.2rem;
}

.match-arrows {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    padding-top: 1.2rem;
}

.match-arrow {
    font-size: 0.75rem;
    color: var(--text-muted);
    height: 34px;
    display: flex;
    align-items: center;
}

.match-item {
    padding: 0.4rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 0.75rem;
    color: var(--text-primary);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    min-width: 80px;
}

.match-item:hover:not(:disabled) {
    border-color: var(--accent);
}

.match-item-selected {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-purple);
}

.match-item-matched {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    cursor: default;
}

/* ===== Confetti Animation ===== */

@keyframes confetti-fall {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(var(--drift))
            rotate(var(--rotation));
        opacity: 0;
    }
}

@keyframes confetti-sway {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(calc(var(--sway) * -1));
    }
    75% {
        transform: translateX(var(--sway));
    }
}

.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-particle {
    position: absolute;
    top: -10px;
    animation:
        confetti-fall var(--duration) ease-in forwards,
        confetti-sway 3s ease-in-out infinite;
}

/* ===== Claim Page: Claim Counter ===== */

.claim-counter {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.claim-counter-badge {
    font-size: 1rem;
}

.claim-counter-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.claim-counter-text strong {
    color: var(--accent);
    font-weight: 700;
}

/* ===== Claim Page: Share Section ===== */

.claim-share-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.claim-share-heading {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.claim-share-preview {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.claim-share-preview-name {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.claim-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.claim-share-x-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-void);
    color: var(--text-heading);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.claim-share-x-btn:hover {
    border-color: var(--color-x-brand);
    box-shadow: 0 0 20px rgba(29, 161, 242, 0.15);
}

.claim-share-x-btn svg {
    width: 18px;
    height: 18px;
}

.claim-share-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 44px;
}

.claim-share-copy-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.claim-share-copy-btn svg {
    width: 18px;
    height: 18px;
}

.claim-share-copied {
    color: var(--success);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.claim-share-copied.visible {
    opacity: 1;
}

.claim-cnft-hint {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    text-align: left;
}

.claim-cnft-hint .hint-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.claim-cnft-hint .hint-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* ===== Deposit Page & Admin Deposit Section ===== */

.admin-deposits {
    padding: 0;
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-section-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary, var(--text-heading));
}

/* Deposit page inputs */
.deposit-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.deposit-amount-display {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0.5rem 0;
}

.deposit-method-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 480px;
}

.deposit-method-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.deposit-method-card:hover {
    border-color: var(--border-hover, rgba(255, 255, 255, 0.15));
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.deposit-method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.deposit-method-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.deposit-method-desc {
    font-size: 0.85rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.deposit-pay-url-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    word-break: break-all;
    font-size: 0.8rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    font-family: monospace;
    text-align: left;
    line-height: 1.5;
}

.deposit-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.deposit-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

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

.deposit-status-label {
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    font-size: 0.9rem;
}

.deposit-status-value {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Admin deposit slip card */
.admin-slip-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    transition: all 0.15s ease;
}

.admin-slip-card:hover {
    border-color: var(--border-hover, rgba(255, 255, 255, 0.15));
}

.admin-slip-info {
    flex: 1;
    min-width: 200px;
}

.admin-slip-attendee {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.admin-slip-amount {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.admin-slip-meta {
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
    font-size: 0.8rem;
}

.admin-slip-link {
    color: var(--accent);
    font-size: 0.85rem;
    text-decoration: none;
}

.admin-slip-link:hover {
    text-decoration: underline;
}

.admin-slip-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

/* Deposit QR hint text */
.deposit-qr-hint {
    font-size: 0.8rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.5));
    text-align: center;
    margin-top: 0.75rem;
}

/* Form input for deposit page */
.form-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted, rgba(255, 255, 255, 0.35));
}

/* ===== Collapsible Form Sections ===== */
.form-section {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius);
    overflow: hidden;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    user-select: none;
    background: var(--bg-secondary, rgba(255, 255, 255, 0.03));
    transition: background 0.15s ease;
}

.form-section-header:hover {
    background: var(--bg-hover, rgba(255, 255, 255, 0.06));
}

.form-section-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.form-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex: 1;
}

.form-section-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.form-section-badge-required {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-bright);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.form-section-badge-optional {
    background: rgba(107, 114, 128, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.form-section-badge-recommended {
    background: rgba(20, 241, 149, 0.12);
    color: var(--solana-green);
    border: 1px solid rgba(20, 241, 149, 0.25);
}

.form-section-toggle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.form-section-toggle-open {
    transform: rotate(180deg);
}

.form-section-body {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}

.form-section-body-hidden {
    display: none;
}

/* ===== Field Priority Badges ===== */
.field-required-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    margin-left: 0.35rem;
    vertical-align: middle;
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger-bright);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.field-optional-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    margin-left: 0.35rem;
    vertical-align: middle;
    background: rgba(107, 114, 128, 0.12);
    color: var(--text-muted);
    border: 1px solid rgba(107, 114, 128, 0.15);
}

/* ===== Advanced Toggle ===== */
.advanced-toggle-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0;
    cursor: pointer;
    user-select: none;
}

.advanced-toggle-row:hover {
    opacity: 0.85;
}

.advanced-toggle-icon {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.advanced-toggle-icon-open {
    transform: rotate(90deg);
}

.advanced-toggle-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

.advanced-fields-hidden {
    display: none;
}

/* ===== Deposit Section Conditional ===== */
.deposit-config-body-hidden {
    display: none;
}

/* ===== Events Search Input ===== */
.events-search-input {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    width: 200px;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.events-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.events-search-input::placeholder {
    color: var(--text-secondary);
}

/* ===== Section Icons (emoji-free) ===== */
.form-section-icon-basic::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--accent);
    opacity: 0.7;
    vertical-align: middle;
}
.form-section-icon-schedule::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
    vertical-align: middle;
}
.form-section-icon-sheets::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    background: var(--success);
    opacity: 0.6;
    vertical-align: middle;
}
.form-section-icon-nft::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--warning);
    vertical-align: middle;
}
.form-section-icon-settings::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    border: 2px solid var(--text-secondary);
    vertical-align: middle;
}
.form-section-icon-deposit::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    background: var(--info);
    opacity: 0.6;
    vertical-align: middle;
}
.form-section-icon-people::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.4;
    vertical-align: middle;
}

/* ===== Events Empty Icon ===== */
.events-empty-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 2px dashed var(--border, rgba(255, 255, 255, 0.15));
    margin-bottom: 0.5rem;
}

/* ===== Escrow Solscan Link (inline with label) ===== */
.escrow-solscan-link {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent);
    margin-left: 0.5rem;
    text-decoration: none;
    padding: 0.1rem 0.3rem;
    border: 1px solid var(--accent);
    border-radius: 3px;
    vertical-align: middle;
    transition: background 0.15s ease;
}

.escrow-solscan-link:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* ===== Escrow Result Banners ===== */
.escrow-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.escrow-result-success {
    border: 1px solid var(--success, green);
    background: rgba(0, 128, 0, 0.05);
    color: var(--success, green);
}

.escrow-result-error {
    border: 1px solid var(--error, red);
    background: rgba(255, 0, 0, 0.05);
    color: var(--error, red);
}

.escrow-result-text {
    font-weight: 600;
}

.escrow-result-link a {
    color: var(--accent);
    font-size: 0.7rem;
    text-decoration: none;
    border: 1px solid var(--accent);
    border-radius: 3px;
    padding: 0.15rem 0.35rem;
    transition: background 0.15s ease;
}

.escrow-result-link a:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* ===== Phase 9e: UI Polish & Visual Refresh ===== */

/* --- Utility Layout Classes (replacing inline styles) --- */
.flex-row-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-row-gap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.flex-row-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* --- Panel Container (replaces inline border/padding styles in escrow panels) --- */
.panel-box {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
}

.panel-box-dashed {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
}

.panel-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.panel-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* --- Wallet Bar (connected wallet display) --- */
.wallet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    margin-bottom: 0.75rem;
}

.wallet-bar-address {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* --- Step Card (escrow lifecycle steps) --- */
.step-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    margin-bottom: 0.5rem;
    transition:
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.step-card-done {
    opacity: 0.6;
    border-color: var(--success);
}

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

.step-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.step-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.step-card-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.step-card-title-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.step-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    font-size: 1rem;
    opacity: 0.6;
}

.step-spinner {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Badge additions (Completed, Archived) --- */
.badge-completed {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-archived {
    background: rgba(107, 114, 128, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* --- Success/Error panels (escrow init done/error states) --- */
.panel-success {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--success);
    border-radius: var(--radius-sm);
    background: var(--success-bg);
}

.panel-error {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    background: var(--danger-bg);
}

/* --- Events Header Row (search + create) --- */
.events-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.events-header-row h2 {
    margin-bottom: 0;
}

.events-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* --- Event Detail Card (summary for dropdown-selected event) --- */
.event-detail-card {
    background: var(--card-bg, var(--bg-card));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.event-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.event-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

/* --- Compact Event Context Bar (Edit view) --- */
.event-edit-context-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: var(--card-bg, var(--bg-card));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

/* --- Events Search (responsive width transition) --- */
.events-search-input {
    width: 200px;
    transition:
        width 0.2s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.events-search-input:focus {
    width: 260px;
}

/* --- Form Action Row (bottom buttons) --- */
.form-actions-row {
    display: flex;
    gap: 0.75rem;
    padding-top: 0.5rem;
    align-items: center;
}

/* --- Info Note (dashed border note box) --- */
.info-note {
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* --- Keyboard Shortcut Badge --- */
.kbd {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    font-family: monospace;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Focus visible for keyboard navigation (WCAG) --- */
.btn:focus-visible,
.filter-pill:focus-visible,
.tab:focus-visible,
.admin-sidebar-item:focus-visible,
.form-input:focus-visible,
.events-search-input:focus-visible,
.claim-quiz-opt:focus-visible,
.claim-paste-btn:focus-visible,
.claim-btn-mint:focus-visible,
.puzzle-opt:focus-visible,
.dpad-btn:focus-visible,
.quiz-ctrl-btn:focus-visible,
.link-accent:focus-visible,
.admin-tab-switch-link:focus-visible,
.match-item:focus-visible,
.quiz-option-radio:focus-visible,
.level-select-item:focus-visible,
.deposit-method-card:focus-visible,
.claim-share-x:focus-visible,
.claim-wallet-input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .deposit-method-cards {
        max-width: 100%;
    }
    .admin-slip-card {
        flex-direction: column;
    }
    .admin-slip-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .events-header-row {
        flex-direction: column;
        align-items: stretch;
    }
    .events-header-actions {
        flex-wrap: wrap;
    }
    .events-search-input {
        width: 100%;
    }
    .events-search-input:focus {
        width: 100%;
    }
    .wallet-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .wallet-bar-address {
        max-width: 100%;
    }
    .step-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .event-detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .event-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .event-edit-context-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ===== Phase 9f: Inline Style Migration Classes ===== */

/*
 * Component and utility classes to replace recurring inline styles across:
 *   deposit.rs, claim.rs, escrow_init.rs, events_page.rs,
 *   admin_escrow.rs, admin_deposit.rs, adventure_config.rs, admin.rs, lib.rs
 *
 * NAMING CONVENTION:
 *   .dep-*   — Deposit flow component classes
 *   .tx-*    — Transaction / on-chain display classes
 *   .wallet-* — Wallet connect / display classes
 *   .hint-*  — Hint / description text classes
 *   .badge-* — Additional badge variants
 *   .u-*     — Generic utility (spacing, layout, text)
 */

/* ---------- Deposit Flow Card ---------- */

/* Main card wrapper for deposit steps (repeats ~8x in deposit.rs)
 * Replaces: style="margin-top:1.5rem;text-align:center;width:100%;max-width:480px;" */
.dep-card {
    margin-top: 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 480px;
}

/* Error/unavailable card variant (top margin only)
 * Replaces: style="margin-top:2rem;text-align:center;" */
.dep-card-error {
    margin-top: 2rem;
    text-align: center;
}

/* QR payment polling indicator */
.dep-qr-polling {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------- Deposit Info Note Box ---------- */

/* Dashed-border info note (repeats ~6x)
 * Replaces: style="margin-top:0.75rem;padding:0.75rem;background:var(--bg-secondary);border-radius:8px;border:1px dashed var(--border-color);" */
.dep-info-note {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
}

/* Variant with top=1rem spacing */
.dep-info-note-lg {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
}

/* ---------- Wallet Connected Info Bar ---------- */

/* Connected wallet display bar (repeats ~4x)
 * Replaces: style="background:var(--bg-secondary);border-radius:8px;padding:1rem;margin-bottom:1rem;display:flex;align-items:center;justify-content:center;gap:0.75rem;" */
.wallet-connected-bar {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Wallet icon (emoji) inside connected bar
 * Replaces: style="font-size:1.5rem;" */
.wallet-icon-lg {
    font-size: 1.5rem;
}

/* Wallet info block (left-aligned text inside flex bar)
 * Replaces: style="text-align:left;" */
.wallet-info-left {
    text-align: left;
}

/* "Connected via ..." label
 * Replaces: style="font-size:0.8rem;color:var(--text-secondary);" */
.wallet-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Wallet address display (monospace bold)
 * Replaces: style="font-weight:600;font-family:monospace;" */
.wallet-address-bold {
    font-weight: 600;
    font-family: monospace;
}

/* Push-right utility (margin-left:auto inside flex)
 * Replaces: style="margin-left:auto;" */
.u-ml-auto {
    margin-left: auto;
}

/* ---------- Deposit Detail Rows ---------- */

/* Detail row with bottom border (repeats ~4x)
 * Replaces: style="display:flex;justify-content:space-between;padding:0.5rem 0;border-bottom:1px solid var(--border-color);" */
.dep-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

/* Detail row with center alignment + bottom border
 * Replaces: style="display:flex;justify-content:space-between;align-items:center;padding:0.5rem 0;border-bottom:1px solid var(--border-color);" */
.dep-detail-row-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

/* Last detail row (no border)
 * Replaces: style="display:flex;justify-content:space-between;padding:0.5rem 0;" */
.dep-detail-row-last {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

/* Label text in detail rows
 * Replaces: style="color:var(--text-secondary);" */
.dep-label {
    color: var(--text-secondary);
}

/* Detail rows wrapper (left-aligned)
 * Replaces: style="text-align:left;margin:1rem 0;" */
.dep-details-block {
    text-align: left;
    margin: 1rem 0;
}

/* ---------- TX Hash Display ---------- */

/* TX hash display box (repeats ~6x)
 * Replaces: style="background:var(--bg-secondary);border-radius:8px;padding:0.75rem;margin-bottom:1rem;font-family:monospace;font-size:0.75rem;color:var(--text-secondary);word-break:break-all;" */
.tx-hash-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    word-break: break-all;
}

/* Variant with margin-top instead of margin-bottom (confirming state) */
.tx-hash-box-top {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-top: 0.75rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    word-break: break-all;
}

/* Solscan explorer link
 * Replaces: style="color:var(--accent);font-size:0.85rem;" */
.tx-explorer-link {
    color: var(--accent);
    font-size: 0.85rem;
}

.tx-explorer-link:hover {
    color: var(--accent-hover);
}

/* Pay URL display box (shows the full Solana Pay URL)
 * Replaces: style="background:var(--bg-secondary);border:1px solid var(--border);border-radius:8px;padding:1rem;margin-bottom:1rem;word-break:break-all;font-size:0.8rem;color:var(--text-secondary);text-align:left;" */
.tx-pay-url-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
    word-break: break-all;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: left;
}

/* ---------- Wallet Connect Buttons ---------- */

/* Flex inner content on wallet connect buttons
 * Replaces: style="display:flex;align-items:center;justify-content:center;gap:0.5rem;" */
.wallet-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Wallet list container
 * Replaces: style="display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem;" */
.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Wallet prompt text ("Connect your Solana wallet:")
 * Replaces: style="font-size:0.85rem;color:var(--text-secondary);margin-bottom:0.25rem;" */
.wallet-prompt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

/* Wallet brand logos rendered as white (for dark button backgrounds).
 * Uses CSS filter to convert any brand color to white.
 * Works with Phantom (purple), Backpack (red), Solflare (yellow), Jupiter (gradient). */
.wallet-icon-white {
    filter: brightness(0) invert(1);
}

/* ---------- No Wallet Fallback ---------- */

/* No wallet detected box
 * Replaces: style="padding:1rem;background:var(--bg-secondary);border-radius:8px;margin-bottom:1rem;" */
.wallet-fallback-box {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

/* No wallet text
 * Replaces: style="color:var(--text-secondary);font-size:0.85rem;margin:0;" */
.wallet-fallback-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* ---------- Loading / Spinner States ---------- */

/* Loading wrapper with top margin
 * Replaces: style="margin-top:2rem;" on .loading.visible */
.loading-top {
    margin-top: 2rem;
}

/* Spinner centered wrapper
 * Replaces: style="margin:1.5rem 0;" */
.spinner-wrap {
    margin: 1.5rem 0;
}

/* Large spinner override (used on spinner-lg)
 * Replaces: style="width:48px;height:48px;border-width:3px;" */
.spinner-xl {
    width: 48px;
    height: 48px;
    border-width: 3px;
}

/* ---------- Action Buttons ---------- */

/* Large action button (primary CTA in deposit flows)
 * Replaces: style="font-size:1.1rem;padding:0.8rem;" on .btn-primary/.btn-success */
.btn-action-lg {
    font-size: 1.1rem;
    padding: 0.8rem;
}

/* Secondary action button with top margin
 * Replaces: style="margin-top:0.75rem;" on .btn-outline */
.btn-action-secondary {
    margin-top: 0.75rem;
}

/* Small action button
 * Replaces: style="margin-top:0.5rem;font-size:0.9rem;padding:0.6rem;" */
.btn-action-sm {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    padding: 0.6rem;
}

/* ---------- Back to Home Link ---------- */

/* Back-to-home text link (repeats ~3x)
 * Replaces: style="color:var(--text-secondary);font-size:0.85rem;margin-top:1.5rem;text-decoration:none;" */
.link-back-home {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    text-decoration: none;
}

.link-back-home:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Logout button wrapper — top-right aligned on deposit page.
 * Replaces: style="position:absolute;top:1rem;right:1rem;" */
.logout-btn-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
}

/* ---------- Success / Celebration States ---------- */

/* Large celebration icon
 * Used for deposit confirmed, refund confirmed, rent reclaimed states */
.celebration-emoji {
    margin: 1rem 0;
    font-size: 3rem;
    text-align: center;
}

/* Success title text
 * Replaces: style="font-size:1.1rem;font-weight:600;margin-bottom:0.5rem;" */
.success-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* "Go Home" button wrapper with top margin
 * Replaces: style="margin-top:1rem;" or style="margin-top:1.25rem;" */
.action-row-top {
    margin-top: 1rem;
}

.action-row-top-lg {
    margin-top: 1.25rem;
}

/* ---------- QR Code Display ---------- */

/* QR wrapper (white bg, rounded)
 * Uniform 1rem padding keeps the QR image geometrically centered.
 * QR is generated with padding:0 (tight crop), so all whitespace
 * is controlled here.
 */
.qr-wrapper {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: fit-content;
}

/* QR loading state — pulsing placeholder */
.qr-loading {
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 2px dashed var(--border);
    box-shadow: none;
}

.qr-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* QR image — large (256px, Solana Pay)
 * Replaces: style="width:256px;height:256px;"
 * QR is generated with padding:0 — no internal quiet zone from QRious.
 * The .qr-wrapper provides all framing/whitespace. */
.qr-img-lg {
    width: 256px;
    height: 256px;
    display: block;
    object-fit: contain;
}

/* QR image — medium (200px, PromptPay)
 * Generated at 256px canvas, displayed at 200px for card-appropriate sizing.
 * Slight upscale from canvas→display is fine — QR data is crisp at any size. */
.qr-img-md {
    width: 200px;
    height: 200px;
    display: block;
    object-fit: contain;
}

/* ---------- Deposit Input Fields ---------- */

/* Deposit text input (URL / wallet address)
 * Replaces: style="width:100%;padding:0.6rem 0.8rem;border-radius:6px;border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);font-size:0.9rem;" */
.dep-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.dep-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* ---------- Payment Method Layout ---------- */

/* Payment methods container
 * Replaces: style="width:100%;max-width:480px;display:flex;flex-direction:column;gap:1.5rem;" */
.dep-methods {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Badge row / flex wrap row for status badges
 * Replaces: style="display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;margin-bottom:1rem;" */
.badge-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* ---------- Hint / Description Text ---------- */

/* Description text (repeats ~20x)
 * Replaces: style="color:var(--text-secondary);font-size:0.9rem;margin-bottom:1rem;" */
.hint-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Hint text (slightly smaller)
 * Replaces: style="color:var(--text-secondary);font-size:0.85rem;margin-bottom:0.5rem;" */
.hint-sm {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Note text (no margin)
 * Replaces: style="font-size:0.85rem;color:var(--text-secondary);margin:0;" */
.hint-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Small hint text
 * Replaces: style="font-size:0.75rem;color:var(--text-secondary);margin-top:0.75rem;" */
.hint-xs {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

/* Small text only (no margin)
 * Replaces: style="font-size:0.8rem;color:var(--text-secondary);" */
.hint-2xs {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* PromptPay amount text
 * Replaces: style="font-size:0.95rem;font-weight:600;margin-bottom:0.75rem;" */
.text-amount {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

/* ---------- 404 Page ---------- */

/* 404 page layout
 * Replaces: style="display:flex;flex-direction:column;align-items:center;" */
.layout-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* ---------- Admin Escrow Lifecycle ---------- */

/* Step list (column with gap)
 * Replaces: style="display:flex;flex-direction:column;gap:0.5rem" */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Done badge (green)
 * Replaces: style="font-size:0.8rem;color:var(--success,green)" */
.badge-done {
    font-size: 0.8rem;
    color: var(--success);
}

/* Warning badge (orange)
 * Replaces: style="font-size:0.75rem;color:var(--warning,orange)" */
.badge-warn-text {
    font-size: 0.75rem;
    color: var(--warning);
}

/* Panel hint bottom spacing
 * Replaces: style="margin-bottom:0.75rem" */
.u-mb-sm {
    margin-bottom: 0.75rem;
}

/* ---------- Escrow Init ---------- */

/* Flex wrap row
 * Replaces: style="display:flex;flex-wrap:wrap;gap:0.5rem" */
.flex-wrap-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Zero margin
 * Replaces: style="margin-bottom:0" */
.u-mb-0 {
    margin-bottom: 0;
}

/* Tiny top margin
 * Replaces: style="margin-top:0.2rem" */
.u-mt-xs {
    margin-top: 0.2rem;
}

/* Small top margin (0.25rem)
 * Replaces: style="margin-top:0.25rem" */
.u-mt-2xs {
    margin-top: 0.25rem;
}

/* Nowrap
 * Replaces: style="white-space:nowrap" */
.u-nowrap {
    white-space: nowrap;
}

/* Flex gap override (1rem)
 * Replaces: style="gap:1rem" */
.u-gap-lg {
    gap: 1rem;
}

/* Escrow address code display
 * Replaces: style="font-size:0.7rem" on <code> */
.code-xs {
    font-size: 0.7rem;
}

/* Inline label for escrow result fields
 * Replaces: style="color:var(--text-secondary)" inline on spans */
.text-label {
    color: var(--text-secondary);
}

/* ---------- Events Page ---------- */

/* Search wrapper (relative, flex center)
 * Replaces: style="position:relative;display:flex;align-items:center" */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Keyboard hint badge (absolute positioned)
 * Replaces: style="position:absolute;right:8px;pointer-events:none;opacity:0.5" */
.search-kbd-hint {
    position: absolute;
    right: 8px;
    pointer-events: none;
    opacity: 0.5;
}

/* Setting value text
 * Replaces: style="font-size:0.85rem" */
.setting-value {
    font-size: 0.85rem;
}

/* Monospace setting value
 * Replaces: style="font-size:0.85rem;font-family:monospace" */
.setting-value-mono {
    font-size: 0.85rem;
    font-family: monospace;
}

/* ---------- Adventure Config ---------- */

/* Select full width
 * Replaces: style="width: 100%; padding: 0.5rem 0.75rem;" */
.select-full {
    width: 100%;
    padding: 0.5rem 0.75rem;
}

/* Dirty hint text
 * Replaces: style="color: var(--warning); font-size: 0.8rem; margin-left: 0.5rem;" */
.hint-dirty {
    color: var(--warning);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Clean hint text
 * Replaces: style="color: var(--text-muted); font-size: 0.8rem; margin-left: 0.5rem;" */
.hint-clean {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* ---------- Admin ---------- */

/* Extra-small button variant (overrides)
 * Replaces: style="margin-left:0.5rem;padding:0.15rem 0.4rem;font-size:0.7rem;" */
.btn-xs-override {
    margin-left: 0.5rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
}

/* ---------- Deposit Section Dividers ---------- */

/* Border-top divider section
 * Replaces: style="border-top:1px solid var(--border-color);padding-top:1rem;margin-top:0.5rem;" */
.dep-divider-section {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* ---------- File Upload / Slip Upload ---------- */

/* File input wrapper
 * Replaces: style="margin-bottom:0.75rem;" */
.upload-field {
    margin-bottom: 0.75rem;
}

/* Upload label
 * Replaces: style="display:block;font-size:0.85rem;color:var(--text-secondary);margin-bottom:0.3rem;" */
.upload-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

/* File input styling
 * Replaces: style="width:100%;font-size:0.85rem;color:var(--text-secondary);margin-bottom:0.5rem;" */
.upload-input {
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* ---------- Details/Summary Toggle ---------- */

/* Details wrapper
 * Replaces: style="margin-bottom:0.75rem;" on <details> */
.details-toggle {
    margin-bottom: 0.75rem;
}

/* Summary text
 * Replaces: style="font-size:0.8rem;color:var(--text-secondary);cursor:pointer;margin-bottom:0.3rem;" */
.details-summary-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 0.3rem;
}

/* ---------- Deposit QR Hint ---------- */

/* QR pay instruction text
 * Replaces: style="font-size:0.75rem;color:var(--text-secondary);margin-top:0.3rem;" */
.qr-hint-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0;
    text-align: center;
}

/* ---------- Events Deposit Config Inline Styles ---------- */

/* Deposit config row (flex with gap)
 * Replaces: style="margin-bottom:0.75rem;display:flex;align-items:center;gap:0.75rem" */
.dep-config-row {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Deposit config label
 * Replaces: style="font-size:0.95rem;font-weight:600;color:var(--text-secondary)" */
.dep-config-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Escrow initialized badge (inline success panel)
 * Replaces: style="margin-top:0.75rem;padding:0.5rem 0.75rem;border:1px solid var(--success);border-radius:6px;background:rgba(0,128,0,0.05)" */
.escrow-initialized-badge {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--success);
    border-radius: var(--radius-sm);
    background: var(--success-bg);
}

/* Escrow initialized label
 * Replaces: style="font-size:0.8rem;color:var(--success)" */
.escrow-badge-text {
    font-size: 0.8rem;
    color: var(--success);
}

/* Wallet locked hint
 * Replaces: style="color:var(--success,green)" */
.hint-success-sm {
    color: var(--success);
}

/* ---------- Admin Deposit Slip Styles ---------- */

/* Attendee name bold
 * Replaces: style="font-weight:600;margin-bottom:0.25rem" */
.admin-attendee-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Amount line
 * Replaces: style="margin-bottom:0.25rem" */
.admin-amount-line {
    margin-bottom: 0.25rem;
}

/* Slip URL link
 * Replaces: style="color:var(--accent)" */
.link-accent {
    color: var(--accent);
}

.link-accent:hover {
    color: var(--accent-hover);
}

/* ---------- Admin Events Warning / Error ---------- */

/* Name length warning
 * Replaces: style="color:var(--warning);font-size:0.75rem;margin-top:0.25rem" */
.hint-warning-xs {
    color: var(--warning);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.hint-info {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ---------- Readonly locked fields (escrow address, wallet, event ID) ---------- */
.readonly-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-height: 2.25rem;
}

.readonly-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    word-break: break-all;
}

.readonly-value-mono {
    font-size: 0.78rem;
    color: var(--text-primary);
    font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
    word-break: break-all;
    line-height: 1.3;
}

.readonly-badge {
    font-size: 0.65rem;
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Archive button (outline with warning color)
 * Replaces: style="margin-left:auto;color:var(--warning)" */
.btn-archive {
    margin-left: auto;
    color: var(--warning);
}

.btn-archive:hover {
    color: var(--warning-border);
}
.btn-confirm-danger {
    background: var(--danger-btn);
    color: white;
    animation: pulse-danger 1s infinite;
}
@keyframes pulse-danger {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ---------- Admin Stats ---------- */

/* Admin header weight
 * Replaces: style="font-weight:600;margin-bottom:0.25rem" in admin_deposit */
.admin-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ---------- Remaining edge-case utilities ---------- */

/* Subtitle with larger bottom margin
 * Replaces: style="margin-bottom:1.5rem" on subtitle */
.subtitle-lg {
    margin-bottom: 1.5rem;
}

/* Bottom margin 1rem override for layout containers */
.u-mb-1rem {
    margin-bottom: 1rem;
}

/* Bottom margin 0.5rem override */
.u-mb-half {
    margin-bottom: 0.5rem;
}

/* Top margin 1rem override */
.u-mt-1rem {
    margin-top: 1rem;
}

/* Note with different bottom margin
 * Replaces: style="margin:0 0 0.5rem" on hint-note */
.hint-note-sm {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
}

/* File input styling — modernized custom file picker */
.file-input-styled {
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.6rem 0.8rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    cursor: pointer;
    transition:
        border-color 0.2s,
        background 0.2s;
}

.file-input-styled:hover {
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

.file-input-styled::file-selector-button {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 0.75rem;
    transition:
        background 0.2s,
        color 0.2s;
}

.file-input-styled::file-selector-button:hover {
    background: var(--accent);
    color: white;
}

/* --- Google Sheet Quick Guide --- */
.sheet-guide-box {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.04);
}

.sheet-guide-heading {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.sheet-guide-steps {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.sheet-guide-steps li {
    margin-bottom: 0.2rem;
}

.sheet-guide-link {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(99, 102, 241, 0.3);
    text-underline-offset: 2px;
    font-weight: 500;
}

.sheet-guide-link:hover {
    text-decoration-color: var(--accent);
}

.sheet-guide-url {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-mono, monospace);
}

.sheet-guide-highlight {
    color: var(--accent);
    background: rgba(99, 102, 241, 0.12);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

/* ---------- Responsive overrides for Phase 9f ---------- */

@media (max-width: 480px) {
    .dep-card {
        max-width: 100%;
    }
    .wallet-connected-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
    .dep-detail-row,
    .dep-detail-row-center,
    .dep-detail-row-last {
        flex-direction: column;
        gap: 0.25rem;
    }
    .qr-img-lg {
        width: 220px;
        height: 220px;
    }
    .badge-row {
        flex-direction: column;
        align-items: center;
    }
    .dep-config-row {
        flex-wrap: wrap;
    }
}

/* ===== Scanner Event Selector Bar ===== */
.scanner-event-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    font-size: 0.85rem;
    z-index: 10;
    position: relative;
}
.scanner-event-select {
    flex: 1;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.85rem;
    max-width: 300px;
}
.scanner-event-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* ===== Ticket Page ===== */
.ticket-card {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
}
.ticket-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.ticket-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}
.ticket-qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}
.ticket-qr-wrapper {
    background: #fff;
    border-radius: var(--radius);
    /* Uniform padding for geometric centering. */
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.ticket-qr-img {
    width: 256px;
    height: 256px;
    display: block;
    object-fit: contain;
}
.ticket-qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-muted);
}
.ticket-fullscreen-btn {
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.ticket-info {
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    padding-top: 1rem;
    margin-bottom: 1rem;
}
.ticket-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.375rem 0;
}
.ticket-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    margin-right: 1rem;
}
.ticket-info-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
}
.ticket-email-masked {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.ticket-id {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.ticket-status-section {
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.ticket-status-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
}
.ticket-status-checked-in {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}
.ticket-status-pending {
    background: rgba(234, 179, 8, 0.15);
    color: var(--warning-bright);
}
.ticket-status-ready {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}
.ticket-status-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}
.ticket-claim-btn {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.ticket-footer-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* Ticket fullscreen QR overlay */
.ticket-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.ticket-fullscreen-card {
    cursor: default;
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 90vw;
    max-height: 90vh;
}
.ticket-fullscreen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.ticket-fullscreen-name {
    font-weight: 700;
    color: #111;
    font-size: 1.1rem;
}
.ticket-fullscreen-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 0.25rem;
}
.ticket-fullscreen-close:hover {
    color: #111;
}
.ticket-fullscreen-qr {
    width: min(70vw, 70vh);
    height: min(70vw, 70vh);
    display: block;
}
.ticket-fullscreen-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ===== Bank Dropdown (deposit page) ===== */
.bank-dropdown {
    position: relative;
}
.bank-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: var(--card-bg, #1a1a2e);
    border: 1px solid var(--border);
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.bank-dropdown-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.bank-dropdown-item:last-child {
    border-bottom: none;
}
.bank-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.15);
}
.bank-dropdown-name {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Quiz session grouping */
.quiz-preview-session-header {
    margin: 1rem 0 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(99, 102, 241, 0.08);
    border-left: 3px solid var(--accent, #6366f1);
    border-radius: var(--radius, 8px);
}

.quiz-preview-session-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent, #6366f1);
}

/* Claim page session header */
.claim-quiz-session {
    margin: 1.25rem 0 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(99, 102, 241, 0.08);
    border-left: 3px solid var(--accent, #6366f1);
    border-radius: var(--radius, 8px);
}

.claim-quiz-session-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent, #6366f1);
}
