/* ============================================
   EL NIÑO BARBER SHOP — Premium Dark Gold UI
   ============================================ */

:root {
    --gold: #cba85a;
    --gold-bright: #e8c97a;
    --gold-dim: #8a6f35;
    --gold-glow: rgba(203, 168, 90, 0.35);
    --gold-light: rgba(203, 168, 90, 0.12);
    --bg-void: #050505;
    --bg-dark: #0d0d0d;
    --bg-card: rgba(18, 16, 10, 0.82);
    --bg-element: rgba(30, 26, 16, 0.65);
    --text-white: #f5f0e8;
    --text-muted: #8a8070;
    --text-gold: var(--gold);
    --border: rgba(203, 168, 90, 0.18);
    --border-bright: rgba(203, 168, 90, 0.5);
    --red: #c0392b;
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --shadow-gold: 0 0 25px rgba(203, 168, 90, 0.25);
    --shadow-deep: 0 8px 40px rgba(0, 0, 0, 0.85);
    --font-display: 'Cinzel', serif;
    --font-title: 'Bebas Neue', sans-serif;
    --font-body: 'Raleway', sans-serif;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --trans: all 0.35s var(--ease);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-void);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ======== VIDEO BACKGROUND ======== */
.video-bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: saturate(0.4) brightness(0.6);
}

.faux-video-bg {
    background:
        radial-gradient(circle at 20% 20%, rgba(203, 168, 90, 0.18), transparent 28%),
        radial-gradient(circle at 80% 15%, rgba(203, 168, 90, 0.09), transparent 24%),
        radial-gradient(circle at 55% 65%, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(145deg, #0f0d09 0%, #050505 42%, #130f08 100%);
    opacity: 1;
    filter: none;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at top, rgba(203,168,90,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at bottom, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.7) 60%),
        linear-gradient(180deg, rgba(5,5,5,0.6) 0%, rgba(5,5,5,0.3) 40%, rgba(5,5,5,0.9) 100%);
}

.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    opacity: 0.4;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.22;
    pointer-events: none;
}

.orb-a {
    width: 260px;
    height: 260px;
    top: 8%;
    left: -60px;
    background: rgba(203, 168, 90, 0.28);
}

.orb-b {
    width: 320px;
    height: 320px;
    right: -90px;
    bottom: 10%;
    background: rgba(120, 90, 35, 0.24);
}

/* ======== PARTICLES ======== */
.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.2; }
    100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

/* ======== HEADER ======== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 30px rgba(0,0,0,0.8), 0 1px 0 rgba(203,168,90,0.1);
}

.header-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    padding: 2px;
    background: rgba(203,168,90,0.08);
    box-shadow: 0 0 12px var(--gold-glow), inset 0 0 8px rgba(203,168,90,0.1);
    flex-shrink: 0;
    overflow: hidden;
    animation: pulseRing 3s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% { box-shadow: 0 0 12px var(--gold-glow), inset 0 0 8px rgba(203,168,90,0.1); }
    50% { box-shadow: 0 0 22px rgba(203,168,90,0.5), inset 0 0 12px rgba(203,168,90,0.2); }
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.brand-logo-mark {
    display: none;
}


.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.brand-sub {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.since {
    color: var(--gold-dim);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(20,200,80,0.1);
    border: 1px solid rgba(20,200,80,0.25);
    border-radius: var(--radius-full);
    padding: 0.28rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #4ade80;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.login-btn {
    background: var(--gold-light);
    border: 1px solid var(--border);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--trans);
}

.login-btn:hover {
    background: var(--gold-light);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.status-badge.admin-status {
    background: rgba(203, 168, 90, 0.12);
    border-color: rgba(203, 168, 90, 0.32);
    color: var(--gold);
}

.status-badge.admin-status .status-dot {
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

/* ======== MAIN ======== */
.main-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 1rem 5rem;
    min-height: calc(100vh - 70px);
}

.main-container.admin-mode {
    max-width: 980px;
}

/* ======== HERO LANDING ======== */
.landing-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
    animation: fadeSlideDown 0.6s var(--ease) both;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gold-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-badge i { font-size: 0.65rem; color: var(--gold-bright); }

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(2.8rem, 10vw, 4rem);
    line-height: 0.95;
    color: var(--text-white);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.hero-accent {
    color: var(--gold);
    text-shadow: 0 0 40px var(--gold-glow);
    -webkit-text-stroke: 1px rgba(203,168,90,0.3);
}

