/* ══════════════════════════════════════
   Athenea RFID Congress — Design System
   Light Institutional Theme
   Based on Figma: Inter, Card Shadows,
   Institutional Blue #054262
   ══════════════════════════════════════ */

:root {
    /* Primary - Institutional Blue */
    --primary: hsl(202 93% 20%);
    --primary-foreground: hsl(0 0% 100%);

    /* Secondary - Accent Blue */
    --secondary: hsl(202 48% 45%);
    --secondary-foreground: hsl(0 0% 100%);

    /* Destructive/Blood Red */
    --destructive: hsl(357 75% 59%);
    --destructive-foreground: hsl(0 0% 100%);

    /* Success */
    --success: hsl(160 50% 40%);
    --success-foreground: hsl(0 0% 100%);

    /* Warning */
    --warning: hsl(38 80% 55%);
    --warning-foreground: hsl(0 0% 0%);

    /* Surfaces */
    --background: hsl(0 0% 96%);
    --foreground: hsl(200 50% 15%);
    --card: hsl(0 0% 100%);
    --card-foreground: hsl(200 50% 15%);

    /* Muted */
    --muted: hsl(200 10% 90%);
    --muted-foreground: hsl(0 0% 45%);

    /* Border */
    --border: hsl(200 10% 85%);
    --input-background: hsl(200 10% 95%);
    --ring: hsl(202 48% 45%);

    /* Card shadow */
    --card-shadow: 0 2px 8px 0 rgb(0 0 0 / 0.08), 0 1px 4px -1px rgb(0 0 0 / 0.06);
    --card-shadow-hover: 0 8px 16px -2px rgb(0 0 0 / 0.12), 0 4px 8px -2px rgb(0 0 0 / 0.08);

    /* Layout */
    --radius: 0.5rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;
    --nav-height: 64px;

    /* Sidebar (desktop) */
    --sidebar-background: hsl(202 93% 20%);
    --sidebar-foreground: hsl(0 0% 100%);
    --sidebar-accent: hsl(202 80% 28%);
    --sidebar-border: hsl(202 60% 30%);

    /* Chart colors */
    --chart-1: hsl(202 48% 45%);
    --chart-2: hsl(160 50% 40%);
    --chart-3: hsl(357 75% 59%);
    --chart-4: hsl(38 80% 55%);
    --chart-5: hsl(270 55% 48%);
}

/* ── Reset & Base ────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
}


html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /*background: red !important;*/  
    background: var(--background);
    color: var(--foreground);
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    line-height: 1.5;
    min-height: 100dvh;
    font-size: 16px;
}

html {
    background: var(--card);
}


/* Prevent iOS auto-zoom on form inputs (requires >= 16px) */
input, textarea, select {
    font-size: 16px;
}

/* Apple HIG: minimum 44x44pt touch targets for interactive elements */
button,
[role="button"],
a.card,
.btn,
.hero-btn-white,
.btn-outline-white {
    min-height: 44px;
}

/* Prevent text selection on interactive chrome (not content) */
.bottom-nav,
.app-header,
.landing-header,
.sidebar-nav {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    flex-shrink: 0;
}

.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

a { color: var(--primary); text-decoration: none; }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.5; margin: 0; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
p { margin: 0; }

/* ── App Shell ───────────────────────── */

.app-shell {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    background: var(--background);
}

/* ── Header - Institutional ────────── */

.app-header {
    background: var(--primary);
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
    position: relative;
    /* Push header below iPhone notch / status bar */
    padding-top: env(safe-area-inset-top, 0px);
}

.app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
}

.header-rfid {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.header-rfid .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-live 2s infinite;
}

.header-rfid .label {
    font-size: 9px;
    font-weight: 500;
    color: var(--primary-foreground);
    opacity: 0.9;
    letter-spacing: 0.05em;
}

.header-center {
    flex: 1;
    text-align: center;
    padding: 0 0.5rem;
}

.header-center h1 {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-foreground);
    line-height: 1.3;
}

.header-center p {
    font-size: 8px;
    color: var(--primary-foreground);
    opacity: 0.7;
}

/* Header: User Avatar */
.header-right-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-notif-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-foreground);
    opacity: 0.85;
    text-decoration: none;
    transition: opacity 0.15s;
}

