/* ============================================================
   RestaurantOpsApp Design Tokens - Sales Partner Portal
   Source of truth extracted from production restaurantopsapp.com
   (verified 2026-09-23 from served HTML + /assets/index-CX7QK04Z.css)
   The sales portal must look like a direct extension of the main
   site. Change nothing here without comparing against production.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ---- Brand colors (exact OKLCH from production) ---- */
  --background:            oklch(8.5% .01 255);   /* page base, ~#020304 */
  --foreground:            oklch(95% .005 255);   /* headings / strong text, ~#eceff2 */
  --card:                  oklch(13.8% .013 255); /* card + panel bg, ~#060a10 */
  --primary:               oklch(78% .19 58);     /* brand orange, ~#fb9c45 */
  --primary-foreground:    oklch(10% .02 58);     /* text on orange, ~#070402 */
  --secondary:             oklch(19.5% .013 255); /* secondary button bg, ~#121822 */
  --secondary-foreground:  oklch(78% .008 255);   /* text on secondary */
  --muted:                 oklch(15.5% .01 255);  /* tinted panel, ~#0a0e14 */
  --muted-foreground:      oklch(50% .01 255);    /* body / muted text, ~#5f6469 */
  --accent:                oklch(18.5% .014 255); /* secondary hover bg, ~#10151f */
  --accent-foreground:     oklch(92% .006 255);
  --border:                oklch(100% 0 0 / .13); /* 1px card + divider borders */
  --input:                 oklch(100% 0 0 / .14); /* form input borders */
  --ring:                  oklch(78% .19 58);     /* focus ring = brand orange */
  --destructive:           oklch(62% .22 25);     /* ~#f04438 */

  /* ---- Functional hues used on production (inline styles there) ---- */
  --blue:                  oklch(0.68 0.2 255);   /* ~#3a8bff info */
  --green:                 oklch(0.7 0.18 145);   /* ~#35c46f success */
  --red-orange:            oklch(0.72 0.22 25);   /* ~#f65d2c alert */
  --purple:                oklch(0.65 0.22 300);  /* ~#9333ea */
  --amber:                 oklch(0.82 0.15 85);   /* ~#f5b800 warning */
  --traffic-red:           oklch(0.68 0.19 25);
  --traffic-amber:         oklch(0.82 0.15 85);
  --traffic-green:         oklch(0.72 0.17 145);

  /* ---- Status indicators (portal) - mapped to production hues ---- */
  --status-success:        var(--green);
  --status-warning:        var(--amber);
  --status-info:           var(--blue);
  --status-danger:         var(--red-orange);
  --status-neutral:        var(--muted-foreground);

  /* ---- Ambient page glows (production body background) ---- */
  --glow-orange: #ff9c47;
  --glow-purple: #a664fe;
  --glow-green:  #45ba50;
  --glow-blue:   #4499ff;

  /* ---- Typography ---- */
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --text-h1: 56px;   /* >=640px; 34px below */
  --text-h2: 38px;   /* >=640px; 28px below */
  --text-h3: 18px;   /* >=640px; 16.5px below */
  --text-body: 14.5px;
  --text-card: 13.5px;
  --text-small: 12.5px;
  --text-tiny: 12px;
  --text-eyebrow: 11px;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-h1: 1.06;
  --leading-h2: 1.12;
  --leading-h3: 1.375;
  --leading-body: 1.6;
  --leading-card: 1.625;
  --tracking-tight: -0.025em;
  --tracking-eyebrow: 0.16em;

  /* ---- Spacing scale (Tailwind-aligned, px) ---- */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;  --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 28px;  --space-8: 32px;
  --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;

  --container-max: 1024px;   /* max-w-5xl */
  --container-pad: 20px;     /* px-5 */
  --section-pad-y: 64px;     /* py-16, 80px at >=640px */
  --section-pad-y-sm: 80px;

  /* ---- Border radius ---- */
  --radius-sm: 8px;
  --radius-md: 14px;   /* rounded-lg: header logo, header CTA */
  --radius-lg: 16px;   /* rounded-2xl: cards */
  --radius-xl: 18px;   /* rounded-xl: primary CTAs */
  --radius-pill: 999px;

  /* ---- Shadows ---- */
  --shadow-glow: 0 10px 40px -12px var(--glow-orange);      /* hero / final CTA buttons */
  --shadow-card: 0 25px 50px -12px rgb(0 0 0 / 0.25);        /* media frames */
  --shadow-pop:  0 8px 24px -8px rgb(0 0 0 / 0.5);           /* dropdowns, toasts */

  /* ---- Transitions (only easing on production) ---- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 150ms;
}

/* ---- Base reset in the production voice ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

/* Ambient radial tints from production body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 400px at 12% 0%,   color-mix(in srgb, var(--glow-orange) 7%, transparent), transparent 70%),
    radial-gradient(500px 380px at 88% 6%,   color-mix(in srgb, var(--glow-purple) 5%, transparent), transparent 70%),
    radial-gradient(700px 420px at 55% 100%, color-mix(in srgb, var(--glow-green) 4%, transparent), transparent 70%),
    radial-gradient(520px 420px at 96% 55%,  color-mix(in srgb, var(--glow-blue) 4%, transparent), transparent 70%);
}

h1, h2, h3, h4 {
  color: var(--foreground);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  font-weight: var(--weight-bold);
}
h1 { font-size: 34px; line-height: var(--leading-h1); }
h2 { font-size: 28px; line-height: var(--leading-h2); }
h3 { font-size: 16.5px; line-height: var(--leading-h3); font-weight: var(--weight-semibold); }
@media (min-width: 640px) {
  h1 { font-size: var(--text-h1); }
  h2 { font-size: var(--text-h2); }
  h3 { font-size: var(--text-h3); }
}
h1 .accent, h2 .accent { color: var(--primary); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
strong { color: var(--foreground); font-weight: var(--weight-semibold); }

a { color: inherit; }

/* ---- Layout primitives ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  position: relative;
  z-index: 1;
}
.section { padding: var(--section-pad-y) 0; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .section { padding: var(--section-pad-y-sm) 0; } }

/* ---- Eyebrow badge (production: mono 11px/600 uppercase pill) ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: var(--space-5);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  font-size: 15px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--duration) var(--ease),
              background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary.glow { box-shadow: var(--shadow-glow); }
.btn-secondary {
  background: var(--card);
  border-color: var(--border);
  color: var(--foreground);
  font-weight: var(--weight-medium);
}
.btn-secondary:hover { background: var(--accent); }
.btn-sm { min-height: 38px; font-size: 13.5px; padding: 0 14px; border-radius: var(--radius-md); }
.btn-md { min-height: 46px; font-size: 14px; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
}
@media (min-width: 640px) { .card { padding: var(--space-6); } }
.card-accent-bar {
  width: 3px;
  height: 36px;
  border-radius: 2px;
  margin-bottom: var(--space-4);
}

/* ---- Header (sticky, blurred, bordered) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: var(--radius-md); object-fit: contain; }
.brand-name { color: var(--foreground); font-weight: var(--weight-bold); font-size: 14px; }
@media (min-width: 640px) { .brand-name { font-size: 15px; } }
@media (max-width: 639px) { .brand-name { display: none; } }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--muted-foreground);
  font-size: 13.5px;
  font-weight: var(--weight-medium);
  text-decoration: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-md);
  transition: color var(--duration) var(--ease);
}
.nav-link:hover { color: var(--foreground); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 40px 20px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { width: 28px; height: 28px; border-radius: 10px; object-fit: contain; }
.footer-brand .brand-name { display: inline; font-size: 14px; }
.footer-tagline { font-size: var(--text-small); margin-top: var(--space-3); }
.footer-col-title {
  font-family: var(--font-mono); font-size: var(--text-eyebrow); font-weight: var(--weight-semibold);
  text-transform: uppercase; letter-spacing: var(--tracking-eyebrow);
  color: var(--foreground); margin-bottom: var(--space-3);
}
.footer-link {
  display: block; font-size: var(--text-small); color: var(--muted-foreground);
  text-decoration: none; padding: 4px 0;
  transition: color var(--duration) var(--ease);
}
.footer-link:hover { color: var(--foreground); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: var(--space-8); padding-top: var(--space-5);
  font-size: var(--text-tiny); color: var(--muted-foreground);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3);
}

/* ---- Forms (tokens exist in production CSS; no public forms to copy) ---- */
.field label {
  display: block; font-size: 13px; font-weight: var(--weight-medium);
  color: var(--foreground); margin-bottom: 6px;
}
.input, select.input, textarea.input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.input::placeholder { color: var(--muted-foreground); }
.input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 25%, transparent);
}

