/* ============================================================
   SILA Haar Mode — Professional Appointment System
   Premium Dark Luxury Theme
   ============================================================ */

/* ── CSS Variables ── */
:root {
  /* Core palette */
  --bg: #0f0f12;
  --bg-elevated: #1a1a20;
  --bg-card: #1e1e26;
  --bg-input: #16161c;
  --text: #f0ece6;
  --text-secondary: #9e9aa3;
  --text-muted: #6b6773;
  --border: #2a2a35;
  --border-hover: #3a3a4a;

  /* Accent — warm gold/copper */
  --accent: #c8a55c;
  --accent-light: #d9b974;
  --accent-dark: #a88a4a;
  --accent-glow: rgba(200, 165, 92, 0.2);

  /* Semantic */
  --success: #4caf7a;
  --success-bg: rgba(76, 175, 122, 0.12);
  --danger: #e05555;
  --danger-bg: rgba(224, 85, 85, 0.12);
  --warning: #e8a33e;
  --warning-bg: rgba(232, 163, 62, 0.12);
  --info: #5b9bd5;
  --info-bg: rgba(91, 155, 213, 0.12);

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 30px rgba(200, 165, 92, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }

.lead {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.muted {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Form Elements ── */
input, select, textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239e9aa3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

select option {
  background: var(--bg-card);
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 165, 92, 0.35);
}

.btn:active {
  transform: translateY(0);
}

.btn-light {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-light:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1.5px solid rgba(224, 85, 85, 0.3);
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 8px 25px rgba(224, 85, 85, 0.35);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  box-shadow: 0 8px 25px rgba(76, 175, 122, 0.35);
}

/* ── Status Pills ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pill-success { background: var(--success-bg); color: var(--success); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-warning { background: var(--warning-bg); color: var(--warning); }
.pill-info { background: var(--info-bg); color: var(--info); }

/* ── Messages ── */
.message {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

.message.ok { background: var(--success-bg); color: var(--success); border: 1px solid rgba(76,175,122,0.2); }
.message.err { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(224,85,85,0.2); }

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

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

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

thead {
  background: var(--bg-elevated);
}

th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: rgba(200, 165, 92, 0.04);
}

tbody tr:last-child td { border-bottom: none; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--border-hover);
}

/* ── Stats ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

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

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-content span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.stat-content b {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════
   BOOKING PAGE (Customer)
   ═══════════════════════════════════════════ */

.page-shell {
  min-height: 100vh;
  padding: 40px 24px;
  background: var(--bg);
  position: relative;
}

.page-shell::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Topbar */
.topbar {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 4px 20px rgba(200, 165, 92, 0.3);
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-link {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.admin-link:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
}

/* Booking Layout */
.booking-hero {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

/* Left Panel - Info */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.hero-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.hero-badges span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-contact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-contact span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}



.opening-hours {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.opening-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}

.opening-row:last-child {
  border-bottom: 0;
}

.opening-row strong {
  font-weight: 500;
  color: var(--text-light);
}

.opening-row em {
  font-style: normal;
  color: var(--text-light);
  white-space: nowrap;
}

.opening-row em.closed {
  color: #ff6b6b;
}

.developer-link {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-light);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  transition: var(--transition);
}

.developer-link:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.developer-link span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.developer-link small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Right Panel - Form */
.booking-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.booking-box h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.booking-box .lead {
  margin-bottom: 24px;
  font-size: 0.9rem;
}

/* Form Grid */
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.grid-date {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

/* Slot Panel */
.slot-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.slot-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--text);
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-btn {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.slot-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.slot-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
  box-shadow: 0 4px 15px rgba(200, 165, 92, 0.35);
}

/* Summary */
.summary {
  background: var(--accent-glow);
  border: 1.5px solid rgba(200, 165, 92, 0.2);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
  text-align: center;
}

/* Submit Button */
#submitBtn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
}

