*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --c-accent: #c0392b;
  --c-accent-strong: #a93226;
  --c-accent-rgb: 192, 57, 43;
  --c-error: #c0392b;
  --c-error-rgb: 192, 57, 43;
  --c-text: #1e1e1e;
  --c-bg: #faf7f2;
  --c-surface: #faf7f2;
  --c-success: #34c759;
  --c-success-rgb: 52, 199, 89;
  --c-border: #d6d3ce;
  --c-gold: #c9a227;
  --c-warn: #d35400;
  --c-muted: rgba(30, 30, 30, 0.6);
  --c-shadow: 0 25px 60px rgba(30, 30, 30, 0.12);
  --c-focus-border: #bdb8b1;
  --c-focus-shadow: rgba(30, 30, 30, 0.12);
  --c-input-bg: #f3efe9;
  --c-tooltip-bg: #1e1e1e;
  --c-tooltip-text: #faf7f2;
  --c-tooltip-border: rgba(30, 30, 30, 0.8);
  --pattern-opacity: 0.85;
  --header-height: 64px;
}

body {
  font-family: 'Outfit', sans-serif;
  margin: 0;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--pattern-opacity);
  background-image: url("data:image/svg+xml,%3Csvg width='240' height='240' viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E .s %7B fill: none; stroke: %232b2b2b; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; %7D %3C/style%3E%3Cg class='s'%3E%3C!-- Slice 1 --%3E%3Cg transform='translate(40,30) rotate(-10) scale(0.7)'%3E%3Cpath d='M15 35 a10 10 0 1 1 0 -20 M15 15 q50 -10 100 20 l -10 15 q -50 -25 -90 -10' /%3E%3Cpath d='M105 35 l -60 85 l -30 -85' /%3E%3Cpath d='M35 60 q 0 20 8 20 t 8 -20' /%3E%3Ccircle cx='50' cy='45' r='7' /%3E%3Ccircle cx='75' cy='65' r='6' /%3E%3C/g%3E%3C!-- Slice 2 --%3E%3Cg transform='translate(170,50) rotate(140) scale(0.5)'%3E%3Cpath d='M15 35 a10 10 0 1 1 0 -20 M15 15 q50 -10 100 20 l -10 15 q -50 -25 -90 -10' /%3E%3Cpath d='M105 35 l -60 85 l -30 -85' /%3E%3Ccircle cx='60' cy='50' r='8' /%3E%3C/g%3E%3C!-- Slice 3 --%3E%3Cg transform='translate(80,160) rotate(45) scale(0.6)'%3E%3Cpath d='M15 35 a10 10 0 1 1 0 -20 M15 15 q50 -10 100 20 l -10 15 q -50 -25 -90 -10' /%3E%3Cpath d='M105 35 l -60 85 l -30 -85' /%3E%3Cpath d='M30 55 q 0 15 5 15 t 5 -15' /%3E%3Ccircle cx='50' cy='40' r='6' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  -webkit-mask-image: radial-gradient(circle, transparent 10%, black 80%);
  mask-image: radial-gradient(circle, transparent 10%, black 80%);
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

header {
  padding: 12px 16px;
  height: var(--header-height);
  box-sizing: border-box;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--c-bg);
  z-index: 10;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.greeting {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-muted);
}

.menu {
  position: relative;
}

.menu-toggle {
  list-style: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.menu-toggle .material-symbols-rounded {
  font-size: 22px;
  line-height: 1;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  box-shadow: var(--c-shadow);
  color: var(--c-text);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-links a {
  text-decoration: none;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--c-text);
}

.menu-links a:hover {
  background: rgba(var(--c-accent-rgb), 0.08);
}

.menu-section {
  border-top: 1px solid var(--c-border);
  padding-top: 10px;
}

.menu-panel .theme-toggle-btn {
  width: 100%;
  justify-content: center;
}

.menu-logout {
  width: 100%;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  font-weight: 600;
}

.menu-logout:hover {
  background: rgba(0, 0, 0, 0.04);
}

.menu-auth {
  display: flex;
  gap: 8px;
}

.menu-auth a {
  flex: 1 1 0;
  text-align: center;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 8px 10px;
  text-decoration: none;
  font-weight: 600;
  background: var(--c-surface);
  color: var(--c-text);
}

.menu-auth a:hover {
  background: rgba(0, 0, 0, 0.04);
}

main {
  padding: calc(16px + var(--header-height)) 16px 16px;
}

a {
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.theme-toggle {
  display: flex;
  justify-content: center;
  padding: 0 16px 32px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.auth-page .theme-toggle {
  margin-top: 16px;
  padding: 0 16px 0;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.theme-toggle-btn .material-symbols-rounded {
  font-size: 18px;
  line-height: 1;
}

.row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.card {
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0;
  background: var(--c-surface);
}

input,
select {
  padding: 10px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  width: 100%;
  background: var(--c-input-bg);
  color: var(--c-text);
}

input[readonly] {
  opacity: 0.7;
  cursor: not-allowed;
}

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

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

button {
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}

.btn.primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  font-weight: 600;
}

.btn.primary:hover {
  background: var(--c-accent-strong);
  border-color: var(--c-accent-strong);
}

.btn.google {
  border-color: var(--c-border);
  background: var(--c-surface);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--c-muted);
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

#map {
  height: 520px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
}

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

  #map {
    height: 420px;
  }
}

