/* Shared Tillova brand stylesheet (system fonts to respect CSP) */
:root {
  --amber: #f97316;
  --amber-dark: #ea580c;
  --black: #0a0a0a;
  --bs-primary: #0b6b5b;
  --charcoal: #1a1a1a;
  --mid: #6b6b6b;
  --white: #ffffff;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--black);
  color: var(--white);
  display: flex;
  min-height: 100vh;
}
/* Use the browser's native system font stack instead of the placeholder local WOFF2 files. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif;
  background: var(--black);
  color: var(--white);
}

h1 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 4px;
}

/* Branding helpers */
.brand-logo {
  font-weight: 800;
  letter-spacing: -1px;
}
.brand-logo .till {
  color: var(--white);
}
.brand-logo .ova {
  color: var(--amber);
}

/* Buttons */
.btn-brand {
  background: var(--amber);
  color: var(--black);
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: 8px;
}

/* Small helpers used across views */
.muted-weak {
  color: rgba(255, 255, 255, 0.35);
}
.muted {
  color: rgba(255, 255, 255, 0.6);
}
.card-surface {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
}

/* Layout helpers for header/nav (moved to navbar.css) */

/* Footer */
.site-footer {
  background: var(--charcoal);
  padding: 18px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

/* small form helpers */
.small-amount {
  width: 90px;
}
.small-select {
  width: 110px;
}

/* keep light and small to avoid overriding app-specific css */
/* Shared brand utilities for Tillova mocks and static pages */

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

body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif;
  background: var(--black);
  color: var(--white);
}

/* Text utilities */
.text-muted {
  color: rgba(255, 255, 255, 0.5);
}
.text-amber {
  color: var(--amber);
}
.text-green {
  color: #4ade80;
}
.text-red {
  color: #f87171;
}
.text-yellow {
  color: #facc15;
}
.fw-600 {
  font-weight: 600;
}

/* Layout utilities */
.flex-row {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-1 {
  flex: 1;
}

/* Button small */
.btn-small {
  font-size: 12px;
  padding: 8px 16px;
}

/* Social / icons */
.icon-muted {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-size: 20px;
}

/* Progress / bars: height and width helpers used in static mocks */
.h-0 {
  height: 0%;
}
.h-15 {
  height: 15%;
}
.h-30 {
  height: 30%;
}
.h-35 {
  height: 35%;
}
.h-38 {
  height: 38%;
}
.h-40 {
  height: 40%;
}
.h-45 {
  height: 45%;
}
.h-48 {
  height: 48%;
}
.h-50 {
  height: 50%;
}
.h-52 {
  height: 52%;
}
.h-55 {
  height: 55%;
}
.h-57 {
  height: 57%;
}
.h-58 {
  height: 58%;
}
.h-60 {
  height: 60%;
}
.h-62 {
  height: 62%;
}
.h-64 {
  height: 64%;
}
.h-65 {
  height: 65%;
}
.h-66 {
  height: 66%;
}
.h-68 {
  height: 68%;
}
.h-72 {
  height: 72%;
}
.h-75 {
  height: 75%;
}
.h-78 {
  height: 78%;
}
.h-80 {
  height: 80%;
}
.h-85 {
  height: 85%;
}
.h-88 {
  height: 88%;
}
.h-90 {
  height: 90%;
}
.w-0 {
  width: 0%;
}
.w-13 {
  width: 13%;
}
.w-15 {
  width: 15%;
}
.w-25 {
  width: 25%;
}
.w-30 {
  width: 30%;
}
.w-37 {
  width: 37%;
}
.w-40 {
  width: 40%;
}
.w-45 {
  width: 45%;
}
.w-48 {
  width: 48%;
}
.w-50 {
  width: 50%;
}
.w-55 {
  width: 55%;
}
.w-60 {
  width: 60%;
}
.w-62 {
  width: 62%;
}
.w-64 {
  width: 64%;
}
.w-68 {
  width: 68%;
}
.w-72 {
  width: 72%;
}
.w-75 {
  width: 75%;
}
.w-78 {
  width: 78%;
}
.w-80 {
  width: 80%;
}
.w-85 {
  width: 85%;
}
.w-90 {
  width: 90%;
}

/* Background helpers */
.bg-amber {
  background: var(--amber);
}
.bg-blue {
  background: #60a5fa;
}
.bg-green {
  background: #4ade80;
}
.bg-red {
  background: #f87171;
}
.bg-yellow {
  background: #facc15;
}
.bg-purple {
  background: #a78bfa;
}

/* Small helpers used by tables/footers */
.summary-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bar-label-amber {
  color: var(--amber);
}

/* Keep some brand classes from landing.css available */
.pricing-cta {
  font-size: 18px;
  padding: 18px 48px;
}
.pricing-note-small {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-cta {
  font-size: 18px;
  padding: 18px 44px;
}
.cta-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}
.social-icons {
  display: flex;
  gap: 12px;
}
.social-icon {
  color: rgba(255, 255, 255, 0.3);
  font-size: 20px;
  text-decoration: none;
}

/* small helpers */
.opacity-1 {
  opacity: 1;
}
.btn-block {
  display: block;
  text-align: center;
  margin-top: 16px;
}

/* placeholder bar/product fill classes (visual only) */
.bar {
  background: var(--amber);
  width: 100%;
  border-radius: 6px;
}
.product-bar-fill {
  height: 8px;
  border-radius: 6px;
}
.profit-bar-fill {
  height: 6px;
  border-radius: 100px;
  background: var(--amber);
}
.panel-title-sm {
  margin-bottom: 16px;
  font-size: 15px;
}

/* Landing / auth panel styles moved to per-page CSS (auth-register.css / register.css) */

/* Social Buttons */
.social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.social-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

/* Form Fields */
.field-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.4;
  pointer-events: none;
}

