:root {
  --bg-color: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --accent-color: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --danger-color: #ef4444;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --blob-1: #3b82f6;
  --blob-2: #8b5cf6;
  --blob-opacity: 0.6;
}
:root[data-theme="cyber"] {
  --bg-color: #0c0a1d;
  --glass-bg: rgba(217, 70, 239, 0.06);
  --glass-border: rgba(217, 70, 239, 0.25);
  --text-main: #fdf2ff;
  --text-sub: #e8a2f8;
  --accent-color: #d946ef;
  --accent-glow: rgba(217, 70, 239, 0.6);
  --blob-1: #d946ef;
  --blob-2: #06b6d4;
  --blob-opacity: 0.8;
}
:root[data-theme="ocean"] {
  --bg-color: #081124;
  --glass-bg: rgba(59, 130, 246, 0.05);
  --glass-border: rgba(59, 130, 246, 0.2);
  --text-main: #f8fafc;
  --text-sub: #93c5fd;
  --accent-color: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --blob-1: #3b82f6;
  --blob-2: #1d4ed8;
  --blob-opacity: 0.7;
}
:root[data-theme="sunset"] {
  --bg-color: #240f16;
  --glass-bg: rgba(244, 63, 94, 0.06);
  --glass-border: rgba(244, 63, 94, 0.25);
  --text-main: #fff1f2;
  --text-sub: #fca5a5;
  --accent-color: #f43f5e;
  --accent-glow: rgba(244, 63, 94, 0.6);
  --blob-1: #f43f5e;
  --blob-2: #f59e0b;
  --blob-opacity: 0.8;
}
:root[data-theme="forest"] {
  --bg-color: #08140e;
  --glass-bg: rgba(16, 185, 129, 0.05);
  --glass-border: rgba(16, 185, 129, 0.2);
  --text-main: #ecfdf5;
  --text-sub: #6ee7b7;
  --accent-color: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.5);
  --blob-1: #10b981;
  --blob-2: #0ea5e9;
  --blob-opacity: 0.7;
}
:root[data-theme="royal"] {
  --bg-color: #120624;
  --glass-bg: rgba(168, 85, 247, 0.06);
  --glass-border: rgba(168, 85, 247, 0.25);
  --text-main: #faf5ff;
  --text-sub: #c084fc;
  --accent-color: #a855f7;
  --accent-glow: rgba(168, 85, 247, 0.6);
  --blob-1: #a855f7;
  --blob-2: #facc15;
  --blob-opacity: 0.75;
}
:root[data-theme="midnight"] {
  --bg-color: #000000;
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-sub: #a5f3fc;
  --accent-color: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.6);
  --blob-1: #22d3ee;
  --blob-2: #3b82f6;
  --blob-opacity: 0.3;
}
:root[data-theme="lava"] {
  --bg-color: #1c0606;
  --glass-bg: rgba(239, 68, 68, 0.06);
  --glass-border: rgba(239, 68, 68, 0.25);
  --text-main: #fef2f2;
  --text-sub: #fca5a5;
  --accent-color: #ef4444;
  --accent-glow: rgba(239, 68, 68, 0.6);
  --blob-1: #ef4444;
  --blob-2: #f97316;
  --blob-opacity: 0.8;
}
:root[data-theme="gold"] {
  --bg-color: #0d0d0d;
  --glass-bg: rgba(251, 191, 36, 0.05);
  --glass-border: rgba(251, 191, 36, 0.2);
  --text-main: #fffbeb;
  --text-sub: #fde68a;
  --accent-color: #fbbf24;
  --accent-glow: rgba(251, 191, 36, 0.6);
  --blob-1: #fbbf24;
  --blob-2: #ea580c;
  --blob-opacity: 0.6;
}
:root[data-theme="nord"] {
  --bg-color: #2e3440;
  --glass-bg: rgba(46, 52, 64, 0.6);
  --glass-border: rgba(136, 192, 208, 0.25);
  --text-main: #d8dee9;
  --text-sub: #88c0d0;
  --accent-color: #88c0d0;
  --accent-glow: rgba(136, 192, 208, 0.5);
  --blob-1: #88c0d0;
  --blob-2: #81a1c1;
  --blob-opacity: 0.6;
}
:root[data-theme="emerald"] {
  --bg-color: #061f14;
  --glass-bg: rgba(16, 185, 129, 0.05);
  --glass-border: rgba(16, 185, 129, 0.2);
  --text-main: #ecfdf5;
  --text-sub: #34d399;
  --accent-color: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.5);
  --blob-1: #34d399;
  --blob-2: #059669;
  --blob-opacity: 0.75;
}
:root[data-theme="maxi"] {
  --bg-color: #1a0822;
  --glass-bg: rgba(236, 72, 153, 0.06);
  --glass-border: rgba(250, 204, 21, 0.2);
  --text-main: #ffffff;
  --text-sub: #facc15;
  --accent-color: #ec4899;
  --accent-glow: rgba(236, 72, 153, 0.6);
  --blob-1: #3b82f6;
  --blob-2: #facc15;
  --blob-opacity: 0.8;
}
:root[data-theme="vfl"] {
  --bg-color: #10061a;
  --glass-bg: rgba(192, 132, 252, 0.06);
  --glass-border: rgba(192, 132, 252, 0.2);
  --text-main: #fcfaff;
  --text-sub: #c084fc;
  --accent-color: #a855f7;
  --accent-glow: rgba(168, 85, 247, 0.6);
  --blob-1: #7c3aed;
  --blob-2: #e9d5ff;
  --blob-opacity: 0.7;
}
:root[data-theme="mallorca"] {
  --bg-color: #3b0f05;
  --glass-bg: rgba(251, 146, 60, 0.07);
  --glass-border: rgba(251, 146, 60, 0.25);
  --text-main: #fff7ed;
  --text-sub: #fb923c;
  --accent-color: #f97316;
  --accent-glow: rgba(249, 115, 22, 0.6);
  --blob-1: #ef4444;
  --blob-2: #eab308;
  --blob-opacity: 0.85;
}
:root[data-theme="vercel"] {
  --bg-color: #000000;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #ffffff;
  --text-sub: #a1a1aa;
  --accent-color: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.25);
  --blob-opacity: 0;
}
:root[data-theme="linear"] {
  --bg-color: #080710;
  --glass-bg: rgba(94, 106, 210, 0.05);
  --glass-border: rgba(94, 106, 210, 0.18);
  --text-main: #f3f4f6;
  --text-sub: #9ca3af;
  --accent-color: #5e6ad2;
  --accent-glow: rgba(94, 106, 210, 0.5);
  --blob-1: #5e6ad2;
  --blob-2: #b624ff;
  --blob-opacity: 0.65;
}
:root[data-theme="stripe"] {
  --bg-color: #0a2540;
  --glass-bg: rgba(0, 212, 255, 0.04);
  --glass-border: rgba(99, 91, 255, 0.2);
  --text-main: #f8fafc;
  --text-sub: #adbdcc;
  --accent-color: #635bff;
  --accent-glow: rgba(99, 91, 255, 0.6);
  --blob-1: #00d4ff;
  --blob-2: #7a00ff;
  --blob-opacity: 0.75;
}
:root[data-theme="dracula"] {
  --bg-color: #1e1f29;
  --glass-bg: rgba(40, 42, 54, 0.75);
  --glass-border: rgba(255, 121, 198, 0.2);
  --text-main: #f8f8f2;
  --text-sub: #6272a4;
  --accent-color: #ff79c6;
  --accent-glow: rgba(255, 121, 198, 0.6);
  --blob-1: #bd93f9;
  --blob-2: #8be9fd;
  --blob-opacity: 0.65;
}
:root[data-theme="rosepine"] {
  --bg-color: #191724;
  --glass-bg: rgba(31, 29, 46, 0.8);
  --glass-border: rgba(235, 188, 186, 0.15);
  --text-main: #e0def4;
  --text-sub: #908caa;
  --accent-color: #ebbc12;
  --accent-glow: rgba(235, 188, 18, 0.4);
  --blob-1: #eb6f92;
  --blob-2: #9ccfd8;
  --blob-opacity: 0.55;
}
:root[data-theme="synthwave"] {
  --bg-color: #1a0826;
  --glass-bg: rgba(249, 42, 173, 0.08);
  --glass-border: rgba(249, 42, 173, 0.3);
  --text-main: #ffe3f4;
  --text-sub: #b388ff;
  --accent-color: #f92aad;
  --accent-glow: rgba(249, 42, 173, 0.75);
  --blob-1: #f92aad;
  --blob-2: #00ffcc;
  --blob-opacity: 0.85;
}
:root[data-theme="tokyonight"] {
  --bg-color: #16161e;
  --glass-bg: rgba(122, 162, 247, 0.07);
  --glass-border: rgba(122, 162, 247, 0.2);
  --text-main: #c0caf5;
  --text-sub: #7aa2f7;
  --accent-color: #7aa2f7;
  --accent-glow: rgba(122, 162, 247, 0.6);
  --blob-1: #bb9af3;
  --blob-2: #ff007f;
  --blob-opacity: 0.8;
}
:root[data-theme="aurora"] {
  --bg-color: #070e16;
  --glass-bg: rgba(0, 255, 204, 0.05);
  --glass-border: rgba(0, 255, 204, 0.25);
  --text-main: #e0fbf2;
  --text-sub: #34d399;
  --accent-color: #00ffcc;
  --accent-glow: rgba(0, 255, 204, 0.7);
  --blob-1: #00ffbb;
  --blob-2: #a855f7;
  --blob-opacity: 0.85;
}
:root[data-theme="matrix"] {
  --bg-color: #020502;
  --glass-bg: rgba(0, 255, 102, 0.04);
  --glass-border: rgba(0, 255, 102, 0.25);
  --text-main: #00ff66;
  --text-sub: #008f37;
  --accent-color: #00ff66;
  --accent-glow: rgba(0, 255, 102, 0.85);
  --blob-1: #003300;
  --blob-2: #008800;
  --blob-opacity: 0.6;
}
:root[data-theme="sakura"] {
  --bg-color: #fff0f3;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 183, 197, 0.5);
  --text-main: #590d22;
  --text-sub: #a4133c;
  --accent-color: #ff85a2;
  --accent-glow: rgba(255, 133, 162, 0.4);
  --blob-1: #ffccd5;
  --blob-2: #ff85a2;
  --blob-opacity: 0.9;
}
:root[data-theme="abyss"] {
  --bg-color: #020b18;
  --glass-bg: rgba(14, 165, 233, 0.06);
  --glass-border: rgba(14, 165, 233, 0.2);
  --text-main: #f0f9ff;
  --text-sub: #38bdf8;
  --accent-color: #0ea5e9;
  --accent-glow: rgba(14, 165, 233, 0.6);
  --blob-1: #0284c7;
  --blob-2: #00ff99;
  --blob-opacity: 0.8;
}
:root[data-theme="cyberlime"] {
  --bg-color: #080c08;
  --glass-bg: rgba(190, 242, 100, 0.06);
  --glass-border: rgba(190, 242, 100, 0.25);
  --text-main: #f4fce3;
  --text-sub: #bef264;
  --accent-color: #bef264;
  --accent-glow: rgba(190, 242, 100, 0.75);
  --blob-1: #bef264;
  --blob-2: #0ea5e9;
  --blob-opacity: 0.85;
}
:root[data-theme="amber"] {
  --bg-color: #1a0f07;
  --glass-bg: rgba(245, 158, 11, 0.06);
  --glass-border: rgba(245, 158, 11, 0.25);
  --text-main: #fffbeb;
  --text-sub: #f59e0b;
  --accent-color: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.6);
  --blob-1: #f59e0b;
  --blob-2: #ea580c;
  --blob-opacity: 0.75;
}
:root[data-theme="mint"] {
  --bg-color: #f0fdf4;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(52, 211, 153, 0.4);
  --text-main: #14532d;
  --text-sub: #047857;
  --accent-color: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.3);
  --blob-1: #bbf7d0;
  --blob-2: #6ee7b7;
  --blob-opacity: 0.9;
}
:root[data-theme="copper"] {
  --bg-color: #170e0a;
  --glass-bg: rgba(234, 88, 12, 0.05);
  --glass-border: rgba(234, 88, 12, 0.22);
  --text-main: #fff7ed;
  --text-sub: #f97316;
  --accent-color: #ea580c;
  --accent-glow: rgba(234, 88, 12, 0.6);
  --blob-1: #ea580c;
  --blob-2: #7c2d12;
  --blob-opacity: 0.7;
}
:root[data-theme="grape"] {
  --bg-color: #140522;
  --glass-bg: rgba(168, 85, 247, 0.06);
  --glass-border: rgba(168, 85, 247, 0.28);
  --text-main: #faf5ff;
  --text-sub: #c084fc;
  --accent-color: #a855f7;
  --accent-glow: rgba(168, 85, 247, 0.7);
  --blob-1: #c084fc;
  --blob-2: #db2777;
  --blob-opacity: 0.85;
}
:root[data-theme="stealth"] {
  --bg-color: #111112;
  --glass-bg: rgba(30, 41, 59, 0.8);
  --glass-border: rgba(255, 255, 255, 0.04);
  --text-main: #f1f5f9;
  --text-sub: #64748b;
  --accent-color: #94a3b8;
  --accent-glow: rgba(148, 163, 184, 0.2);
  --blob-opacity: 0;
}
:root[data-theme="nebula"] {
  --bg-color: #0b071a;
  --glass-bg: rgba(236, 72, 153, 0.06);
  --glass-border: rgba(236, 72, 153, 0.25);
  --text-main: #fdf2f8;
  --text-sub: #f472b6;
  --accent-color: #ec4899;
  --accent-glow: rgba(236, 72, 153, 0.7);
  --blob-1: #3b82f6;
  --blob-2: #ec4899;
  --blob-opacity: 0.9;
}
:root[data-theme="atlantis"] {
  --bg-color: #041820;
  --glass-bg: rgba(6, 182, 212, 0.07);
  --glass-border: rgba(6, 182, 212, 0.22);
  --text-main: #ecfeff;
  --text-sub: #22d3ee;
  --accent-color: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.65);
  --blob-1: #06b6d4;
  --blob-2: #10b981;
  --blob-opacity: 0.8;
}
:root[data-theme="darkpastel"] {
  --bg-color: #1b1622;
  --glass-bg: rgba(192, 132, 252, 0.06);
  --glass-border: rgba(192, 132, 252, 0.22);
  --text-main: #faf5ff;
  --text-sub: #c084fc;
  --accent-color: #c084fc;
  --accent-glow: rgba(192, 132, 252, 0.6);
  --blob-1: #c084fc;
  --blob-2: #fb7185;
  --blob-opacity: 0.75;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: Outfit, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.app-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-color);
}
.blob {
  position: absolute;
  filter: blur(80px);
  opacity: var(--blob-opacity, 0.6);
  animation: float 10s infinite ease-in-out alternate;
}
.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--blob-1) 0%, transparent 70%);
}
.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--blob-2) 0%, transparent 70%);
  animation-duration: 14s;
}
@keyframes float {
  0% {
    transform: translate(0) scale(1);
  }
  50% {
    transform: translate(5%, 10%) scale(1.1);
  }
  to {
    transform: translate(-5%, -10%) scale(0.9);
  }
}
.app-container {
  width: 100%;
  max-width: 480px;
  height: 95vh;
  margin: auto;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
  -webkit-overflow-scrolling: touch;
}
.app-container::-webkit-scrollbar {
  width: 4px;
}
.app-container::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}
.content-scroll {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.section {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.section:last-child {
  border-bottom: none;
}
h2 {
  font-weight: 800;
  font-size: 1.5rem;
}
h3 {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.dashboard-header {
  padding: clamp(0.75rem, 2vh, 1.25rem) 1rem;
  text-align: center;
  border-bottom: none !important; 
  background: transparent !important;
  box-shadow: none !important;
}
.theme-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  background: #00000026;
}
.theme-label {
  font-size: 0.75rem;
  color: var(--text-sub);
  letter-spacing: 0.05em;
}
.theme-select {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-sub);
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.theme-select option {
  background: var(--bg-color);
  color: var(--text-main);
}
.stats-card {
  margin-bottom: 0.5rem;
}
.stats-title {
  font-weight: 400;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.bac-display {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.2rem, 11vw, 3.2rem);
  font-weight: 900;
  margin: 0.4rem 0;
  background: linear-gradient(135deg, var(--accent-color), var(--blob-2, var(--accent-color)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px var(--accent-glow, rgba(0, 255, 163, 0.3)));
  letter-spacing: -1px;
}
.drink-count-display {
  display: inline-block;
  padding: clamp(0.2rem, 1vh, 0.4rem) clamp(0.6rem, 2vw, 1rem);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.drink-count-display.pop {
  transform: scale(1.15);
  box-shadow: 0 0 15px var(--accent-glow);
  background: #ffffff26;
}
.safety-warning {
  background: #ef444433;
  border: 1px solid var(--danger-color);
  color: #fca5a5;
  padding: clamp(0.4rem, 1.5vh, 0.75rem);
  border-radius: 12px;
  font-size: clamp(0.75rem, 3vw, 0.85rem);
  font-weight: 600;
  margin-bottom: clamp(0.5rem, 2vh, 1rem);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  to {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
.hidden {
  display: none !important;
}
.disclaimer {
  font-size: 0.7rem;
  color: var(--text-sub);
  opacity: 0.6;
}
.user-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.user-chip {
  padding: 0.6rem 1.25rem;
  border-radius: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.user-chip.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
}
.user-chip:active {
  transform: scale(0.95);
}
.glass-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.glass-btn:hover {
  background: #ffffff1a;
  transform: translateY(-2px);
}
.glass-btn:active {
  transform: scale(0.96) translateY(0);
}
.primary-btn {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}
.primary-btn:hover {
  background: #2563eb;
  box-shadow: 0 4px 15px var(--accent-glow);
}
.location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.preset-btn {
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.preset-btn.active {
  background: #ffffff26;
  border-color: var(--text-sub);
}
.drink-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-sub);
  padding: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.tab-btn.active {
  color: var(--text-main);
  border-bottom: 2px solid var(--accent-color);
}
.drink-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.drink-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.6rem 0.5rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.drink-card:hover {
  background: #ffffff14;
  transform: scale(1.02);
}
.drink-card:active {
  transform: scale(0.98);
}
.drink-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.drink-name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}
.drink-details {
  font-size: 0.7rem;
  color: var(--text-sub);
}
.drink-size-select,
.drink-price-input {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: 6px;
  padding: 0.1rem 0.3rem;
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  outline: none;
}
.drink-price-input {
  width: 55px;
  text-align: right;
  cursor: text;
}
.drink-size-select option {
  background: var(--bg-color);
  color: var(--text-main);
}
.fav-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.5;
  transition:
    opacity 0.2s,
    color 0.2s;
}
.fav-btn:hover {
  opacity: 1;
}
.fav-btn.favorited {
  color: #facc15;
  opacity: 1;
}
.history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.history-info {
  display: flex;
  flex-direction: column;
}
.history-title {
  font-weight: 600;
}
.history-meta {
  font-size: 0.8rem;
  color: var(--text-sub);
}
.history-bac {
  font-weight: 800;
  color: #c084fc;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  will-change: opacity, visibility;
}
.modal.show {
  opacity: 1;
  visibility: visible;
}
.modal.show .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.modal-content {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  border-radius: 24px;
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.4s ease;
  will-change: transform, opacity;
  background: rgba(15, 20, 35, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.input-group {
  margin-bottom: 1.5rem;
}
.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-sub);
}
.input-group input,
.input-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #0003;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
}
.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--accent-color);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 480px) {
  .app-container {
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
}
.search-bar-container {
  margin-bottom: 1rem;
}
.search-input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.toast {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--accent-color);
  box-shadow: 0 4px 20px var(--accent-glow);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  color: var(--text-main);
  max-width: 400px;
  animation: slideIn 0.3s ease-out forwards;
  opacity: 0;
  transform: translate(100%);
  position: relative;
}
.toast-title {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  padding-right: 20px;
}
.toast-message {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-sub);
}
.toast-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.toast-close:hover {
  color: var(--danger-color);
}
@keyframes slideIn {
  to {
    transform: translate(0);
    opacity: 1;
  }
}
.comparison-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chart-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.chart-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chart-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}
.chart-value {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-color);
}
.chart-bar-bg {
  width: 100%;
  height: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
}
.chart-bar-fill {
  height: 100%;
  border-radius: 10px;
  min-width: 4px;
  transition: width 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: linear-gradient(
    90deg,
    var(--accent-color),
    var(--blob-2, #8b5cf6)
  );
  box-shadow: 0 0 8px var(--accent-glow);
  position: relative;
  overflow: hidden;
}
.chart-bar-fill:after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: #ffffff40;
  transform: skew(-20deg);
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer {
  0% {
    left: -60%;
  }
  to {
    left: 120%;
  }
}
.chart-empty {
  text-align: center;
  color: var(--text-sub);
  font-size: 0.9rem;
  padding: 1rem 0;
}
.stats-overview {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.stat-summary-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-color);
}
.stats-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.stats-day-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stats-day-info {
  display: flex;
  flex-direction: column;
}
.stats-day-date {
  font-weight: 600;
  font-size: 0.9rem;
}
.stats-day-meta {
  font-size: 0.75rem;
  color: var(--text-sub);
}
.stats-day-totals {
  text-align: right;
  display: flex;
  flex-direction: column;
}
.stats-day-drinks {
  font-weight: 800;
  color: var(--accent-color);
}
.stats-day-cost {
  font-size: 0.8rem;
  color: var(--success-color);
}
.wheel-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.05);
  padding: 8px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  box-shadow:
    0 0 30px var(--accent-glow),
    inset 0 0 20px #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.wheel-container::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 5;
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.8),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}
.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.5);
  transition: transform 6s cubic-bezier(0.2, 0.9, 0.1, 1);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}