.header-notif-btn:hover {
    opacity: 1;
}

.header-notif-btn .material-symbols-outlined {
    font-size: 1.2rem;
}

.header-notif-dot {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 15px;
    height: 15px;
    border-radius: 999px;
    background: var(--destructive);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    border: 1.5px solid var(--primary);
}

.header-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-foreground);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    position: relative;
}

.header-user-avatar:hover {
    background: rgba(255,255,255,0.3);
}

/* Header: Register Button */
.header-register-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    background: var(--success);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.header-register-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* Header: Dropdown Menu */
.header-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
}

.header-menu {
    position: absolute;
    top: 100%;
    right: 0.75rem;
    margin-top: 0.35rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 210px;
    z-index: 100;
    overflow: hidden;
}

.header-menu-user {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.header-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.12s;
}

.header-menu-item:hover {
    background: var(--muted);
}

.header-menu-item .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--muted-foreground);
}

.header-menu-item.destructive {
    color: var(--destructive);
}

.header-menu-item.destructive .material-symbols-outlined {
    color: var(--destructive);
}

.header-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.15rem 0;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Main Content ──────────────────── */

.app-main {
    flex: 1;
    overflow: auto;
}

.app-content {
    padding-bottom: calc(var(--nav-height) + 1.5rem);
}

/* ── Bottom Navigation ─────────────── */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 12px rgb(0 0 0 / 0.06);
    
}

.bottom-nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    height: var(--nav-height);
}

.bottom-nav a,
.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    border-radius: 0;
    color: var(--muted-foreground);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    white-space: nowrap;
    border-top: 2px solid transparent;
}

.bottom-nav a .material-symbols-outlined,
.bottom-nav .nav-item .material-symbols-outlined {
    font-size: 1.375rem;
}

.bottom-nav a.active {
    color: var(--primary);
    background: rgba(5, 66, 98, 0.06);
    border-top-color: var(--primary);
    font-weight: 600;
}

.bottom-nav a:not(.active):active {
    background: rgba(0, 0, 0, 0.04);
}

.bottom-nav a:not(.active):hover {
    color: var(--foreground);
}

.bottom-nav .notif-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 22px);
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    color: white;
    background: var(--destructive);
    border-radius: var(--radius-full);
    padding: 0 4px;
    line-height: 1;
}

/* Sidebar notification badge */
.sidebar-notif-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: white;
    background: var(--destructive);
    border-radius: var(--radius-full);
    padding: 0 5px;
    line-height: 1;
}

/* ── Page Headers ──────────────────── */

.page-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

.page-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.page-header p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.page-header-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem;
}

.page-header-gradient h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.page-header-gradient p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ── Cards ───────────────────────────── */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-body {
    padding: 1rem;
}

/* ── Buttons ─────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1.5;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover { opacity: 0.9; }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(5, 66, 98, 0.05);
}

.btn-outline-white {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--foreground);
    padding: 0.5rem 1rem;
}

.btn-ghost:hover { background: var(--muted); }

.btn-destructive {
    background: rgba(229, 73, 78, 0.1);
    color: var(--destructive);
    border: 1px solid rgba(229, 73, 78, 0.3);
}

.btn-destructive:hover { background: rgba(229, 73, 78, 0.2); }

.btn-success {
    background: var(--success);
    color: var(--success-foreground);
}

.btn-success:hover { opacity: 0.9; }

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-block { width: 100%; }

/* ── Forms ────────────────────────────── */

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--input-background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--foreground);
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    outline: none;
    transition: all 0.2s;
}

.form-control::placeholder {
    color: var(--muted-foreground);
}

.form-control:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--ring);
}

.form-control.is-invalid,
.form-control.invalid {
    border-color: var(--destructive);
    box-shadow: 0 0 0 2px rgba(229, 73, 78, 0.2);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.375rem;
}

.form-control-mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

select.form-control {
    appearance: auto;
}

textarea.form-control {
    resize: none;
}

/* Card que tambien es <button> — necesario para iOS Safari (PWA standalone).
   @onclick en <div> no dispara confiablemente en iOS; un <button type="button"> si.
   Los !important son para vencer el min-width intrinseco que Android Chrome
   da al <button> via user-agent stylesheet. */