input {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 13px 14px 13px 42px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.input-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  transition: color 0.2s;
}

.input-toggle:hover {
  color: rgba(255, 255, 255, 0.7);
}
/* ── LEFT PANEL ── */
.left-panel {
  width: 52%;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}

.left-panel::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.12) 0%,
    transparent 70%
  );
  bottom: -200px;
  left: -100px;
  pointer-events: none;
}

.panel-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -1px;
  text-decoration: none;
  display: inline-block;
  position: relative;
  z-index: 1;
}
.brand .ova {
  color: var(--amber);
}

.panel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.panel-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}

.panel-headline {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.panel-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 48px;
}

/* STATS CARD */
.stats-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 420px;
}

.stat-number {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--amber);
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
}

/* TESTIMONIAL */
.testimonial {
  margin-top: 32px;
  max-width: 420px;
  padding: 24px 28px;
  background: rgba(249, 115, 22, 0.07);
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: 16px;
}

.testimonial-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ta-avatar {
  width: 34px;
  height: 34px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--black);
  flex-shrink: 0;
}

.ta-name {
  font-size: 13px;
  font-weight: 600;
}
.ta-biz {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1px;
}

.panel-footer {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

/* ── RIGHT PANEL ── */
.right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--black);
}

.form-container {
  width: 100%;
  max-width: 420px;
}

.form-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 36px;
  line-height: 1.6;
}

.form-subtitle a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
}

/* SOCIAL BTNS */
.social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.social-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.social-icon {
  font-size: 16px;
}

.divider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.divider-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

/* FORM FIELDS */
.field-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.4;
  pointer-events: none;
}

input {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 13px 14px 13px 42px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.input-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  transition: color 0.2s;
}
.input-toggle:hover {
  color: rgba(255, 255, 255, 0.7);
}

.field-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
  cursor: pointer;
  padding: 0;
}

