/* ─── QFlow Design System — Monochrome Theme ────────────────────────────── */

:root {
    /* ── Monochrome Palette ── */
    --background:         oklch(0.99 0 0);
    --foreground:         oklch(0 0 0);
    --card:               oklch(1 0 0);
    --card-foreground:    oklch(0 0 0);
    --primary:            oklch(0 0 0);
    --primary-foreground: oklch(1 0 0);
    --secondary:          oklch(0.94 0 0);
    --muted:              oklch(0.97 0 0);
    --muted-foreground:   oklch(0.44 0 0);
    --border:             oklch(0.92 0 0);
    --input:              oklch(0.94 0 0);
    --radius:             0.5rem;

    /* ── Semantic aliases (kept for badge/state components) ── */
    --success:  oklch(0.45 0.12 145);   /* dark green — readable on white */
    --warning:  oklch(0.55 0.13 72);    /* dark amber */
    --danger:   oklch(0.45 0.15 25);    /* dark red */
    --info:     oklch(0.45 0.1 230);    /* dark blue-gray */

    /* ── Typography ── */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* ── Legacy neutral vars (used in templates as inline styles) ── */
    --gray-50:  oklch(0.985 0 0);
    --gray-100: oklch(0.97 0 0);
    --gray-200: oklch(0.93 0 0);
    --gray-300: oklch(0.85 0 0);
    --gray-400: oklch(0.72 0 0);
    --gray-500: oklch(0.58 0 0);
    --gray-600: oklch(0.45 0 0);
    --gray-700: oklch(0.35 0 0);
    --gray-800: oklch(0.22 0 0);
    --gray-900: oklch(0.12 0 0);

    /* ── Shadows ── */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow:    0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* ── Radius aliases ── */
    --radius-sm: 0.375rem;
    --radius-lg: 0.75rem;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */

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

/* ─── Base ───────────────────────────────────────────────────────────────── */

body {
    font-family: var(--font-sans);
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

a {
    color: var(--foreground);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.15s ease;
}

a:hover {
    opacity: 0.7;
}

/* ─── Navbar ─────────────────────────────────────────────────────────────── */

.navbar-qflow {
    background: var(--primary) !important;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-qflow .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--primary-foreground) !important;
    text-decoration: none;
}

.navbar-qflow .navbar-brand span {
    color: var(--border);
    opacity: 0.7;
}

.navbar-qflow .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-qflow .navbar-toggler-icon {
    filter: invert(1);
}

.navbar-qflow .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 500;
    padding: 0.45rem 0.9rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.18s ease;
    text-decoration: none;
}

.navbar-qflow .nav-link:hover,
.navbar-qflow .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

/* Dropdown inside dark navbar */
.navbar-qflow .dropdown-menu {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    min-width: 180px;
}

