:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --primary: #d4af37; /* Gold */
    --primary-hover: #b5952f;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --border: #333333;
}

* {
    margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; -webkit-tap-highlight-color: transparent;
}
body { background: var(--bg-dark); color: var(--text-main); }
#app { display: flex; flex-direction: column; height: 100vh; max-width: 500px; margin: 0 auto; position: relative; }

header {
    display: flex; justify-content: space-between; align-items: center; padding: 20px;
    border-bottom: 1px solid var(--border); background: var(--bg-dark); z-index: 10;
}
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; }
.logo span { color: var(--primary); }
.logo i { color: var(--primary); margin-right: 5px; }

.user-pill {
    background: var(--bg-card); padding: 8px 16px; border-radius: 20px;
    font-size: 0.9rem; font-weight: 600; border: 1px solid var(--border);
}

main { flex: 1; overflow-y: auto; padding: 20px; padding-bottom: 100px; }
.view { display: none; animation: fadeIn 0.4s ease-out; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.section-title { font-size: 1.8rem; margin-bottom: 20px; font-weight: 800; }

.service-card {
    background: var(--bg-card); border-radius: 20px; overflow: hidden; margin-bottom: 20px;
    border: 1px solid var(--border);
}
.service-img { height: 200px; width: 100%; object-fit: cover; }
.service-info { padding: 20px; }
.service-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.service-title { font-size: 1.3rem; font-weight: 700; }
.service-price { color: var(--primary); font-size: 1.2rem; font-weight: 800; }
.service-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; }

.btn-primary {
    width: 100%; padding: 15px; border-radius: 12px; background: var(--primary); color: #000;
    font-weight: 800; font-size: 1.1rem; border: none; cursor: pointer; transition: 0.3s;
}
.btn-primary.disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }

/* Booking Modal */
.modal {
    display: none; position: fixed; top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.8); z-index: 100; align-items: flex-end;
}
.modal.active { display: flex; }
.modal-content {
    background: var(--bg-card); width: 100%; padding: 25px; border-radius: 24px 24px 0 0;
    animation: slideUp 0.3s; border-top: 1px solid var(--primary);
}
@keyframes slideUp { from {transform: translateY(100%);} to {transform: translateY(0);} }
.modal-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.close-modal { background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer;}
.time-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 15px 0 25px; }
.time-btn {
    padding: 12px; background: transparent; border: 1px solid var(--border); color: var(--text-main);
    border-radius: 10px; font-weight: 600; cursor: pointer;
}
.time-btn.selected { background: var(--primary); color: #000; border-color: var(--primary); }
.time-btn.disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

/* Barber Panel */
.appointment-item {
    background: var(--bg-card); padding: 20px; border-radius: 16px; margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}
.a-time { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-bottom: 5px; }
.a-client { font-size: 1.1rem; font-weight: 600; margin-bottom: 5px; }
.a-service { color: var(--text-muted); font-size: 0.9rem; }
.btn-finish {
    margin-top: 15px; width: 100%; padding: 10px; background: rgba(212, 175, 55, 0.1);
    color: var(--primary); border: 1px solid var(--primary); border-radius: 8px; cursor: pointer;
}

/* Bottom Nav */
.bottom-nav {
    position: absolute; bottom: 0; left: 0; right: 0; background: var(--bg-dark);
    display: flex; justify-content: space-around; padding: 10px; border-top: 1px solid var(--border);
}
.nav-item {
    background: none; border: none; color: var(--text-muted); display: flex; flex-direction: column;
    align-items: center; gap: 5px; font-size: 0.8rem; padding: 10px; cursor: pointer;
}
.nav-item.active { color: var(--primary); }
.nav-item i { font-size: 1.4rem; }
