/* ============================================================
   app.css – UWS 2026 PWA
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --blue-dark:   #05367B;
    --blue-mid:    #1A4EB5;
    --blue-bright: #305CDE;
    --blue-light:  #EEF3FF;
    --bg:          #EBF0F8;
    --card-bg:     #FFFFFF;
    --card-radius: 18px;
    --card-shadow: 0 2px 12px rgba(5,54,123,0.07), 0 1px 3px rgba(0,0,0,0.05);
    --card-shadow-hover: 0 8px 28px rgba(5,54,123,0.13), 0 2px 8px rgba(0,0,0,0.06);
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6B7280;
    --text-faint: #9CA3AF;
    --border: #E5E7EB;
    --nav-h: 68px;
    --header-h: 72px;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    padding-bottom: calc(var(--nav-h) + max(8px, env(safe-area-inset-bottom, 0px)) + 8px);
}

a { text-decoration: none; color: inherit; }

/* ── Header ──────────────────────────────────────────────── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #05367B 0%, #1B4FBA 60%, #305CDE 100%);
    box-shadow: 0 4px 24px rgba(5,54,123,0.25);
}

.app-header-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}


.app-header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.app-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0;
    border: 1.5px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

/* ── Content ─────────────────────────────────────────────── */
.app-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 16px 8px;
}

/* ── Page titles ─────────────────────────────────────────── */
.page-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.page-subtitle {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Messages ────────────────────────────────────────────── */
.message-box {
    display: none;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
}

.message-box.success {
    display: flex;
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.message-box.error {
    display: flex;
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ── Day section headers ─────────────────────────────────── */
.day-section {
    margin-top: 28px;
    margin-bottom: 12px;
}

.day-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.day-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.day-label-pill {
    background: var(--blue-dark);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Session / schedule cards ────────────────────────────── */
.schedule-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card-bg);
    padding: 14px 16px;
    border-radius: var(--card-radius);
    margin-bottom: 10px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--blue-bright);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.schedule-row:hover {
    transform: translateY(-1px);
    box-shadow: var(--card-shadow-hover);
}

.schedule-row.reserved {
    border-left-color: #10B981;
}

.schedule-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    width: 68px;
    background: var(--blue-light);
    border-radius: 10px;
    padding: 8px 6px;
    flex-shrink: 0;
}

.schedule-time-start {
    font-size: 13px;
    font-weight: 800;
    color: var(--blue-dark);
    line-height: 1.1;
}

.schedule-time-end {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1;
}

.schedule-main {
    flex: 1;
    min-width: 0;
}

.schedule-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.3;
}

.schedule-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.schedule-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: #F3F4F6;
    padding: 3px 8px;
    border-radius: 999px;
}

.schedule-chip svg {
    width: 11px; height: 11px;
    flex-shrink: 0;
}

.schedule-action {
    flex-shrink: 0;
}

/* ── Session count summary bar ───────────────────────────── */
.sessions-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}

.sessions-summary-count {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.sessions-summary-count span {
    color: var(--blue-bright);
}

.sessions-summary-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Action buttons ──────────────────────────────────────── */
.pill-btn {
    border: none;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

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

.pill-btn.add {
    background: var(--blue-bright);
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(48,92,222,0.28);
}

.pill-btn.add:hover:not(:disabled) {
    background: var(--blue-mid);
    box-shadow: 0 4px 14px rgba(48,92,222,0.38);
    transform: translateY(-1px);
}

.pill-btn.remove {
    background: #FEE2E2;
    color: #B91C1C;
}

.pill-btn.remove:hover:not(:disabled) {
    background: #FECACA;
}

.pill-btn:active:not(:disabled) {
    transform: scale(0.95);
}

/* ── Empty states ────────────────────────────────────────── */
.empty-card {
    background: var(--card-bg);
    padding: 48px 24px;
    border-radius: var(--card-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    color: var(--text-muted);
}

.empty-card-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.empty-card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-secondary);
    margin: 0 0 6px;
}

.empty-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.primary-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    background: var(--blue-bright);
    color: #FFFFFF;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(48,92,222,0.28);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.primary-link-btn:hover {
    background: var(--blue-mid);
    box-shadow: 0 4px 16px rgba(48,92,222,0.36);
    transform: translateY(-1px);
}

