/* ===========================
   BarberPro – Main Stylesheet
   =========================== */

:root {
    --black:   #0a0a0a;
    --dark:    #111111;
    --card:    #1a1a1a;
    --border:  #2a2a2a;
    --gold:    #c9a84c;
    --gold2:   #e8c96e;
    --white:   #f5f0e8;
    --muted:   #888888;
    --success: #4caf82;
    --danger:  #e05252;
    --warn:    #e0a852;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;

    --radius: 12px;
    --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
}

body.glass-body {
    background:
        linear-gradient(145deg, rgba(10,10,10,0.94), rgba(22,18,10,0.82)),
        url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1600&q=80") center/cover fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---- NAV ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10,10,10,0.58);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 0.02em;
}
.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
    font-size: 0.85rem; font-weight: 500;
    color: var(--muted);
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-btn {
    background: var(--gold) !important;
    color: var(--black) !important;
    padding: 8px 18px; border-radius: 6px;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: background var(--transition) !important;
}
.nav-btn:hover { background: var(--gold2) !important; }
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
    display: block; width: 24px; height: 2px; background: var(--white);
    transition: all var(--transition);
}
.mobile-menu {
    display: none; flex-direction: column;
    padding: 16px 24px 20px;
    background: var(--dark);
    border-top: 1px solid var(--border);
}
.mobile-menu a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    color: var(--white);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ---- HERO ---- */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding: 100px 24px 60px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,168,76,0.18) 0%, transparent 65%),
                linear-gradient(135deg, rgba(10,10,10,0.72) 0%, rgba(17,17,17,0.4) 50%, rgba(10,10,10,0.78) 100%);
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(
        0deg, transparent, transparent 60px,
        rgba(201,168,76,0.03) 60px, rgba(201,168,76,0.03) 61px
    ),
    repeating-linear-gradient(
        90deg, transparent, transparent 60px,
        rgba(201,168,76,0.03) 60px, rgba(201,168,76,0.03) 61px
    );
}
.hero-content {
    position: relative; z-index: 1;
    max-width: 620px;
    margin-left: clamp(24px, 8vw, 120px);
}
.hero-tag {
    display: inline-block;
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 24px;
}
.hero-title em {
    font-style: italic; color: var(--gold);
}
.hero-sub {
    font-size: 1.05rem; color: var(--muted);
    max-width: 480px; margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge {
    position: absolute; right: clamp(24px, 6vw, 100px); top: 50%;
    transform: translateY(-50%);
    width: 140px; height: 140px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    animation: spin 20s linear infinite;
    opacity: 0.7;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.badge-inner {
    text-align: center;
    animation: spinReverse 20s linear infinite;
}
@keyframes spinReverse { to { transform: rotate(-360deg); } }
.badge-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem; font-weight: 900;
    color: var(--gold); line-height: 1;
}
.badge-txt {
    font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted);
}

/* ---- BUTTONS ---- */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 0.95rem; font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px; border: none; cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    text-decoration: none;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    color: var(--white);
    font-size: 0.95rem; font-weight: 500;
    padding: 14px 32px;
    border-radius: 8px; border: 1px solid var(--border);
    transition: border-color var(--transition);
    text-decoration: none;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }

/* ---- SECTIONS ---- */
.section { padding: 80px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
    display: inline-block;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 12px;
}
.section-desc { color: var(--muted); max-width: 500px; margin: 0 auto; }

/* ---- SERVICES GRID ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color var(--transition), transform var(--transition);
    cursor: default;
}
.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}
.service-icon { font-size: 1.8rem; margin-bottom: 12px; }
.service-name {
    font-family: var(--font-display);
    font-size: 1.1rem; color: var(--white);
    margin-bottom: 6px;
}
.service-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.service-meta {
    display: flex; justify-content: space-between; align-items: center;
}
.service-price {
    font-family: var(--font-display);
    font-size: 1.25rem; color: var(--gold); font-weight: 700;
}
.service-dur {
    font-size: 0.75rem; color: var(--muted);
    background: var(--border); padding: 4px 10px; border-radius: 20px;
}

/* ---- BOOKING FORM ---- */
.booking-section { background: var(--dark); }
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(24px, 4vw, 48px);
    max-width: 820px; margin: 0 auto;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.form-group 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: 36px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #555; }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
    cursor: pointer;
}
.form-group select option {
    background: var(--dark); color: var(--white);
}