.card-button {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.06);
    -webkit-appearance: none;
    appearance: none;
}

.card-button:active {
    transform: scale(0.99);
}

/* Textarea de la encuesta — global con !important porque el scoped CSS
   no gana consistentemente contra el ancho default del <textarea> en iOS Safari. */
textarea.survey-textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.75rem 0.9rem !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 0.6rem !important;
    background: var(--card) !important;
    color: var(--foreground) !important;
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    resize: vertical !important;
    min-height: 100px !important;
    transition: border-color 0.15s !important;
}

textarea.survey-textarea:focus {
    outline: none !important;
    border-color: var(--primary) !important;
}

/* ── Badges ──────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
}

.badge-primary {
    background: rgba(5, 66, 98, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.badge-destructive {
    background: var(--destructive);
    color: white;
}

.badge-muted {
    background: var(--muted);
    color: var(--muted-foreground);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-live {
    background: var(--destructive);
    color: white;
}

.badge-live .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: pulse-live 2s infinite;
}

/* Session Status Badges */

.badge-en-curso {
    background: rgba(16, 185, 129, 0.15);
    color: hsl(160 50% 32%);
}

.badge-en-curso .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(160 50% 40%);
    animation: pulse-live 2s infinite;
}

.badge-retrasada {
    background: rgba(180, 130, 20, 0.10);
    color: hsl(42 65% 38%);
}

.badge-finalizada {
    background: hsl(200 15% 15%);
    color: hsl(0 0% 100%);
}

/* Inscrito Badge — verde sobrio que combina con los azules institucionales */
.badge-inscrito {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(5, 66, 98, 0.07);
    color: hsl(170 40% 30%);
    letter-spacing: 0.01em;
}

/* ── Alerts ──────────────────────────── */

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-danger {
    background: rgba(229, 73, 78, 0.1);
    border: 1px solid rgba(229, 73, 78, 0.3);
    color: var(--destructive);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.alert-info {
    background: var(--muted);
    border: 1px solid var(--border);
    color: var(--foreground);
}

/* ── Section Headers ─────────────────── */

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* ── Landing Header ──────────────────── */

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    padding-top: calc(env(safe-area-inset-top, 0px) + 0.6rem);
    background: linear-gradient(135deg, hsl(202 93% 16%), hsl(202 93% 20%));
    color: white;
    font-size: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-header-left {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.8rem;
    opacity: 0.9;
}

.landing-header-center {
    text-align: center;
    flex: 1;
}

.landing-header-title {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.landing-header-sub {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 1px;
}

.landing-header-right {
    width: 2.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.9;
    text-align: right;
}

/* ── Hero Card (Landing) ─────────────── */

.hero-section {
    background: linear-gradient(165deg, hsl(202 93% 18%) 0%, var(--primary) 35%, var(--secondary) 100%);
    color: white;
    padding: 1.75rem 1.5rem 2rem;
    text-align: center;
}

.hero-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.hero-section p,
.hero-section .hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-section *:focus {
    outline: none;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
}

.hero-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
    }
}

.hero-btn-white {
    background: white;
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn-white:hover { opacity: 0.9; }

/* ── Feature Cards ───────────────────── */

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.feature-card-icon {
    color: var(--secondary);
    margin-top: 0.25rem;
}

/* ── Stat Cards ──────────────────────── */

.stat-card {
    background: rgba(5, 66, 98, 0.05);
    border: 1px solid rgba(5, 66, 98, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-card .label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Session Cards ───────────────────── */

.session-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--card-shadow);
    transition: all 0.2s;
    cursor: pointer;
    display: block;
    color: inherit;
    text-decoration: none;
}

.session-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(5, 66, 98, 0.3);
}

.session-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    font-variant-numeric: tabular-nums;
}

.session-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0.5rem 0;
    line-height: 1.4;
}

.session-speaker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.session-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

/* ── Room indicator dots ─────────────── */

.dot-sala-a {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    display: inline-block;
}

.dot-sala-b {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--destructive);
    display: inline-block;
}

/* ── Day Tabs ────────────────────────── */