.hero-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 500;
}

.hero-subtitle i { color: var(--gold); margin-right: 0.3rem; }

/* ======== SECTION DIVIDER ======== */
.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1.2rem;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-label span {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 3px;
    white-space: nowrap;
}

/* ======== CATEGORIES ======== */
.categories-carousel {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 0.75rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-carousel::-webkit-scrollbar { display: none; }

.category-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-light), transparent);
    opacity: 0;
    transition: var(--trans);
}

.category-item:hover { color: var(--text-white); border-color: var(--border-bright); }
.category-item:hover::before { opacity: 1; }

.category-item i {
    font-size: 1rem;
    transition: var(--trans);
}

.category-item.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 20px var(--gold-glow), 0 0 0 1px rgba(203,168,90,0.3);
    font-weight: 700;
}

.category-item.active i { color: #000; }

/* ======== SERVICES ======== */
.services-section { animation: fadeSlideUp 0.4s var(--ease) both; }

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.services-cat-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center; /* Alineación Fix */
    align-items: center; /* Alineación Fix */
    position: relative;
    overflow: hidden;
    transition: var(--trans);
    backdrop-filter: blur(12px);
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: var(--trans);
}

.service-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.6), 0 0 20px var(--gold-glow);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gold-light);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.service-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.service-meta i { color: var(--gold); font-size: 0.65rem; }

.service-price {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: auto;
}

.btn-agendar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-bright);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    transition: var(--trans);
    margin-top: 0.5rem;
}

.btn-agendar:hover, .btn-agendar:focus {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    box-shadow: 0 4px 15px var(--gold-glow);
    transform: none;
}

/* ======== VIEW HEADER ======== */
.view-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    animation: fadeIn 0.3s var(--ease);
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: absolute;
    left: 0;
    transition: color 0.2s;
    letter-spacing: 0.3px;
    padding: 0.3rem 0;
}

.back-btn i { font-size: 0.75rem; }
.back-btn:hover { color: var(--gold); }

.view-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ======== BOOKING PROGRESS ======== */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.progress-step i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    background: var(--bg-dark);
    transition: var(--trans);
}

.progress-step span {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--trans);
}

.progress-step.active i {
    background: var(--gold-light);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}

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

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

.progress-step.done span { color: var(--gold-dim); }

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 0.5rem;
    margin-bottom: 1.2rem;
    border-radius: 2px;
    max-width: 50px;
    transition: var(--trans);
}

.progress-line.active, .progress-line.done {
    background: linear-gradient(90deg, var(--gold), var(--gold-dim));
}

.choose-hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ======== PROFESSIONALS ======== */
.professionals-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    animation: fadeSlideUp 0.4s var(--ease) both;
}

.professional-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--trans);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.professional-card::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    opacity: 0;
    transition: var(--trans);
}

.professional-card:hover {
    border-color: var(--border-bright);
    transform: translateX(4px);
    box-shadow: var(--shadow-gold);
}

.professional-card:hover::after { opacity: 1; }

.professional-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
    flex-shrink: 0;
}

.professional-info { flex: 1; }

.professional-name {
    font-weight: 700;
    color: var(--text-white);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.professional-role {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.professional-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: var(--trans);
}

.professional-card:hover .professional-arrow {
    color: var(--gold);
    transform: translateX(3px);
}

/* ======== CALENDAR ======== */
.calendar-container { animation: fadeSlideUp 0.4s var(--ease) both; }

.date-selector {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
}

.week-scroller-wrap {
    margin-bottom: 2rem;
}

.week-scroller-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.week-scroller-label i {
    color: var(--gold);
}

.week-scroller {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0.2rem 1.2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.week-scroller::-webkit-scrollbar {
    display: none;
}

.day-card {
    flex: 0 0 70px;
    height: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--trans);
    scroll-snap-align: start;
    backdrop-filter: blur(10px);
    position: relative;
}

.day-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

.day-card.selected {
    background: linear-gradient(145deg, var(--gold), var(--gold-dim));
    border-color: transparent;
    box-shadow: 0 8px 25px var(--gold-glow);
}

.day-card.selected span {
    color: #000 !important;
    font-weight: 700;
}

.day-name {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.day-number {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1;
}

.day-month {
    font-size: 0.6rem;
    color: var(--gold-dim);
    margin-top: 0.3rem;
    font-weight: 600;
    text-transform: uppercase;
}

.day-card.today::after {
    content: 'Hoy';
    position: absolute;
    top: -8px;
    background: var(--gold);
    color: #000;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.day-card.past {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(1);
}


.time-label-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    animation: fadeIn 0.4s ease;
}

.time-slot {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--trans);
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.time-slot:not(.disabled):hover {
    border-color: var(--gold);
    background: var(--gold-light);
    color: var(--gold);
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--gold-glow);
}

