/* =========================================================
   Veior — Ultra-Premium Dark Luxury Design System
   Rich espresso noir, champagne warm gold, warm ivory typography.
   Matching menus.veiorai.com landing page aesthetics.
   ========================================================= */
:root {
  --paper: #14110f;
  --paper-2: #1c1815;
  --paper-3: #26201b;
  --card: #221d19;
  --card-hover: #2a241f;
  --ink: #f6efe7;
  --ink-2: #c9bcae;
  --ink-3: #8a7d70;
  --line: rgba(255, 240, 225, 0.09);
  --line-2: rgba(255, 240, 225, 0.16);
  --accent: #e0a458;
  --accent-2: #c77d3a;
  --accent-soft: rgba(224, 164, 88, 0.14);
  --olive: #6fcf97;
  --olive-soft: rgba(111, 207, 151, 0.14);
  --gold: #e0a458;
  --danger: #eb5757;
  --danger-soft: rgba(235, 87, 87, 0.15);

  --f-display: 'Fraunces', 'IBM Plex Sans Arabic', Georgia, serif;
  --f-ui: 'DM Sans', 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-1: 0 2px 8px rgba(0, 0, 0, 0.35);
  --sh-2: 0 14px 34px -8px rgba(0, 0, 0, 0.65);
  --sh-3: 0 24px 60px -12px rgba(0, 0, 0, 0.85);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

html[lang='ar'] {
  --f-display: 'IBM Plex Sans Arabic', 'Fraunces', serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--paper);
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.ic {
  flex: none;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* ---------- numbers: tabular for prices ---------- */
.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition:
    transform 0.18s var(--ease),
    background-color 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    opacity 0.2s;
  user-select: none;
  white-space: nowrap;
  font-family: inherit;
}

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

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.btn-primary {
  background: var(--accent);
  color: #1a120a;
  font-weight: 700;
  box-shadow: 0 10px 28px -10px rgba(224, 164, 88, 0.6);
  border: none;
}

.btn-primary:hover {
  background: #e8b16b;
  box-shadow: 0 16px 36px -10px rgba(224, 164, 88, 0.75);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a120a;
  font-weight: 700;
  box-shadow: 0 10px 28px -10px rgba(224, 164, 88, 0.6);
  border: none;
}

.btn-accent:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 240, 225, 0.18);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  min-height: 54px;
  font-size: 16px;
  padding: 0 24px;
}

/* ---------- stepper ---------- */
.stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  height: 40px;
}

.stepper button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  transition: background-color 0.15s, transform 0.15s var(--ease);
}

.stepper button:active {
  transform: scale(0.88);
  background: var(--paper-3);
}

.stepper output {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: calc(14px + env(safe-area-inset-top, 0px));
  z-index: 200;
  max-width: min(92vw, 420px);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(34, 29, 25, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--sh-2);
  transform: translate(-50%, -140%);
  opacity: 0;
  transition:
    transform 0.45s var(--ease-spring),
    opacity 0.3s;
  pointer-events: none;
  text-align: center;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast[data-kind='error'] {
  background: rgba(235, 87, 87, 0.95);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.toast[data-kind='success'] {
  background: rgba(111, 207, 151, 0.95);
  color: #14110f;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- powered by ---------- */
.powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.powered a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
}

.powered a:hover {
  color: var(--accent);
}

.veior-mark {
  width: 16px;
  height: 16px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 240, 225, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 240, 225, 0.22);
}

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