/* Load Slots Button */
.load-btn {
  padding: 14px 22px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   ADMIN LAYOUT
   ═══════════════════════════════════════════ */

.admin-page {
  min-height: 100vh;
  background: var(--bg);
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .brand-card {
  padding: 0 24px;
  margin-bottom: 32px;
}

.sidebar .brand-mark {
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.sidebar .brand-title {
  font-size: 1.1rem;
}

/* Admin Nav */
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 14px;
  flex: 1;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.admin-nav a:hover {
  background: rgba(200, 165, 92, 0.08);
  color: var(--text);
}

.admin-nav a.active,
.admin-nav a[aria-current="page"] {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 700;
}

.admin-nav a.active::before,
.admin-nav a[aria-current="page"]::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.admin-nav .sep {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

/* Admin Main */
.admin-main {
  padding: 32px 36px;
  overflow-y: auto;
}

.admin-main .topbar {
  margin: 0 0 28px;
  max-width: none;
}

.admin-main h1 {
  margin-bottom: 4px;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Admin Cards */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

/* Filters / Forms */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.filters > div {
  min-width: 180px;
  flex: 1;
}

/* Module Grid */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.module {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.module:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.module .mi {
  font-size: 2rem;
  margin-bottom: 4px;
}

.module b {
  font-size: 1rem;
  color: var(--text);
}

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

/* ═══════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════ */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  padding: 20px;
}

.login-page::before {
  content: '';
  position: fixed;
  top: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.login-card .brand-card {
  justify-content: center;
  margin-bottom: 32px;
}

.login-card h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: var(--text);
}

.login-card input {
  margin-bottom: 16px;
}

.login-card button {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 1rem;
}

.login-error {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* ═══════════════════════════════════════════
   APPOINTMENT CARDS (Admin Dashboard)
   ═══════════════════════════════════════════ */

.appointment-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
  transition: var(--transition);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

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

.appointment-info h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.appointment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.appointment-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.appointment-actions {
  display: flex;
  gap: 8px;
}

.appointment-actions .btn {
  padding: 8px 14px;
  font-size: 0.8rem;
}

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

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

/* ═══════════════════════════════════════════
   PHOTO GRID
   ═══════════════════════════════════════════ */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.photo-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.photo-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.photo-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.photo-item .photo-info {
  padding: 14px;
}

.photo-item .photo-info b {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
}

.photo-item .photo-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

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

  .sidebar {
    height: auto;
    position: relative;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
  }

  .admin-nav a {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .admin-nav a.active::before,
  .admin-nav a[aria-current="page"]::before {
    display: none;
  }

  .admin-nav .sep {
    display: none;
  }

  .sidebar .brand-card {
    padding: 0;
    margin-bottom: 20px;
  }

  .admin-main {
    padding: 24px;
  }

  .booking-hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 20px 16px;
  }

  .topbar {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

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

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

  .booking-box {
    padding: 24px;
  }

  .hero-content h2 {
    font-size: 1.6rem;
  }

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

  .filters {
    flex-direction: column;
  }

  .filters > div {
    min-width: 100%;
  }

  .appointment-card {
    grid-template-columns: 1fr;
  }

  .appointment-actions {
    justify-content: flex-end;
  }
}

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

  .login-card {
    padding: 36px 24px;
  }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

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

.card, .admin-card, .booking-box, .hero-card, .stat, .module, .appointment-card {
  animation: fadeIn 0.5s ease forwards;
}

/* Stagger children */
.stat:nth-child(1) { animation-delay: 0.05s; }
.stat:nth-child(2) { animation-delay: 0.1s; }
.stat:nth-child(3) { animation-delay: 0.15s; }
.stat:nth-child(4) { animation-delay: 0.2s; }

/* ── Print styles ── */
@media print {
  .sidebar, .top-actions, .admin-link { display: none !important; }
  .admin-shell { grid-template-columns: 1fr; }
  body { background: #fff; color: #000; }
}
