/* Dabur Red theme — shared tokens and base components */
:root {
  --red-50:  #fff1f0;
  --red-100: #ffe0dd;
  --red-200: #ffc2bd;
  --red-500: #e0262f;
  --red-600: #d2202a;   /* brand red */
  --red-700: #b01119;
  --red-800: #8a0c13;
  --red-900: #5f070d;
  --gold:    #f7b733;
  --gold-600:#d99412;
  --cream:   #fff8f4;
  --ink:     #2b1114;
  --ink-2:   #5c4346;
  --ink-3:   #8c7578;
  --line:    #f0dcd9;
  --green:   #1f8a4c;
  --green-bg:#e6f6ec;
  --white:   #ffffff;
  --radius:  16px;
  --shadow:  0 18px 50px rgba(95, 7, 13, .28);
  --shadow-sm: 0 2px 10px rgba(95, 7, 13, .08);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Wordmark */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ff6a6f 0, var(--red-600) 45%, var(--red-800) 100%);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.25), 0 2px 6px rgba(95,7,13,.35);
  display: grid; place-items: center; color: #fff; font-size: 1.1rem;
}
.brand-text { line-height: 1.05; font-size: 1.15rem; text-transform: uppercase; }
.brand-text small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .22em; opacity: .75; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; cursor: pointer; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  background: linear-gradient(180deg, var(--red-500), var(--red-700));
  color: #fff; box-shadow: 0 6px 16px rgba(176, 17, 25, .35);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, opacity .12s;
  text-decoration: none;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(176, 17, 25, .42); filter: brightness(1.05); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--red-700); box-shadow: inset 0 0 0 2px var(--red-200); }
.btn-ghost:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--red-500); filter: none; }
.btn-gold { background: linear-gradient(180deg, #ffd05c, var(--gold)); color: var(--red-900); box-shadow: 0 6px 16px rgba(217,148,18,.35); }
.btn-danger { background: #fff; color: var(--red-700); box-shadow: inset 0 0 0 2px var(--red-200); }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* Form controls */
.field { display: grid; gap: .35rem; text-align: left; }
.field label, .field .label { font-weight: 600; font-size: .85rem; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; padding: .8rem 1rem; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--red-500); box-shadow: 0 0 0 4px rgba(224, 38, 47, .14); }
.input.invalid { border-color: var(--red-600); }
.hint { font-size: .78rem; color: var(--ink-3); }
.error-text { color: var(--red-700); font-size: .85rem; font-weight: 500; min-height: 1.2em; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: .75rem 1.2rem; border-radius: 12px;
  font-size: .9rem; box-shadow: var(--shadow); transition: all .25s ease; z-index: 100; max-width: calc(100vw - 32px);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red-700); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