.day-tabs {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.day-tab {
    flex: 1;
    text-align: center;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(0,0,0,0.03);
    border: none;
    font-family: inherit;
}

.day-tab:hover {
    background: var(--muted);
    color: var(--foreground);
}

.day-tab.active {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}

/* ── Room Cards ──────────────────────── */

.room-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.room-count {
    font-size: 3rem;
    font-weight: 700;
    color: var(--foreground);
    font-variant-numeric: tabular-nums;
}

.room-bar-bg {
    height: 0.5rem;
    background: var(--muted);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.room-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease-out;
}

.room-bar-fill.sala-a { background: var(--secondary); }
.room-bar-fill.sala-b { background: var(--destructive); }
.room-bar-fill.high { background: var(--success); }
.room-bar-fill.medium { background: var(--warning); }
.room-bar-fill.low { background: var(--destructive); }

/* ── Rooms Page (redesigned) ────────── */

.rooms-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: hsl(160 50% 40%);
    display: inline-block;
    flex-shrink: 0;
    animation: roomsPulse 2s ease-in-out infinite;
}

.rooms-sala-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.rooms-sala-header {
    padding: 1rem 1rem 0;
}

.rooms-sala-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
}

.rooms-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rooms-counter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
}

.rooms-counter-icon {
    font-size: 1.5rem;
    color: var(--muted-foreground);
    opacity: 0.5;
}

.rooms-counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.rooms-counter-cap {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-left: 0.15rem;
}

.rooms-counter-label {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-top: 0.15rem;
}

.rooms-session-card {
    margin: 0 1rem;
    padding: 0.75rem 0.85rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s;
}

.rooms-session-card:hover {
    background: var(--muted);
}

.rooms-session-live {
    border-left: 3px solid var(--primary);
}

.rooms-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
}

.rooms-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s, opacity 0.15s;
}

.rooms-action-btn.primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.rooms-action-btn.primary:hover {
    opacity: 0.9;
}

.rooms-action-btn.outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}

.rooms-action-btn.outline:hover {
    background: var(--muted);
}

@keyframes roomsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ── Speaker Cards ───────────────────── */

.speaker-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    transition: all 0.2s;
}

.speaker-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.speaker-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-avatar.lg {
    width: 80px;
    height: 80px;
}

.speaker-avatar img { width: 100%; height: 100%; object-fit: cover; }

.speaker-avatar-initials {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.speaker-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(5, 66, 98, 0.08);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.speaker-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    background: rgba(5, 66, 98, 0.08);
    color: var(--primary);
}

.speaker-tag.muted {
    background: var(--muted);
    color: var(--muted-foreground);
}

/* ── Star Rating ─────────────────────── */

.star-rating {
    display: flex;
    gap: 0.25rem;
}

.star-rating .material-symbols-outlined {
    font-size: 2rem;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: all 0.15s;
}

.star-rating .material-symbols-outlined.filled {
    color: var(--warning);
}

/* ── Sponsor Cards ───────────────────── */

.sponsor-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
}

.sponsor-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.sponsor-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.sponsor-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted);
    color: var(--muted-foreground);
}

.sponsor-logo-placeholder .material-symbols-outlined { font-size: 1.5rem; }

.sponsor-nivel-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sponsor-nivel-tag.gold { background: rgba(245, 158, 11, 0.12); color: hsl(38 80% 40%); }
.sponsor-nivel-tag.silver { background: var(--muted); color: var(--muted-foreground); }
.sponsor-nivel-tag.bronze { background: rgba(180, 120, 60, 0.1); color: hsl(30 50% 40%); }
.sponsor-nivel-tag.tech { background: rgba(5, 66, 98, 0.08); color: var(--primary); }

/* ── Reader / Antenna Status ─────────── */

.reader-status-card {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.reader-status-card.online { border-left: 3px solid var(--success); }
.reader-status-card.offline { border-left: 3px solid var(--destructive); background: rgba(220, 38, 38, 0.03); }

.reader-status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reader-status-icon.online {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}

.reader-status-icon.offline {
    background: rgba(220, 38, 38, 0.1);
    color: var(--destructive);
}

.reader-status-icon .material-symbols-outlined { font-size: 1.25rem; }

.reader-status-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.reader-status-badge.online { background: rgba(34, 197, 94, 0.12); color: hsl(142 50% 35%); }
.reader-status-badge.offline { background: rgba(220, 38, 38, 0.1); color: var(--destructive); }

/* ── Reports Page ────────────────────── */

.report-session-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.report-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.report-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.report-stat .material-symbols-outlined { font-size: 0.85rem; }

.report-metrics-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.report-metric {
    flex: 1;
    text-align: center;
}

.report-metric-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    font-variant-numeric: tabular-nums;
}

