/* ═══════════════════════════════════════════
   BOOKING-STYLE.CSS – Barberia Mathi
   Shared styles for booking.html & admin.html
   Palette: #0f0f0f bg | #D4AF37 gold | #1a1a1a cards
═══════════════════════════════════════════ */

:root {
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-card2: #202020;
    --gold: #D4AF37;
    --gold-light: #f3d56a;
    --gold-dim: rgba(212, 175, 55, 0.12);
    --gold-border: rgba(212, 175, 55, 0.25);
    --text-light: #ffffff;
    --text-muted: #b3b3b3;
    --text-dim: #666;
    --border: #2a2a2a;
    --danger: #c0392b;
    --success: #27ae60;
    --font-main: 'Poppins', sans-serif;
    --font-display: 'Michroma', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
}

/* ── NAVBAR ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
}

nav.scrolled {
    padding: 20px 5%;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo a {
    font-family: var(--font-display);
    font-size: 1.20rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1001;
}

.logo a span {
    color: var(--gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.nav-active {
    color: var(--gold);
}

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

/* ── Mobile menu ── */
@media (max-width: 768px) {
    nav {
        padding: 25px 5%;
    }

    nav.scrolled {
        padding: 20px 5%;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 15, 15, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ── Scroll-top button ── */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.35s ease;
    z-index: 999;
    backdrop-filter: blur(8px);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.scroll-top svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s;
}

.scroll-top:hover svg {
    stroke: #000;
}


/* ── BOOKING HERO ── */
.booking-hero {
    min-height: 38vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 100px 20px 40px;
    background:
        radial-gradient(ellipse at top, rgba(212, 175, 55, 0.07) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(15, 15, 15, 0.8), #0f0f0f);
    text-align: center;
    position: relative;
}

.booking-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1599351431202-1e0f0137899a?auto=format&fit=crop&w=1920&q=60') center/cover no-repeat;
    opacity: 0.06;
    z-index: 0;
}

.booking-hero-content {
    position: relative;
    z-index: 1;
}

.section-label {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.booking-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.1;
    margin-bottom: 14px;
}

.booking-hero h1 span {
    color: var(--gold);
}

.hero-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── STEPPER ── */
.stepper-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 36px 20px 0;
    max-width: 540px;
    margin: 0 auto;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.4s;
}

.stepper-step.active {
    opacity: 1;
}

.stepper-step.done {
    opacity: 0.7;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.4s;
    background: var(--bg-card);
}

.stepper-step.active .step-circle {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
}

.stepper-step.done .step-circle {
    border-color: var(--gold);
    background: var(--gold);
    color: #000;
}

.stepper-step span {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stepper-step.active span {
    color: var(--gold);
}

.stepper-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin: 0 8px;
    margin-bottom: 22px;
    max-width: 60px;
}

/* ── MAIN ── */
.booking-main {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

/* ── STEP ── */
.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: fadeInUp 0.45s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 32px;
    text-align: center;
}

.step-title span {
    color: var(--gold);
}

.step-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

/* ── SERVICES GRID ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.svc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
    position: relative;
}

.svc-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}

.svc-card.selected {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.07);
}

.svc-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.1);
    border: 1px solid rgba(212, 160, 23, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.svc-card:hover .svc-icon {
    background: rgba(212, 160, 23, 0.18);
    border-color: rgba(212, 160, 23, 0.45);
}

.svc-icon svg {
    width: 25px !important;
    height: 25px !important;
    stroke: #d4a017;
    fill: #d4a017;
    stroke-width: 0;
    stroke-linecap: round;
    stroke-linejoin: round;
    max-width: 25px;
    max-height: 25px;
}

.svc-info {
    flex: 1;
    min-width: 0;
}

.svc-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.svc-time {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.svc-price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--gold);
    flex-shrink: 0;
}

.svc-price span {
    font-family: var(--font-main);
    font-size: 0.65rem;
    color: var(--text-dim);
    display: block;
}

.svc-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s;
}

.svc-card.selected .svc-check {
    opacity: 1;
    transform: scale(1);
}

.svc-check svg {
    width: 12px;
    height: 12px;
    stroke: #000;
    stroke-width: 2.5;
    fill: none;
}

/* ── CALENDAR ── */
.calendar-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 36px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

#cal-month-label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

.cal-nav {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, color 0.3s;
    flex-shrink: 0;
    line-height: 1;
    padding-bottom: 3px;
    /* Optic vertical centering for the unicode arrow */
}

.cal-nav:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.cal-day-name {
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 8px 0;
}

.cal-day-name.closed-day {
    color: rgba(255, 255, 255, 0.2);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    color: var(--text-light);
    background: transparent;
    position: relative;
}

