/* ============================================================
   CLOCKIN SYSTEM — Full Design System
   Dark glassmorphism theme with vibrant accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1628;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-hover: rgba(255, 255, 255, 0.20);

  --accent-purple: #7C3AED;
  --accent-blue: #0891B2;
  --accent-green: #059669;
  --accent-amber: #D97706;
  --accent-red: #DC2626;
  --accent-gradient: linear-gradient(135deg, #7C3AED, #0891B2);
  --accent-gradient-2: linear-gradient(135deg, #059669, #0891B2);

  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-btn: 0 4px 15px rgba(124, 58, 237, 0.35);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Animated background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(8, 145, 178, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Layout ---- */
.app-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Screens / Views ---- */
.screen {
  display: none;
  animation: fadeIn 0.35s ease;
}
.screen.active {
  display: block;
}

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

/* ---- NAV ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.navbar-brand:hover {
  opacity: 0.8;
}

.navbar-logo {
  width: 40px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(218, 165, 32, 0.2));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-size: 1.1rem;
  color: #D4AF37;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.brand-icon {
  display: none;
}

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

/* ---- LANGUAGE SWITCHER ---- */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 0.25rem;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.lang-btn.active {
  background: #D4AF37;
  color: #0a0e1a;
}

.lang-switcher-landing {
  justify-content: center;
  margin: 0 auto 1.5rem;
  width: fit-content;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45);
}

.btn-glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}
.btn-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.btn-success {
  background: linear-gradient(135deg, #059669, #10B981);
  color: white;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.35);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.45);
}

.btn-danger {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.45);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: var(--transition);
}
.btn-sm:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-sm-pdf {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.25);
  color: #A78BFA;
}
.btn-sm-pdf:hover {
  background: rgba(124, 58, 237, 0.22);
  color: #C4B5FD;
}

.btn-regen {
  width: 100%;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #FCA5A5;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  margin-top: 0.25rem;
}
.btn-regen:hover {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(220, 38, 38, 0.35);
  color: #FECACA;
}

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.card:hover {
  border-color: var(--glass-border-hover);
}

/* ---- FORMS ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-control {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-control:focus {
  border-color: var(--accent-purple);
  background: rgba(124, 58, 237, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.form-control option {
  background: #1a1f35;
}

/* ---- AVATAR ---- */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  color: white;
}

.avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 1.3rem;
  border-radius: 20px;
}

/* ---- BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.15);
  color: #A78BFA;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.badge-green {
  background: rgba(5, 150, 105, 0.15);
  color: #34D399;
  border-color: rgba(5, 150, 105, 0.2);
}

.badge-red {
  background: rgba(220, 38, 38, 0.15);
  color: #FCA5A5;
  border-color: rgba(220, 38, 38, 0.2);
}

/* ---- TOAST ---- */
#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  animation: slideIn 0.3s ease;
  max-width: 320px;
}

.toast-success { background: rgba(5, 150, 105, 0.2); border-color: rgba(5, 150, 105, 0.3); }
.toast-error   { background: rgba(220, 38, 38, 0.2);  border-color: rgba(220, 38, 38, 0.3); }
.toast-info    { background: rgba(8, 145, 178, 0.2);  border-color: rgba(8, 145, 178, 0.3); }

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

/* ============================================================
   LANDING / LOGIN SCREEN
   ============================================================ */
#screen-landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  text-align: center;
}

.landing-hero {
  max-width: 520px;
}

.landing-logo {
  display: none;
}

.landing-logo-img {
  width: 120px;
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 20px rgba(218, 165, 32, 0.3));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.landing-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
  color: #D4AF37;
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.2);
}

.landing-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 500;
}

.landing-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.login-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0.35rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--shadow-btn);
}

.login-panel {
  display: none;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 380px;
}
.login-panel.active { display: flex; }

/* ============================================================
   STAFF CLOCK SCREEN
   ============================================================ */