.reminder-box {
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.9rem; color: var(--gold);
    margin-bottom: 24px;
}

/* ---- MODAL ---- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.85);
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 460px; width: 100%;
    text-align: center;
}
.modal-icon {
    width: 64px; height: 64px;
    background: rgba(76,175,130,0.15);
    border: 2px solid var(--success);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--success);
    margin: 0 auto 20px;
}
.modal h3 {
    font-family: var(--font-display);
    font-size: 1.7rem; margin-bottom: 8px;
}
.modal p { color: var(--muted); margin-bottom: 16px; }
.modal-details {
    background: var(--dark);
    border-radius: 8px; padding: 16px;
    text-align: left; margin-bottom: 16px;
}
.modal-details p { color: var(--white); font-size: 0.9rem; margin-bottom: 4px; }
.modal-details span { color: var(--gold); font-weight: 600; }
.modal-note { font-size: 0.88rem; color: var(--gold); margin-bottom: 24px !important; }

/* ---- FOOTER ---- */
.footer { background: var(--dark); border-top: 1px solid var(--border); padding: 48px 24px 0; }
.footer-inner {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 40px; padding-bottom: 40px;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem; color: var(--gold);
    margin-bottom: 10px;
}
.footer-inner p, .footer-inner a {
    display: block; color: var(--muted);
    font-size: 0.9rem; line-height: 2;
}
.footer-inner h4 {
    color: var(--white); font-size: 0.9rem;
    font-weight: 600; margin-bottom: 8px;
}
.footer-inner a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 16px 0; text-align: center;
    color: var(--muted); font-size: 0.8rem;
}

/* ---- BADGES (Admin) ---- */
.badge-pending   { background: rgba(224,168,82,0.15); color: var(--warn);    padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.badge-approved  { background: rgba(76,175,130,0.15); color: var(--success); padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.badge-cancelled { background: rgba(224,82,82,0.15);  color: var(--danger);  padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.badge-completed { background: rgba(100,100,255,0.15); color: #8888ff;       padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }

/* ---- CHECK PAGE ---- */
.check-section { min-height: 100vh; display: flex; align-items: center; padding: 112px 24px 60px; }
.check-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 520px; margin: 0 auto; width: 100%;
}
.check-card h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 8px; }
.check-card p { color: var(--muted); margin-bottom: 24px; }
.result-card {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 24px; margin-top: 24px;
}
.result-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.result-row:last-child { border-bottom: none; }
.result-label { color: var(--muted); }
.result-value { color: var(--white); font-weight: 500; }

/* ---- ADMIN LAYOUT ---- */
.admin-body {
    background:
        linear-gradient(145deg, rgba(10,10,10,0.94), rgba(22,18,10,0.82)),
        url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1600&q=80") center/cover fixed;
    min-height: 100vh;
    display: flex;
}
.sidebar {
    width: 240px; min-height: 100vh;
    background: rgba(17,17,17,0.58);
    backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255,255,255,0.12);
    padding: 24px 0; position: fixed; top: 0; left: 0;
    display: flex; flex-direction: column;
    z-index: 100;
}
.sidebar-logo {
    font-family: var(--font-display);
    font-size: 1.3rem; color: var(--gold);
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.sidebar-nav { display: flex; flex-direction: column; flex: 1; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 24px;
    color: var(--muted); font-size: 0.9rem; font-weight: 500;
    transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--white); background: rgba(201,168,76,0.08);
    border-left: 3px solid var(--gold);
}
.sidebar-nav a .icon { font-size: 1.1rem; }
.sidebar-bottom { padding: 16px 24px; border-top: 1px solid var(--border); }
.sidebar-bottom a { color: var(--muted); font-size: 0.88rem; }
.sidebar-bottom a:hover { color: var(--danger); }

.admin-main {
    margin-left: 240px; flex: 1; padding: 32px;
    min-height: 100vh;
}
.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px;
}
.admin-header h1 {
    font-family: var(--font-display); font-size: 1.8rem;
}
.admin-header span { color: var(--muted); font-size: 0.9rem; }

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; margin-bottom: 32px;
}
.stat-card {
    background: rgba(18,18,18,0.58);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius); padding: 20px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}
