/* ============================================================
   PULLBEARD — Premium Luxury Design System
   Black & White Monochrome Aesthetic
   ============================================================ */

/* ---- Google Fonts & Variables ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Bebas+Neue&display=swap');

:root {
    /* Core Palette */
    --black:        #0C0C0E;
    --ink:          #1A1A1E;
    --charcoal:     #2C2C30;
    --smoke:        #4A4A50;
    --silver:       #9A9AA5;
    --mist:         #D4D4D8;
    --off-white:    #F3F3F5;
    --white:        #FFFFFF;

    /* Semantic Tokens */
    --primary:          var(--black);
    --surface:          var(--white);
    --surface-raised:   var(--off-white);
    --border:           rgba(0,0,0,0.08);
    --border-strong:    rgba(0,0,0,0.18);
    --text-primary:     var(--ink);
    --text-secondary:   var(--smoke);
    --text-muted:       var(--silver);
    --bg-body:          #EEEEF0;
    --accent-star:      #C9A84C; /* Warm gold only for stars/rating */

    /* Radii */
    --r-sm:  8px;
    --r-md:  14px;
    --r-lg:  20px;
    --r-xl:  28px;
    --r-pill:999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
    --shadow-lg: 0 20px 48px rgba(0,0,0,0.14);
    --shadow-up: 0 -4px 24px rgba(0,0,0,0.08);

    /* Typography */
    --font: 'Outfit', sans-serif;
    --font-display: 'Bebas Neue', cursive;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-body);
    font-family: var(--font);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--surface);
    min-height: 100vh;
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#app-views {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 130px;
    scrollbar-width: none;
}
#app-views::-webkit-scrollbar { display: none; }

/* ============================================================
   VIEW TRANSITIONS
   ============================================================ */
.view {
    display: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    min-height: 100%;
    background-color: var(--surface);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
    z-index: 1;
}
.view.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}
.view-content {
    padding: 24px;
    padding-bottom: 120px;
}

/* ============================================================
   HOME HEADER
   ============================================================ */
.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 24px 0;
    margin-bottom: 24px;
}
.greeting {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.user-name {
    font-size: 26px;
    font-weight: 800;
    margin-top: 2px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.profile-icon img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-strong);
    transition: transform 0.2s var(--ease-spring);
}
.profile-icon img:hover { transform: scale(1.06); }

/* ============================================================
   SEARCH
   ============================================================ */
.search-container {
    display: flex;
    gap: 10px;
    margin: 0 24px 28px;
}
.search-bar {
    flex: 1;
    background: var(--off-white);
    border-radius: var(--r-md);
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}
.search-bar:focus-within {
    border-color: var(--border-strong);
    background: var(--white);
}
.search-bar i {
    color: var(--text-muted);
    font-size: 18px;
    flex-shrink: 0;
}
.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-primary);
}
.search-bar input::placeholder { color: var(--text-muted); }
.filter-btn {
    background: var(--ink);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s var(--ease-spring), background 0.2s;
    flex-shrink: 0;
}
.filter-btn:hover { transform: scale(1.06); background: var(--black); }

/* ============================================================
   PROMO BANNER — Premium Dark
   ============================================================ */
.promo-container { padding: 0 24px; margin-bottom: 36px; }

.promo-banner {
    background: var(--ink);
    border-radius: var(--r-xl);
    padding: 28px 24px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
/* Decorative grain texture overlay */
.promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}
/* Decorative geometric accent */
.promo-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 180px;
    height: 180px;
    border: 40px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}
.promo-content { position: relative; z-index: 2; }

.promo-eyebrow {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}
.promo-content h3 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--white);
}
.promo-content p {
    font-size: 13px;
    color: rgba(255,255,255,0.60);
    margin-bottom: 22px;
    line-height: 1.6;
}
.btn-book-now {
    background: var(--white);
    color: var(--ink);
    border: none;
    padding: 11px 22px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font);
    letter-spacing: 0.02em;
    transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
    display: inline-block;
}
.btn-book-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    margin-bottom: 16px;
}

/* Legacy support */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    margin-bottom: 16px;
}
.section-title h3, .section-header h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}
.see-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.see-all:hover { color: var(--text-primary); }
.mt-m { margin-top: 28px; }

/* ============================================================
   HORIZONTAL SCROLL CARDS
   ============================================================ */