.time-slot.selected {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    font-weight: 800;
    box-shadow: 0 4px 20px var(--gold-glow);
    transform: scale(1.05);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: var(--text-muted);
    position: relative;
}

.time-slot.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--text-muted);
    opacity: 0.5;
}

.proceed-wrap {
    margin-top: 1.5rem;
    animation: fadeSlideUp 0.3s var(--ease) both;
}

/* ======== BUTTONS ======== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-body);
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--trans);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-block { display: flex; width: 100%; padding: 0.9rem; font-size: 0.9rem; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-dim));
    color: #000;
    font-weight: 800;
    box-shadow: 0 4px 20px var(--gold-glow), 0 0 0 1px rgba(203,168,90,0.2);
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s var(--ease);
}

.btn-gold:hover::before { left: 100%; }

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--gold-glow), 0 0 0 2px var(--gold);
}

.btn-gold:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ======== MODALS ======== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
    transition: opacity 0.3s ease;
}

@media (min-height: 600px) {
    .modal-overlay { align-items: center; }
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal {
    background: linear-gradient(180deg, rgba(20, 17, 10, 0.98), rgba(12, 10, 5, 0.99));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-deep), 0 0 60px rgba(203,168,90,0.1);
    overflow: hidden;
    transform: translateY(0) scale(1);
    transition: transform 0.4s var(--ease);
    position: relative;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.modal-overlay.hidden .modal {
    transform: translateY(30px) scale(0.96);
}

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

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-icon {
    color: var(--gold);
    font-size: 1rem;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.close-modal-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--trans);
}

.close-modal-btn:hover {
    background: rgba(192,57,43,0.15);
    border-color: var(--red);
    color: var(--red);
}

.modal-body { padding: 1.5rem; }

.modal-footer {
    padding: 1.25rem 1.5rem;
    background: rgba(203,168,90,0.04);
    border-top: 1px solid var(--border);
}

/* ======== SUMMARY ======== */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(203,168,90,0.1);
}

.summary-item:last-child { border-bottom: none; }

.summary-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.summary-value {
    color: var(--text-white);
    font-weight: 700;
    text-align: right;
    font-size: 0.9rem;
    max-width: 65%;
    line-height: 1.4;
}

.summary-total {
    font-family: var(--font-display);
    color: var(--gold) !important;
    font-size: 1.3rem !important;
}

/* ======== OTP / PHONE ======== */
.otp-desc {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.phone-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-element);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 1rem;
    transition: var(--trans);
}

.phone-input-wrap:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.phone-flag {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    border-right: 1px solid var(--border);
    padding-right: 0.75rem;
}

.phone-input {
    flex: 1;
    padding: 0.85rem 0;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    outline: none;
    letter-spacing: 1px;
}

.phone-input::placeholder { color: var(--text-muted); font-weight: 400; }

/* ======== SUCCESS SCREEN ======== */
.success-card {
    background: linear-gradient(160deg, rgba(20,17,10,0.98), rgba(8,8,4,0.99));
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 380px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-deep), 0 0 80px var(--gold-glow);
    animation: successPop 0.6s var(--ease) both;
}

@keyframes successPop {
    from { opacity: 0; transform: scale(0.8) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.success-icon-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
}

.success-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--gold);
    animation: spinRing 4s linear infinite;
    box-shadow: 0 0 20px var(--gold-glow);
}