.report-metric-label {
    display: block;
    font-size: 0.65rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.1rem;
}

.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-destructive { color: var(--destructive) !important; }

.report-ranking-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted-foreground);
    background: var(--muted);
}

.ranking-position.top {
    background: rgba(212, 160, 23, 0.1);
    color: #D4A017;
}

/* ── Send Notification History ────────── */

.notif-history-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.notif-history-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-history-icon .material-symbols-outlined { font-size: 1.2rem; }

.notif-history-icon.general { background: rgba(5, 66, 98, 0.08); color: var(--primary); }
.notif-history-icon.warning { background: rgba(245, 158, 11, 0.12); color: hsl(38 80% 45%); }
.notif-history-icon.info { background: rgba(59, 130, 246, 0.1); color: hsl(217 70% 50%); }

.notif-type-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.notif-type-tag.general { background: rgba(5, 66, 98, 0.08); color: var(--primary); }
.notif-type-tag.warning { background: rgba(245, 158, 11, 0.12); color: hsl(38 80% 40%); }
.notif-type-tag.info { background: rgba(59, 130, 246, 0.1); color: hsl(217 70% 45%); }

/* ── Notification Items ──────────────── */

.notification-item {
    padding: 1rem;
    transition: background 0.2s;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
}

.notification-item:hover {
    background: rgba(0,0,0,0.02);
}

.notification-item.unread {
    background: rgba(5, 66, 98, 0.05);
}

.notification-item + .notification-item {
    border-top: 1px solid var(--border);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon.attendance { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.notif-icon.reminder { background: rgba(5, 66, 98, 0.1); color: var(--primary); }
.notif-icon.vote { background: rgba(62, 131, 169, 0.1); color: var(--secondary); }
.notif-icon.announcement { background: rgba(245, 158, 11, 0.1); color: var(--warning); }

.notif-icon .material-symbols-outlined { font-size: 1.25rem; }

.notif-content { flex: 1; min-width: 0; }

.notif-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--foreground);
}

.notif-body {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.notif-time {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0;
}

.notif-mark-read {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-family: inherit;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.notif-mark-read:hover {
    background: rgba(5, 66, 98, 0.06);
    border-color: var(--primary);
}

.notif-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 0.375rem;
}

/* ── Admin Metric Cards ──────────────── */

.metric-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--card-shadow);
}

.metric-card .icon-box {
    display: inline-flex;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    color: white;
    margin-bottom: 0.75rem;
}

.metric-card .icon-box.primary { background: var(--primary); }
.metric-card .icon-box.destructive { background: var(--destructive); }
.metric-card .icon-box.secondary { background: var(--secondary); }
.metric-card .icon-box.success { background: var(--success); }

.metric-card .value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.metric-card .label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Admin Buttons ───────────────────── */

.admin-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    text-decoration: none;
}

.admin-btn.default {
    background: rgba(0,0,0,0.03);
    color: var(--foreground);
}

.admin-btn.default:hover { background: var(--muted); }

.admin-btn.primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.admin-btn.primary:hover { opacity: 0.9; }

/* ── Back Button ─────────────────────── */

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.back-btn:hover { color: var(--foreground); }

/* ── Session Admin Action Buttons ────── */

.session-admin-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.action-btn .material-symbols-outlined { font-size: 0.9rem; }

.action-btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}
.action-btn-primary:hover { opacity: 0.9; }
.action-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.action-btn-muted {
    background: transparent;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
}
.action-btn-muted:hover { background: var(--muted); color: var(--foreground); }
.action-btn-muted:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Profile Header ──────────────────── */

.profile-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.profile-avatar .material-symbols-outlined {
    font-size: 2rem;
    color: white;
}

/* ── Info Card ────────────────────────── */

.info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--card-shadow);
}