/* ---- Status pills (portal) ---- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: var(--weight-semibold);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-success { color: var(--status-success); border-color: color-mix(in srgb, var(--status-success) 35%, transparent); background: color-mix(in srgb, var(--status-success) 8%, transparent); }
.pill-warning { color: var(--status-warning); border-color: color-mix(in srgb, var(--status-warning) 35%, transparent); background: color-mix(in srgb, var(--status-warning) 8%, transparent); }
.pill-info    { color: var(--status-info);    border-color: color-mix(in srgb, var(--status-info) 35%, transparent);    background: color-mix(in srgb, var(--status-info) 8%, transparent); }
.pill-danger  { color: var(--status-danger);  border-color: color-mix(in srgb, var(--status-danger) 35%, transparent);  background: color-mix(in srgb, var(--status-danger) 8%, transparent); }
.pill-neutral { color: var(--muted-foreground); }

/* ---- Tables (portal) ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  font-family: var(--font-mono); font-size: 11px; font-weight: var(--weight-semibold);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground);
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--foreground); }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background-color var(--duration) var(--ease); }
table.data tbody tr:hover { background: var(--accent); }
table.data td.muted, table.data th.muted { color: var(--muted-foreground); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---- Stat tiles (portal) ---- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); }
.stat-label { font-family: var(--font-mono); font-size: 11px; font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); margin-bottom: var(--space-2); }
.stat-value { font-family: var(--font-mono); font-size: 22px; font-weight: var(--weight-bold); color: var(--foreground); font-variant-numeric: tabular-nums; }
.stat-value.accent { color: var(--primary); }
.stat-sub { font-size: var(--text-small); margin-top: 4px; }

/* ---- Icons (Lucide-style outline) ---- */
.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }

/* ---- Misc ---- */
.muted { color: var(--muted-foreground); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.divider { border: none; border-top: 1px solid var(--border); margin: var(--space-6) 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.check-list .icon { color: var(--primary); margin-top: 2px; }