.success-ring::before {
    content: '';
    position: absolute;
    top: -1px; left: 30%;
    width: 25px; height: 4px;
    background: var(--bg-dark);
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.success-scissors {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow);
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.success-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ======== FORMS ======== */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-white);
    background: var(--bg-element);
    transition: var(--trans);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

/* ======== UTILITIES ======== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.hidden { display: none !important; }

.empty-card {
    grid-column: 1 / -1;
    background: rgba(18, 16, 10, 0.82);
    border: 1px dashed var(--border-bright);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.text-green { color: #25d366; }

/* ======== ANIMATIONS ======== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ======== ADMIN VIEW ======== */
.admin-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeSlideUp 0.35s var(--ease) both;
}

.admin-hero-card,
.admin-panel-shell {
    background: linear-gradient(180deg, rgba(17, 14, 9, 0.94), rgba(10, 8, 5, 0.96));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(18px);
}

.admin-hero-card {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.admin-kicker {
    font-size: 0.72rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.45rem;
}

.admin-title {
    font-family: var(--font-display);
    color: var(--text-white);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    margin-bottom: 0.35rem;
}

.admin-copy {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 540px;
    line-height: 1.6;
}

.admin-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-admin-ghost,
.admin-icon-btn {
    border: 1px solid var(--border-bright);
    background: rgba(203, 168, 90, 0.05);
    color: var(--gold);
}

.btn-admin-ghost:hover,
.admin-icon-btn:hover {
    background: rgba(203, 168, 90, 0.14);
    border-color: var(--gold);
}

.admin-panel-intro {
    padding: 1.35rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 1rem;
    align-items: center;
}

.admin-panel-intro h3,
.admin-panel-head h3 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.admin-note {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: 0.35rem;
}

.admin-whatsapp-group {
    margin-bottom: 0;
}

.admin-tabs {
    display: inline-flex;
    gap: 0.55rem;
    padding: 0.35rem;
    background: rgba(10, 10, 10, 0.82);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
}

.admin-tab-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0.7rem 1.15rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--trans);
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-dim));
    color: #000;
    box-shadow: 0 4px 18px var(--gold-glow);
}

.admin-tab-pane {
    display: none;
    padding: 1.35rem;
}

.admin-tab-pane.active {
    display: block;
}

.admin-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-filter-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.admin-filter-row label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    min-width: 135px;
}

.admin-select {
    max-width: 260px;
}

.admin-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.05rem;
    background: rgba(8, 8, 8, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.admin-item-copy h4 {
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.admin-item-copy p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.admin-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-price {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1rem;
    white-space: nowrap;
}

.admin-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--trans);
}

.admin-empty {
    border-style: solid;
}

.admin-modal {
    max-width: 460px;
}

.admin-modal-footer {
    display: flex;
    gap: 0.8rem;
}

.admin-modal-save {
    flex: 1;
}

.admin-btn-danger {
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.4);
    color: #f8b0a7;
}

.admin-btn-danger:hover {
    background: rgba(192, 57, 43, 0.24);
    border-color: rgba(192, 57, 43, 0.8);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 380px) {
    .services-grid { grid-template-columns: 1fr; }
    .time-slots-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 2.4rem; }
}

@media (max-width: 340px) {
    .time-slots-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .admin-hero-card,
    .admin-panel-intro,
    .admin-panel-head,
    .admin-filter-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .admin-tabs {
        width: 100%;
    }

    .admin-tab-btn {
        flex: 1;
        text-align: center;
    }

    .admin-select {
        max-width: none;
    }

    .admin-item-actions {
        width: 100%;
        justify-content: space-between;
    }

    .admin-list-item {
        flex-direction: column;
        align-items: stretch;
    }
}
/* ============================================
   EL NIÑO BARBER SHOP — Admin Panel CSS
   ============================================ */