.cal-day:hover:not(.disabled):not(.closed) {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.06);
}

.cal-day.selected {
    background: var(--gold);
    color: #000;
    font-weight: 700;
    border-color: var(--gold);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
}

.cal-day.today {
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--gold);
}

.cal-day.disabled,
.cal-day.past {
    opacity: 0.25;
    cursor: not-allowed;
}

.cal-day.closed {
    opacity: 0.15;
    cursor: not-allowed;
}

.cal-day.empty {
    cursor: default;
}

/* ── TIME SLOTS ── */
.slots-wrap {
    margin-bottom: 36px;
}

.slots-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.slot-btn {
    padding: 12px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-light);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s;
    letter-spacing: 0.5px;
}

.slot-btn:hover:not(.booked) {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold);
}

.slot-btn.selected {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

.slot-btn.booked {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
    font-size: 0.8rem;
}

/* ── BOOKING FORM ── */
.booking-summary {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-item label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.summary-item strong {
    font-size: 0.95rem;
    color: var(--gold);
    font-weight: 600;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 16px;
    color: var(--text-light);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--danger);
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
}

.form-group textarea {
    resize: vertical;
}

/* ── STEP NAV BUTTONS ── */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.btn-next,
.btn-confirm {
    padding: 15px 40px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.35s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-next::before,
.btn-confirm::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateX(-101%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 0;
}

.btn-next:hover:not(:disabled)::before,
.btn-confirm:hover::before {
    transform: translateX(0);
}

.btn-next:hover:not(:disabled),
.btn-confirm:hover {
    color: #000;
}

.btn-next span,
.btn-confirm span {
    position: relative;
    z-index: 1;
}

.btn-next {
    position: relative;
}

.btn-next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-back {
    padding: 14px 28px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back:hover {
    border-color: var(--text-muted);
    color: var(--text-light);
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    position: relative;
    z-index: 1;
}

/* ── SUCCESS ── */
.success-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    gap: 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
    animation: popIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon svg {
    width: 36px;
    height: 36px;
    stroke: #000;
    stroke-width: 3;
    fill: none;
}

.success-wrap h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.success-wrap h2 span {
    color: var(--gold);
}

.success-wrap p {
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.7;
}

.success-details {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    padding: 20px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.btn-home {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
    transition: all 0.35s;
}

.btn-home:hover {
    background: var(--gold);
    color: #000;
}

/* ── FOOTER ── */
.booking-footer {
    text-align: center;
    padding: 24px 20px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.booking-footer a {
    color: var(--gold);
    text-decoration: none;
}

/* ═══════════════════════════════════════════
   ADMIN PANEL STYLES
═══════════════════════════════════════════ */

.admin-body {
    background: #0a0a0a;
}

/* ── LOGIN ── */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(ellipse at top, rgba(212, 175, 55, 0.06) 0%, transparent 60%),
        #0a0a0a;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
    color: var(--text-light);
}

.login-logo span {
    color: var(--gold);
}

.login-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.login-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

.login-error {
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.4);
    border-radius: 6px;
    color: #e74c3c;
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* ── ADMIN LAYOUT ── */
.admin-panel {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #111;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 32px 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 50;
}

.admin-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 44px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.admin-logo span {
    color: var(--gold);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.admin-nav-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--gold-dim);
    color: var(--gold);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-dim);
    font-family: var(--font-main);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

.btn-logout svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.btn-logout:hover {
    border-color: var(--danger);
    color: #e74c3c;
}

/* ── NOTIFICATION TOGGLE BUTTON ── */
.btn-notif-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #d4a017;
    border-radius: 6px;
    background: transparent;
    color: #d4a017;
    font-family: var(--font-main);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
}

.btn-notif-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.btn-notif-toggle:hover {
    background: rgba(212, 160, 23, 0.1);
}

.btn-notif-toggle.notif-paused {
    border-color: var(--border);
    color: var(--text-dim);
}

.btn-notif-toggle.notif-paused:hover {
    border-color: #d4a017;
    color: #d4a017;
    background: rgba(212, 160, 23, 0.08);
}

/* Mobile notif tab paused state */
.mobile-tab.notif-paused {
    opacity: 0.4;
}

/* ── ADMIN MAIN ── */
.admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 36px 40px;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.admin-date-range {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-stats {
    display: flex;
    gap: 16px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 20px;
    text-align: center;
    min-width: 80px;
}

.stat-box span {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-box label {
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.btn-add-manual {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-manual svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.btn-add-manual:hover {
    background: var(--gold);
    color: #000;
}

/* ── WEEK NAV ── */
.week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

#week-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    min-width: 220px;
    text-align: center;
}

/* ── ADMIN CALENDAR ── */
.admin-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.admin-day-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;
}

.admin-day-header {
    padding: 14px 12px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-day-header .day-date {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-light);
    line-height: 1;
}

.admin-day-header.today-col .day-date {
    color: var(--gold);
}

.admin-day-header.today-col {
    border-top: 2px solid var(--gold);
}

.admin-day-header.closed-col {
    opacity: 0.4;
}

.admin-day-bookings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.booking-card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    padding: 10px 12px;
    animation: fadeInUp 0.3s ease;
}

.booking-card.manual-booking {
    border-left-color: #9b59b6;
}

.booking-card-time {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.booking-card.manual-booking .booking-card-time {
    color: #9b59b6;
}

.booking-card-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2px;
}

.booking-card-service {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.booking-card-phone {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.booking-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-edit-booking {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.7rem;
    cursor: pointer;
    padding: 2px 0;
    transition: color 0.2s;
    letter-spacing: 0.5px;
    font-family: var(--font-main);
}

.btn-edit-booking:hover {
    color: var(--gold);
}

.btn-delete-booking {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.7rem;
    cursor: pointer;
    padding: 2px 0;
    transition: color 0.2s;
    letter-spacing: 0.5px;
    font-family: var(--font-main);
}

.btn-delete-booking:hover {
    color: #e74c3c;
}

.btn-wa-booking {
    background: none;
    border: none;
    color: #25d366;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 2px 0;
    transition: color 0.2s;
    letter-spacing: 0.5px;
    font-family: var(--font-main);
}
.btn-wa-booking:hover { color: #1aad54; }

.btn-sms-booking {
    background: none;
    border: none;
    color: #3d9cf0;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 2px 0;
    transition: color 0.2s;
    letter-spacing: 0.5px;
    font-family: var(--font-main);
}
.btn-sms-booking:hover { color: #1a7acc; }

.day-empty {
    padding: 48px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    font-style: italic;
}

.booking-badge-manual {
    font-size: 0.6rem;
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    padding: 2px 6px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: 4px;
}

/* ── MODAL ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-small {
    max-width: 400px;
}

.modal-small p {
    padding: 0 28px;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

#manual-form, #edit-form {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-error {
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.4);
    border-radius: 6px;
    color: #e74c3c;
    padding: 10px 14px;
    font-size: 0.85rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    align-items: center;
    flex-wrap: wrap;
}

.modal-small .modal-footer {
    padding: 0 28px 28px;
}

.btn-delete-confirm {
    padding: 13px 28px;
    background: var(--danger);
    color: #fff;
    border: 1px solid var(--danger);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-delete-confirm:hover {
    background: #a93226;
    border-color: #a93226;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .admin-calendar {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-sidebar {
        width: 200px;
    }

    .admin-main {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .booking-hero h1 {
        font-size: 2rem;
    }

    .admin-panel {
        flex-direction: column;
    }

    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 16px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .admin-logo {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .admin-nav {
        flex-direction: row;
        flex: none;
    }

    .admin-nav-link span {
        display: none;
    }

    .btn-logout span {
        display: none;
    }

    .admin-main {
        margin-left: 0;
        padding: 20px;
    }

    .admin-calendar {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        display: none;
    }
}

@media (max-width: 480px) {
    .admin-calendar {
        grid-template-columns: 1fr;
    }

    .stepper-bar {
        gap: 4px;
    }

    .stepper-line {
        max-width: 24px;
    }

    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ═══════════════════════════════════════════
   BARBER SELECTION STEP
═══════════════════════════════════════════ */
.barber-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 560px;
    margin: 0 auto;
}

.barber-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.25s, box-shadow 0.3s;
    text-align: center;
}

.barber-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}

.barber-card.selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25), 0 12px 40px rgba(212, 175, 55, 0.2);
}

.barber-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.barber-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}

.barber-card:hover .barber-photo {
    transform: scale(1.04);
}

.barber-selected-overlay {
    position: absolute;
    inset: 0;
    background: rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}

.barber-selected-overlay svg {
    width: 52px;
    height: 52px;
    stroke: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.barber-card.selected .barber-selected-overlay {
    opacity: 1;
}

.barber-info {
    padding: 14px 12px 16px;
}

.barber-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.3px;
}

@media (max-width: 480px) {
    .barber-grid {
        gap: 14px;
    }

    .barber-name {
        font-size: 0.82rem;
    }
}

/* ═══════════════════════════════════════════
   BLOCK SECTION (admin)
═══════════════════════════════════════════ */
.block-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    max-width: 540px;
}

