/* ============================================================================
   Restaurateur Pro - Mobile App Styles
   ============================================================================ */

:root {
    --primary: #14B8A6;
    --primary-dark: #0D9488;
    --primary-light: #5EEAD4;
    --primary-bg: #F0FDFA;
    --secondary: #F1F5F9;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --bg: #F8FAFC;
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html, body {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
}

/* ════════ Loading Screen ════════ */
#loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 9999;
}
.loading-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.6s ease-out;
}
.loading-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.loading-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.25);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ════════ App Container ════════ */
.app-container {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

/* ════════ Buttons ════════ */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.25);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1.5px solid var(--border);
    transition: all 0.15s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-secondary:hover { background: var(--secondary); border-color: #CBD5E1; }
.btn-secondary:active { transform: scale(0.97); }

.btn-success {
    background: #10B981;
    color: white;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16,185,129,0.25);
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.btn-success:hover { background: #059669; }
.btn-success:active { transform: scale(0.95); }

.btn-danger {
    background: white;
    color: #DC2626;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1.5px solid #FECACA;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.btn-danger:hover { background: #FEF2F2; border-color: #FCA5A5; }
.btn-danger:active { transform: scale(0.95); }

.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s;
}
.btn-icon:hover { background: var(--secondary); }
.btn-icon:active { transform: scale(0.92); }

/* ════════ Cards ════════ */
.card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.06);
    border: 1px solid rgba(226,232,240,0.5);
}

.card-elevated {
    background: white;
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 4px 24px rgba(15,23,42,0.06);
}

/* ════════ Inputs ════════ */
.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.15s;
    color: var(--text-primary);
    font-family: inherit;
    -webkit-appearance: none;
}
.input-field:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(20,184,166,0.12);
}
.input-field::placeholder {
    color: var(--text-muted);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

/* ════════ 6-digit code inputs ════════ */
.code-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.25rem 0;
}
.code-digit {
    width: 2.85rem;
    height: 3.5rem;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    background: white;
    transition: all 0.15s ease;
    caret-color: var(--primary);
    color: var(--text-primary);
    -webkit-appearance: none;
}
.code-digit:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(20,184,166,0.18);
    transform: scale(1.06);
}
.code-digit:not(:placeholder-shown) {
    background: var(--primary-bg);
    border-color: var(--primary);
}

/* ════════ Status Badges ════════ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.status-badge.pending { background: #FEF3C7; color: #92400E; }
.status-badge.confirmed { background: #D1FAE5; color: #065F46; }
.status-badge.cancelled { background: #FEE2E2; color: #991B1B; }
.status-badge.no_show { background: #E0E7FF; color: #3730A3; }
.status-badge.completed { background: #DBEAFE; color: #1E40AF; }

/* ════════ Top Header ════════ */
.app-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding-top: max(0.75rem, var(--safe-top));
    padding-bottom: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    z-index: 10;
}
.app-header-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.app-header-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ════════ Main Content ════════ */
.app-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    padding-bottom: calc(80px + var(--safe-bottom));
    -webkit-overflow-scrolling: touch;
}

/* ════════ Bottom Nav ════════ */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(226,232,240,0.6);
    padding-bottom: var(--safe-bottom);
    z-index: 50;
}
.bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 64px;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: none;
    border: none;
    padding: 0;
}
.nav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    transition: transform 0.2s;
}
.nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.nav-item.active {
    color: var(--primary);
}
.nav-item.active svg {
    transform: scale(1.1);
}
.nav-item.active::before {
    content: '';
    position: absolute;
    top: 4px;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 999px;
}
.nav-item .nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 22px);
    background: #EF4444;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ════════ Stat Card ════════ */