/* ── Bottom navigation ───────────────────────────────────── */
.app-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 -4px 24px rgba(5,54,123,0.08);
    z-index: 1100;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    padding-top: 8px;
}

.app-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px 9px;
    color: var(--text-faint);
    text-decoration: none;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    min-width: 0;
}

.app-nav-link.nav-active {
    color: var(--blue-dark);
}

.nav-icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    transition: stroke-width 0.15s ease, transform 0.15s ease;
}

.app-nav-link.nav-active .nav-icon {
    stroke-width: 2.4;
    transform: translateY(-1px);
}

.nav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* Active indicator: top bar */
.app-nav-link.nav-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: var(--blue-bright);
    border-radius: 0 0 4px 4px;
}

/* Notification badge on nav */
.nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 16px);
    min-width: 16px;
    height: 16px;
    background: #EF4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    line-height: 1;
}

/* ── Dinner page ─────────────────────────────────────────── */
.dinner-info-card {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-bright) 100%);
    border-radius: var(--card-radius);
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(5,54,123,0.25);
}

.dinner-info-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.dinner-info-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 6px;
}

.dinner-info-desc {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

/* Restaurant card grid */
.dinner-restaurants-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.dinner-restaurant-card {
    position: relative;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--card-radius);
    padding: 16px 18px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--card-shadow);
}

.dinner-restaurant-card:hover {
    border-color: var(--blue-bright);
    transform: translateY(-1px);
    box-shadow: var(--card-shadow-hover);
}

.dinner-restaurant-card.choice-1 {
    border-color: #F59E0B;
    background: #FFFBEB;
}

.dinner-restaurant-card.choice-2 {
    border-color: #6B7280;
    background: #F9FAFB;
}

.dinner-restaurant-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.dinner-restaurant-card.choice-1 .dinner-restaurant-icon { background: #FEF3C7; }
.dinner-restaurant-card.choice-2 .dinner-restaurant-icon { background: #F3F4F6; }

.dinner-restaurant-info {
    flex: 1;
}

.dinner-restaurant-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.dinner-restaurant-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.dinner-choice-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.choice-1 .dinner-choice-badge {
    background: #F59E0B;
    color: #fff;
}

.choice-2 .dinner-choice-badge {
    background: #6B7280;
    color: #fff;
}

.dinner-choice-badge:not(.shown) {
    display: none;
}

.dinner-actions {
    display: flex;
    gap: 8px;
    flex-direction: column;
    margin-top: 8px;
}

.dinner-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-bright));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(5,54,123,0.28);
}

.dinner-submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.dinner-submit-btn:active {
    transform: scale(0.98);
}

.dinner-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.dinner-reset-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.dinner-reset-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-secondary);
}

.dinner-existing-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.dinner-existing-icon {
    width: 22px;
    height: 22px;
    background: #10B981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Notifications page ──────────────────────────────────── */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-left: 4px solid var(--border);
    transition: transform 0.15s;
}

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