:root {
    --gold: #cba85a;
    --gold-bright: #e8c97a;
    --gold-dim: #7a6030;
    --gold-glow: rgba(203, 168, 90, 0.3);
    --gold-light: rgba(203, 168, 90, 0.1);
    --gold-mid: rgba(203, 168, 90, 0.18);
    --bg-void: #060606;
    --bg-dark: #0c0c0c;
    --bg-card: #111108;
    --bg-card2: #161410;
    --bg-element: rgba(30, 28, 18, 0.9);
    --sidebar-w: 240px;
    --text-white: #f0ead8;
    --text-muted: #6b6450;
    --text-dim: #9a8f78;
    --border: rgba(203, 168, 90, 0.12);
    --border-mid: rgba(203, 168, 90, 0.25);
    --green: #22c55e;
    --green-bg: rgba(34,197,94,0.1);
    --red: #ef4444;
    --red-bg: rgba(239,68,68,0.1);
    --blue: #60a5fa;
    --blue-bg: rgba(96,165,250,0.1);
    --orange: #f97316;
    --orange-bg: rgba(249,115,22,0.1);
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --font-display: 'Cinzel', serif;
    --font-title: 'Bebas Neue', sans-serif;
    --font-body: 'Raleway', sans-serif;
    --trans: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.6);
    --shadow-gold: 0 0 20px rgba(203,168,90,0.2);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==============================
   LOGIN SCREEN
   ============================== */
.login-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    background: var(--bg-void);
    overflow: hidden;
}

.login-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.login-card {
    position: relative;
    background: var(--bg-card2);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: var(--shadow-card), 0 0 60px rgba(203,168,90,0.08);
    animation: loginPop 0.6s cubic-bezier(0.23,1,0.32,1) both;
}

@keyframes loginPop {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}

.login-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    margin: 0 auto 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-gold);
    padding: 4px;
    background: var(--gold-light);
}

.login-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.admin-mark-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(232, 201, 122, 0.95), rgba(122, 96, 48, 0.9));
    color: #120f08;
    font-family: var(--font-title);
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.admin-mark-logo-small {
    font-size: 0.95rem;
}

.login-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}

.login-sub {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

.login-divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

.login-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.login-field {
    position: relative;
    margin-bottom: 0.75rem;
}

.login-field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-dim);
    font-size: 0.85rem;
}

.login-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: var(--bg-element);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--trans);
    letter-spacing: 2px;
}

.login-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-light);
}

.login-error {
    font-size: 0.78rem;
    color: var(--red);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: var(--red-bg);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    text-align: left;
}

.btn-login {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-dim));
    border: none;
    border-radius: var(--radius-md);
    color: #000;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--trans);
    box-shadow: 0 4px 20px var(--gold-glow);
    margin-bottom: 1rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--gold-glow);
}

.login-back {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.login-back:hover { color: var(--gold); }

.login-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 auto;
}

/* ==============================
   ADMIN APP LAYOUT
   ============================== */
.admin-app {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-card2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 50;
    transition: transform 0.3s cubic-bezier(0.23,1,0.32,1);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-logo-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    overflow: hidden;
    padding: 2px;
    background: var(--gold-light);
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
}

.sidebar-logo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.sidebar-brand {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.sidebar-role {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-section-label {
    font-size: 0.58rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 0.75rem 0.75rem 0.4rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
    position: relative;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.nav-item i { font-size: 0.9rem; width: 18px; text-align: center; }

.nav-item:hover {
    color: var(--text-white);
    background: var(--gold-light);
}

.nav-item.active {
    color: var(--gold);
    background: var(--gold-mid);
}

.nav-item.active i { color: var(--gold); }

.nav-indicator {
    position: absolute;
    right: 0; top: 20%; bottom: 20%;
    width: 3px;
    background: var(--gold);
    border-radius: 3px 0 0 3px;
    display: none;
}

.nav-item.active .nav-indicator { display: block; }

.nav-badge {
    margin-left: auto;
    background: var(--gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
    display: none;
}

.nav-badge.visible { display: block; }

.sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-secondary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.65rem;
    background: rgba(203, 168, 90, 0.06);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--trans);
    letter-spacing: 0.3px;
}

.sidebar-secondary:hover {
    background: rgba(203, 168, 90, 0.14);
    border-color: var(--gold);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
    letter-spacing: 0.3px;
}

.sidebar-logout:hover { color: var(--red); border-color: rgba(239,68,68,0.3); background: var(--red-bg); }

/* MAIN */
.admin-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* TOPBAR */
.topbar {
    height: 60px;
    background: rgba(10,10,7,0.95);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.topbar-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: color 0.2s;
}

.topbar-menu-btn:hover { color: var(--gold); }

.topbar-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    flex: 1;
}

.topbar-right { display: flex; align-items: center; gap: 1rem; }

.topbar-back-btn {
    white-space: nowrap;
}

.topbar-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #000;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
}