.stat-card .stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 2rem; color: var(--gold); }
.stat-card .stat-sub { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

/* Admin Table */
.table-card {
    background: rgba(18,18,18,0.58);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}
.table-head {
    padding: 16px 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
}
.table-head h3 { font-size: 1rem; }
.table-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-input {
    background: var(--dark); border: 1px solid var(--border);
    border-radius: 6px; padding: 8px 12px;
    color: var(--white); font-size: 0.85rem; outline: none;
    font-family: var(--font-body);
}
.filter-input:focus { border-color: var(--gold); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    padding: 12px 16px; text-align: left;
    font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--muted);
    background: var(--dark); border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 12px 16px; font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

.action-btns { display: flex; gap: 6px; }
.btn-sm {
    padding: 5px 12px; border-radius: 6px;
    font-size: 0.78rem; font-weight: 600; cursor: pointer;
    border: none; font-family: var(--font-body);
    transition: opacity var(--transition);
}
.btn-sm:hover { opacity: 0.8; }
.btn-approve { background: rgba(76,175,130,0.15); color: var(--success); }
.btn-cancel  { background: rgba(224,82,82,0.15);  color: var(--danger); }
.btn-done    { background: rgba(100,100,255,0.15); color: #8888ff; }

/* Admin Login */
.login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background:
        linear-gradient(145deg, rgba(10,10,10,0.94), rgba(22,18,10,0.82)),
        url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1600&q=80") center/cover fixed;
    padding: 24px;
}
.login-card {
    background: rgba(18,18,18,0.58);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px; padding: 48px;
    width: 100%; max-width: 400px;
    text-align: center;
    box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}
.login-card .logo { display: block; font-size: 1.6rem; margin-bottom: 8px; }
.login-card h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 4px; }
.login-card p { color: var(--muted); font-size: 0.88rem; margin-bottom: 32px; }
.alert-error {
    background: rgba(224,82,82,0.1);
    border: 1px solid rgba(224,82,82,0.3);
    color: var(--danger); padding: 10px 14px;
    border-radius: 8px; font-size: 0.88rem;
    margin-bottom: 16px;
}

/* Mobile Sidebar Toggle */
.sidebar-toggle {
    display: none;
    position: fixed; top: 16px; left: 16px; z-index: 200;
    background: var(--gold); color: var(--black);
    border: none; border-radius: 8px; width: 40px; height: 40px;
    font-size: 1.1rem; cursor: pointer;
    align-items: center; justify-content: center;
}
.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.7); z-index: 99;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero-badge { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }

    /* Admin */
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: flex; }
    .sidebar-overlay.open { display: block; }
    .admin-main { margin-left: 0; padding: 72px 16px 24px; }
    .admin-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .table-head { flex-direction: column; gap: 10px; align-items: stretch; }
    .table-filters { flex-direction: column; }
}

@media (max-width: 600px) {
    .section { padding: 60px 16px; }
    .services-grid { grid-template-columns: 1fr; }
    .hero-content { margin-left: 0; }
    .footer-inner { grid-template-columns: 1fr; }
    .form-card { padding: 24px 16px; }
    .modal { padding: 28px 20px; }
    .stats-grid { grid-template-columns: 1fr; }
    .login-card { padding: 32px 24px; }
}

/* ===========================
   AI FEATURES – Extra Styles
   =========================== */