.checkbox-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.forgot-link {
  font-size: 13px;
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  background: var(--amber);
  color: var(--black);
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-family: "Syne", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn:hover {
  background: var(--amber-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

.form-note {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.6;
}

.trial-banner {
  margin-top: 24px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trial-icon {
  font-size: 22px;
}

.trial-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}
.trial-text strong {
  color: var(--amber);
  font-weight: 600;
}

@media (max-width: 800px) {
  .left-panel {
    display: none;
  }
  .right-panel {
    padding: 32px 24px;
  }
}

/* CONTENT */
.content {
  padding: 32px;
  flex: 1;
}

/* KPI CARDS */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  border-color: rgba(249, 115, 22, 0.3);
}

.kpi-card.highlight {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  border-color: transparent;
}

.kpi-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.kpi-card.highlight .kpi-label {
  color: rgba(0, 0, 0, 0.5);
}

.kpi-amount {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.kpi-card.highlight .kpi-amount {
  color: var(--black);
}

.kpi-change {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.4);
}

.kpi-card.highlight .kpi-change {
  color: rgba(0, 0, 0, 0.45);
}

.change-up {
  color: #4ade80;
  font-weight: 600;
}
.change-down {
  color: #f87171;
  font-weight: 600;
}

/* GRID LAYOUT */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 24px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.panel-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.panel-action {
  font-size: 13px;
  color: var(--amber);
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
}

/* CHART BARS */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 100%;
  background: rgba(249, 115, 22, 0.2);
  border-radius: 6px 6px 0 0;
  transition: background 0.2s;
  cursor: pointer;
  position: relative;
}

.bar.today {
  background: var(--amber);
}
.bar:hover {
  background: rgba(249, 115, 22, 0.5);
}
.bar.today:hover {
  background: var(--amber-dark);
}

.bar-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

/* Dashboard-specific styles moved to dashboard.css */

.quick-action {
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
  text-align: center;
}

.quick-action:hover {
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
}
.quick-action-icon {
  font-size: 22px;
}
.quick-action-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

/* TOP BAR */
.topbar {
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left h1 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.topbar-left p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-badge {
  background: var(--amber);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.btn-sm {
  background: var(--amber);
  color: var(--black);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-sm:hover {
  background: var(--amber-dark);
  color: var(--white);
}

.nav-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: var(--amber);
  background: rgba(249, 115, 22, 0.08);
  border-left-color: var(--amber);
}

:root {
  --amber: #f97316;
  --amber-dark: #ea580c;
  --black: #0a0a0a;
  --charcoal: #1a1a1a;
  --graphite: #2d2d2d;
  --white: #ffffff;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--black);
  color: var(--white);
  display: flex;
  min-height: 100vh;
}

.topbar {
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar h1 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.topbar p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}
.topbar-right {
  display: flex;
  gap: 12px;
}

.btn-primary {
  background: var(--amber);
  color: var(--black);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: var(--amber-dark);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.content {
  padding: 32px;
}

/* SUMMARY CARDS */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.summary-card {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 20px 22px;
}
.summary-card.warn {
  border-color: rgba(248, 113, 113, 0.3);
}
.summary-card.caution {
  border-color: rgba(250, 204, 21, 0.3);
}
.sum-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}
.sum-val {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -1px;
}
.sum-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-thumb {
  width: 40px;
  height: 40px;
  background: var(--graphite);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.product-cell-name {
  font-weight: 500;
}
.product-cell-sku {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}
.product-cell-category {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.category-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  margin-left: 4px;
}
.stock-meta {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.badge.green {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.badge.red {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.2);
}
.badge.yellow {
  background: rgba(250, 204, 21, 0.1);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.stock-bar-wrap {
  width: 160px;
}
.stock-bar-bg {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  height: 5px;
  overflow: hidden;
}
.stock-bar-fill {
  height: 100%;
  border-radius: 100px;
}
.stock-val {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.row-actions {
  gap: 8px;
  flex-wrap: wrap;
}
.inline-form {
  display: inline-flex;
  margin: 0;
}
.row-action {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.row-action:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.row-action-danger {
  border-color: rgba(248, 113, 113, 0.25);
  color: #f87171;
}
.row-action-danger:hover {
  background: rgba(248, 113, 113, 0.08);
  color: #f87171;
  border-color: #f87171;
}
.row-action-danger::before {
  content: "🗑";
  display: inline-block;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}
.page-btns {
  display: flex;
  gap: 6px;
}
.page-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.page-btn.active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--black);
  font-weight: 700;
}
.page-btn:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.3);
}

:root {
  --amber: #f97316;
  --amber-dark: #ea580c;
  --amber-pale: rgba(249, 115, 22, 0.1);
  --amber-ring: rgba(249, 115, 22, 0.25);
  --black: #0a0a0a;
  --charcoal: #1a1a1a;
  --graphite: #2d2d2d;
  --mid: #6b6b6b;
  --subtle: rgba(255, 255, 255, 0.06);
  --white: #ffffff;
  --green: #4ade80;
  --red: #f87171;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--black);
  color: var(--white);
  display: flex;
  min-height: 100vh;
}

/* ── MAIN (moved to sidebar.css) ────────────────────────────────────────── */

/* ── CONTENT ─────────────────────────────────────────────────────────── */
.content {
  padding: 32px;
  flex: 1;
}

/* ── FORM LAYOUT ─────────────────────────────────────────────────────── */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

/* ── PANELS ──────────────────────────────────────────────────────────── */
.panel {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
}

.panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--amber-pale);
  border: 1px solid rgba(249, 115, 22, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.panel-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
}
.panel-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.panel-body {
  padding: 24px;
}

/* ── FORM FIELDS ─────────────────────────────────────────────────────── */
.field {
  margin-bottom: 20px;
}
.field:last-child {
  margin-bottom: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.label-optional {
  font-size: 10px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.25);
  margin-left: 6px;
}

.label-required {
  color: var(--amber);
  margin-left: 2px;
}

.input-wrap {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 1;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

input.has-prefix {
  padding-left: 44px;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* Small form tweaks for product Type selector and Service checkbox */
.field select,
.panel-body select,
.form-layout select {
  width: 100%;
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--white);
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field select:focus,
.panel-body select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-ring);
}

/* Checkbox label spacing inside serviceAvailableWrap */
#serviceAvailableWrap label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
#serviceAvailableWrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

input:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: #333;
}

input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-ring);
  background: var(--graphite);
}