.block-list-wrap {
    margin-top: 8px;
}

.block-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.block-item:hover {
    border-color: var(--gold-border);
}

.block-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.block-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.block-type {
    font-size: 0.8rem;
    color: var(--gold);
}

.block-reason {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.block-delete-btn {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: var(--font-main);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.block-delete-btn:hover {
    background: var(--danger);
    color: #fff;
}

/* ═══════════════════════════════════════════
   TOGGLE SWITCH (Blochează toată ziua)
═══════════════════════════════════════════ */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.toggle-row:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.35);
}

.toggle-label-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    user-select: none;
}

.toggle-wrap {
    position: relative;
    flex-shrink: 0;
}

.toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    display: block;
    width: 52px;
    height: 28px;
    background: var(--border);
    border-radius: 50px;
    position: relative;
    transition: background 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s;
}

.toggle-input:checked+.toggle-slider {
    background: var(--gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.toggle-input:checked+.toggle-slider::after {
    transform: translateX(24px);
    background: #1a1100;
}

/* ═══════════════════════════════════════════
   DATE / TIME INPUT — full field clickable
═══════════════════════════════════════════ */
.form-group {
    position: relative;
}

input[type="date"],
input[type="time"] {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ═══════════════════════════════════════════
   MOBILE ADMIN — hidden on desktop
═══════════════════════════════════════════ */


.mobile-bottom-nav {
    display: none;
}

/* ═══════════════════════════════════════════
   ADMIN: barber name header
═══════════════════════════════════════════ */
#admin-barber-name {
    color: var(--gold);
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

/* ═══════════════════════════════════════════
   MODAL FOOTER — delete buttons full row
═══════════════════════════════════════════ */
.modal-footer-delete {
    display: flex;
    gap: 12px;
    padding: 20px 28px 28px;
    border-top: 1px solid var(--border);
}

.modal-footer-delete .btn-back,
.modal-footer-delete .btn-delete-confirm {
    flex: 1;
    justify-content: center;
    text-align: center;
}

/* ═══════════════════════════════════════════
   MOBILE ADMIN — responsive ≤768px
═══════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Hide desktop sidebar */
    .admin-sidebar {
        display: none !important;
    }

    /* Main takes full width */
    .admin-main {
        margin-left: 0 !important;
        padding: 16px 16px 24px !important;
        min-height: unset;
        flex: 1;
    }

    /* Header compact */
    .admin-header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 0 12px;
    }

    .admin-title {
        font-size: 1.3rem;
    }


    /* Stats full width row */
    .admin-header-actions {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .admin-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }

    .stat-box { 
        padding: 10px 8px;
        border-radius: 10px;
        text-align: center;
    }

    .stat-box span {
        font-size: 1.4rem;
    }

    .stat-box label {
        font-size: 0.6rem;
    }

    .btn-add-manual {
        width: 100%;
        justify-content: center;
    }

    /* Calendar 1 column */
    .admin-calendar {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .admin-day-col {
        width: 100%;
    }

    /* Week nav */
    .week-nav {
        padding: 8px 0;
    }

    /* Block form */
    .block-form-wrap {
        padding: 20px 16px;
    }

    /* Modals slide up from bottom */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-card {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        margin: 0;
    }

    /* Delete modal — centered */
    #delete-overlay {
        align-items: center !important;
        padding: 20px !important;
    }

    #delete-overlay .modal-card {
        border-radius: 16px !important;
        max-width: 320px !important;
    }

    /* Mobile Top Nav */
    .mobile-bottom-nav {
        display: flex;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        width: 100%;
        height: 64px;
        background: #111;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }

    .mobile-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.58rem;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        border-bottom: 3px solid transparent;
        transition: color 0.2s, border-color 0.2s;
    }

    .mobile-tab svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
    }

    .mobile-tab.active {
        color: var(--gold);
        border-bottom-color: var(--gold);
    }

    .mobile-tab span {
        font-size: 0.58rem;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 12px 12px 90px !important;
    }

    .booking-hero h1 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ── ADMIN DAY VIEW ──────────────────────────────── */
.admin-day-col--single {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}

.admin-day-col--single .admin-day-bookings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.admin-day-col--single .booking-card {
    width: 100%;
}

/* Closed day */
.day-closed-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.day-closed-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(192, 57, 43, 0.1);
    color: #e55a4e;
    border: 1px solid rgba(192, 57, 43, 0.3);
    border-radius: 8px;
    padding: 12px 32px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.day-closed-badge::before {
    content: '●';
    font-size: 0.5rem;
    color: #e55a4e;
    opacity: 0.8;
}

/* Single-day view: nu forta inaltimea minima */
.admin-day-col--single {
    min-height: unset;
}