.stat-card {
    background: white;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(226,232,240,0.6);
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.15s;
}
.stat-card:active { transform: scale(0.98); }
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon.teal { background: rgba(20,184,166,0.12); color: var(--primary); }
.stat-icon.amber { background: rgba(245,158,11,0.12); color: #D97706; }
.stat-icon.green { background: rgba(16,185,129,0.12); color: #059669; }
.stat-icon.blue { background: rgba(59,130,246,0.12); color: #2563EB; }
.stat-icon.red { background: rgba(239,68,68,0.12); color: #DC2626; }
.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
    font-weight: 600;
}

/* ════════ Booking Card ════════ */
.booking-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(226,232,240,0.6);
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s;
}
.booking-card.pending {
    border-left: 4px solid #F59E0B;
}
.booking-card.confirmed {
    border-left: 4px solid #10B981;
}
.booking-card.cancelled {
    border-left: 4px solid #EF4444;
    opacity: 0.65;
}
.booking-card.no_show {
    border-left: 4px solid #6366F1;
    opacity: 0.75;
}

.booking-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.booking-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.booking-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.2;
}
.booking-contact {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.booking-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.booking-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: var(--secondary);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
}
.booking-meta-pill svg { width: 14px; height: 14px; color: var(--text-muted); }
.booking-meta-pill.discount {
    background: rgba(16,185,129,0.12);
    color: #059669;
}
.booking-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.booking-actions > button { flex: 1; }
.booking-notes {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: #FFFBEB;
    border-left: 3px solid #F59E0B;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    margin-top: 0.25rem;
}

/* ════════ Section Title ════════ */
.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

/* ════════ Tab Pills ════════ */
.tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.25rem 0;
    margin-bottom: 1rem;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-pill {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.tab-pill .tab-count {
    background: var(--secondary);
    color: var(--text-secondary);
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}
.tab-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.tab-pill.active .tab-count {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* ════════ Modal / Sheet ════════ */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.sheet-overlay.visible { opacity: 1; }
.sheet {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 24px 24px 0 0;
    padding: 1.25rem;
    padding-bottom: calc(1.25rem + var(--safe-bottom));
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
}
.sheet-overlay.visible .sheet { transform: translateY(0); }
.sheet-handle {
    width: 40px;
    height: 4px;
    background: #CBD5E1;
    border-radius: 999px;
    margin: 0 auto 1rem;
}
.sheet-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* ════════ Toast Notifications ════════ */
.notification {
    position: fixed;
    top: max(20px, calc(var(--safe-top) + 12px));
    left: 16px;
    right: 16px;
    padding: 0.95rem 1.15rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 1100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 32px -8px rgba(15,23,42,0.18);
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
}
.notification svg { width: 20px; height: 20px; flex-shrink: 0; }
.notification.success {
    background: linear-gradient(135deg, rgba(16,185,129,0.96) 0%, rgba(5,150,105,0.96) 100%);
    color: white;
}
.notification.error {
    background: linear-gradient(135deg, rgba(239,68,68,0.96) 0%, rgba(220,38,38,0.96) 100%);
    color: white;
}
.notification.info {
    background: linear-gradient(135deg, rgba(20,184,166,0.96) 0%, rgba(13,148,136,0.96) 100%);
    color: white;
}
.notification-content {
    flex: 1;
    line-height: 1.4;
}

@keyframes toastSlideIn {
    0% { transform: translateY(-120%) scale(0.92); opacity: 0; }
    60% { transform: translateY(8px) scale(1.02); opacity: 0.9; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes toastSlideOut {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-120%) scale(0.92); opacity: 0; }
}
.notification.slide-out { animation: toastSlideOut 0.3s ease-in forwards; }

/* ════════ Spinner ════════ */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.spinner-sm {
    width: 18px;
    height: 18px;
    border-width: 2px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ════════ Empty State ════════ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}
.empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.empty-icon svg { width: 32px; height: 32px; }
.empty-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.empty-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 240px;
    line-height: 1.4;
}

/* ════════ Toggle Switch ════════ */
.toggle-switch {
    width: 48px;
    height: 28px;
    background: var(--border);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.toggle-switch.active {
    background: var(--primary);
}
.toggle-switch.active::after {
    transform: translateX(20px);
}

/* ════════ Calendar / Day Config Card ════════ */
.day-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(226,232,240,0.6);
    margin-bottom: 0.65rem;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.day-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.day-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: capitalize;
}
.day-name.closed { color: var(--text-muted); text-decoration: line-through; }

.day-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}
.day-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.day-field label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.day-field input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--text-primary);
    -webkit-appearance: none;
}
.day-field input:focus {
    border-color: var(--primary);
    background: white;
    outline: none;
}