.notif-card--info    { border-left-color: #3B82F6; }
.notif-card--warning { border-left-color: #F59E0B; }
.notif-card--success { border-left-color: #10B981; }
.notif-card--urgent  { border-left-color: #EF4444; }

.notif-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #F3F4F6;
}

.notif-card--info    .notif-icon { background: #EFF6FF; }
.notif-card--warning .notif-icon { background: #FFFBEB; }
.notif-card--success .notif-icon { background: #ECFDF5; }
.notif-card--urgent  .notif-icon { background: #FEF2F2; }

.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 15px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.notif-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 6px; }
.notif-time { font-size: 11px; color: var(--text-faint); font-weight: 600; }

.notif-empty { padding: 60px 24px; }
.notif-empty-icon { font-size: 48px; margin-bottom: 14px; display: block; opacity: 0.6; }
.notif-empty-title { font-size: 18px; font-weight: 800; color: var(--text-secondary); margin: 0 0 8px; }
.notif-empty-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Session detail expand ───────────────────────────────── */
.schedule-row.has-details {
    cursor: pointer;
    flex-wrap: wrap;
}

.schedule-row.has-details .schedule-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.detail-chevron {
    color: var(--text-faint);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.detail-chevron svg {
    width: 14px; height: 14px;
}

.detail-chevron.chevron-up {
    transform: rotate(180deg);
}

.session-detail {
    width: 100%;
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    /* rendered inline after chips row; relies on flex-wrap on .schedule-row */
    /* we force it to span full width by using a separate block */
    flex-basis: 100%;
    grid-column: 1 / -1;
}

.session-detail-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 10px;
}

.session-detail-moderator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.session-detail-moderator svg {
    width: 13px; height: 13px; flex-shrink: 0;
}

.session-detail-speakers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.session-speaker-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--blue-light);
    border-radius: 12px;
    padding: 8px 12px;
}

.session-speaker-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--blue-bright);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-speaker-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.session-speaker-role {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
}

.chip-speakers {
    color: var(--blue-dark);
    background: var(--blue-light);
}

/* ── Button spinner ──────────────────────────────────────── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-spinner {
    width: 13px;
    height: 13px;
    margin-right: 5px;
    vertical-align: middle;
    animation: spin 0.75s linear infinite;
    display: inline-block;
}

/* ── Sign-out bottom sheet ───────────────────────────────── */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    animation: fadeInOverlay 0.2s ease;
}

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

.sheet-card {
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 28px 24px 32px;
    width: 100%;
    max-width: 520px;
    text-align: center;
    animation: slideUp 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.sheet-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #FEF2F2;
    color: #B91C1C;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.sheet-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.sheet-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.sheet-btn-confirm {
    display: block;
    width: 100%;
    padding: 14px;
    background: #DC2626;
    color: #fff;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    transition: background 0.15s;
}

.sheet-btn-confirm:hover { background: #B91C1C; }

.sheet-btn-cancel {
    display: block;
    width: 100%;
    padding: 13px;
    background: #F3F4F6;
    color: var(--text-secondary);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.sheet-btn-cancel:hover { background: #E5E7EB; }

/* ── Network toast ───────────────────────────────────────── */
.network-toast {
    position: fixed;
    bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1F2937;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    white-space: nowrap;
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.network-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.network-toast--offline {
    background: #EF4444;
}

.network-toast--online {
    background: #10B981;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .app-content { padding: 16px 14px 8px; }

    .schedule-row { gap: 10px; padding: 12px 14px; }

    .schedule-time { min-width: 60px; width: 60px; padding: 6px 4px; }
    .schedule-time-start { font-size: 12px; }

    .schedule-title { font-size: 14px; }

    .pill-btn { padding: 8px 14px; font-size: 12px; }
}

/* ── Skeleton loading ────────────────────────────────────── */
@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}

.skeleton {
    background: linear-gradient(90deg,
        #e2e8f0 25%,
        #f0f4f8 50%,
        #e2e8f0 75%
    );
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
}

/* Skeleton row — mirrors .schedule-row */
.skeleton-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card-bg);
    padding: 14px 16px;
    border-radius: var(--card-radius);
    margin-bottom: 10px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid #e2e8f0;
}

.skeleton-time {
    min-width: 68px;
    width: 68px;
    height: 52px;
    border-radius: 10px;
    flex-shrink: 0;
}

.skeleton-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-title  { height: 15px; width: 70%; }
.skeleton-chip   { height: 11px; width: 40%; }

/* Skeleton person card — mirrors attendees grid card */
.skeleton-person {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 18px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.skeleton-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.skeleton-name  { height: 13px; width: 80%; }
.skeleton-role  { height: 11px; width: 60%; }
.skeleton-co    { height: 11px; width: 50%; }

/* Skeleton summary bar */
.skeleton-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}

.skeleton-summary-text { height: 15px; width: 120px; }
.skeleton-summary-sub  { height: 12px; width: 80px; margin-top: 5px; }

/* Skeleton countdown card */
.skeleton-countdown {
    border-radius: var(--card-radius);
    height: 110px;
    margin-bottom: 20px;
}

/* Hide skeletons once content is ready */
.page-loaded .skeleton-screen { display: none !important; }

/* ── Push notification enable banner ─────────────────────── */
.push-banner {
    position: fixed;
    bottom: calc(var(--nav-h) + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 480px;
    background: var(--blue-dark);
    color: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    z-index: 900;
    animation: bannerSlide 0.3s ease;
}

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

.push-banner-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.push-banner-text {
    font-size: 13px;
    line-height: 1.4;
    flex: 1;
}

.push-banner-enable {
    background: #fff;
    color: var(--blue-dark);
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.push-banner-enable:disabled {
    opacity: 0.6;
    cursor: default;
}

.push-banner-dismiss {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    line-height: 1;
}

/* ── Add-to-Home-Screen instruction sheet ────────────────── */
.a2hs-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    transition: background 0.3s ease;
}

.a2hs-backdrop--visible {
    background: rgba(0,0,0,0.45);
}

.a2hs-sheet {
    width: 100%;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 12px 24px 40px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 88vh;
    overflow-y: auto;
}

.a2hs-sheet--visible {
    transform: translateY(0);
}

.a2hs-handle {
    width: 40px;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    margin: 0 auto 20px;
}

.a2hs-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.a2hs-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 24px;
    line-height: 1.5;
}

.a2hs-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.a2hs-step-num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--blue-dark);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a2hs-step-body {
    flex: 1;
    padding-top: 4px;
}

.a2hs-step-label {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.a2hs-step-hint {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 10px;
    line-height: 1.4;
}

.a2hs-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-light);
    border-radius: 12px;
    padding: 10px 16px;
}

.a2hs-pill-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.a2hs-pill-icon {
    font-size: 16px;
}

.a2hs-close-btn {
    width: 100%;
    background: var(--blue-dark);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}

/* ── Countdown Timer ─────────────────────────────────────── */
.countdown-card {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-bright) 100%);
    border-radius: var(--card-radius);
    padding: 20px 16px 18px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 20px rgba(5,54,123,0.28);
}