.navbar-qflow .dropdown-item {
    color: var(--foreground);
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.navbar-qflow .dropdown-item:hover,
.navbar-qflow .dropdown-item:focus {
    background: var(--muted);
    color: var(--foreground);
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */

.card {
    background: var(--card);
    color: var(--card-foreground);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--muted);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* ─── Stat Cards ─────────────────────────────────────────────────────────── */

.stat-card {
    border-left: 4px solid var(--primary) !important;
    padding: 1.25rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

/* Semantic stat variants — use subtle border accent only */
.stat-card.success { border-left-color: var(--success) !important; }
.stat-card.success .stat-value { color: var(--success); }

.stat-card.warning { border-left-color: var(--warning) !important; }
.stat-card.warning .stat-value { color: var(--warning); }

.stat-card.danger  { border-left-color: var(--danger) !important; }
.stat-card.danger  .stat-value { color: var(--danger); }

.stat-card.info    { border-left-color: var(--info) !important; }
.stat-card.info    .stat-value { color: var(--info); }

/* ─── Token Display ──────────────────────────────────────────────────────── */

.token-display {
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.token-display .token-number {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
}

.token-display .token-status {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    opacity: 0.85;
}

.token-display .token-wait {
    font-size: 1.4rem;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    display: inline-block;
}

/* ─── Status Badges ──────────────────────────────────────────────────────── */

/* Override Bootstrap's colored badges with monochrome versions */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Keep a minimal set of semantic badges for queue states */
.badge-waiting {
    background: var(--info) !important;
    color: #fff;
}

.badge-called {
    background: var(--warning) !important;
    color: #fff;
    animation: pulse-badge 1.5s infinite;
}

.badge-in-progress,
.badge-in_progress {
    background: var(--foreground) !important;
    color: var(--primary-foreground);
}

.badge-completed {
    background: var(--success) !important;
    color: #fff;
}

.badge-skipped,
.badge-cancelled,
.badge-no-show,
.badge-no_show {
    background: var(--muted-foreground) !important;
    color: #fff;
}

.badge-held {
    background: var(--danger) !important;
    color: #fff;
}

/* ── Bootstrap badge overrides ── */
.badge.bg-primary   { background: var(--foreground) !important; color: var(--primary-foreground) !important; }
.badge.bg-secondary { background: var(--muted-foreground) !important; color: #fff !important; }
.badge.bg-success   { background: var(--success) !important; color: #fff !important; }
.badge.bg-warning   { background: var(--warning) !important; color: #fff !important; }
.badge.bg-danger    { background: var(--danger) !important; color: #fff !important; }
.badge.bg-info      { background: var(--info) !important; color: #fff !important; }
.badge.bg-light     { background: var(--muted) !important; color: var(--foreground) !important; border: 1px solid var(--border); }

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.65; }
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */

/* Primary button — black fill */
.btn-primary,
.btn-primary:visited {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--primary-foreground) !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    opacity: 0.84;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    outline: none;
}

.btn-primary:active {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary:disabled,
.btn-primary.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Secondary / outline variants */
.btn-secondary,
.btn-outline-secondary {
    background: transparent !important;
    border-color: var(--border) !important;
    color: var(--foreground) !important;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible {
    background: var(--secondary) !important;
    border-color: var(--muted-foreground) !important;
    outline: none;
}

.btn-outline-primary {
    background: transparent !important;
    border-color: var(--primary) !important;
    color: var(--foreground) !important;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    background: var(--primary) !important;
    color: var(--primary-foreground) !important;
    outline: none;
}

/* Danger outline */
.btn-outline-danger {
    background: transparent !important;
    border-color: var(--danger) !important;
    color: var(--danger) !important;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus-visible {
    background: var(--danger) !important;
    color: #fff !important;
    outline: none;
}

/* ─── Staff Action Buttons ───────────────────────────────────────────────── */

.btn-action {
    padding: 0.65rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 110px;
    justify-content: center;
    color: #fff;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    opacity: 0.88;
    color: #fff;
}

.btn-action:active {
    transform: translateY(0);
    opacity: 1;
}

.btn-action:focus-visible {
    outline: 2px solid var(--foreground);
    outline-offset: 2px;
}

/* Staff action semantic colors (desaturated for monochrome theme) */
.btn-call     { background: oklch(0.4 0.1 145);  } /* forest green  */
.btn-call:hover { background: oklch(0.32 0.1 145); color: #fff; }

.btn-start    { background: var(--foreground); }
.btn-start:hover { background: var(--gray-700); color: #fff; }

.btn-complete { background: oklch(0.4 0.1 145); }
.btn-complete:hover { background: oklch(0.32 0.1 145); color: #fff; }

.btn-hold     { background: oklch(0.52 0.1 72); }
.btn-hold:hover { background: oklch(0.42 0.1 72); color: #fff; }

.btn-skip     { background: var(--muted-foreground); }
.btn-skip:hover { background: var(--gray-600); color: #fff; }

.btn-recall   { background: oklch(0.4 0.1 230); }
.btn-recall:hover { background: oklch(0.32 0.1 230); color: #fff; }

/* ─── Forms ──────────────────────────────────────────────────────────────── */

.form-control,
.form-select {
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--foreground);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder {
    color: var(--muted-foreground);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--foreground);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.12);
    background: var(--card);
    color: var(--foreground);
    outline: none;
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
    background: var(--muted);
    opacity: 0.7;
    cursor: not-allowed;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 0.2rem rgba(180, 30, 30, 0.12);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.85rem;
}

label,
.form-label {
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.35rem;
}

/* ─── Queue List ─────────────────────────────────────────────────────────── */

.queue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s ease;
}

.queue-item:hover {
    background: var(--muted);
}

.queue-item:last-child {
    border-bottom: none;
}

.queue-item .token-num {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--foreground);
    min-width: 70px;
}

.queue-item .customer-info {
    flex: 1;
    margin-left: 1rem;
}

.queue-item .customer-info .name {
    font-weight: 600;
}

.queue-item .customer-info .meta {
    font-size: 0.82rem;
    color: var(--muted-foreground);
}

/* ─── Slot Selection ─────────────────────────────────────────────────────── */

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.slot-btn {
    padding: 0.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--foreground);
    transition: all 0.18s ease;
}

.slot-btn:hover {
    border-color: var(--foreground);
    background: var(--secondary);
}

.slot-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-foreground);
}

.slot-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ─── Feature Cards ──────────────────────────────────────────────────────── */

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    transition: transform 0.2s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.feature-card p {
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

/* ─── Landing Hero ───────────────────────────────────────────────────────── */

.hero {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle texture overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(255,255,255,0.015) 40px,
        rgba(255,255,255,0.015) 80px
    );
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    position: relative;
}

.hero h1 span {
    opacity: 0.7;
    font-style: italic;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 580px;
    margin: 0 auto 2rem;
    position: relative;
}

.hero .btn-hero {
    padding: 0.85rem 2.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    margin: 0 0.4rem;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.hero .btn-hero-primary {
    background: var(--primary-foreground);
    color: var(--primary);
    border: 2px solid var(--primary-foreground);
}

.hero .btn-hero-primary:hover {
    background: var(--secondary);
    color: var(--foreground);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero .btn-hero-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: var(--primary-foreground);
}

.hero .btn-hero-outline:hover {
    border-color: var(--primary-foreground);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* CTA button row — flex so mixed button types stay aligned */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* ─── Notification Badge ─────────────────────────────────────────────────── */

.notification-badge {
    position: relative;
}

.notification-badge .badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1.5px solid var(--primary);
}

/* ─── Alerts / Messages ──────────────────────────────────────────────────── */

.alert {
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.alert-success {
    background: oklch(0.96 0.04 145);
    border-color: oklch(0.85 0.08 145);
    color: oklch(0.28 0.1 145);
}

.alert-warning {
    background: oklch(0.97 0.04 80);
    border-color: oklch(0.87 0.08 80);
    color: oklch(0.35 0.1 72);
}

.alert-danger,
.alert-error {
    background: oklch(0.97 0.04 25);
    border-color: oklch(0.88 0.08 25);
    color: oklch(0.35 0.12 25);
}

.alert-info {
    background: oklch(0.96 0.03 230);
    border-color: oklch(0.87 0.06 230);
    color: oklch(0.32 0.1 230);
}

/* ─── Tables ─────────────────────────────────────────────────────────────── */

.table {
    color: var(--foreground);
    border-color: var(--border);
}

.table thead th {
    background: var(--muted);
    color: var(--muted-foreground);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-color: var(--border);
    padding: 0.6rem 0.75rem;
}

.table tbody tr:hover {
    background: var(--muted);
}

.table td {
    border-color: var(--border);
    vertical-align: middle;
}

/* ─── List Groups ────────────────────────────────────────────────────────── */

.list-group-item {
    background: var(--card);
    border-color: var(--border);
    color: var(--foreground);
    transition: background 0.12s ease;
}

.list-group-item-action:hover {
    background: var(--muted);
}

.border-start.border-primary {
    border-color: var(--foreground) !important;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.65);
    padding: 2rem 0;
    margin-top: auto;
    font-size: 0.88rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer a:hover {
    color: #fff;
}

/* ─── Utilities ──────────────────────────────────────────────────────────── */

.bg-light {
    background: var(--muted) !important;
}

.text-muted {
    color: var(--muted-foreground) !important;
}

.border {
    border-color: var(--border) !important;
}

.rounded {
    border-radius: var(--radius-sm) !important;
}

/* Focus ring for accessibility */
:focus-visible {
    outline: 2px solid var(--foreground);
    outline-offset: 2px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn-hero {
        display: block;
        margin: 0.5rem auto;
        max-width: 280px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    /* liquid-metal-btn mobile handled in liquid-metal.css */

    .token-display .token-number {
        font-size: 3rem;
    }

    .btn-action {
        min-width: 88px;
        padding: 0.55rem 0.9rem;
        font-size: 0.85rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .queue-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .queue-item .customer-info {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .slot-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

/* ─── Sublime-style Landing Page Redesign ────────────────────────────────── */

.sublime-landing {
    background-color: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Minimal Navbar for Landing */
.sublime-nav {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sublime-nav .logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--foreground);
}
.sublime-nav .logo span {
    color: var(--muted-foreground);
}
.sublime-nav .nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.sublime-nav .nav-links a {
    color: var(--foreground);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.sublime-nav .nav-links a:hover {
    opacity: 1;
}

/* Hero Section */
.sublime-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem 8rem 1rem;
    position: relative;
    min-height: calc(100vh - 100px);
}

.sublime-tagline-small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}

.sublime-title {
    font-size: clamp(4rem, 15vw, 14rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    margin: 0 0 2.5rem 0;
    animation: fade-in-up 0.8s ease-out 0.1s forwards;
    opacity: 0;
    color: var(--foreground);
}

.sublime-description {
    max-width: 600px;
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin: 0 auto 3rem auto;
    line-height: 1.6;
    animation: fade-in-up 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.sublime-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    animation: fade-in-up 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

/* Custom Buttons */
.btn-sublime {
    background-color: oklch(0.2 0 0); /* very dark grey/black */
    color: oklch(0.99 0 0);
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-sublime:hover {
    background-color: oklch(0.1 0 0);
    transform: translateY(-2px);
    color: oklch(0.99 0 0);
    opacity: 1;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-sublime-secondary {
    background-color: transparent;
    color: var(--foreground);
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s, background-color 0.2s;
    border: 1px solid var(--border);
}
.btn-sublime-secondary:hover {
    background-color: var(--muted);
    opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite, fade-in-up 0.8s ease-out 1s forwards;
    opacity: 0;
    color: var(--muted-foreground);
    text-decoration: none;
}
.scroll-indicator i {
    font-size: 1.5rem;
}
.scroll-indicator:hover {
    color: var(--foreground);
}

/* Animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

@media (max-width: 768px) {
    .sublime-nav .nav-links {
        display: none;
    }
    .sublime-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .btn-sublime, .btn-sublime-secondary {
        width: 100%;
        justify-content: center;
    }
    }
}

/* ─── PWA & Mobile Navigation ────────────────────────────────────────────── */

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 0.2rem;
    transition: color 0.2s ease;
    flex: 1;
}

.mobile-nav .nav-item i {
    font-size: 1.25rem;
}

.mobile-nav .nav-item:hover,
.mobile-nav .nav-item.active {
    color: var(--foreground);
}

.notification-badge-mobile {
    position: relative;
}

.notification-badge-mobile .badge-count {
    position: absolute;
    top: -2px;
    right: calc(50% - 12px);
    background: var(--danger);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid var(--card);
}

/* Splash Screen */
.pwa-splash {
    position: fixed;
    inset: 0;
    background: var(--background);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.pwa-splash.hidden {
    opacity: 0;
    visibility: hidden;
}

.pwa-splash-logo {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--foreground);
    animation: pulse-badge 1.5s infinite alternate;
}

.pwa-splash-logo span {
    color: var(--muted-foreground);
}

/* Adjust padding for mobile nav */
@media (max-width: 991px) {
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
}