.small {
  color: var(--c-muted);
  font-size: 14px;
}

.nav a {
  margin-right: 10px;
}

.map-page header {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.notfound-page main.container {
  max-width: 980px;
}

.notfound {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  align-items: center;
  padding: 24px 0;
}

.notfound-art {
  display: grid;
  place-items: center;
  position: relative;
}

.pizza {
  width: 220px;
  height: 220px;
  position: relative;
  transform: rotate(-16deg);
  animation: pizza-float 3s ease-in-out infinite;
}

.pizza-crust {
  position: absolute;
  inset: -6px;
  background: #d28b3a;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  border-radius: 18px;
}

.pizza-base {
  position: absolute;
  inset: 6px;
  background: #f3c979;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  border-radius: 16px;
}

.pizza-cheese {
  position: absolute;
  inset: 18px 16px 14px;
  background: #f7e27b;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  border-radius: 12px;
}


.cheese-pull {
  position: absolute;
  left: 38%;
  bottom: -6px;
  width: 90px;
  height: 120px;
  background: linear-gradient(180deg, #f7e27b 0%, #f2c965 100%);
  border-radius: 40px 40px 60px 60px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.18));
}


.cheese-puddle {
  position: absolute;
  left: 42%;
  bottom: -28px;
  width: 140px;
  height: 60px;
  background: linear-gradient(120deg, #f7e27b 0%, #f2c965 90%);
  border-radius: 999px 999px 60px 80px;
  transform: rotate(-4deg);
  opacity: 0.95;
  filter: blur(0.2px);
}
.cheese-drip {
  position: absolute;
  width: 24px;
  height: 34px;
  background: #f7e27b;
  border-radius: 18px;
  bottom: -10px;
  animation: drip 2.8s ease-in-out infinite;
}

.cheese-drip.drip-1 {
  left: 18%;
  height: 42px;
}

.cheese-drip.drip-2 {
  left: 40%;
  height: 32px;
  animation-delay: 0.3s;
}

.cheese-drip.drip-3 {
  left: 62%;
  height: 46px;
  animation-delay: 0.6s;
}

.pepperoni {
  position: absolute;
  width: 28px;
  height: 28px;
  background: #c0392b;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.pepperoni.p1 { top: 40px; left: 90px; }
.pepperoni.p2 { top: 90px; left: 56px; }
.pepperoni.p3 { top: 110px; left: 118px; }
.pepperoni.p4 { top: 70px; left: 120px; }

.slice-shadow {
  position: absolute;
  width: 180px;
  height: 30px;
  background: rgba(0, 0, 0, 0.15);
  filter: blur(10px);
  border-radius: 999px;
  bottom: 10px;
  z-index: -1;
}

.notfound-text {
  display: grid;
  gap: 12px;
}

.notfound-code {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}

.notfound-text h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
}

.notfound-text p {
  margin: 0;
  color: var(--c-muted);
  font-size: 16px;
}

.notfound-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

@keyframes pizza-float {
  0%, 100% { transform: rotate(-16deg) translateY(0); }
  50% { transform: rotate(-18deg) translateY(-8px); }
}

@keyframes drip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 820px) {
  .notfound {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .notfound-actions {
    justify-content: center;
  }
}

.map-page header a,
.map-page header .small,
.map-page header .greeting {
  color: #fff;
}

.map-page header button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.map-page header .menu-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-page {
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
}

.auth-page header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(10px);
}

.auth-page main.container {
  max-width: 520px;
  min-height: calc(100vh - var(--header-height));
  padding: calc(36px + var(--header-height)) 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.auth-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.auth-wrap {
  width: 100%;
  display: grid;
  gap: 16px;
  animation: auth-pop 0.6s ease-out both;
}

.auth-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--c-shadow);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-page .auth-brand {
  display: none;
}