.horizontal-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 24px 12px;
    scrollbar-width: none;
}
.horizontal-scroll::-webkit-scrollbar { display: none; }

.barbershop-card {
    min-width: 210px;
    width: 210px;
    background: var(--surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease);
}
.barbershop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.card-img {
    height: 128px;
    width: 100%;
    object-fit: cover;
    display: block;
}
.card-info { padding: 14px; }
.card-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}
.card-address {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}
.card-meta .bx-star { color: var(--accent-star); font-size: 13px; }

/* ============================================================
   VERTICAL LIST — Recommended
   ============================================================ */
.vertical-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 24px;
}
.list-item {
    display: flex;
    gap: 14px;
    background: var(--surface);
    padding: 14px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    cursor: pointer;
    align-items: center;
    transition: transform 0.22s var(--ease-spring), box-shadow 0.22s, border-color 0.22s;
}
.list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--border-strong);
}
.list-img {
    width: 76px;
    height: 76px;
    border-radius: var(--r-md);
    object-fit: cover;
    flex-shrink: 0;
}
.list-info { flex: 1; min-width: 0; }
.list-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 3px;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.list-address {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.list-meta {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}
.list-meta .bx-star { color: var(--accent-star); font-size: 13px; }

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
.bottom-nav {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 62px;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding: 0 8px;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    gap: 3px;
    transition: color 0.2s, transform 0.2s var(--ease-spring);
    padding: 8px 16px;
    border-radius: var(--r-md);
}
.nav-item i { font-size: 22px; }
.nav-item span { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-item.active { color: var(--ink); }
.nav-item.active i {
    /* Subtle underline dot indicator */
    position: relative;
}
.nav-item:active { transform: scale(0.93); }

/* ============================================================
   SKELETON LOADERS
   ============================================================ */
.skeleton-card, .skeleton-list {
    background: linear-gradient(90deg, var(--off-white) 25%, var(--mist) 50%, var(--off-white) 75%);
    background-size: 200% 100%;
    border-radius: var(--r-lg);
    animation: shimmer 1.4s infinite;
}
.skeleton-card { min-width: 210px; height: 200px; }
.skeleton-list { width: 100%; height: 104px; }
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   DETAIL VIEW
   ============================================================ */
.detail-header {
    position: relative;
    height: 260px;
}
.detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Gradient overlay on image for readability */
.detail-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(10,10,14,0.5), transparent);
    pointer-events: none;
}
.btn-back {
    position: absolute;
    top: 20px; left: 20px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: transform 0.2s var(--ease-spring), background 0.2s;
}
.btn-back:hover { transform: scale(1.1); background: var(--white); }
.detail-body {
    padding: 24px;
    background: var(--surface);
    border-radius: 28px 28px 0 0;
    margin-top: -28px;
    position: relative;
    z-index: 2;
}
.detail-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.detail-address {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.tab {
    padding: 13px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    letter-spacing: -0.1px;
    transition: color 0.2s;
}
.tab.active { color: var(--text-primary); }
.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: var(--r-pill);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   SERVICES
   ============================================================ */
.service-item-wrapper {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.service-item-wrapper:last-child { border-bottom: none; }
.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
}
.service-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -0.2px;
}
.service-info p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}
.service-price {
    font-weight: 800;
    font-size: 15px;
    color: var(--text-primary);
    white-space: nowrap;
    margin-left: 12px;
}
.service-details-box {
    display: none;
    padding: 0 0 18px 0;
}
.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
    background: var(--off-white);
    border-radius: var(--r-md);
}
.details-grid div {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: start;
    gap: 6px;
    line-height: 1.5;
}
.details-grid div i { color: var(--ink); font-size: 13px; margin-top: 1px; flex-shrink: 0; }

/* Service Toggle Button */
.service-toggle-btn {
    background: var(--ink);
    color: var(--white);
    border: none;
    padding: 8px 18px;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    transition: transform 0.2s var(--ease-spring), background 0.2s;
    white-space: nowrap;
}
.service-toggle-btn:hover { transform: scale(1.04); background: var(--black); }
.service-toggle-btn.added {
    background: var(--surface);
    color: var(--ink);
    border: 1.5px solid var(--border-strong);
}

/* ============================================================
   KAPSTER / STAFF GRID
   ============================================================ */