/* AI Banner */
.ai-banner {
    background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.03));
    border-top: 1px solid rgba(201,168,76,0.12);
    border-bottom: 1px solid rgba(201,168,76,0.12);
    padding: 20px 24px;
}
.ai-banner-inner {
    display: flex; align-items: center;
    gap: 32px; flex-wrap: wrap;
    max-width: 1200px; margin: 0 auto;
    justify-content: center;
}
.ai-feat {
    display: flex; align-items: center; gap: 12px;
}
.ai-icon { font-size: 1.5rem; }
.ai-feat strong { display: block; font-size: 0.9rem; color: var(--white); }
.ai-feat p { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* Chatbot Widget */
.chatbot-toggle {
    position: fixed; bottom: 28px; right: 28px; z-index: 900;
    width: 58px; height: 58px;
    background: var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; cursor: pointer;
    box-shadow: 0 4px 20px rgba(201,168,76,0.4);
    transition: transform var(--transition), box-shadow var(--transition);
    user-select: none;
}
.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(201,168,76,0.55);
}
.chat-badge {
    position: absolute; top: -2px; right: -2px;
    background: var(--success); color: #fff;
    font-size: 0.55rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 2px 5px; border-radius: 10px;
}

.chatbot-window {
    position: fixed; bottom: 100px; right: 28px; z-index: 901;
    width: min(360px, calc(100vw - 40px));
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: none; flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}
.chatbot-window.open { display: flex; }

.chat-header {
    background: var(--dark);
    padding: 14px 16px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
}
.chat-header strong { font-size: 0.95rem; color: var(--white); }
.chat-status { display: block; font-size: 0.72rem; color: var(--success); margin-top: 1px; }
.chat-close {
    background: none; border: none;
    color: var(--muted); font-size: 1rem; cursor: pointer;
    padding: 2px 6px; border-radius: 4px;
    transition: color var(--transition);
}
.chat-close:hover { color: var(--white); }

.chat-messages {
    padding: 16px; overflow-y: auto;
    max-height: 300px; min-height: 160px;
    display: flex; flex-direction: column; gap: 10px;
}
.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem; line-height: 1.5;
}
.chat-msg.bot {
    background: var(--dark); color: var(--white);
    border-bottom-left-radius: 4px; align-self: flex-start;
}
.chat-msg.user {
    background: var(--gold); color: var(--black);
    border-bottom-right-radius: 4px; align-self: flex-end;
    font-weight: 500;
}
.chat-msg.typing { color: var(--muted); font-style: italic; }

.chat-input-row {
    display: flex; gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
}
.chat-input-row input {
    flex: 1;
    background: var(--dark); border: 1px solid var(--border);
    border-radius: 8px; padding: 9px 12px;
    color: var(--white); font-size: 0.88rem; outline: none;
    font-family: var(--font-body);
}
.chat-input-row input:focus { border-color: var(--gold); }
.chat-send {
    background: var(--gold); color: var(--black);
    border: none; border-radius: 8px;
    padding: 9px 16px; font-weight: 600;
    font-size: 0.85rem; cursor: pointer;
    font-family: var(--font-body);
    transition: background var(--transition);
}
.chat-send:hover { background: var(--gold2); }

/* Admin AI Analytics */
.ai-insight-box {
    background: linear-gradient(135deg, rgba(201,168,76,0.07), rgba(201,168,76,0.02));
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 12px; padding: 20px;
    margin-top: 24px;
}
.ai-insight-box h3 {
    font-size: 0.9rem; color: var(--gold);
    font-weight: 600; margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.ai-insight-text {
    color: var(--white); font-size: 0.88rem;
    line-height: 1.8; white-space: pre-wrap;
}
.btn-ai {
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 8px; padding: 9px 18px;
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer; font-family: var(--font-body);
    transition: background var(--transition);
}
.btn-ai:hover { background: rgba(201,168,76,0.25); }

/* Nav AI link */
.nav-ai { color: var(--gold) !important; font-weight: 600 !important; }
.nav-ai:hover { color: var(--gold2) !important; }

/* ===========================
   ENHANCED ADMIN STYLES
   =========================== */

/* Improved Admin Cards */
.admin-card {
    background: rgba(18,18,18,0.58);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.admin-card-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
}

/* Improved Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(224,168,82,0.15);
    color: var(--warn);
}

.status-badge.approved {
    background: rgba(76,175,130,0.15);
    color: var(--success);
}

.status-badge.completed {
    background: rgba(100,150,255,0.15);
    color: #6496ff;
}

.status-badge.cancelled {
    background: rgba(224,82,82,0.15);
    color: var(--danger);
}

/* Improved Form Styles */
.admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
}

.admin-form-group.full-width {
    grid-column: 1 / -1;
}