input.input-error {
  border-color: var(--red);
}
input.input-error:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.field-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 6px;
  line-height: 1.5;
}

.field-error {
  font-size: 11px;
  color: var(--red);
  margin-top: 6px;
  display: none;
}

/* ── PROFIT PREVIEW ──────────────────────────────────────────────────── */
.profit-preview {
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
  display: none;
}

.profit-preview.visible {
  display: block;
}

.profit-preview-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
}

.profit-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.profit-row-label {
  color: rgba(255, 255, 255, 0.5);
}
.profit-row-value {
  font-weight: 600;
}
.profit-row-value.pos {
  color: var(--green);
}
.profit-row-value.neutral {
  color: rgba(255, 255, 255, 0.7);
}

.profit-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 4px 0;
}

.profit-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.profit-main-label {
  color: rgba(255, 255, 255, 0.7);
}
.profit-main-value {
  color: var(--green);
  font-family: "Syne", sans-serif;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.profit-main-value.neg {
  color: var(--red);
}

/* ── STOCK LEVEL INDICATOR ───────────────────────────────────────────── */
.stock-level-preview {
  margin-top: 10px;
  display: none;
}
.stock-level-preview.visible {
  display: block;
}
.stock-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 6px;
}
.stock-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--green);
  transition: width 0.4s ease;
}
.stock-bar-fill.low {
  background: var(--red);
}
.stock-bar-fill.medium {
  background: #facc15;
}

/* Hide fields when switching to Service type */
.hidden-field {
  display: none !important;
}

/* ── CATEGORY QUICK PICKS ────────────────────────────────────────────── */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.category-chip {
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.category-chip:hover {
  border-color: rgba(249, 115, 22, 0.4);
  color: var(--amber);
}
.category-chip.selected {
  background: var(--amber-pale);
  border-color: var(--amber);
  color: var(--amber);
}

/* ── SUMMARY CARD (right rail) ───────────────────────────────────────── */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}
.summary-row:last-of-type {
  border-bottom: none;
}
.summary-key {
  color: rgba(255, 255, 255, 0.45);
}
.summary-val {
  font-weight: 600;
  color: var(--white);
}
.summary-val.amber {
  color: var(--amber);
}
.summary-val.dim {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
  font-style: italic;
}

.submit-block {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.submit-btn {
  width: 100%;
  background: var(--amber);
  color: var(--black);
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-family: "Syne", sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: -0.3px;
  transition:
    background 0.2s,
    transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.submit-btn:hover {
  background: var(--amber-dark);
  color: var(--white);
}
.submit-btn:active {
  transform: scale(0.99);
}

.cancel-btn {
  width: 100%;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
}
.cancel-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

/* ── STEP INDICATOR ──────────────────────────────────────────────────── */
.step-track {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
.step-item.active {
  color: var(--white);
}
.step-item.done {
  color: var(--green);
}

.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s;
}
.step-item.active .step-dot {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--black);
}
.step-item.done .step-dot {
  border-color: var(--green);
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
}

.step-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 8px;
}
.step-line.done {
  background: var(--green);
  opacity: 0.3;
}

/* ── DIVIDER ─────────────────────────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.section-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}
.section-divider-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .sidebar {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  .form-layout {
    grid-template-columns: 1fr;
  }
  .field-row,
  .field-row-3 {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 20px;
  }
}

/* ── ALERTS ──────────────────────────────────────────────────────── */
.v-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.v-alert.success {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.22);
  color: var(--green);
}
.v-alert.error {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.22);
  color: var(--red);
}
.v-alert-icon {
  flex-shrink: 0;
  font-size: 16px;
  margin-top: 1px;
}