.countdown-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.75);
    margin-bottom: 12px;
}

.countdown-units {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 58px;
}

.countdown-num {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    font-variant-numeric: tabular-nums;
    min-width: 52px;
    text-align: center;
}

.countdown-unit-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 3px;
}

.countdown-sep {
    font-size: 28px;
    font-weight: 900;
    color: rgba(255,255,255,0.4);
    margin-bottom: 14px;
    line-height: 1;
}

.countdown-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
}

.countdown-live-msg {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
    padding: 4px 0;
}

/* ── Venue Page ──────────────────────────────────────────── */
.venue-hero {
    background: linear-gradient(135deg, #05367B 0%, #1A4EB5 50%, #305CDE 100%);
    border-radius: var(--card-radius);
    padding: 28px 20px 24px;
    margin-bottom: 14px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(5,54,123,0.28);
    position: relative;
    overflow: hidden;
}

.venue-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.venue-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.venue-hero-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.venue-hero-name {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.venue-hero-dates {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
}

.venue-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 18px 18px;
    margin-bottom: 14px;
    box-shadow: var(--card-shadow);
}

.venue-card--no-pad {
    padding: 0;
    overflow: hidden;
}

.venue-section-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.venue-address-line {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
}

.venue-address-line.muted {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.venue-action-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.venue-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.venue-action-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.venue-action-btn--primary {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-bright));
    color: #fff;
    box-shadow: 0 3px 12px rgba(5,54,123,0.28);
}

.venue-action-btn--primary:hover { opacity: 0.9; transform: translateY(-1px); }

.venue-action-btn--secondary {
    background: var(--blue-light);
    color: var(--blue-dark);
    border: 1.5px solid rgba(48,92,222,0.2);
}

.venue-action-btn--secondary:hover { background: #dce7ff; }

.venue-hours-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.venue-hours-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.venue-hours-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.venue-hours-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.venue-hours-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.venue-hours-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

.venue-amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.venue-amenity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border-radius: 12px;
    padding: 12px 6px;
    text-align: center;
}

.venue-amenity-icon { font-size: 22px; }

.venue-amenity-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.2;
    text-align: center;
}

.venue-transport-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.venue-transport-item:last-child { border-bottom: none; padding-bottom: 0; }
.venue-transport-item:first-child { padding-top: 0; }

.venue-transport-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
    margin-top: 1px;
}

