@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --cream: #F7F3EC;
  --cream-dark: #EDE7DA;
  --parchment: #E8DFD0;
  --amber: #C8832A;
  --amber-dark: #A06520;
  --amber-light: #E8A84A;
  --amber-glow: rgba(200, 131, 42, 0.15);
  --brown: #5C3D1E;
  --brown-light: #7A5230;
  --terracotta: #C4613A;
  --terracotta-light: #E8A090;
  --sage: #7A8C6E;
  --text-primary: #2C1A08;
  --text-secondary: #6B4C2A;
  --text-muted: #9B7A56;
  --border: rgba(92, 61, 30, 0.15);
  --border-strong: rgba(92, 61, 30, 0.3);
  --shadow-sm: 0 2px 8px rgba(92, 61, 30, 0.08);
  --shadow-md: 0 4px 20px rgba(92, 61, 30, 0.12);
  --shadow-lg: 0 8px 40px rgba(92, 61, 30, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ─── TEXTURE OVERLAY ──────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ─── LAYOUT ────────────────────────────────────────────────────────────────── */
#app { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; }

/* ─── SCREENS ───────────────────────────────────────────────────────────────── */
.screen { display: none; flex: 1; flex-direction: column; }
.screen.active { display: flex; }

/* ─── LOGIN SCREEN ──────────────────────────────────────────────────────────── */
#login-screen {
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(160deg, var(--cream) 0%, #EDD9B8 100%);
  min-height: 100dvh;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo .tea-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 8px rgba(200, 131, 42, 0.4));
}

.login-logo h1 {
  font-family: 'Lora', serif;
  font-size: 2rem;
  color: var(--brown);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-logo p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-style: italic;
}

/* ─── FORM ELEMENTS ─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.8);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

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

.form-control::placeholder { color: var(--text-muted); }

/* ─── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--amber);
  color: white;
  width: 100%;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(200, 131, 42, 0.35);
}

.btn-primary:hover { background: var(--amber-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-strong);
}

.btn-ghost:hover { background: var(--cream-dark); }

.btn-danger {
  background: var(--terracotta);
  color: white;
}

.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-full { width: 100%; }

/* ─── ERROR MSG ─────────────────────────────────────────────────────────────── */
.error-msg {
  background: rgba(196, 97, 58, 0.1);
  border: 1px solid rgba(196, 97, 58, 0.3);
  color: var(--terracotta);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}

.error-msg.show { display: block; }

/* ─── MAIN LAYOUT (authenticated) ──────────────────────────────────────────── */
#main-screen {
  flex-direction: row;
}

/* ─── SIDEBAR (desktop) ─────────────────────────────────────────────────────── */
.sidebar {
  width: 240px;
  min-height: 100dvh;
  background: var(--brown);
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding-left: 0.25rem;
}

.sidebar-logo .tea-icon { font-size: 1.5rem; }

.sidebar-logo h1 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  color: var(--cream);
  font-weight: 700;
}