/* VIEW CONTAINER */
.view-container {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    animation: viewFade 0.3s ease both;
}

@keyframes viewFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==============================
   SHARED COMPONENTS
   ============================== */
.view-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.view-headline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 1px;
}

.view-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* Cards */
.card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: var(--trans);
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
}

.card:hover { border-color: var(--border-mid); box-shadow: var(--shadow-card); }

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: var(--trans);
}

.stat-card:hover { border-color: var(--border-mid); transform: translateY(-2px); box-shadow: var(--shadow-card); }

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
}

.stat-card.gold::after { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.stat-card.green::after { background: linear-gradient(90deg, transparent, var(--green), transparent); }
.stat-card.blue::after { background: linear-gradient(90deg, transparent, var(--blue), transparent); }
.stat-card.orange::after { background: linear-gradient(90deg, transparent, var(--orange), transparent); }

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.stat-icon.gold { background: var(--gold-light); color: var(--gold); }
.stat-icon.green { background: var(--green-bg); color: var(--green); }
.stat-icon.blue { background: var(--blue-bg); color: var(--blue); }
.stat-icon.orange { background: var(--orange-bg); color: var(--orange); }

.stat-value {
    font-family: var(--font-title);
    font-size: 2rem;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-value.gold { color: var(--gold); }
.stat-value.green { color: var(--green); }
.stat-value.blue { color: var(--blue); }
.stat-value.orange { color: var(--orange); }

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-change {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.4rem;
}

.stat-change.up { color: var(--green); }
.stat-change.dn { color: var(--red); }

/* Tables */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

thead tr {
    border-bottom: 1px solid var(--border);
}

thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid rgba(203,168,90,0.06);
    transition: background 0.2s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gold-light); }

tbody td {
    padding: 0.85rem 1rem;
    color: var(--text-dim);
    font-weight: 500;
    vertical-align: middle;
}

tbody td strong { color: var(--text-white); font-weight: 700; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-pending { background: var(--orange-bg); color: var(--orange); border: 1px solid rgba(249,115,22,0.2); }
.badge-confirmed { background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(96,165,250,0.2); }
.badge-done { background: var(--green-bg); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.badge-cancelled { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.badge-gold { background: var(--gold-light); color: var(--gold); border: 1px solid var(--border-mid); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--trans);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: #000;
    box-shadow: 0 3px 12px var(--gold-glow);
}

.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--gold-glow); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-mid);
    color: var(--gold);
}

.btn-outline:hover { background: var(--gold-light); border-color: var(--gold); }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
}

.btn-ghost:hover { color: var(--text-white); border-color: var(--border-mid); }

.btn-danger {
    background: var(--red-bg);
    border: 1px solid rgba(239,68,68,0.3);
    color: var(--red);
}

.btn-danger:hover { background: rgba(239,68,68,0.2); }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.7rem; }
.btn-block { display: flex; width: 100%; padding: 0.85rem; justify-content: center; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Icon Btn */
.icon-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--trans);
}

.icon-btn:hover { color: var(--gold); border-color: var(--border-mid); background: var(--gold-light); }
.icon-btn.danger:hover { color: var(--red); border-color: rgba(239,68,68,0.3); background: var(--red-bg); }

/* ==============================
   APPOINTMENT CARDS
   ============================== */
.appt-list { display: flex; flex-direction: column; gap: 0.75rem; }

.appt-card {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--trans);
    position: relative;
    overflow: hidden;
}

.appt-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
}

.appt-card.pending::before { background: var(--orange); }
.appt-card.confirmed::before { background: var(--blue); }
.appt-card.done::before { background: var(--green); }
.appt-card.cancelled::before { background: var(--red); }

.appt-card:hover { border-color: var(--border-mid); box-shadow: var(--shadow-card); }

.appt-time {
    text-align: center;
    flex-shrink: 0;
    width: 52px;
}

.appt-time-val {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--gold);
    line-height: 1;
    letter-spacing: 1px;
}