.info-card .icon-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.info-card .icon-label span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.info-card .value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}

/* ── Enrollment Status ───────────────── */

.enrollment-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* ── Empty State ─────────────────────── */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    min-height: 200px;
}

.empty-state .material-symbols-outlined {
    font-size: 3rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

/* ── SponsorCarousel ─────────────────── */

.sponsor-carousel-wrapper {
    overflow: hidden;
    margin-top: 1rem;
}

.sponsor-carousel-track {
    display: flex;
    animation: sponsorScroll 40s linear infinite;
}

.sponsor-carousel-item {
    flex-shrink: 0;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-carousel-item img {
    max-height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sponsor-carousel-item img:hover { opacity: 1; }

@keyframes sponsorScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ── Loading & Error ─────────────────── */

.loading-progress {
    display: block;
}

.loading-progress circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3px;
    stroke-dasharray: 67%;
    stroke-linecap: round;
    transform-origin: 50% 50%;
    animation: loading-spin 1s linear infinite;
}

.loading-progress circle:last-child {
    stroke: var(--secondary);
    stroke-dasharray: 20%;
    animation: loading-spin 0.8s linear infinite reverse;
}

@keyframes loading-spin {
    to { transform: rotate(360deg); }
}

.error-boundary, .blazor-error-boundary {
    padding: 1.5rem;
    background: rgba(229, 73, 78, 0.1);
    color: var(--destructive);
    border-radius: var(--radius-md);
    margin: 1rem;
}

#blazor-error-ui {
    background: var(--destructive);
    color: white;
    padding: 0.6rem 1.25rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    display: none;
}

#blazor-error-ui .reload { color: white; text-decoration: underline; margin-left: 0.5rem; }
#blazor-error-ui .dismiss { cursor: pointer; margin-left: 0.5rem; }

/* ── Utility Classes ─────────────────── */

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-destructive { color: var(--destructive) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--muted-foreground) !important; }
.text-foreground { color: var(--foreground) !important; }
.text-white { color: white !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }

/* Spacing */
.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pb-24 { padding-bottom: 6rem; }

/* Flex */
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (min-width: 640px) {
    .sm-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Layout helpers */
.w-full { width: 100%; }
.min-h-full { min-height: 100%; }
.rounded-full { border-radius: var(--radius-full); }
.rounded-md { border-radius: var(--radius-md); }
.overflow-hidden { overflow: hidden; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.relative { position: relative; }

/* Borders */
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.divide-y > * + * { border-top: 1px solid var(--border); }

/* ── Landing-specific (no nav) ───────── */

.landing-layout {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.landing-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
}

.landing-footer a {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.landing-footer a:hover { color: var(--foreground); }

/* ── Register Page ───────────────────── */

.register-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--background), rgba(200, 210, 220, 0.3));
}

.register-card {
    width: 100%;
    max-width: 28rem;
}

.register-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.register-icon .material-symbols-outlined {
    font-size: 2rem;
    color: white;
}

/* ── 404 Page ────────────────────────── */

.not-found-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}

/* ── Responsive Sidebar (desktop) ────── */

@media (min-width: 1024px) {
    .app-shell {
        flex-direction: row;
    }

    .app-sidebar {
        display: flex;
        flex-direction: column;
        width: 260px;
        position: sticky;
        top: 0;
        height: 100dvh;
        background: var(--sidebar-background);
        padding: 1.5rem 1rem;
        z-index: 20;
        overflow-y: auto;
        flex-shrink: 0;
    }

    .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0 0.75rem 1.5rem;
        border-bottom: 1px solid var(--sidebar-border);
        margin-bottom: 1rem;
    }

    .sidebar-brand-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255,255,255,0.15);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-brand-icon .material-symbols-outlined {
        font-size: 1.1rem;
        color: white;
    }

    .sidebar-brand h1 {
        font-size: 0.9rem;
        font-weight: 700;
        margin: 0;
        color: white;
    }

    .sidebar-brand p {
        font-size: 0.7rem;
        color: rgba(255,255,255,0.7);
        margin: 0;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        flex: 1;
    }

    .sidebar-nav a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.65rem 0.85rem;
        color: rgba(255,255,255,0.7);
        font-size: 0.85rem;
        font-weight: 500;
        border-radius: var(--radius-md);
        transition: all 0.2s;
        text-decoration: none;
    }

    .sidebar-nav a:hover {
        background: var(--sidebar-accent);
        color: white;
    }

    .sidebar-nav a.active {
        background: var(--sidebar-accent);
        color: white;
    }

    .sidebar-nav a .material-symbols-outlined {
        font-size: 1.2rem;
    }

    .sidebar-footer {
        padding-top: 0.75rem;
        border-top: 1px solid var(--sidebar-border);
        margin-top: 0.5rem;
    }

    .sidebar-footer a {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.6rem 0.85rem;
        color: rgba(255,255,255,0.7);
        font-size: 0.85rem;
        font-weight: 500;
        border-radius: var(--radius-md);
        transition: all 0.2s;
        text-decoration: none;
    }

    .sidebar-footer a:hover {
        background: var(--sidebar-accent);
        color: white;
    }

    .app-main-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .bottom-nav {
        display: none;
    }

    .app-content {
        padding-bottom: 2rem;
    }
}