.auth-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-strong));
  box-shadow: 0 12px 20px rgba(var(--c-accent-rgb), 0.28);
}

.auth-brand-name {
  display: block;
  font-weight: 600;
}

.auth-brand-tag {
  display: block;
  font-size: 12px;
  color: var(--c-muted);
}

.auth-title {
  font-size: 28px;
  margin: 0 0 6px;
}

.auth-subtitle {
  margin: 0 0 20px;
  color: var(--c-muted);
}

.auth-social {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--c-accent);
  background: var(--c-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  box-shadow: none;
  box-sizing: border-box;
  text-decoration: none;
  min-height: 46px;
  align-self: stretch;
  text-align: center;
}

.auth-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-social svg path {
  fill: #fff;
}

.auth-social:hover {
  background: var(--c-accent-strong);
  border-color: var(--c-accent-strong);
}

.auth-social:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb), 0.2);
}

.auth-social[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--c-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  font-size: 13px;
  color: var(--c-muted);
}

.auth-password {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field input {
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--c-input-bg);
  font-size: 15px;
  color: var(--c-text);
  width: 100%;
  box-sizing: border-box;
}

.auth-password input {
  padding-right: 44px;
}

.auth-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--c-muted);
  display: grid;
  place-items: center;
  padding: 0;
}

.auth-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.auth-toggle:hover {
  background: rgba(var(--c-accent-rgb), 0.12);
  color: var(--c-text);
}

.auth-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb), 0.18);
}

.auth-toggle.is-on {
  color: var(--c-accent);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--c-focus-border);
  box-shadow: 0 0 0 3px var(--c-focus-shadow);
}

.auth-field input.is-valid {
  border-color: var(--c-success);
  box-shadow: 0 0 0 3px rgba(var(--c-success-rgb), 0.2);
}

.auth-field input.is-invalid {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgba(var(--c-error-rgb), 0.2);
}

.auth-error {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--c-tooltip-border);
  background: var(--c-input-bg);
  color: #faf7f2;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}


.auth-field input.is-valid + .auth-error {
  display: none;
}

.auth-field.is-invalid .auth-error {
  display: inline-flex;
}

.auth-check.is-invalid .auth-error {
  display: inline-flex;
}



.auth-submit {
  border: 2px solid var(--c-accent);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-accent);
  background: transparent;
  box-shadow: none;
  width: 100%;
  display: block;
}

.auth-submit:hover {
  background: rgba(var(--c-accent-rgb), 0.08);
}

.auth-submit-solid {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

.auth-submit-solid:hover {
  background: var(--c-accent-strong);
  border-color: var(--c-accent-strong);
  color: #fff;
}

.auth-msg {
  min-height: 18px;
  color: var(--c-warn);
  font-size: 13px;
}

.auth-footer {
  margin-top: 18px;
  font-size: 14px;
  color: var(--c-muted);
}

.auth-footer a {
  color: var(--c-text);
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot {
  margin-top: 18px;
}

.auth-forgot-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid #fff;
  color: var(--c-text);
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.auth-forgot-cta:hover {
  background: rgba(255, 255, 255, 0.08);
}

.auth-link {
  color: var(--c-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page main.container {
  max-width: 860px;
}

.legal-page header,
.legal-page header a,
.legal-page header .small,
.legal-page header strong {
  color: var(--c-text);
}

.legal-page .card {
  padding: 24px;
  line-height: 1.6;
}

.legal-page .card h1,
.legal-page .card h2 {
  color: var(--c-text);
}

.legal-page .card p,
.legal-page .card li {
  color: var(--c-text);
}

.legal-page .card .small {
  color: var(--c-muted);
}

.legal-page .card a {
  color: var(--c-accent);
  font-weight: 600;
}

.legal-collapse {
  margin: 12px 0 18px;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--c-surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.legal-collapse summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--c-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-collapse summary::-webkit-details-marker {
  display: none;
}

.legal-collapse summary::after {
  content: "expand_more";
  margin-left: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--c-input-bg);
  border: 1px solid var(--c-border);
  font-family: "Material Symbols Rounded";
  font-size: 18px;
  line-height: 1;
  opacity: 0.9;
}

.legal-collapse > ul {
  margin-top: 12px;
}

.legal-collapse[open] summary::after {
  content: "▴";
}

.legal-collapse[open] summary::after {
  content: "expand_less";
}

.legal-collapse ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.auth-legal {
  margin-top: 0;
  font-size: 12px;
  color: var(--c-muted);
}

.auth-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--c-muted);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease;
}

.auth-field:focus-within .auth-hint {
  opacity: 1;
  max-height: 40px;
  transform: translateY(0);
}

.auth-check {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 6px 10px;
  align-items: start;
  font-size: 13px;
  color: var(--c-muted);
}

.auth-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--c-accent);
  justify-self: start;
}

