:root {
    --bg: #060607;
    --surface: #0f1117;
    --surface-soft: #161b26;
    --text: #f7f7f7;
    --muted: #9aa3b6;
    --accent: #e0b731;
    --accent-soft: rgba(224, 183, 49, 0.16);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #07090f;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
iframe {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

input[type="checkbox"],
input[type="radio"] {
    width: 16px;
    height: 16px;
    box-sizing: initial;
    flex-shrink: 0;
}

button {
    cursor: pointer;
}

.container {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
}

/* =========================================
   TOP BAR
   ========================================= */
.top-bar {
    background: #020204;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar-inner {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    font-size: 0.85rem;
    color: var(--muted);
    flex-wrap: wrap;
    padding: 6px 0;
}

.top-bar-inner span,
.top-bar-inner a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-bar-inner a {
    color: var(--text);
    transition: color 0.2s;
}

.top-bar-inner a:hover {
    color: var(--accent);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 10, 13, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    border-bottom-color: rgba(224, 183, 49, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.75rem;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: #060607;
}

.btn-primary:hover {
    box-shadow: 0 8px 28px rgba(224, 183, 49, 0.4);
}

.btn-secondary,
.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover,
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-full {
    width: 100%;
}

/* =========================================
   EYEBROW
   ========================================= */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
}

/* =========================================
   SCROLL PROGRESS
   ========================================= */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #f5d76e);
    z-index: 9999;
    transition: width 0.08s linear;
    pointer-events: none;
}

/* =========================================
   PAGE ENTRANCE
   ========================================= */
@keyframes pageFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
body { animation: pageFade 0.45s ease both; }

/* =========================================
   HERO
   ========================================= */
.hero {
    position: relative;
    min-height: calc(100vh - 114px);
    display: grid;
    place-items: center;
    padding: 80px 0;
    background:
        linear-gradient(180deg, rgba(3, 3, 3, 0.52) 0%, rgba(6, 6, 7, 0.97) 100%),
        var(--hero-img, url('https://images.unsplash.com/photo-1531852306129-668bfb9b7ec8?auto=format&fit=crop&w=1600&q=80')) center / cover no-repeat;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #07090f, transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 5.5vw, 5.2rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

.text-accent {
    color: var(--accent);
}

.hero-content p {
    max-width: 540px;
    margin: 0 auto 36px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 52px;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 16px 36px;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat span {
    font-size: 0.74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   SECTIONS
   ========================================= */
.section {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 56px;
}

.section-heading h2 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-top: 10px;
}

.section-sub {
    margin-top: 14px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   ABOUT
   ========================================= */
.about-highlight {
    padding-top: 80px;
}

.about-highlight-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 72px;
    align-items: center;
}

.highlight-copy h2 {
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    line-height: 1.1;
}

.highlight-copy > p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 36px;
    font-size: 1rem;
}

.highlight-points {
    display: grid;
    gap: 24px;
    margin-bottom: 36px;
}

.point-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.point-icon {
    font-size: 1rem;
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.point-item strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}

.point-item p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

.highlight-main-image {
    width: 100%;
    min-height: 500px;
    border-radius: var(--radius);
    background: url('https://images.unsplash.com/photo-1503951914875-452162b0f3f1?auto=format&fit=crop&w=900&q=80') center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

/* =========================================
   SERVICES
   ========================================= */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(224, 183, 49, 0.28);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(224, 183, 49, 0.1);
}

.service-card-featured {
    border-color: rgba(224, 183, 49, 0.28);
    background: linear-gradient(155deg, rgba(224, 183, 49, 0.07) 0%, var(--surface) 55%);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: #060607;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 12px;
    border-radius: 999px;
}

.service-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    border-radius: 16px;
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
}

.service-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.service-card-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.service-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent);
}

.service-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.9rem;
    flex: 1;
}

.service-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    width: fit-content;
}

/* =========================================
   TEAM
   ========================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(224, 183, 49, 0.22);
}

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    background-size: cover;
    background-position: center top;
    margin-bottom: 18px;
}

.team-photo-1 { background-image: url('https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&w=800&q=80'); }
.team-photo-2 { background-image: url('https://images.unsplash.com/photo-1515378791036-0648a3ef77b2?auto=format&fit=crop&w=800&q=80'); }
.team-photo-3 { background-image: url('https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=800&q=80'); }
.team-photo-4 { background-image: url('https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=800&q=80'); }

.team-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-card > p {
    color: var(--muted);
    font-size: 0.84rem;
    margin-bottom: 10px;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.88rem;
}

/* =========================================
   REVIEWS
   ========================================= */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.reviews-empty {
    color: var(--muted);
    font-size: 0.95rem;
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

.reviews-empty a {
    color: var(--accent);
    font-weight: 600;
}

.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-6px);
    border-color: rgba(224, 183, 49, 0.35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(224, 183, 49, 0.12);
}