@media (max-width: 1023px) {
    .app-sidebar {
        display: none;
    }
}

/* ── Helper classes for Blazor pages ──── */

.page-container {
    min-height: 100%;
    background: var(--background);
    padding-bottom: 6rem;
}

.content-wrapper {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1rem;
}

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Vote Rating Label */
.vote-rating-label {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    background: rgba(212, 160, 23, 0.1);
    color: #D4A017;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Safe area for iOS */
.safe-area-bottom {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* ── SW Update Banner ─────────────── */

#sw-update-banner {
    position: fixed;
    bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
    left: 0.75rem;
    right: 0.75rem;
    z-index: 9999;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
    pointer-events: none;
}

#sw-update-banner.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.sw-update-inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    background: var(--primary, #054262);
    color: white;
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.18), 0 2px 6px rgb(0 0 0 / 0.08);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.82rem;
}

.sw-update-icon {
    font-size: 1.2rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.sw-update-text {
    flex: 1;
    font-weight: 500;
    line-height: 1.3;
}

.sw-update-btn {
    flex-shrink: 0;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md, 0.5rem);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.sw-update-btn:active {
    background: rgba(255, 255, 255, 0.35);
}

.sw-update-dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.15rem;
    line-height: 1;
    font-family: inherit;
}

.sw-update-dismiss:active {
    color: white;
}

/* ── Athenea Sponsor Card ─────────── */

.athenea-card {
    position: relative;
    background: var(--card);
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow:
        0 0 20px rgba(5, 66, 98, 0.15),
        0 0 40px rgba(5, 66, 98, 0.07),
        0 2px 8px rgb(0 0 0 / 0.06);
    overflow: hidden;
}

.athenea-accent {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, hsl(202 90% 35%), hsl(202 50% 55%), hsl(202 90% 35%));
}

/* Subtle top-edge glow line */
.athenea-glow {
    position: absolute;
    top: 0;
    left: 5px;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, hsl(202 90% 45%), hsl(202 50% 60%), transparent);
    opacity: 0.6;
}

.athenea-content {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
}

/* Centered header block */
.athenea-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.athenea-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.athenea-products {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.athenea-product-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--foreground);
}

.athenea-product-item .material-symbols-outlined {
    width: 1.5rem;
    font-size: 1.15rem;
    color: var(--muted-foreground);
    flex-shrink: 0;
    text-align: center;
}

/* Featured first product (LIS) */
.athenea-product-featured {
    font-size: 0.88rem;
}

.athenea-product-featured .athenea-product-name {
    font-weight: 750;
}

.athenea-product-featured .material-symbols-outlined {
    font-size: 1.25rem;
}

.athenea-product-name {
    font-weight: 650;
}

.athenea-product-desc {
    color: var(--muted-foreground);
}

.athenea-product-name + .athenea-product-desc::before {
    content: ' \2014 ';
    color: var(--muted-foreground);
}

.athenea-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: var(--primary);
    border-radius: var(--radius-md, 0.5rem);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.01em;
}

.athenea-cta .material-symbols-outlined {
    font-size: 1.05rem;
    flex-shrink: 0;
}