.venue-transport-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.venue-transport-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.venue-contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-dark);
    flex-shrink: 0;
}

/* ── Digital Badge ───────────────────────────────────────── */
.badge-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: 0 8px 32px rgba(5,54,123,0.18), 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 14px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.badge-event-stripe {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-bright) 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.badge-event-logo {
    height: 36px;
    width: auto;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.badge-event-meta { color: #fff; }

.badge-event-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2px;
}

.badge-event-dates {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.badge-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 24px;
}

.badge-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--blue-light);
    border: 3px solid var(--blue-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    color: var(--blue-dark);
    margin-bottom: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.badge-name {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    line-height: 1.2;
}

.badge-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    margin-bottom: 2px;
}

.badge-company {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 12px;
}

.badge-type-pill {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.badge-type-pill--carrier   { background: #EFF6FF; color: #1D4ED8; }
.badge-type-pill--distributor { background: #F0FDF4; color: #15803D; }
.badge-type-pill--staff     { background: #FFF7ED; color: #C2410C; }
.badge-type-pill--attendee  { background: var(--blue-light); color: var(--blue-dark); }

.badge-qr-wrap {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    display: inline-flex;
}

.badge-qr-hint {
    font-size: 11px;
    color: var(--text-faint);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-tip-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 14px 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 380px;
    margin: 0 auto;
}

/* ── Session feedback / star rating ─────────────────────────── */
.session-feedback {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.session-feedback-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.session-rating-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.rating-star {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #D1D5DB;
    line-height: 0;
    transition: transform 0.1s ease, color 0.15s ease;
}

.rating-star svg {
    width: 26px;
    height: 26px;
}

.rating-star.is-filled {
    color: #F59E0B;
}

.rating-star:active {
    transform: scale(0.9);
}

.session-feedback-comment {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-secondary);
    resize: vertical;
    margin-bottom: 10px;
}

.session-feedback-comment:focus {
    outline: none;
    border-color: var(--blue-bright);
}

.session-feedback-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-feedback-submit {
    background: var(--blue-bright);
    color: #FFF;
    border: none;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.btn-feedback-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.session-feedback-status {
    font-size: 12px;
    font-weight: 600;
}

.session-feedback-status.is-success {
    color: #10B981;
}

.session-feedback-status.is-error {
    color: #EF4444;
}

/* ── Resources banner (agenda page) ─────────────────────────── */
.resources-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-bright));
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 16px 0;
    box-shadow: 0 4px 16px rgba(5,54,123,0.28);
}

.resources-banner-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.resources-banner-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
}

/* ── Resource cards (resources.php) ─────────────────────────── */
.resource-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 14px 16px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: transform 0.1s ease;
}

.resource-card:active {
    transform: scale(0.98);
}

.resource-card-icon {
    font-size: 26px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.resource-card-body {
    flex: 1;
    min-width: 0;
}

.resource-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.resource-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.resource-card-arrow {
    color: var(--text-faint);
    flex-shrink: 0;
}

/* ── Interactive venue floor map ─────────────────────────────── */
.venue-map-floor-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.venue-map-floor-btn {
    flex: 1;
    background: var(--blue-light);
    color: var(--blue-dark);
    border: none;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.venue-map-floor-btn.is-active {
    background: var(--blue-bright);
    color: #fff;
}

.venue-map-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    background: #FAFBFF;
    border: 1px solid var(--border);
}

.venue-map-svg svg {
    width: 100%;
    height: auto;
    display: block;
    min-width: 480px;
}

.venue-map-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin: 10px 0 0;
}

.venue-map-room-info {
    margin-top: 14px;
    background: var(--blue-light);
    border-radius: 14px;
    padding: 14px 16px;
}

.venue-map-room-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 8px;
}

.venue-map-room-info-header button {
    background: none;
    border: none;
    color: var(--blue-dark);
    cursor: pointer;
    padding: 2px;
    opacity: 0.6;
}

.venue-map-room-empty {
    font-size: 13px;
    color: var(--text-muted);
}

.venue-map-room-session {
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.venue-map-room-session:last-child {
    margin-bottom: 0;
}

.venue-map-room-session-time {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-bright);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.venue-map-room-session-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}