.auth-check span {
  grid-column: 2;
  min-width: 0;
}

.auth-check .auth-error {
  grid-column: 2;
  margin-left: 0;
}


.auth-note {
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--c-input-bg);
  font-size: 13px;
  color: var(--c-muted);
}

.auth-note p {
  margin: 0;
}

.auth-actions {
  margin-top: 16px;
}

.auth-submit-link {
  text-decoration: none;
  text-align: center;
}

@keyframes auth-pop {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .auth-page main.container {
    min-height: auto;
    padding: calc(24px + var(--header-height)) 16px 36px;
  }

  .auth-card {
    padding: 24px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-accent: #30d158;
    --c-accent-strong: #30d158;
    --c-accent-rgb: 48, 209, 88;
    --c-success: #30d158;
    --c-success-rgb: 48, 209, 88;
    --c-text: #faf7f2;
    --c-bg: #1e1e1e;
    --c-surface: #242424;
    --c-border: #3a3a3a;
    --c-muted: rgba(250, 247, 242, 0.6);
    --c-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    --pattern-opacity: 0.6;
    --c-focus-border: #555555;
    --c-focus-shadow: rgba(250, 247, 242, 0.16);
    --c-input-bg: #1f1f1f;
    --c-tooltip-bg: #ffffff;
    --c-tooltip-text: #1e1e1e;
    --c-tooltip-border: rgba(214, 211, 206, 0.9);
  }

  body::before {
    background-image: url("data:image/svg+xml,%3Csvg width='240' height='240' viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E .s %7B fill: none; stroke: %23f2efe7; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; %7D %3C/style%3E%3Cg class='s'%3E%3C!-- Slice 1 --%3E%3Cg transform='translate(40,30) rotate(-10) scale(0.7)'%3E%3Cpath d='M15 35 a10 10 0 1 1 0 -20 M15 15 q50 -10 100 20 l -10 15 q -50 -25 -90 -10' /%3E%3Cpath d='M105 35 l -60 85 l -30 -85' /%3E%3Cpath d='M35 60 q 0 20 8 20 t 8 -20' /%3E%3Ccircle cx='50' cy='45' r='7' /%3E%3Ccircle cx='75' cy='65' r='6' /%3E%3C/g%3E%3C!-- Slice 2 --%3E%3Cg transform='translate(170,50) rotate(140) scale(0.5)'%3E%3Cpath d='M15 35 a10 10 0 1 1 0 -20 M15 15 q50 -10 100 20 l -10 15 q -50 -25 -90 -10' /%3E%3Cpath d='M105 35 l -60 85 l -30 -85' /%3E%3Ccircle cx='60' cy='50' r='8' /%3E%3C/g%3E%3C!-- Slice 3 --%3E%3Cg transform='translate(80,160) rotate(45) scale(0.6)'%3E%3Cpath d='M15 35 a10 10 0 1 1 0 -20 M15 15 q50 -10 100 20 l -10 15 q -50 -25 -90 -10' /%3E%3Cpath d='M105 35 l -60 85 l -30 -85' /%3E%3Cpath d='M30 55 q 0 15 5 15 t 5 -15' /%3E%3Ccircle cx='50' cy='40' r='6' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
}
.auth-msg {
  margin-top: 0;
}

html[data-theme="dark"] {
  --c-accent: #30d158;
  --c-accent-strong: #30d158;
  --c-accent-rgb: 48, 209, 88;
  --c-success: #30d158;
  --c-success-rgb: 48, 209, 88;
  --c-text: #faf7f2;
  --c-bg: #1e1e1e;
  --c-surface: #242424;
  --c-border: #3a3a3a;
  --c-muted: rgba(250, 247, 242, 0.6);
  --c-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  --pattern-opacity: 0.6;
  --c-focus-border: #555555;
  --c-focus-shadow: rgba(250, 247, 242, 0.16);
  --c-input-bg: #1f1f1f;
  --c-tooltip-bg: #ffffff;
  --c-tooltip-text: #1e1e1e;
  --c-tooltip-border: rgba(214, 211, 206, 0.9);
}

html[data-theme="dark"] body::before {
  background-image: url("data:image/svg+xml,%3Csvg width='240' height='240' viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E .s %7B fill: none; stroke: %23f2efe7; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; %7D %3C/style%3E%3Cg class='s'%3E%3C!-- Slice 1 --%3E%3Cg transform='translate(40,30) rotate(-10) scale(0.7)'%3E%3Cpath d='M15 35 a10 10 0 1 1 0 -20 M15 15 q50 -10 100 20 l -10 15 q -50 -25 -90 -10' /%3E%3Cpath d='M105 35 l -60 85 l -30 -85' /%3E%3Cpath d='M35 60 q 0 20 8 20 t 8 -20' /%3E%3Ccircle cx='50' cy='45' r='7' /%3E%3Ccircle cx='75' cy='65' r='6' /%3E%3C/g%3E%3C!-- Slice 2 --%3E%3Cg transform='translate(170,50) rotate(140) scale(0.5)'%3E%3Cpath d='M15 35 a10 10 0 1 1 0 -20 M15 15 q50 -10 100 20 l -10 15 q -50 -25 -90 -10' /%3E%3Cpath d='M105 35 l -60 85 l -30 -85' /%3E%3Ccircle cx='60' cy='50' r='8' /%3E%3C/g%3E%3C!-- Slice 3 --%3E%3Cg transform='translate(80,160) rotate(45) scale(0.6)'%3E%3Cpath d='M15 35 a10 10 0 1 1 0 -20 M15 15 q50 -10 100 20 l -10 15 q -50 -25 -90 -10' /%3E%3Cpath d='M105 35 l -60 85 l -30 -85' /%3E%3Cpath d='M30 55 q 0 15 5 15 t 5 -15' /%3E%3Ccircle cx='50' cy='40' r='6' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

html[data-theme="light"] {
  --c-accent: #c0392b;
  --c-accent-strong: #a93226;
  --c-accent-rgb: 192, 57, 43;
  --c-error: #c0392b;
  --c-error-rgb: 192, 57, 43;
  --c-text: #1e1e1e;
  --c-bg: #faf7f2;
  --c-surface: #faf7f2;
  --c-success: #34c759;
  --c-success-rgb: 52, 199, 89;
  --c-border: #d6d3ce;
  --c-gold: #c9a227;
  --c-warn: #d35400;
  --c-muted: rgba(30, 30, 30, 0.6);
  --c-shadow: 0 25px 60px rgba(30, 30, 30, 0.12);
  --c-focus-border: #bdb8b1;
  --c-focus-shadow: rgba(30, 30, 30, 0.12);
  --c-input-bg: #f3efe9;
  --c-tooltip-bg: #1e1e1e;
  --c-tooltip-text: #faf7f2;
  --c-tooltip-border: rgba(30, 30, 30, 0.8);
  --pattern-opacity: 0.85;
  --header-height: 64px;
}

html[data-theme="light"] body::before {
  background-image: url("data:image/svg+xml,%3Csvg width='240' height='240' viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E .s %7B fill: none; stroke: %232b2b2b; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; %7D %3C/style%3E%3Cg class='s'%3E%3C!-- Slice 1 --%3E%3Cg transform='translate(40,30) rotate(-10) scale(0.7)'%3E%3Cpath d='M15 35 a10 10 0 1 1 0 -20 M15 15 q50 -10 100 20 l -10 15 q -50 -25 -90 -10' /%3E%3Cpath d='M105 35 l -60 85 l -30 -85' /%3E%3Cpath d='M35 60 q 0 20 8 20 t 8 -20' /%3E%3Ccircle cx='50' cy='45' r='7' /%3E%3Ccircle cx='75' cy='65' r='6' /%3E%3C/g%3E%3C!-- Slice 2 --%3E%3Cg transform='translate(170,50) rotate(140) scale(0.5)'%3E%3Cpath d='M15 35 a10 10 0 1 1 0 -20 M15 15 q50 -10 100 20 l -10 15 q -50 -25 -90 -10' /%3E%3Cpath d='M105 35 l -60 85 l -30 -85' /%3E%3Ccircle cx='60' cy='50' r='8' /%3E%3C/g%3E%3C!-- Slice 3 --%3E%3Cg transform='translate(80,160) rotate(45) scale(0.6)'%3E%3Cpath d='M15 35 a10 10 0 1 1 0 -20 M15 15 q50 -10 100 20 l -10 15 q -50 -25 -90 -10' /%3E%3Cpath d='M105 35 l -60 85 l -30 -85' /%3E%3Cpath d='M30 55 q 0 15 5 15 t 5 -15' /%3E%3Ccircle cx='50' cy='40' r='6' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