.appt-time-date {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

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

.appt-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appt-detail {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.appt-detail i { color: var(--gold); margin-right: 3px; }

.appt-price {
    font-family: var(--font-title);
    font-size: 1rem;
    color: var(--green);
    letter-spacing: 1px;
    flex-shrink: 0;
}

.appt-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* ==============================
   FORMS (MODAL)
   ============================== */
.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-element);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--trans);
}

.form-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-light); }

select.form-input option { background: #1a1a0e; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ==============================
   FINANCE / CHART AREA
   ============================== */
.chart-area {
    width: 100%;
    height: 200px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 6px;
    padding: 1rem 0.5rem 0;
}

.chart-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--gold), var(--gold-dim));
    transition: height 0.8s cubic-bezier(0.23,1,0.32,1);
    min-height: 4px;
    position: relative;
    cursor: pointer;
}

.chart-bar:hover { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); }
.chart-bar:hover::after {
    content: attr(data-val);
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.chart-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ==============================
   SCHEDULE GRID
   ============================== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.schedule-slot {
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--trans);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.schedule-slot.available { border-color: rgba(34,197,94,0.2); }
.schedule-slot.unavailable { opacity: 0.4; background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.1); }
.schedule-slot .slot-dot { width: 6px; height: 6px; border-radius: 50%; }
.schedule-slot.available .slot-dot { background: var(--green); }
.schedule-slot.unavailable .slot-dot { background: var(--red); }

/* ==============================
   MODAL UNIVERSAL
   ============================== */
.uni-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 1rem;
    transition: opacity 0.25s;
}

.uni-modal-overlay.hidden { opacity: 0; pointer-events: none; }

.uni-modal {
    background: var(--bg-card2);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-card), 0 0 60px rgba(203,168,90,0.1);
    position: relative;
    animation: modalPop 0.35s cubic-bezier(0.23,1,0.32,1) both;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.93) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.uni-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

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

.uni-modal-header h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.uni-close-btn {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    transition: var(--trans);
}

.uni-close-btn:hover { color: var(--red); border-color: rgba(239,68,68,0.3); background: var(--red-bg); }

.uni-modal-body { padding: 1.5rem; }
.uni-modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ==============================
   TOAST
   ============================== */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 220px;
    box-shadow: var(--shadow-card);
    animation: toastIn 0.35s cubic-bezier(0.23,1,0.32,1) both;
    pointer-events: all;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.success i { color: var(--green); }
.toast.error { border-color: rgba(239,68,68,0.3); }
.toast.error i { color: var(--red); }
.toast.info i { color: var(--gold); }

/* ==============================
   UTILITIES
   ============================== */
.hidden { display: none !important; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,0.8); }
    .admin-main { margin-left: 0; }
    .topbar-menu-btn { display: flex; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .schedule-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 420px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .view-container { padding: 1rem; }
    .schedule-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ======== WEEKLY SCHEDULE ADMIN (NEW) ======== */
.weekly-schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .weekly-schedule-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
    .weekly-schedule-grid { grid-template-columns: repeat(2, 1fr); }
}

.day-toggle {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--trans);
    position: relative;
    overflow: hidden;
}

.day-toggle:hover {
    border-color: var(--border-bright);
    background: var(--bg-element);
    transform: translateY(-2px);
}

.day-toggle.open {
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

.day-toggle.open .day-dot {
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

.day-toggle.closed {
    opacity: 0.6;
    background: rgba(0,0,0,0.5);
    border-style: dashed;
}

.day-toggle.closed .day-dot {
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
}

.day-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-bottom: 0.2rem;
}

.day-name-short {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
}

.day-status {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-toggle.open .day-status { color: var(--gold); }

/* ======== PUBLIC CALENDAR CLOSED STATE ======== */
.day-card.closed {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0,0,0,0.8) !important;
    border: 1px dashed rgba(203,168,90,0.3) !important;
    position: relative;
    overflow: hidden;
}

.day-card.closed .day-name, 
.day-card.closed .day-number, 
.day-card.closed .day-month {
    filter: grayscale(1);
    opacity: 0.6;
}

.closed-tag {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--red);
    text-transform: uppercase;
    background: rgba(192, 57, 43, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    width: max-content;
}

.card-header-simple {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.card-header-simple::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}