.admin-form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    outline: none;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

/* Improved Admin Action Buttons */
.admin-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    transition: all var(--transition);
}

.admin-action-btn.primary {
    background: rgba(201,168,76,0.2);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.admin-action-btn.primary:hover {
    background: rgba(201,168,76,0.3);
}

.admin-action-btn.success {
    background: rgba(76,175,130,0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.admin-action-btn.success:hover {
    background: rgba(76,175,130,0.3);
}

.admin-action-btn.danger {
    background: rgba(224,82,82,0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.admin-action-btn.danger:hover {
    background: rgba(224,82,82,0.3);
}

.admin-action-btn.info {
    background: rgba(100,150,255,0.2);
    color: #6496ff;
    border: 1px solid #6496ff;
}

.admin-action-btn.info:hover {
    background: rgba(100,150,255,0.3);
}

/* Improved Data Display */
.data-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding: 16px;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: border-color var(--transition);
}

.data-row:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.02);
}

.data-cell {
    display: flex;
    flex-direction: column;
}

.data-cell-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.data-cell-value {
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 500;
}

/* Dashboard Stats Enhancement */
.stat-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    background: rgba(201,168,76,0.03);
}

/* Alert Messages */
.admin-alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.admin-alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.admin-alert.success {
    background: rgba(76,175,130,0.1);
    border: 1px solid rgba(76,175,130,0.3);
    color: var(--success);
}

.admin-alert.warning {
    background: rgba(224,168,82,0.1);
    border: 1px solid rgba(224,168,82,0.3);
    color: var(--warn);
}

.admin-alert.danger {
    background: rgba(224,82,82,0.1);
    border: 1px solid rgba(224,82,82,0.3);
    color: var(--danger);
}

.admin-alert.info {
    background: rgba(100,150,255,0.1);
    border: 1px solid rgba(100,150,255,0.3);
    color: #6496ff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* Loading State */
.loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.9rem;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(201,168,76,0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive Admin Enhancements */
@media (max-width: 768px) {
    .admin-form {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .data-row {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table td {
        padding: 8px 12px;
    }
    
    .admin-action-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* ===========================
   CUSTOMER GLASS REDESIGN
   =========================== */
.app-hero {
    min-height: 92vh;
}

.glass-band {
    background: rgba(10,10,10,0.34);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.page-section {
    min-height: 100vh;
    padding-top: 112px;
}

.phase-grid,
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.phase-card,
.quick-link,
.service-card,
.form-card,
.check-card,
.contact-form,
.info-item,
.modal,
.chatbot-window {
    background: rgba(18,18,18,0.58);
    border-color: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}

.phase-card {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 22px;
}

.phase-card span {
    display: inline-flex;
    color: var(--black);
    background: var(--gold);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.phase-card h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 8px;
}

.phase-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

.split-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 36px;
    align-items: start;
}

.section-desc.left {
    margin-left: 0;
    text-align: left;
}

.quick-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 104px;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 20px;
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.quick-link:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.08);
    transform: translateY(-2px);
}

.quick-link strong {
    color: var(--white);
    font-size: 1rem;
}

.quick-link span {
    color: var(--muted);
    font-size: 0.85rem;
}

.center-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.service-card {
    cursor: pointer;
}

.service-card.selected {
    border-color: var(--gold);
    background: rgba(201,168,76,0.1);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 28px;
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: 999px;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.form-group input,
.form-group select,
.form-group textarea,
.chat-input-row input {
    background-color: rgba(10,10,10,0.52);
    border-color: rgba(255,255,255,0.14);
}

@media (max-width: 900px) {
    .split-panel {
        grid-template-columns: 1fr;
    }
}

/* ---- GALLERY ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-card {
    background: rgba(18,18,18,0.58);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,0.28);
    transition: border-color var(--transition), transform var(--transition);
}

.gallery-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.gallery-image {
    height: 200px;
    background-size: cover;
    background-position: center top;
}

.gallery-body {
    padding: 20px;
}

.gallery-topline {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.gallery-body h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 8px;
}

.gallery-body p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--white);
    margin-bottom: 10px;
}

.gallery-meta span:last-child {
    color: var(--gold);
    font-weight: 600;
}

.gallery-note {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-book-btn {
    margin-top: 16px;
    font-size: 0.85rem;
    padding: 10px 16px;
}

/* ---- BOOKING PRE-SELECTION ---- */
.preselect-banner {
    display: none;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--white);
    text-align: center;
}

.preselect-banner.visible {
    display: block;
}

.preselect-banner .preselect-label {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 6px;
}

.preselect-banner strong {
    color: var(--gold);
}

.preselect-banner .preselect-sep {
    color: var(--muted);
    margin: 0 12px;
}

/* ---- CONTACT PAGE ---- */
.contact-section {
    min-height: 100vh;
    padding: 112px 24px 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
    gap: 32px;
    margin-top: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-item {
    padding: 20px;
    background: rgba(18,18,18,0.58);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}

.info-item:nth-child(3),
.info-item:nth-child(4) {
    grid-column: span 1;
}

.info-icon {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.info-item h4 {
    color: var(--gold);
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.info-item p {
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.info-item a {
    color: var(--gold);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.contact-form {
    padding: 28px 32px;
    background: rgba(18,18,18,0.58);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}

.contact-form h3 {
    color: var(--white);
    margin-bottom: 24px;
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.contact-form-grid {
    margin-bottom: 20px;
}

.hours-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.85rem;
}

.success-msg,
.error-msg {
    display: none;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.success-msg {
    background: rgba(76,175,130,0.1);
    border: 1px solid rgba(76,175,130,0.3);
    color: var(--success);
}

.error-msg {
    background: rgba(224,82,82,0.1);
    border: 1px solid rgba(224,82,82,0.3);
    color: var(--danger);
}

.shop-hours {
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.8;
}

.shop-hours strong {
    color: var(--gold);
}

.shop-hours p {
    margin-bottom: 8px;
}

/* ---- GALLERY FILTERS & FLOW ---- */
.gallery-filters {
    max-width: 720px;
    margin: 0 auto 24px;
}

.gallery-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    background: rgba(18,18,18,0.58);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
}

.gallery-filter-form .form-group {
    flex: 1;
    min-width: 180px;
    margin: 0;
}

.gallery-clear-btn {
    padding: 12px 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.gallery-barber {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.booking-flow-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    padding: 14px 20px;
    margin-bottom: 28px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--muted);
}

.booking-flow-hint .flow-arrow {
    color: var(--gold);
    font-weight: 700;
}

.booking-flow-hint .flow-step.active {
    color: var(--gold);
    font-weight: 600;
}

/* ---- BOOKING STYLE PICKER ---- */
.style-picker-section {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.style-picker-title {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.style-picker-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.booking-form-title {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.style-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.style-picker-item {
    position: relative;
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition);
    background: var(--dark);
}

.style-picker-item:hover {
    border-color: rgba(201,168,76,0.5);
    transform: translateY(-2px);
}

.style-picker-item.selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}

.style-picker-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.style-picker-item span {
    display: block;
    padding: 8px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    line-height: 1.3;
}

.style-picker-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 20px;
}

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px 20px;
    }

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

    .gallery-filter-form {
        flex-direction: column;
    }

    .gallery-filter-form .form-group {
        width: 100%;
    }
}

/* ---- ABOUT PAGE ---- */
.about-section {
    padding-top: 112px;
}

.about-story {
    max-width: 780px;
    margin: 0 auto 48px;
}

.about-story-card {
    background: rgba(18,18,18,0.58);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 36px 40px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}

.about-story-card h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.about-story-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-story-card p:last-child {
    margin-bottom: 0;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: border-color var(--transition), transform var(--transition);
}

.about-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.about-card-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 10px;
}

.about-card p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.about-info {
    background: rgba(18,18,18,0.58);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 36px 40px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-info h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 28px;
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-info-item .about-info-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 6px;
}

.about-info-item p {
    color: var(--white);
    font-size: 0.95rem;
    margin: 0;
}

.about-info-item a {
    color: var(--gold);
}

.about-info-item a:hover {
    text-decoration: underline;
}

.center-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .about-story-card,
    .about-info {
        padding: 24px 20px;
    }
}