.sidebar-nav { flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: rgba(247, 243, 236, 0.7);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.25rem;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.nav-item:hover { background: rgba(255,255,255,0.1); color: var(--cream); }
.nav-item.active { background: var(--amber); color: white; }

.nav-item .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-user {
  margin-top: auto;
  padding: 1rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
}

.sidebar-user .user-name {
  font-weight: 500;
  color: var(--cream);
  font-size: 0.9rem;
}

.sidebar-user .user-role {
  font-size: 0.75rem;
  color: rgba(247,243,236,0.6);
  margin-bottom: 0.75rem;
}

.logout-btn {
  font-size: 0.8rem;
  color: rgba(247,243,236,0.6);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  padding: 0;
  transition: color 0.2s;
}

.logout-btn:hover { color: var(--terracotta-light); }

/* ─── MAIN CONTENT ──────────────────────────────────────────────────────────── */
.content {
  flex: 1;
  margin-left: 240px;
  padding: 2rem;
  max-width: 800px;
}

/* ─── BOTTOM NAV (mobile) ───────────────────────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brown);
  padding: 0.75rem 0;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 100;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.bottom-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(247,243,236,0.6);
  cursor: pointer;
  padding: 0.25rem 1rem;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s;
  min-width: 64px;
}

.bottom-nav-item.active { color: var(--amber-light); }
.bottom-nav-item .nav-icon { font-size: 1.4rem; }
.bottom-nav-item span:last-child { font-size: 0.65rem; font-weight: 500; }

/* ─── MOBILE HEADER ─────────────────────────────────────────────────────────── */
.mobile-header {
  display: none;
  background: var(--brown);
  padding: 1rem 1.25rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.mobile-header h1 {
  font-family: 'Lora', serif;
  color: var(--cream);
  font-size: 1.2rem;
  font-weight: 700;
}

.mobile-header .user-greeting {
  font-size: 0.8rem;
  color: rgba(247,243,236,0.7);
}

/* ─── PAGE HEADER ───────────────────────────────────────────────────────────── */
.page-header {
  margin-bottom: 1.75rem;
}

.page-header h2 {
  font-family: 'Lora', serif;
  font-size: 1.75rem;
  color: var(--brown);
  font-weight: 700;
  line-height: 1.2;
}

.page-header p {
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-size: 0.925rem;
}

/* ─── NUDGE BANNER ──────────────────────────────────────────────────────────── */
.nudge-banner {
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  color: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.4s ease;
}

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

.nudge-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.nudge-text { flex: 1; }
.nudge-title { font-weight: 600; font-size: 0.875rem; opacity: 0.9; margin-bottom: 0.2rem; }
.nudge-message { font-size: 0.95rem; line-height: 1.5; }
.nudge-dismiss {
  background: rgba(255,255,255,0.25);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nudge-dismiss:hover { background: rgba(255,255,255,0.35); }

/* ─── TEA TOGGLE BUTTONS ────────────────────────────────────────────────────── */
.tea-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tea-btn {
  position: relative;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-strong);
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tea-btn:active { transform: scale(0.97); }

.tea-btn.done {
  border-color: var(--amber);
  background: linear-gradient(135deg, rgba(232, 168, 74, 0.12), rgba(200, 131, 42, 0.08));
  box-shadow: 0 0 0 3px rgba(200, 131, 42, 0.15), var(--shadow-sm);
}

.tea-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tea-btn-icon {
  font-size: 2.5rem;
  line-height: 1;
  display: block;
  transition: transform 0.3s;
}

.tea-btn.done .tea-btn-icon { transform: scale(1.1); }

.tea-btn-label {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown);
}

.tea-btn-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.tea-btn.done .tea-btn-label { color: var(--amber-dark); }

.tea-check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 22px;
  height: 22px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: white;
  font-size: 0.7rem;
}

.tea-btn.done .tea-check {
  opacity: 1;
  transform: scale(1);
}

/* Steam animation */
.steam-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.steam-particle {
  position: absolute;
  bottom: 30%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(200, 131, 42, 0.3);
  animation: none;
}

.tea-btn.done .steam-particle {
  animation: steamRise 2s ease-out infinite;
}

.steam-particle:nth-child(1) { left: 35%; animation-delay: 0s; }
.steam-particle:nth-child(2) { left: 50%; animation-delay: 0.4s; width: 5px; height: 5px; }
.steam-particle:nth-child(3) { left: 65%; animation-delay: 0.8s; }

@keyframes steamRise {
  0% { transform: translateY(0) scaleX(1); opacity: 0.6; }
  50% { transform: translateY(-40px) scaleX(1.5); opacity: 0.3; }
  100% { transform: translateY(-80px) scaleX(0.5); opacity: 0; }
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(200, 131, 42, 0.25);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

/* ─── STATS CARDS ───────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-card.accent {
  background: linear-gradient(135deg, var(--brown), var(--brown-light));
  border-color: transparent;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.stat-card.accent .stat-label { color: rgba(247,243,236,0.65); }

.stat-value {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
}

.stat-card.accent .stat-value { color: var(--cream); }

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.stat-card.accent .stat-sub { color: rgba(247,243,236,0.6); }

.streak-flame { font-size: 1.25rem; margin-right: 0.25rem; }

/* ─── PROGRESS BAR ──────────────────────────────────────────────────────────── */
.progress-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.progress-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.progress-fraction {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--brown);
  font-weight: 600;
}

.progress-track {
  height: 10px;
  background: var(--cream-dark);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 4px;
}

.progress-fill.over { background: linear-gradient(90deg, var(--terracotta), #E88060); }

.progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── LIMIT WARNING ─────────────────────────────────────────────────────────── */
.limit-warning {
  background: rgba(196, 97, 58, 0.08);
  border: 1px solid rgba(196, 97, 58, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--terracotta);
  font-weight: 500;
}

/* ─── WEEKLY SUMMARY CARD ───────────────────────────────────────────────────── */
.summary-card {
  background: var(--parchment);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.summary-card h3 {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
  font-style: italic;
}

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

/* ─── ADMIN USER CARDS ──────────────────────────────────────────────────────── */
.user-cards { display: flex; flex-direction: column; gap: 1rem; }

.user-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.user-card-header {
  padding: 1.25rem 1.25rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.user-info { flex: 1; }

.user-name {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown);
}

.user-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.user-status {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-weight: 500;
}

.status-ok { background: rgba(122, 140, 110, 0.15); color: var(--sage); }
.status-limit { background: rgba(196, 97, 58, 0.12); color: var(--terracotta); }
.status-close { background: rgba(200, 131, 42, 0.15); color: var(--amber-dark); }

.user-card-body { padding: 0 1.25rem 1.25rem; }

.user-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.user-stat-mini {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 0.625rem;
  text-align: center;
}

.user-stat-mini .val {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown);
  display: block;
}

.user-stat-mini .lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-card-actions {
  border-top: 1px solid var(--border);
  padding: 0.875rem 1.25rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ─── MODALS ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 26, 8, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  color: var(--brown);
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--brown); }

/* ─── CHART SECTION ─────────────────────────────────────────────────────────── */
.chart-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.chart-card h3 {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 1.25rem;
}

/* ─── MOBILE RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .bottom-nav { display: block; }
  .mobile-header { display: flex; }
  
  .content {
    margin-left: 0;
    padding: 1rem;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .page-header { margin-bottom: 1.25rem; }
  .page-header h2 { font-size: 1.4rem; }

  .tea-btn {
    min-height: 120px;
    padding: 1.25rem 0.75rem;
  }

  .stats-row { gap: 0.75rem; }
  .stat-value { font-size: 1.75rem; }

  .modal { padding: 1.5rem; }
}

@media (max-width: 360px) {
  .tea-toggles { gap: 0.75rem; }
  .tea-btn { min-height: 110px; }
  .tea-btn-icon { font-size: 2rem; }
  .tea-btn-label { font-size: 1rem; }
}

/* ─── ADMIN OVERVIEW GRID ───────────────────────────────────────────────────── */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

/* ─── SECTION DIVIDER ───────────────────────────────────────────────────────── */
.section-title {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: var(--brown);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── TABS ──────────────────────────────────────────────────────────────────── */
.tab-row {
  display: flex;
  gap: 0.5rem;
  background: var(--cream-dark);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  padding: 0.625rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tab-btn.active {
  background: white;
  color: var(--brown);
  box-shadow: var(--shadow-sm);
}

/* ─── UTIL ──────────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.divider { height: 1px; background: var(--border); margin: 1.25rem 0; }

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-muted);
  font-style: italic;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8832A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea.form-control { resize: vertical; min-height: 80px; }