.capster-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.capster-card {
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.capster-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.capster-card img {
    width: 62px; height: 62px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    border: 2px solid var(--off-white);
    transition: border-color 0.2s;
}
.capster-card .capster-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.2px;
}
.capster-card .capster-rating {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}
.capster-card .capster-rating i { color: var(--accent-star); font-size: 11px; }

.capster-card.selected {
    border-color: var(--ink);
    background: var(--ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.capster-card.selected img { border-color: rgba(255,255,255,0.2); }
.capster-card.selected .capster-name { color: var(--white); }
.capster-card.selected .capster-rating { color: rgba(255,255,255,0.55); }
.capster-card.selected .capster-rating i { color: rgba(255,255,255,0.7); }

/* ============================================================
   FIXED BOTTOM ACTION
   ============================================================ */
.bottom-action {
    position: fixed;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 14px 24px 24px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    z-index: 105;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.action-price p { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.action-price h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }

.btn-primary {
    background: var(--ink);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    letter-spacing: -0.1px;
    transition: transform 0.2s var(--ease-spring), background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--black);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.btn-primary:active { transform: scale(0.97); }

/* ============================================================
   BOOKING FLOW
   ============================================================ */
.booking-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}
.booking-header h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.booking-content {
    padding: 24px;
    padding-bottom: 120px;
}
.booking-content h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

/* Date Slider */
.date-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: 8px;
    margin-bottom: 28px;
    padding-bottom: 4px;
}
.date-slider::-webkit-scrollbar { display: none; }
.date-box {
    min-width: 58px;
    height: 76px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-spring);
}
.date-box:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.date-box .day { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.date-box .date { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.date-box.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.date-box.active .day { color: rgba(255,255,255,0.6); }

/* Time Grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 16px;
}
.time-slot {
    padding: 13px 0;
    text-align: center;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-primary);
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s var(--ease-spring);
}
.time-slot:hover {
    border-color: var(--border-strong);
    transform: scale(1.03);
}
.time-slot.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    transform: scale(1.03);
    box-shadow: var(--shadow-sm);
}
.disabled-slot {
    background: var(--off-white) !important;
    color: var(--mist) !important;
    border-color: var(--border) !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
    transform: none !important;
}

/* ============================================================
   CART FLOATING BAR
   ============================================================ */
#cart-floating {
    position: fixed;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-primary);
    padding: 14px 20px 28px;
    border-radius: 24px 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-up);
    border-top: 1px solid var(--border);
    z-index: 1000;
}
#cart-floating .btn-book-now {
    background: var(--ink);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font);
    transition: transform 0.2s var(--ease-spring), background 0.2s;
    white-space: nowrap;
}
#cart-floating .btn-book-now:hover { transform: scale(1.04); background: var(--black); }

/* ============================================================
   AUTHENTICATION
   ============================================================ */
.auth-view { background: var(--white); }
.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 28px;
    min-height: 100vh;
}
.auth-container h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 36px;
    line-height: 1.6;
}
.auth-divider {
    text-align: center;
    position: relative;
    margin: 24px 0;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    background: var(--white);
    padding: 0 14px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.auth-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
    color: var(--text-primary);
}
.auth-input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(26,26,30,0.08);
}
.w-100 { width: 100%; }
.auth-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-muted);
}
.auth-footer a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

/* ============================================================
   PROFILE, HISTORY, APPOINTMENT LISTS
   ============================================================ */
.history-item {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px;
    margin-bottom: 12px;
    background: var(--surface);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.history-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-xs); }

/* Status badges */
.badge-pending  { background: #F5F5F0; color: var(--smoke); }
.badge-confirmed { background: #F0F5F0; color: #2D6A4F; }
.badge-done     { background: #F8F8F8; color: var(--text-muted); }
.badge-cancelled { background: #FFF5F5; color: #C0392B; }
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
#splash-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.9s var(--ease), visibility 0.9s;
}
#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}
.splash-logo {
    font-family: var(--font-display);
    font-size: 54px;
    letter-spacing: 10px;
    color: var(--white);
    animation: splash-intro 1.1s var(--ease) forwards;
    opacity: 0;
    transform: scale(0.85) translateY(16px);
}
@keyframes splash-intro {
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 12px; }
.fw-700      { font-weight: 700; }
.mb-4        { margin-bottom: 4px; }
.mb-8        { margin-bottom: 8px; }