.wheel-pointer {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 45px solid var(--accent-color);
  z-index: 10;
  filter: drop-shadow(0 0 15px var(--accent-glow))
    drop-shadow(0 5px 5px rgba(0, 0, 0, 0.8));
}
@keyframes confetti-fall {
  0% {
    transform: translateY(-10px) rotate(-360deg);
    opacity: 1;
  }
  100% {
    transform: translateY(200vh) rotate(360deg);
    opacity: 0;
  }
}
.confetti-piece {
  position: absolute;
  top: -50px;
  width: 10px;
  height: 20px;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  animation: confetti-fall linear forwards;
}
@keyframes rainbow-font {
  0% {
    color: #ff2400;
    text-shadow: 0 0 8px rgba(255, 36, 0, 0.5);
  }
  16% {
    color: #e8b71d;
    text-shadow: 0 0 8px rgba(232, 183, 29, 0.5);
  }
  33% {
    color: #e3e81d;
    text-shadow: 0 0 8px rgba(227, 232, 29, 0.5);
  }
  50% {
    color: #1de840;
    text-shadow: 0 0 8px rgba(29, 232, 64, 0.5);
  }
  66% {
    color: #1ddde8;
    text-shadow: 0 0 8px rgba(29, 221, 232, 0.5);
  }
  83% {
    color: #2b1de8;
    text-shadow: 0 0 8px rgba(43, 29, 232, 0.5);
  }
  100% {
    color: #dd00f3;
    text-shadow: 0 0 8px rgba(221, 0, 243, 0.5);
  }
}
@keyframes rainbow-bg {
  0% {
    background-color: #ff2400;
    box-shadow: 0 0 15px rgba(255, 36, 0, 0.5);
  }
  16% {
    background-color: #e8b71d;
    box-shadow: 0 0 15px rgba(232, 183, 29, 0.5);
  }
  33% {
    background-color: #e3e81d;
    box-shadow: 0 0 15px rgba(227, 232, 29, 0.5);
  }
  50% {
    background-color: #1de840;
    box-shadow: 0 0 15px rgba(29, 232, 64, 0.5);
  }
  66% {
    background-color: #1ddde8;
    box-shadow: 0 0 15px rgba(29, 221, 232, 0.5);
  }
  83% {
    background-color: #2b1de8;
    box-shadow: 0 0 15px rgba(43, 29, 232, 0.5);
  }
  100% {
    background-color: #dd00f3;
    box-shadow: 0 0 15px rgba(221, 0, 243, 0.5);
  }
}
:root[data-theme="maxi"] body,
:root[data-theme="maxi"] h2,
:root[data-theme="maxi"] h3,
:root[data-theme="maxi"] p,
:root[data-theme="maxi"] span,
:root[data-theme="maxi"] select,
:root[data-theme="maxi"] input,
:root[data-theme="maxi"] button,
:root[data-theme="maxi"] .drink-name,
:root[data-theme="maxi"] .user-chip,
:root[data-theme="maxi"] .toast-title,
:root[data-theme="maxi"] .toast-message,
:root[data-theme="maxi"] .stat-value,
:root[data-theme="maxi"] .chart-value,
:root[data-theme="maxi"] .stats-day-drinks,
:root[data-theme="maxi"] .history-title,
:root[data-theme="maxi"] .history-bac {
  animation: rainbow-font 4s linear infinite !important;
}
:root[data-theme="maxi"] .bac-display {
  -webkit-text-fill-color: unset !important;
  background: none !important;
  animation: rainbow-font 4s linear infinite !important;
}
:root[data-theme="maxi"] .primary-btn,
:root[data-theme="maxi"] .user-chip.active {
  animation: rainbow-bg 4s linear infinite !important;
  color: #fff !important;
  text-shadow: none !important;
}
:root[data-theme="maxi"] .chart-bar-fill {
  animation: rainbow-bg 4s linear infinite !important;
  background: none !important;
}
