/* SoberClock - Mobile Dark Nightlife Styling */
:root {
  --bg-primary: #0a0d14;
  --bg-card: #131824;
  --bg-input: #0e121d;
  --border-color: #21293d;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-amber: #f59e0b;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --status-danger: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 40px;
}

/* Header */
header {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-switcher {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn.active {
  background: #0284c7;
  color: #fff;
}

.header-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
}

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

.brand-icon {
  font-size: 20px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Container */
.container {
  max-width: 580px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card Module */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Big Hero Sober Countdown Card */
.hero-sober-card {
  background: linear-gradient(135deg, #1b2438, #101524);
  border: 1px solid #334368;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.sober-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sober-status-badge.sober { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.sober-status-badge.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.sober-status-badge.danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.sober-big-time {
  font-size: 34px;
  font-weight: 900;
  color: #f59e0b;
  font-family: monospace;
  line-height: 1.1;
}

.sober-sub-text {
  font-size: 13px;
  color: #cbd5e1;
}

.bac-meters-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.meter-box {
  background: rgba(15, 23, 42, 0.6);
  padding: 8px;
  border-radius: 8px;
}
.meter-label { font-size: 10.5px; color: var(--text-muted); }
.meter-val { font-size: 16px; font-weight: 850; font-family: monospace; color: #fff; }

/* Gender & Weight Row */
.profile-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.segmented-control {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
}

.seg-btn {
  flex: 1;
  text-align: center;
  padding: 7px 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.seg-btn.active {
  background: #0284c7;
  color: #fff;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
}

.slider-val {
  color: var(--accent-amber);
  font-weight: 700;
  font-family: monospace;
}

.range-slider {
  width: 100%;
  accent-color: var(--accent-amber);
  height: 6px;
  cursor: pointer;
}

/* Drink Counter Items */
.drinks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drink-row {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drink-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drink-icon { font-size: 22px; }
.drink-name { font-size: 13px; font-weight: 700; color: #f1f5f9; }
.drink-meta { font-size: 10.5px; color: var(--text-muted); }

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-counter {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1e293b;
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn-counter:active {
  background: #334155;
}

.count-display {
  font-size: 15px;
  font-weight: 850;
  font-family: monospace;
  min-width: 20px;
  text-align: center;
  color: var(--accent-amber);
}

/* Legal Driving Warnings */
.law-notice {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.law-title {
  color: #f87171;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile Ad Slots */
.ad-mobile-slot {
  margin: 12px 0;
  text-align: center;
}

.ad-mobile-box {
  min-height: 90px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-subtext {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 4px;
}