/* ════════ Animations ════════ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.animate-fade-in { animation: fadeIn 0.35s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 0.45s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.3s ease-out forwards; }

.stagger-item { opacity: 0; animation: fadeInUp 0.4s ease-out forwards; }
.stagger-item:nth-child(1) { animation-delay: 0.04s; }
.stagger-item:nth-child(2) { animation-delay: 0.08s; }
.stagger-item:nth-child(3) { animation-delay: 0.12s; }
.stagger-item:nth-child(4) { animation-delay: 0.16s; }
.stagger-item:nth-child(5) { animation-delay: 0.20s; }
.stagger-item:nth-child(6) { animation-delay: 0.24s; }
.stagger-item:nth-child(7) { animation-delay: 0.28s; }
.stagger-item:nth-child(8) { animation-delay: 0.32s; }
.stagger-item:nth-child(9) { animation-delay: 0.36s; }
.stagger-item:nth-child(10) { animation-delay: 0.40s; }

/* ════════ Login ════════ */
.login-screen {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, var(--primary-bg) 0%, white 60%);
    padding: 1.5rem;
    padding-top: max(2rem, calc(var(--safe-top) + 1.5rem));
    padding-bottom: max(2rem, calc(var(--safe-bottom) + 1.5rem));
}
.login-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1.25rem;
    animation: fadeInUp 0.6s ease-out;
}
.login-logo {
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(20,184,166,0.35);
}
.login-logo svg { width: 50px; height: 50px; color: white; }
.login-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
.login-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 340px;
    margin: 0 auto;
}
.login-form {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 12px 40px rgba(15,23,42,0.08);
    animation: fadeInUp 0.5s ease-out 0.15s both;
}

/* ════════ Profile / Settings ════════ */
.profile-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 16px 40px rgba(20,184,166,0.25);
    margin-bottom: 1rem;
}
.profile-name { font-size: 1.25rem; font-weight: 800; }
.profile-slug { font-size: 0.8rem; opacity: 0.85; font-family: ui-monospace, monospace; margin-top: 4px; }

.list-item {
    background: white;
    padding: 0.95rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.list-item:first-child { border-top-left-radius: 14px; border-top-right-radius: 14px; }
.list-item:last-child { border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; border-bottom: none; }
.list-item:active { background: var(--secondary); }
.list-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.list-item-icon svg { width: 18px; height: 18px; }
.list-item-content { flex: 1; min-width: 0; }
.list-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}
.list-item-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.list-item-chevron { color: var(--text-muted); flex-shrink: 0; }

/* ════════ Date chips ════════ */
.date-chips {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    scrollbar-width: none;
}
.date-chips::-webkit-scrollbar { display: none; }
.date-chip {
    flex-shrink: 0;
    width: 56px;
    padding: 0.55rem 0.25rem;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}
.date-chip-day {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}
.date-chip-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 2px;
    line-height: 1;
}
.date-chip.selected {
    background: var(--primary);
    border-color: var(--primary);
}
.date-chip.selected .date-chip-day,
.date-chip.selected .date-chip-num { color: white; }

/* ════════ Pull-to-refresh placeholder ════════ */
.refresh-indicator {
    text-align: center;
    padding: 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ════════ Quick Action button ════════ */
.fab {
    position: fixed;
    bottom: calc(80px + var(--safe-bottom) + 12px);
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    box-shadow: 0 12px 32px rgba(20,184,166,0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    transition: transform 0.15s;
}
.fab:active { transform: scale(0.92); }
.fab svg { width: 26px; height: 26px; }

/* ════════ Hide scrollbar generally ════════ */
.app-main::-webkit-scrollbar { width: 0; }

/* ════════ Misc ════════ */
.divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0;
}
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