.review-stars {
    display: flex;
    gap: 4px;
    color: var(--accent);
    font-size: 0.82rem;
}

.review-card p {
    color: var(--muted);
    line-height: 1.85;
    flex: 1;
    font-size: 0.93rem;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid rgba(224, 183, 49, 0.22);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--accent);
    font-size: 0.88rem;
    flex-shrink: 0;
}

.review-meta > div {
    flex: 1;
}

.review-meta strong {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.review-meta span {
    font-size: 0.76rem;
    color: var(--muted);
}

.review-score {
    font-weight: 800;
    color: var(--accent);
    font-size: 1rem;
}

/* =========================================
   LEAVE A REVIEW
   ========================================= */
.leave-review-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 72px;
    align-items: start;
}

.leave-review-copy h2 {
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.leave-review-copy > p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.review-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    display: grid;
    gap: 20px;
    box-shadow: var(--shadow);
}

.review-form-label {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.star-rating {
    display: flex;
    gap: 6px;
}

.star-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.18);
    padding: 0;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-btn:hover,
.star-btn.active {
    color: var(--accent);
    transform: scale(1.2);
}

.review-page-stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
}

.review-page-stat strong {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.review-page-stat span {
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.review-form-confirmation {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.7;
    min-height: 1.4em;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.contact-copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-copy h2 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.contact-copy > p {
    color: var(--muted);
    line-height: 1.8;
    margin-top: -12px;
}

.contact-details {
    display: grid;
    gap: 12px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.2s;
}

.contact-detail:hover {
    border-color: rgba(224, 183, 49, 0.2);
}

.contact-detail i {
    font-size: 1.1rem;
    color: var(--accent);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.contact-detail span {
    font-size: 0.82rem;
    color: var(--muted);
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.social-links a:hover {
    background: var(--accent-soft);
    border-color: rgba(224, 183, 49, 0.32);
    color: var(--accent);
}

.contact-map-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-card-head {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.map-card-head span {
    display: block;
    font-size: 0.76rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 6px;
}

.map-card-head h3 {
    font-weight: 700;
    font-size: 1rem;
}

.contact-map {
    min-height: 320px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 36px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: #060607;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copy {
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #060607;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 8px 28px rgba(224, 183, 49, 0.4);
    z-index: 50;
    font-size: 0.85rem;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* =========================================
   BOOKING PAGE
   ========================================= */
.booking-section {
    padding: 80px 0;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 28px;
    align-items: flex-start;
}

.booking-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px;
    display: grid;
    gap: 24px;
}

.booking-form-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.booking-intro {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: -8px;
}

.booking-steps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.booking-step {
    flex: 1;
    min-width: 110px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 10px 14px;
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.booking-step-active {
    background: rgba(224, 183, 49, 0.14);
    border-color: rgba(224, 183, 49, 0.38);
    color: var(--accent);
}

.step-panel {
    display: none;
    gap: 22px;
}

.step-panel.step-active {
    display: grid;
}

.step-instruction {
    color: var(--muted);
    font-size: 0.9rem;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.barber-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.service-option,
.barber-card,
.time-slot,
.calendar-day {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 18px;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.service-option:hover,
.barber-card:hover,
.time-slot:hover,
.calendar-day:hover {
    transform: translateY(-1px);
    border-color: rgba(224, 183, 49, 0.42);
    background: rgba(224, 183, 49, 0.05);
}

.service-option.active,
.barber-card.active,
.time-slot.active,
.calendar-day.active {
    background: rgba(224, 183, 49, 0.14);
    border-color: rgba(224, 183, 49, 0.52);
    color: var(--text);
}

.barber-card {
    display: grid;
    gap: 12px;
    text-align: center;
    border-radius: 20px;
}

.barber-photo {
    width: 100%;
    min-height: 160px;
    border-radius: 14px;
    background-size: cover;
    background-position: center top;
}

.barber-photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(224, 183, 49, 0.3), rgba(224, 183, 49, 0.08));
    color: var(--accent);
    font-size: 2.2rem;
    font-weight: 800;
}

.service-option-price {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 700;
}

.barber-photo-metaxas { background-image: url('pictures/alex.jpg'); }
.barber-photo-katsio { background-image: url('https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&w=800&q=80'); }
.barber-photo-mpitsios { background-image: url('https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=800&q=80'); }
.barber-photo-mike { background-image: url('https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=800&q=80'); }

.schedule-panel {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 16px;
}

.calendar-panel,
.time-panel {
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.nav-arrow {
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.12);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    min-height: 54px;
    padding: 8px 4px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 11px;
    font-size: 0.84rem;
    font-weight: 600;
}


.appt-color-picker {
    position: fixed;
    z-index: 999;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.appt-color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.appt-color-swatch:hover { transform: scale(1.25); }
.appt-color-swatch.active { border-color: #fff; }
.appt-color-swatch.swatch-reset {
    background: var(--surface-soft);
    border: 2px dashed rgba(255,255,255,0.2);
}

.cal-day-bar {
    width: 60%;
    height: 4px;
    border-radius: 999px;
}

.calendar-day.cal-full {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
}

.cal-day-closed {
    font-size: 0.6rem;
    font-weight: 600;
    color: #e05f5f;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.calendar-day.disabled {
    opacity: 0.28;
    cursor: not-allowed;
    pointer-events: none;
}

.time-slot {
    text-align: center;
    padding: 12px;
    font-size: 0.88rem;
    border-radius: 14px;
}

.time-slot.disabled {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
    color: #f87171;
    opacity: 1;
    pointer-events: none;
    cursor: not-allowed;
}

.schedule-label {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.85rem;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    transition: border-color 0.2s;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    appearance: none;
    -webkit-appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: rgba(224, 183, 49, 0.45);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.step-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.booking-summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    position: sticky;
    top: 100px;
}

.booking-summary-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.summary-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
}

.summary-field span {
    color: var(--muted);
}

.summary-field strong {
    color: var(--text);
    font-weight: 600;
}

.summary-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.65;
}


/* ── OTP VERIFY ─────────────────────────────── */
.otp-wrap {
    text-align: center;
    padding: 12px 0 4px;
}
.otp-phone-icon {
    font-size: 2.6rem;
    color: var(--accent);
    display: block;
    margin-bottom: 14px;
}
.otp-wrap h3 { font-size: 1.15rem; margin-bottom: 6px; }
.otp-wrap > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.otp-demo-hint {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}
.otp-input {
    display: block;
    margin: 0 auto 10px;
    width: 160px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 8px;
    padding: 10px 8px;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.otp-input:focus { border-color: var(--accent); }
.otp-error {
    color: #f87171;
    font-size: 0.83rem;
    min-height: 1.3em;
    margin-bottom: 8px;
}

/* ── BOOKING CONFIRMED ──────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.booking-confirmed {
    text-align: center;
    padding: 32px 8px 16px;
    animation: fadeUp 0.4s ease;
}
.confirmed-icon {
    font-size: 4rem;
    color: #4ade80;
    margin-bottom: 14px;
    line-height: 1;
}
.booking-confirmed h2 { font-size: 1.6rem; margin-bottom: 6px; }
.confirmed-sub { color: var(--muted); margin-bottom: 28px; font-size: 0.95rem; }
.confirmed-details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    text-align: left;
}
.confirmed-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.confirmed-detail:last-child { border-bottom: none; }
.confirmed-detail span { color: var(--muted); }
.confirmed-reminder {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.confirmed-reminder i { color: var(--accent); }
.confirmed-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================================
   ADMIN DASHBOARD
   ========================================= */
.admin-dashboard {
    padding: 60px 0;
}

.dashboard-hero {
    padding: 0 0 40px;
}

.dashboard-hero-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.dashboard-hero-inner h1 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 8px 0 10px;
}

.dashboard-hero-inner p {
    color: var(--muted);
    font-size: 0.92rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: left;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(224, 183, 49, 0.22);
}

.stat-card > span {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
}

.admin-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.admin-section {
    display: grid;
    gap: 24px;
}

.panel-head {
    margin-bottom: 24px;
}

.panel-head h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.schedule-panel-head {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.schedule-top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.schedule-label-group,
.schedule-filter-group,
.schedule-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.schedule-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 0.88rem;
}

.btn-pill {
    border-radius: 999px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-pill:hover,
.btn-pill-active {
    background: rgba(224, 183, 49, 0.12);
    border-color: rgba(224, 183, 49, 0.22);
}

.btn-secondary {
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.schedule-day-label {
    font-weight: 700;
    color: var(--text);
    min-width: 160px;
    text-align: center;
    font-size: 0.92rem;
}

.schedule-subtitle h2 {
    font-size: 1.35rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.schedule-subtitle p {
    color: var(--muted);
    font-size: 0.88rem;
}

.schedule-board {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
    background: var(--surface);
}

.schedule-grid {
    display: grid;
    grid-template-columns: 120px repeat(4, minmax(220px, 1fr));
    min-width: 940px;
}

.schedule-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.schedule-sidebar-head {
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.schedule-times {
    display: grid;
    grid-template-rows: repeat(21, 40px);
}

.time-label {
    display: grid;
    align-items: center;
    padding-left: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.78rem;
}

.schedule-column {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-column-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.schedule-column-head strong {
    font-size: 0.92rem;
    font-weight: 700;
}

.schedule-column-head span {
    color: var(--muted);
    font-size: 0.8rem;
}

.schedule-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(224, 183, 49, 0.32), rgba(224, 183, 49, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-column-body {
    position: relative;
    min-height: 840px;
    padding: 10px 8px 12px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 40px;
}

.appointment-card {
    position: absolute;
    left: 10px;
    right: 10px;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    font-weight: 600;
    color: #060607;
}

.appointment-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.appointment-card span {
    color: rgba(6, 6, 7, 0.65);
    font-size: 0.78rem;
}

.appointment-card.cut { background: linear-gradient(135deg, rgba(255, 192, 127, 0.95), rgba(255, 227, 166, 0.95)); }
.appointment-card.cutBeard { background: linear-gradient(135deg, rgba(146, 196, 255, 0.95), rgba(207, 226, 255, 0.95)); }
.appointment-card.beard { background: linear-gradient(135deg, rgba(180, 219, 167, 0.95), rgba(224, 243, 220, 0.95)); }

.schedule-empty {
    color: var(--muted);
    font-size: 0.85rem;
    padding: 10px 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

thead th {
    text-align: left;
    padding-bottom: 12px;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

td {
    padding: 14px 0;
    font-size: 0.88rem;
}

.client-list,
.staff-list,
.review-summary {
    display: grid;
    gap: 12px;
}

.client-card,
.staff-card,
.review-card-small {
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 5px;
}

.client-card strong,
.staff-card strong,
.review-card-small strong {
    color: var(--text);
    font-weight: 700;
    font-size: 0.92rem;
}

.client-card span,
.staff-card span {
    color: var(--muted);
    font-size: 0.85rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(224, 183, 49, 0.12);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.78rem;
}

button.toggle-availability {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 7px 16px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
    width: fit-content;
}

button.toggle-availability:hover {
    background: rgba(224, 183, 49, 0.1);
    border-color: rgba(224, 183, 49, 0.3);
}

.review-card-small p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 0.88rem;
}

/* =========================================
   REVEAL ANIMATION
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* =========================================
   RESPONSIVE — 1024px
   ========================================= */
@media (max-width: 1024px) {
    .about-highlight-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-grid,
    .leave-review-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .review-grid {
        grid-template-columns: 1fr 1fr;
    }

    .booking-grid {
        grid-template-columns: 1fr;
    }

    .schedule-panel {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        gap: 20px;
        padding: 14px 28px;
    }
}

/* =========================================
   RESPONSIVE — 768px
   ========================================= */
@media (max-width: 768px) {
    /* Top bar — compact, all items visible */
    .top-bar-inner {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 0;
        min-height: auto;
        justify-content: center;
        font-size: 0.78rem;
    }

    /* Hamburger */
    .nav-toggle {
        display: flex;
    }

    /* Mobile nav panel — full-height side drawer above everything */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(280px, 88vw);
        flex-direction: column;
        gap: 0;
        padding: 80px 0 32px;
        background: #060607;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateX(100%);
        transition: transform 0.15s ease;
        pointer-events: none;
        z-index: 500;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
        pointer-events: auto;
        box-shadow: -24px 0 60px rgba(0, 0, 0, 0.6);
    }

    .nav-links a {
        padding: 15px 24px;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 0.97rem;
        color: var(--text);
    }

    /* Login button in mobile menu */
    .nav-user-btn {
        display: flex;
        width: calc(100% - 48px);
        margin: 16px 24px 0;
        border-radius: 12px;
        padding: 14px 20px;
        font-size: 0.95rem;
        justify-content: flex-start;
        border-color: rgba(255, 255, 255, 0.1);
    }

    /* Book Now button in mobile menu */
    .nav-links .btn-ghost {
        display: flex;
        width: calc(100% - 48px);
        margin: 10px 24px 0;
        border-radius: 12px;
        padding: 14px 20px;
        font-size: 0.92rem;
        justify-content: flex-start;
    }

    /* Hero */
    .hero {
        min-height: 85vh;
        padding: 60px 0 50px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Grids */
    .booking-summary-card {
        position: static;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    /* Hero stats */
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Section spacing */
    .section {
        padding: 64px 0;
    }

    /* About image */
    .highlight-images img {
        max-height: 300px;
        width: 100%;
        object-fit: cover;
        border-radius: var(--radius);
    }

    /* Contact map */
    .contact-map {
        min-height: 220px;
    }

    .contact-map iframe {
        height: 220px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* =========================================
   RESPONSIVE — 540px
   ========================================= */
@media (max-width: 540px) {
    .hero {
        min-height: 78vh;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .option-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        padding: 12px 20px;
        gap: 14px;
    }

    .hero-stat-divider {
        display: none;
    }

    .booking-form-card {
        padding: 24px 18px;
    }

    .booking-steps {
        gap: 5px;
    }

    .booking-step {
        min-width: 0;
        padding: 8px 6px;
        font-size: 0.72rem;
    }

    .service-card {
        padding: 24px;
    }
}

/* =========================================
   RESPONSIVE — 480px
   ========================================= */
@media (max-width: 480px) {
    .hero {
        min-height: 75vh;
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: -0.02em;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section {
        padding: 52px 0;
    }

    /* Booking */
    .booking-section {
        padding: 32px 0 56px;
    }

    .booking-form-card {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .booking-steps {
        gap: 4px;
    }

    .booking-step {
        padding: 7px 3px;
        font-size: 0.62rem;
        border-radius: 8px;
    }

    /* Calendar */
    .calendar-panel,
    .time-panel {
        padding: 14px 10px;
        border-radius: 14px;
    }

    .calendar-day {
        min-height: 42px;
        font-size: 0.76rem;
        border-radius: 8px;
        padding: 6px 2px 5px;
    }

    .cal-day-bar {
        height: 3px;
        width: 70%;
    }

    /* Time slots — 3 per row on small screens */
    .time-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .time-slot {
        padding: 10px 4px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    /* Contact map */
    .contact-map {
        min-height: 180px;
    }

    .contact-map iframe {
        height: 180px;
    }

    /* Loyalty modal */
    .loyalty-modal {
        padding: 20px 16px;
        border-radius: 18px;
    }

    /* OTP step */
    .otp-input {
        font-size: 1.6rem;
        padding: 14px 10px;
    }
}

/* =========================================
   ADMIN LAYOUT (SIDEBAR SPA)
   ========================================= */
.admin-body {
    background: #07090f;
    min-height: 100vh;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 200;
    scrollbar-width: thin;
}

.admin-sidebar-logo {
    padding: 24px 20px 18px;
    border-bottom: 1px solid var(--border);
}

.admin-sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.admin-nav-group {
    margin: 16px 0 6px 10px;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    text-decoration: none;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.admin-nav-link.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}

.admin-nav-link i {
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

.admin-sidebar-footer {
    padding: 12px 10px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

#allBookingsTable tbody tr.booking-selected td {
    background: var(--accent-soft) !important;
}
#allBookingsTable tbody tr.booking-selected {
    box-shadow: inset 3px 0 0 var(--accent);
}

.admin-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 9999;
}
.admin-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.admin-content {
    margin-left: 250px;
    flex: 1;
    min-height: 100vh;
    overflow-x: hidden;
}

.admin-tab {
    display: none;
    min-height: 100vh;
}

.admin-tab.active {
    display: block;
}

.admin-tab-head {
    padding: 28px 32px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    background: rgba(7, 9, 15, 0.97);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.admin-tab-title h1 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.admin-tab-title p {
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 3px;
}

.admin-tab-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-tab-body {
    padding: 24px 32px 48px;
    display: grid;
    gap: 20px;
}

/* KPI GRID */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 22px;
    transition: border-color 0.2s, transform 0.2s;
}

.kpi-card:hover {
    border-color: rgba(224, 183, 49, 0.22);
    transform: translateY(-2px);
}

.kpi-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.kpi-label {
    font-size: 0.74rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.kpi-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.kpi-sub {
    font-size: 0.74rem;
    color: var(--muted);
}

/* GRID LAYOUTS */
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* DATA TABLE CARD */
.data-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.data-table-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.data-table-head h3 {
    font-weight: 700;
    font-size: 0.95rem;
}

.table-scroll {
    overflow-x: auto;
}

.data-table-wrap table {
    min-width: 560px;
}

.data-table-wrap thead th {
    padding: 12px 16px 12px 0;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.data-table-wrap thead th:first-child {
    padding-left: 22px;
}

.data-table-wrap td {
    padding: 13px 16px 13px 0;
    font-size: 0.86rem;
}

.data-table-wrap td:first-child {
    padding-left: 22px;
}

/* CARDS GRID */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.data-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s, transform 0.2s;
}

.data-card:hover {
    border-color: rgba(224, 183, 49, 0.2);
    transform: translateY(-2px);
}

.data-card strong {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}

.data-card span {
    color: var(--muted);
    font-size: 0.82rem;
}

.data-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* QUICK ACTIONS */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 22px 22px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.quick-action-btn i {
    font-size: 1.1rem;
    color: var(--accent);
}

.quick-action-btn:hover {
    background: var(--accent-soft);
    border-color: rgba(224, 183, 49, 0.25);
    color: var(--text);
}

/* ADMIN MODAL */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-modal-overlay.open {
    display: flex;
}

.admin-modal {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    width: min(520px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.admin-modal-head {
    padding: 22px 26px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
}

.admin-modal-head h3 {
    font-weight: 700;
    font-size: 1rem;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1rem;
    padding: 4px 6px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.modal-close-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.admin-modal-body {
    padding: 24px 26px;
    display: grid;
    gap: 16px;
}

.admin-modal-footer {
    padding: 18px 26px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background: var(--surface);
}

/* FORM HELPERS */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.admin-select {
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
}

/* CUSTOM SELECT DROPDOWN */
.csel {
    position: relative;
    width: 100%;
}
.csel-btn {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
    gap: 8px;
}
.csel-btn:focus,
.csel.open .csel-btn {
    border-color: rgba(224,183,49,0.45);
}
.csel-arrow {
    color: var(--muted);
    font-size: 0.72rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.csel.open .csel-arrow {
    transform: rotate(180deg);
}
.csel-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #1c1c1e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
    max-height: 240px;
    overflow-y: auto;
}
.csel.open .csel-list {
    display: block;
}
.csel-list li {
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text);
    font-size: 0.9rem;
    transition: background 0.15s;
}
.csel-list li:hover {
    background: rgba(255,255,255,0.07);
}
.csel-list li.active {
    color: var(--accent);
    background: rgba(224,183,49,0.1);
    font-weight: 600;
}

.admin-search {
    position: relative;
}

.admin-search input {
    padding: 9px 16px 9px 38px;
    border-radius: 12px;
    min-width: 200px;
    font-size: 0.86rem;
}

.admin-search i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.8rem;
}

/* BTN SIZES */
.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
}

.btn-link {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* TOGGLE SWITCH */
.toggle-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-switch input:checked + .toggle-track {
    background: var(--accent);
}

.toggle-track::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-track::after {
    transform: translateX(18px);
}

/* NOTIFICATION ROW */
.notif-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notif-row:last-child {
    border-bottom: none;
}

.notif-row-info strong {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
}

.notif-row-info span {
    font-size: 0.78rem;
    color: var(--muted);
}

/* CHARTS */
.chart-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
}

.chart-title {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 140px;
}

.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    height: 100%;
}

.bar {
    width: 100%;
    background: var(--accent-soft);
    border: 1px solid rgba(224, 183, 49, 0.2);
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: background 0.2s;
}

.bar:hover {
    background: rgba(224, 183, 49, 0.32);
}

.bar-label {
    font-size: 0.68rem;
    color: var(--muted);
    text-align: center;
}

.bar-val {
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 700;
}

/* BADGES */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-green  { background: rgba(74,222,128,0.12); color: #4ade80; }
.badge-red    { background: rgba(248,113,113,0.12); color: #f87171; }
.badge-yellow { background: rgba(224,183,49,0.14);  color: var(--accent); }
.badge-blue   { background: rgba(96,165,250,0.12);  color: #60a5fa; }
.badge-muted  { background: rgba(255,255,255,0.06); color: var(--muted); }

/* STOCK BAR */
.stock-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    margin-top: 4px;
}

.stock-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s;
}

.stock-fill.high   { background: #4ade80; }
.stock-fill.medium { background: #fbbf24; }
.stock-fill.low    { background: #f87171; }

/* LOYALTY */
.loyalty-settings {
    padding: 16px 22px 22px;
    display: grid;
    gap: 14px;
}

/* OPENING HOURS */
.hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row span {
    color: var(--text);
    font-weight: 600;
    min-width: 80px;
}

.hours-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hours-inputs input {
    width: 80px;
    padding: 6px 10px;
    font-size: 0.82rem;
    border-radius: 8px;
}

/* BOOKING LINK ROW */
.booking-link-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 18px;
}

.booking-link-row code {
    flex: 1;
    font-family: monospace;
    font-size: 0.88rem;
    color: var(--accent);
    word-break: break-all;
}

/* SECTION LABEL */
.section-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* RESPONSIVE ADMIN */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 220px;
    }
    .admin-content {
        margin-left: 220px;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Admin mobile top bar */
.admin-mobile-bar {
    display: none;
}

@media (max-width: 768px) {
    .admin-mobile-bar {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 14px 20px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        z-index: 150;
    }

    .admin-mobile-menu-btn {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--text);
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        z-index: 300;
    }
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 32px rgba(0, 0, 0, 0.6);
    }
    .admin-content {
        margin-left: 0;
    }
    .admin-tab-head {
        padding: 18px 20px 14px;
    }
    .admin-tab-body {
        padding: 16px 20px 40px;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
    .quick-actions-grid {
        grid-template-columns: 1fr 1fr;
    }
    .admin-tab-body {
        padding: 12px 14px 40px;
    }
}

/* =========================================
   LOYALTY / REWARDS
   ========================================= */
/* =========================================
   CLOSED HOURS
   ========================================= */
.blocked-hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}
.blocked-slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: var(--text);
}
.blocked-slot-btn i { font-size: 0.85rem; color: var(--accent); }
.blocked-slot-btn span { font-size: 0.9rem; font-weight: 700; }
.blocked-slot-btn small { font-size: 0.7rem; color: var(--muted); }
.blocked-slot-btn:hover { border-color: rgba(255,255,255,0.2); }
.blocked-slot-btn.blocked { background: rgba(224,95,95,0.08); border-color: rgba(224,95,95,0.35); }
.blocked-slot-btn.blocked i { color: #e05f5f; }
.blocked-slot-btn.blocked small { color: #e05f5f; }

/* =========================================
   ADMIN NOTIFICATIONS
   ========================================= */
.admin-sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-bell-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    padding: 6px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.admin-bell-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.admin-bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent);
    color: #060607;
    font-size: 0.6rem;
    font-weight: 800;
    border-radius: 999px;
    min-width: 15px;
    height: 15px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}
.notif-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 600;
    display: none;
}
.notif-overlay.open { display: block; }
.notif-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}
.notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 18px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.notif-panel-head h3 { font-size: 0.95rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.notif-close-btn { background: none; border: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 4px; transition: color 0.2s; }
.notif-close-btn:hover { color: var(--text); }
.notif-clear-btn { background: none; border: 1px solid var(--border); color: var(--muted); font-size: 0.75rem; border-radius: 999px; padding: 4px 10px; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.notif-clear-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.notif-panel-body { flex: 1; overflow-y: auto; }
.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--muted);
    font-size: 0.88rem;
    gap: 10px;
}
.notif-empty i { font-size: 1.8rem; }
.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}
.notif-item:hover { background: var(--surface-soft); }
.notif-item.unread { border-left: 3px solid var(--accent); padding-left: 17px; }
.notif-item-icon {
    width: 34px;
    height: 34px;
    background: var(--accent-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 2px; }
.notif-item-message { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-time { font-size: 0.73rem; color: var(--muted); margin-top: 4px; }

.loyalty-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.loyalty-overlay.open { display: flex; }

.loyalty-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 36px;
    position: relative;
}

.loyalty-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}
.loyalty-modal-close:hover { color: var(--text); }

.loyalty-rewards-mini-row {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.loyalty-reward-mini-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.78rem;
    color: var(--muted);
    flex: 1;
    justify-content: center;
    white-space: nowrap;
}
.loyalty-reward-mini-pill i { color: var(--accent); font-size: 0.72rem; }
.loyalty-reward-mini-pill strong { color: var(--accent); font-weight: 700; }

.loyalty-tabs {
    display: flex;
    background: var(--surface-soft);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 24px;
}
.loyalty-tab {
    flex: 1;
    border: none;
    background: none;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.loyalty-tab.active { background: var(--accent); color: #060607; }

.loyalty-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 4px;
    margin-top: 14px;
}
.loyalty-form input {
    width: 100%;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    color: var(--text);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s;
}
.loyalty-form input:focus { border-color: var(--accent); }

.loyalty-error {
    color: #e05f5f;
    font-size: 0.8rem;
    margin-top: 8px;
    min-height: 1em;
}

.loyalty-form-submit {
    margin-top: 18px;
    width: 100%;
}

/* Navbar user button */
.nav-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-user-btn i {
    font-size: 0.78rem;
    opacity: 0.7;
}
.nav-user-btn:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--text);
}

/* Rewards section */
.rewards-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.rewards-intro {
    text-align: center;
    margin-bottom: 44px;
}
.rewards-intro .eyebrow { display: block; margin-bottom: 12px; }
.rewards-intro p { color: var(--muted); max-width: 440px; margin: 12px auto 0; font-size: 0.95rem; line-height: 1.6; }

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.reward-card {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.reward-card:hover { border-color: rgba(224, 183, 49, 0.35); transform: translateY(-3px); }

.reward-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.3rem;
    color: var(--accent);
}
.reward-pts {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.reward-pts span { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.reward-label { margin-top: 6px; font-weight: 600; font-size: 0.95rem; }

.rewards-cta { text-align: center; }
.rewards-cta p { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }

/* Loyalty profile inside modal */
.loyalty-profile { text-align: center; }
.loyalty-profile-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.loyalty-profile-pts { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.loyalty-profile-pts span { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

.loyalty-progress-bar {
    background: var(--surface-soft);
    border-radius: 999px;
    height: 8px;
    margin: 16px 0 6px;
    overflow: hidden;
}
.loyalty-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.5s;
}
.loyalty-next-reward { font-size: 0.8rem; color: var(--muted); margin-bottom: 20px; }

.reward-cards-mini { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 20px; }
.reward-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--muted);
}
.reward-mini i { width: 16px; text-align: center; }
.reward-mini span { flex: 1; text-align: left; }
.reward-mini strong { color: var(--muted); }
.reward-mini-unlocked { border-color: rgba(224, 183, 49, 0.35); color: var(--text); }
.reward-mini-unlocked i { color: var(--accent); }
.reward-mini-unlocked strong { color: var(--accent); }

.loyalty-bookings { margin: 4px 0 20px; text-align: left; }
.loyalty-bookings h4 {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 16px 0 8px;
}
.loyalty-bookings h4:first-child { margin-top: 0; }
.loyalty-booking-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.loyalty-booking-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loyalty-booking-info strong { font-weight: 700; color: var(--text); font-size: 0.85rem; }
.loyalty-booking-info span { color: var(--muted); font-size: 0.76rem; }
.loyalty-booking-status { font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.loyalty-bookings-empty { color: var(--muted); font-size: 0.82rem; margin-bottom: 8px; }

.loyalty-verify-input {
    width: 100%;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    color: var(--text);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}
.loyalty-verify-input:focus { border-color: var(--accent); }

.loyalty-logout {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.loyalty-logout:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }

/* Points notice in booking confirmation */
.otp-status {
    font-size: 0.82rem;
    min-height: 1.2em;
    margin-bottom: 4px;
    text-align: center;
}
.otp-resend-wrap {
    text-align: center;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--muted);
    min-height: 1.5em;
}
#otpResendBtn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    display: none;
}

.booking-points-earned {
    background: var(--accent-soft);
    border: 1px solid rgba(224, 183, 49, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}
.booking-points-login { margin-top: 4px; }

@media (max-width: 768px) {
    .rewards-grid { grid-template-columns: 1fr; }
    .loyalty-modal { padding: 24px 20px; }
}
