/* ============================================================
   PUB PORTAL — Login-gated venue dashboard
   Extends global.css + components.css
   ============================================================ */

/* Restore [hidden] behaviour overridden by display:flex on child elements */
[hidden] { display: none !important; }

/* ── Page shell ── */
.portal-page {
    min-height: 100vh;
    background: var(--color-surface-section);
    font-family: var(--font-ui);
}

/* ── Login / Register view ── */
.login-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    background: var(--color-surface-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-float);
    padding: 48px 40px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    width: 64px;
    height: auto;
    margin-bottom: 20px;
}

.login-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

/* ── Login form ── */
.login-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
}

.form-label .optional {
    font-weight: 400;
    color: var(--color-text-tertiary);
}

.form-input {
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    background: var(--color-surface-input);
    font-family: var(--font-ui);
    font-size: 15px;
    color: var(--color-text-primary);
    transition: border-color 150ms ease;
    outline: none;
    width: 100%;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

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

/* Textareas reuse .form-input but must not be locked to the 48px input height */
textarea.form-input {
    height: auto;
    min-height: 100px;
    padding: 12px 16px;
    line-height: 1.5;
    resize: vertical;
}

.login-error {
    font-size: 13px;
    color: var(--color-error);
    background: rgba(255, 59, 48, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0;
}

/* ── Buttons (extras to components.css) ── */
.btn--full {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.login-footer {
    margin-top: 24px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.login-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ── Portal header ── */
.portal-header {
    background: var(--color-surface-base);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-card);
}

.portal-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-logo {
    width: 36px;
    height: auto;
}

.portal-brand-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.portal-venue-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

/* ── Portal layout ── */
.portal-view {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Portal body ── */
.portal-main {
    flex: 1;
    padding: 48px 0 64px;
}

.portal-section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* ── Dashboard toolbar ── */
.portal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.filter-tab {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-ui);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 150ms ease;
}

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

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

/* ── View mode toggle ── */
.view-toggle {
    display: inline-flex;
    background: var(--color-surface-section);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.view-toggle-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
    font-family: var(--font-ui);
}

.view-toggle-btn.active {
    background: var(--color-surface-base);
    color: var(--color-text-primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.view-toggle-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Unified (chronological) sessions grid ── */
.sessions-unified-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Card type tile (prominent colored square at start of each card) ── */
.card-type-tile {
    position: relative;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 4px;
    color: white;
    font-size: 26px;
    line-height: 1;
    user-select: none;
}

.card-type-tile-icon { display: block; }

.card-type-tile--pub_quiz      { background: #0A84FF; }
.card-type-tile--music_bingo   { background: #7B00D4; }
.card-type-tile--mystery_match { background: #FF2D55; }
.card-type-tile--karaoke       { background: #FF9500; }
.card-type-tile--other         { background: #00C7BE; }

/* Status dot overlaid on the tile corner */
.card-type-tile-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8E8E93;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.card-type-tile-dot--live      { background: #00C853; }
.card-type-tile-dot--setup     { background: #FF9500; }
.card-type-tile-dot--paused    { background: #8E8E93; }
.card-type-tile-dot--done      { background: #0A84FF; }
.card-type-tile-dot--cancelled { background: #FF3B30; }

.card-type-tile-dot--live {
    animation: card-dot-pulse 2s ease-in-out infinite;
}

@keyframes card-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 0 rgba(0, 200, 83, 0.6); }
    50%      { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(0, 200, 83, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .card-type-tile-dot--live { animation: none; }
}

@media (max-width: 640px) {
    .card-type-tile {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    .card-type-tile-dot {
        width: 9px;
        height: 9px;
        top: 4px;
        right: 4px;
    }
}

/* ── Sessions loading ── */
.sessions-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 64px 0;
    color: var(--color-text-tertiary);
    font-size: 14px;
}

.sessions-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ── Sessions grid ── */
.sessions-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Session card ── */
.session-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--color-surface-base);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-border);
    border-radius: var(--radius-card);
    text-decoration: none;
    color: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

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

/* ── Type color accents ── */
.session-card.type--music_bingo  { border-left-color: #7B00D4; }
.session-card.type--pub_quiz     { border-left-color: #0A84FF; }
.session-card.type--mystery_match { border-left-color: #FF2D55; }
.session-card.type--karaoke      { border-left-color: #FF9500; }
.session-card.type--other        { border-left-color: #00C7BE; }

.session-card.type--music_bingo:hover  { border-left-color: #7B00D4; }
.session-card.type--pub_quiz:hover     { border-left-color: #0A84FF; }
.session-card.type--mystery_match:hover { border-left-color: #FF2D55; }
.session-card.type--karaoke:hover      { border-left-color: #FF9500; }
.session-card.type--other:hover        { border-left-color: #00C7BE; }

/* ── Date badge ── */
.session-card-date-badge {
    flex-shrink: 0;
    width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.session-card-day {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.1;
}

.session-card-month {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-text-tertiary);
}

/* ── Icon ── */
.session-card-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.type--music_bingo .session-card-icon  { background: rgba(123, 0, 212, 0.1); }
.type--pub_quiz .session-card-icon     { background: rgba(10, 132, 255, 0.1); }
.type--mystery_match .session-card-icon { background: rgba(255, 45, 85, 0.1); }
.type--karaoke .session-card-icon      { background: rgba(255, 149, 0, 0.1); }
.type--other .session-card-icon        { background: rgba(0, 199, 190, 0.1); }

/* ── Info ── */
.session-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.session-card-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.type--music_bingo .session-card-type  { color: #7B00D4; }
.type--pub_quiz .session-card-type     { color: #0A84FF; }
.type--mystery_match .session-card-type { color: #FF2D55; }
.type--karaoke .session-card-type      { color: #FF9500; }
.type--other .session-card-type        { color: #00C7BE; }

.session-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Status pill ── */
.session-card-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    flex-shrink: 0;
    text-transform: capitalize;
}

.status--active {
    background: rgba(52, 199, 89, 0.12);
    color: #2d8a4e;
}

.status--pending {
    background: rgba(255, 159, 10, 0.12);
    color: #b87a00;
}

.status--completed {
    background: rgba(142, 142, 147, 0.12);
    color: #6e6e73;
}

.status--cancelled {
    background: rgba(255, 59, 48, 0.1);
    color: #d63030;
}

/* ── Arrow ── */
.session-card-arrow {
    font-size: 22px;
    color: var(--color-text-tertiary);
    flex-shrink: 0;
    transition: transform 150ms ease;
}

.session-card:hover .session-card-arrow {
    transform: translateX(3px);
}

/* ── Type section headings (for "All" view) ── */
.session-section-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 28px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-section-title:first-child {
    margin-top: 0;
}

.session-section--live    { color: #16a34a; }
.session-section--upcoming { color: var(--color-text-tertiary); }
.session-section--overdue  { color: #b45309; }
.session-section--completed { color: var(--color-text-tertiary); }
.session-section--cancelled { color: var(--color-text-tertiary); opacity: 0.6; }

.section-empty-slot {
    font-size: 13px;
    color: var(--color-text-tertiary);
    font-style: italic;
    padding: 10px 2px 18px;
    opacity: 0.7;
}

.toggle-cancelled-btn {
    background: none;
    border: 1px solid currentColor;
    border-radius: 4px;
    color: inherit;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    text-transform: uppercase;
    opacity: 0.8;
}
.toggle-cancelled-btn:hover { opacity: 1; }

/* ── Generic rows container ── */
.sessions-grid-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Pub Quiz cards grid ── */
/* ── Pub Quiz slim cards ── */
.pq-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pq-card {
    background: var(--color-surface-base);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    border-left: 4px solid #0A84FF;
    box-shadow: var(--shadow-card);
    transition: all 150ms ease;
    cursor: pointer;
}

.pq-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(0,0,0,0.1)), 0 0 0 2px rgba(10, 132, 255, 0.25);
    border-color: var(--color-border);
    border-left-color: #0A84FF;
}

.pq-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

/* ── Date section ── */
.pq-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pq-card-day {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
}

.pq-card-date-sub {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pq-card-month {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-secondary);
    line-height: 1.2;
}

.pq-card-time {
    font-size: 12px;
    color: var(--color-text-tertiary);
    line-height: 1.2;
}

/* ── Divider ── */
.pq-card-divider {
    width: 1px;
    height: 28px;
    background: var(--color-border);
    flex-shrink: 0;
}

/* ── Stats ── */
.pq-card-stats {
    display: flex;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.pq-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.pq-stat strong {
    color: var(--color-text-primary);
    font-weight: 700;
}

.pq-stat-icon {
    width: 16px;
    height: 16px;
    color: #0A84FF;
    flex-shrink: 0;
}

/* ── Right section (status + actions + delete) ── */
.pq-card-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Hover-reveal controls (desktop only; touch devices keep buttons visible) ── */
@media (hover: hover) {
    .pq-card-status, .pq-card-actions, .pq-card-delete,
    .mm-card-status, .mm-card-actions, .mm-card-delete,
    .mb-card-status, .mb-card-actions, .mb-card-delete,
    .kr-card-status, .kr-card-actions, .kr-card-delete,
    .oe-card-status, .oe-card-delete {
        opacity: 0;
        transform: translateX(6px);
        pointer-events: none;
        transition: opacity 150ms ease, transform 150ms ease;
    }

    .pq-card:hover .pq-card-status,
    .pq-card:hover .pq-card-actions,
    .pq-card:hover .pq-card-delete,
    .pq-card:focus-within .pq-card-status,
    .pq-card:focus-within .pq-card-actions,
    .pq-card:focus-within .pq-card-delete,
    .mm-card:hover .mm-card-status,
    .mm-card:hover .mm-card-actions,
    .mm-card:hover .mm-card-delete,
    .mm-card:focus-within .mm-card-status,
    .mm-card:focus-within .mm-card-actions,
    .mm-card:focus-within .mm-card-delete,
    .mb-card:hover .mb-card-status,
    .mb-card:hover .mb-card-actions,
    .mb-card:hover .mb-card-delete,
    .mb-card:focus-within .mb-card-status,
    .mb-card:focus-within .mb-card-actions,
    .mb-card:focus-within .mb-card-delete,
    .kr-card:hover .kr-card-status,
    .kr-card:hover .kr-card-actions,
    .kr-card:hover .kr-card-delete,
    .kr-card:focus-within .kr-card-status,
    .kr-card:focus-within .kr-card-actions,
    .kr-card:focus-within .kr-card-delete,
    .oe-card:hover .oe-card-status,
    .oe-card:hover .oe-card-delete,
    .oe-card:focus-within .oe-card-status,
    .oe-card:focus-within .oe-card-delete {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    /* Non-interactive cards (generating / failed): keep status + delete
       visible without requiring hover. */
    .mb-card.is-generating .mb-card-status,
    .mb-card.is-generating .mb-card-delete,
    .mb-card.is-failed .mb-card-status,
    .mb-card.is-failed .mb-card-delete {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

@media (hover: hover) and (prefers-reduced-motion: reduce) {
    .pq-card-status, .pq-card-actions, .pq-card-delete,
    .mm-card-status, .mm-card-actions, .mm-card-delete,
    .mb-card-status, .mb-card-actions, .mb-card-delete,
    .kr-card-status, .kr-card-actions, .kr-card-delete,
    .oe-card-status, .oe-card-delete {
        transform: none;
        transition: opacity 150ms ease;
    }
}

.pq-card-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pq-status-registration {
    background: rgba(255, 149, 0, 0.12);
    color: var(--color-warning, #FF9500);
    border: 1px solid rgba(255, 149, 0, 0.25);
}

.pq-status-in_progress {
    background: rgba(0, 200, 83, 0.12);
    color: var(--color-success, #00C853);
    border: 1px solid rgba(0, 200, 83, 0.25);
}

.pq-status-completed {
    background: rgba(0, 122, 255, 0.12);
    color: var(--color-info, #007AFF);
    border: 1px solid rgba(0, 122, 255, 0.25);
}

.pq-status-paused {
    background: rgba(142, 142, 147, 0.12);
    color: var(--color-text-tertiary);
    border: 1px solid rgba(142, 142, 147, 0.25);
}

.pq-card-actions {
    display: flex;
    gap: 6px;
}

.pq-card-delete {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--color-text-tertiary);
    cursor: pointer;
    transition: all 150ms ease;
    padding: 0;
}

.pq-card-delete:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #d63030;
}

/* ── Small buttons ── */
.btn--sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
}

/* ── Danger button ── */
.btn--danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-input);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 150ms ease;
    background: none;
    color: #d63030;
    border-color: rgba(255, 59, 48, 0.2);
}

.btn--danger:hover {
    background: rgba(255, 59, 48, 0.08);
    border-color: #d63030;
}

/* ── Mystery Match slim cards ── */
.mm-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mm-card {
    background: var(--color-surface-base);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    border-left: 4px solid #FF2D55;
    box-shadow: var(--shadow-card);
    transition: all 150ms ease;
    cursor: pointer;
}

.mm-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(0,0,0,0.1)), 0 0 0 2px rgba(255, 45, 85, 0.25);
    border-color: var(--color-border);
    border-left-color: #FF2D55;
}

.mm-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

.mm-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mm-card-day {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
}

.mm-card-date-sub {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mm-card-month {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-secondary);
    line-height: 1.2;
}

.mm-card-time {
    font-size: 12px;
    color: var(--color-text-tertiary);
    line-height: 1.2;
}

.mm-card-divider {
    width: 1px;
    height: 28px;
    background: var(--color-border);
    flex-shrink: 0;
}

.mm-card-stats {
    display: flex;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.mm-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.mm-stat strong {
    color: var(--color-text-primary);
    font-weight: 700;
}

.mm-stat-icon {
    width: 16px;
    height: 16px;
    color: #FF2D55;
    flex-shrink: 0;
}

.mm-card-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mm-card-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.mm-status-lobby {
    background: rgba(255, 149, 0, 0.12);
    color: var(--color-warning, #FF9500);
    border: 1px solid rgba(255, 149, 0, 0.25);
}

.mm-status-in_progress,
.mm-status-between_rounds {
    background: rgba(0, 200, 83, 0.12);
    color: var(--color-success, #00C853);
    border: 1px solid rgba(0, 200, 83, 0.25);
}

.mm-status-completed {
    background: rgba(0, 122, 255, 0.12);
    color: var(--color-info, #007AFF);
    border: 1px solid rgba(0, 122, 255, 0.25);
}

.mm-card-actions {
    display: flex;
    gap: 6px;
}

.mm-card-delete {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--color-text-tertiary);
    cursor: pointer;
    transition: all 150ms ease;
    padding: 0;
}

.mm-card-delete:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #d63030;
}

/* ── Music Bingo slim cards ── */
.mb-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mb-card {
    background: var(--color-surface-base);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    border-left: 4px solid #7B00D4;
    box-shadow: var(--shadow-card);
    transition: all 150ms ease;
    cursor: pointer;
}

.mb-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(0,0,0,0.1)), 0 0 0 2px rgba(123, 0, 212, 0.25);
    border-color: var(--color-border);
    border-left-color: #7B00D4;
}

.mb-card.is-generating {
    opacity: 0.65;
    cursor: default;
}

/* Don't lift non-interactive cards on hover — keeps the reveal animation
   but signals that the card body itself isn't clickable. */
.mb-card.is-generating:hover,
.mb-card.is-failed:hover {
    transform: none;
    box-shadow: var(--shadow-card);
    border-color: var(--color-border);
    border-left-color: #7B00D4;
}

.mb-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

.mb-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mb-card-day {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
}

.mb-card-date-sub {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mb-card-month {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-secondary);
    line-height: 1.2;
}

.mb-card-time {
    font-size: 12px;
    color: var(--color-text-tertiary);
    line-height: 1.2;
}

.mb-card-divider {
    width: 1px;
    height: 28px;
    background: var(--color-border);
    flex-shrink: 0;
}

.mb-card-stats {
    display: flex;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.mb-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.mb-stat strong {
    color: var(--color-text-primary);
    font-weight: 700;
}

.mb-stat-icon {
    width: 16px;
    height: 16px;
    color: #7B00D4;
    flex-shrink: 0;
}

/* ── Generating state ── */
.mb-card-generating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: #7B00D4;
}

.mb-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(123, 0, 212, 0.2);
    border-top-color: #7B00D4;
    border-radius: 50%;
    animation: mb-spin 0.8s linear infinite;
}

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

/* ── Failed / not started state ── */
.mb-card.is-failed {
    opacity: 0.7;
    cursor: default;
}

.mb-card-error {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: #d63030;
}

.mb-error-icon {
    width: 18px;
    height: 18px;
    color: #d63030;
    flex-shrink: 0;
}

.mb-retry-btn {
    padding: 4px 12px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    color: #7B00D4;
    background: rgba(123, 0, 212, 0.08);
    border: 1px solid rgba(123, 0, 212, 0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}

.mb-retry-btn:hover {
    background: rgba(123, 0, 212, 0.15);
    border-color: #7B00D4;
}

.mb-card-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mb-card-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.mb-status-pending {
    background: rgba(255, 149, 0, 0.12);
    color: var(--color-warning, #FF9500);
    border: 1px solid rgba(255, 149, 0, 0.25);
}

.mb-status-active {
    background: rgba(0, 200, 83, 0.12);
    color: var(--color-success, #00C853);
    border: 1px solid rgba(0, 200, 83, 0.25);
}

.mb-status-completed {
    background: rgba(0, 122, 255, 0.12);
    color: var(--color-info, #007AFF);
    border: 1px solid rgba(0, 122, 255, 0.25);
}

.mb-status-cancelled {
    background: rgba(142, 142, 147, 0.12);
    color: var(--color-text-tertiary);
    border: 1px solid rgba(142, 142, 147, 0.25);
}

.mb-card-actions {
    display: flex;
    gap: 6px;
}

.mb-card-delete {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--color-text-tertiary);
    cursor: pointer;
    transition: all 150ms ease;
    padding: 0;
}

.mb-card-delete:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #d63030;
}

/* ── Karaoke slim cards ── */
.kr-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kr-card {
    background: var(--color-surface-base);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    border-left: 4px solid #FF9500;
    box-shadow: var(--shadow-card);
    transition: all 150ms ease;
    cursor: pointer;
}

.kr-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(0,0,0,0.1)), 0 0 0 2px rgba(255, 149, 0, 0.25);
    border-color: var(--color-border);
    border-left-color: #FF9500;
}

.kr-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

.kr-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.kr-card-day {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
}

.kr-card-date-sub {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.kr-card-month {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-secondary);
    line-height: 1.2;
}

.kr-card-time {
    font-size: 12px;
    color: var(--color-text-tertiary);
    line-height: 1.2;
}

.kr-card-divider {
    width: 1px;
    height: 28px;
    background: var(--color-border);
    flex-shrink: 0;
}

.kr-card-stats {
    display: flex;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.kr-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.kr-stat strong {
    color: var(--color-text-primary);
    font-weight: 700;
}

.kr-stat-icon {
    width: 16px;
    height: 16px;
    color: #FF9500;
    flex-shrink: 0;
}

.kr-card-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.kr-card-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.kr-status-waiting {
    background: rgba(255, 149, 0, 0.12);
    color: var(--color-warning, #FF9500);
    border: 1px solid rgba(255, 149, 0, 0.25);
}

.kr-status-active {
    background: rgba(0, 200, 83, 0.12);
    color: var(--color-success, #00C853);
    border: 1px solid rgba(0, 200, 83, 0.25);
}

.kr-status-paused {
    background: rgba(142, 142, 147, 0.12);
    color: var(--color-text-secondary, #8E8E93);
    border: 1px solid rgba(142, 142, 147, 0.25);
}

.kr-status-ended {
    background: rgba(0, 122, 255, 0.12);
    color: var(--color-info, #007AFF);
    border: 1px solid rgba(0, 122, 255, 0.25);
}

.kr-card-actions {
    display: flex;
    gap: 6px;
}

.kr-card-delete {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--color-text-tertiary);
    cursor: pointer;
    transition: all 150ms ease;
    padding: 0;
}

.kr-card-delete:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #d63030;
}

/* ── Other / generic event card (mirrors .kr-card with teal accent) ── */
.oe-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oe-card {
    background: var(--color-surface-base);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    border-left: 4px solid #00C7BE;
    box-shadow: var(--shadow-card);
    transition: all 150ms ease;
    cursor: pointer;
}

.oe-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(0,0,0,0.1)), 0 0 0 2px rgba(0, 199, 190, 0.25);
    border-color: var(--color-border);
    border-left-color: #00C7BE;
}

.oe-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

.oe-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.oe-card-day {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
}

.oe-card-date-sub {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.oe-card-month {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-secondary);
    line-height: 1.2;
}

.oe-card-time {
    font-size: 12px;
    color: var(--color-text-tertiary);
    line-height: 1.2;
}

.oe-card-divider {
    width: 1px;
    height: 28px;
    background: var(--color-border);
    flex-shrink: 0;
}

.oe-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.oe-card-title {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oe-card-sub {
    font-size: 13px;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oe-card-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.oe-card-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.oe-status-setup {
    background: rgba(0, 199, 190, 0.12);
    color: #00a89f;
    border: 1px solid rgba(0, 199, 190, 0.25);
}

.oe-status-live {
    background: rgba(0, 200, 83, 0.12);
    color: var(--color-success, #00C853);
    border: 1px solid rgba(0, 200, 83, 0.25);
}

.oe-status-done {
    background: rgba(0, 122, 255, 0.12);
    color: var(--color-info, #007AFF);
    border: 1px solid rgba(0, 122, 255, 0.25);
}

.oe-status-paused,
.oe-status-cancelled {
    background: rgba(142, 142, 147, 0.12);
    color: var(--color-text-secondary, #8E8E93);
    border: 1px solid rgba(142, 142, 147, 0.25);
}

.oe-card-delete {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--color-text-tertiary);
    cursor: pointer;
    transition: all 150ms ease;
    padding: 0;
}

.oe-card-delete:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #d63030;
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 64px 24px;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 8px;
}

.empty-state-desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin: 0 0 24px;
}

/* ── Portal footer ── */
.portal-footer {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--color-text-tertiary);
    border-top: 1px solid var(--color-border);
}

.portal-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px 28px;
    }

    .portal-header-inner {
        padding: 0 16px;
    }

    .portal-main {
        padding: 32px 0 48px;
    }

    .portal-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .session-card {
        flex-wrap: wrap;
    }

    .session-card-arrow {
        display: none;
    }

    .pq-card-body,
    .mm-card-body,
    .mb-card-body,
    .kr-card-body {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pq-card-stats,
    .mm-card-stats,
    .mb-card-stats,
    .kr-card-stats {
        order: 3;
        flex-basis: 100%;
        gap: 12px;
    }

    .pq-card-right,
    .mm-card-right,
    .mb-card-right,
    .kr-card-right {
        margin-left: auto;
    }
}

/* ── Profile Panel (slide-out) ── */
.profile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 22, 34, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    animation: profileFadeIn 200ms ease;
}

.profile-overlay[hidden] { display: none; }

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

.profile-panel {
    width: 400px;
    max-width: 90vw;
    background: var(--color-surface-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: profileSlideIn 250ms ease;
    border-left: 1px solid var(--color-border);
}

@keyframes profileSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

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

.profile-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.profile-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-tertiary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

.profile-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px;
}

/* Hero */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 4px;
}

.profile-hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.profile-hero-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--color-surface-section);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-tertiary);
    font-family: var(--font-display);
    flex-shrink: 0;
}

.profile-hero-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.profile-hero-address {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Sections */
.profile-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.profile-section:last-of-type {
    border-bottom: none;
}

.profile-section-title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-tertiary);
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
}

.profile-label {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.profile-value {
    font-size: 13px;
    color: var(--color-text-primary);
    font-weight: 500;
    text-align: right;
}

.profile-hint {
    margin-top: 16px;
    font-size: 12px;
    color: var(--color-text-tertiary);
    text-align: center;
}

/* Logo edit */
.profile-hero-logo-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-logo-edit {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-surface-base);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 150ms ease;
}

.profile-logo-edit:hover {
    color: var(--color-text-primary);
    transform: scale(1.05);
}

/* Section header with edit button */
.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.profile-section-header .profile-section-title {
    margin: 0;
}

.profile-section-edit {
    background: none;
    border: none;
    color: var(--color-accent, #0A84FF);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 150ms ease;
}

.profile-section-edit:hover {
    background: rgba(10, 132, 255, 0.08);
}

/* Inline edit rows */
.profile-edit-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0;
}

.profile-edit-row .profile-label {
    font-weight: 600;
    color: var(--color-text-secondary);
}

.profile-input {
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 13px;
    background: var(--color-surface-base);
    color: var(--color-text-primary);
    font-family: var(--font-ui);
}

.profile-input:focus {
    outline: none;
    border-color: var(--color-accent, #0A84FF);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

.profile-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.profile-empty {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-tertiary);
    font-style: italic;
}

.profile-primary-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 4px;
    background: rgba(10, 132, 255, 0.12);
    color: var(--color-accent, #0A84FF);
    border: 1px solid rgba(10, 132, 255, 0.25);
    vertical-align: middle;
}

.profile-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.profile-label-row input[type="radio"] {
    margin: 0;
    accent-color: var(--color-accent, #0A84FF);
}

.profile-edit-hint {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--color-text-tertiary);
}

/* ── Pub Portal Modal ── */
.pub-modal-card {
    background: var(--color-surface-base);
    border-radius: 16px;
    padding: 28px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
}

.pub-modal-title {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.pub-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

/* ── Share Venue modal ── */
.share-venue-card {
    max-width: 460px;
    text-align: center;
}

.share-venue-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--color-primary);
}

.share-venue-icon-btn {
    min-width: 0;
    padding: 0 16px;
}

.share-venue-blurb {
    margin: 0 0 20px;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.share-venue-qr {
    display: flex;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    width: max-content;
}

.share-venue-qr img,
.share-venue-qr canvas {
    display: block;
}

.share-venue-url-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.share-venue-url {
    flex: 1;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 13px;
    color: var(--color-text-primary);
    background: var(--color-surface-input);
}

.share-venue-status {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--color-success);
    font-weight: 600;
}

/* ── "Next up" banner ─────────────────────────────────────────────── */
.next-up-banner {
    margin-bottom: 20px;
    padding: 18px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2a1f3a 0%, #1a1230 100%);
    border: 1px solid #533a76;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.next-up-banner:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(83, 58, 118, 0.35); }
.next-up-banner:focus { outline: 2px solid #a280e0; outline-offset: 2px; }
.next-up-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c4b5e2;
    margin-bottom: 8px;
}
.next-up-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.next-up-icon { font-size: 28px; }
.next-up-meta { flex: 1; min-width: 0; }
.next-up-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.next-up-when {
    font-size: 13px;
    color: #c4b5e2;
    margin-top: 2px;
}
.next-up-countdown {
    font-size: 22px;
    font-weight: 700;
    color: #f0c878;
    min-width: 110px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.next-up-arrow {
    font-size: 22px;
    color: #c4b5e2;
    margin-left: 4px;
}

/* ── View-toggle — icon-only variant ─────────────────────────────── */
.view-toggle--icon .view-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    line-height: 0;
}
.view-toggle--icon .view-toggle-btn svg {
    display: block;
    transition: transform .15s ease;
}
.view-toggle--icon .view-toggle-btn:hover svg { transform: scale(1.08); }

/* ── Sub-toolbar row (view toggle, etc.) ─────────────────────────── */
.portal-subtoolbar {
    display: flex;
    justify-content: flex-start;
    margin: 8px 0 16px;
}

/* ── Game notification badge on My Profile button ────────────────── */
.profile-notify-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
    pointer-events: none;
}

/* ── Game notification setup banner ─────────────────────────────── */
.notify-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fffbeb;
    border-top: none;
    border-bottom: 1px solid #f59e0b;
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 10px 24px;
    font-size: 0.875rem;
}
.notify-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.notify-banner-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0 4px;
    line-height: 1;
}
.notify-banner-close:hover { color: #111; }

/* ── Profile panel: notification input hint text ─────────────────── */
.profile-input-hint {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 3px;
}

/* ── Phone prefix input (+44 fixed prefix) ───────────────────────── */
.phone-prefix-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--color-border, #d1d5db);
    border-radius: 6px;
    overflow: hidden;
}
.phone-prefix {
    padding: 8px 10px;
    background: var(--color-surface-alt, #f3f4f6);
    border-right: 1px solid var(--color-border, #d1d5db);
    font-size: 0.875rem;
    color: #374151;
    user-select: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.phone-prefix-wrap .profile-input {
    border: none;
    border-radius: 0;
    flex: 1;
    min-width: 0;
    box-shadow: none;
}
.phone-prefix-wrap .profile-input:focus {
    outline: none;
    box-shadow: none;
}
.phone-prefix-wrap:focus-within {
    outline: 2px solid var(--color-primary, #6366f1);
    outline-offset: -1px;
}
.status--overdue {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-block;
    margin-top: 4px;
}