#screen-staff {
  padding: 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.staff-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.staff-hero-info h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.staff-hero-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.clock-display {
  text-align: center;
  padding: 2.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.clock-display::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.06) 0%, transparent 70%);
}

.live-clock {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #F1F5F9, #94A3B8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.live-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.session-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: none;
}
.status-dot.active {
  background: var(--success);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.clock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* ============================================================
   ADMIN SCREEN
   ============================================================ */
#screen-admin {
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.kpi-card:hover { border-color: var(--glass-border-hover); transform: translateY(-2px); }

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  border-radius: 0 var(--radius-lg) 0 60px;
  opacity: 0.12;
}
.kpi-card.purple::before { background: var(--accent-purple); }
.kpi-card.blue::before   { background: var(--accent-blue); }
.kpi-card.green::before  { background: var(--accent-green); }
.kpi-card.amber::before  { background: var(--accent-amber); }

.kpi-value {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}
.kpi-label { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }

.admin-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.3rem;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.admin-tab-btn {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.admin-tab-btn.active {
  background: var(--accent-gradient);
  color: white;
}

.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* ---- Staff cards in admin ---- */
.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-staff-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
}
.admin-staff-card:hover { border-color: var(--glass-border-hover); }

.staff-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.staff-name { font-weight: 600; font-size: 0.95rem; }
.staff-meta { color: var(--text-muted); font-size: 0.78rem; }

.staff-stats {
  display: flex;
  gap: 1.5rem;
}

.mini-stat { display: flex; flex-direction: column; }
.mini-val { font-size: 1.25rem; font-weight: 700; }
.mini-label { color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; }

/* ---- Chart ---- */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.chart-container h3 {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.bar-chart { display: flex; align-items: flex-end; gap: 1rem; height: 140px; }

.bar-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1; }

.bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 4px;
  position: relative;
}

.bar-label { font-size: 0.7rem; color: var(--text-muted); text-align: center; }
.bar-val { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }

/* ---- Tables ---- */
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.report-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--glass-border);
  font-weight: 600;
}
.report-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
  transition: var(--transition);
}
.report-table tr:hover td { background: rgba(255,255,255,0.02); }
.report-table tr:last-child td { border-bottom: none; }

.empty-row { text-align: center; color: var(--text-muted); padding: 2rem !important; }

.name-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid;
  color: var(--text-primary);
}

/* ---- Report stats ---- */
.report-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}
.stat-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.04em; }
.stat-label { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; margin-top: 0.25rem; }

/* ---- QR Screen ---- */
#screen-qr {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.qr-card:hover { border-color: var(--glass-border-hover); transform: translateY(-3px); box-shadow: var(--shadow-card); }

.qr-card-name { font-weight: 600; margin-bottom: 0.25rem; }
.qr-card-role { color: var(--text-muted); font-size: 0.78rem; margin-bottom: 1rem; }

.qr-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.qr-canvas-wrap canvas { display: block; }

.qr-link {
  font-size: 0.7rem;
  color: var(--text-muted);
  word-break: break-all;
  font-family: monospace;
  background: rgba(0,0,0,0.2);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  display: block;
  margin-bottom: 0.75rem;
}

/* ---- Section headers ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.section-header h3 { font-size: 1rem; font-weight: 700; }

/* ---- Spinner ---- */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--glass-border);
  margin: 1.5rem 0;
}

/* ---- History list ---- */
.history-list { display: flex; flex-direction: column; gap: 0.6rem; }

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}
.history-item-date { color: var(--text-muted); font-size: 0.78rem; }
.history-item-times { display: flex; gap: 0.5rem; color: var(--text-secondary); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .navbar { padding: 0.85rem 1rem; }
  #screen-staff, #screen-admin, #screen-qr { padding: 1rem; }
  .clock-actions { grid-template-columns: 1fr; }
  .live-clock { font-size: 2.5rem; }
  .landing-title { font-size: 1.8rem; }
  .admin-header { flex-direction: column; align-items: flex-start; }
}
