/* SplitHub design system — fresh tech-glass
   Imported in base.html. Coexists with Tailwind: Tailwind handles layout
   utilities, this file owns brand tokens, glass surfaces, buttons, chips,
   inputs, and other reusable components.
*/

:root {
  --bg-0: #e9f1fa;
  --bg-1: #f4f8fc;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-dark: #0b1726;
  --surface-dark-2: #11233b;

  --ink: #0e1a2b;
  --ink-2: #3a4a60;
  --ink-3: #7a8a9f;
  --ink-4: #a8b6c8;
  --ink-on-dark: #f3f7fb;

  --primary: #2e7cf6;
  --primary-dark: #1e5bd1;
  --primary-soft: #e1ecfe;
  --accent: #1fc8c5;
  --accent-soft: #d8f6f5;

  --grad-primary: linear-gradient(135deg, #2e7cf6 0%, #1fc8c5 100%);
  --grad-soft: linear-gradient(135deg, #dbe9ff 0%, #e2f7f6 100%);
  --grad-hero: radial-gradient(circle at 15% 10%, #d6e7ff 0%, transparent 45%),
               radial-gradient(circle at 85% 30%, #d5f4f2 0%, transparent 45%),
               linear-gradient(180deg, #eaf2fb 0%, #f4f8fc 100%);

  --border: rgba(14, 26, 43, 0.08);
  --border-strong: rgba(14, 26, 43, 0.14);
  --border-soft: rgba(255, 255, 255, 0.6);

  --success: #1bb776;
  --danger: #ff5a5f;
  --warn: #ffa235;
  --info: #4a90ff;

  --radius-xs: 8px;
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 24px;
  --radius-xl: 32px;

  --shadow-s: 0 1px 2px rgba(15, 27, 45, 0.06), 0 0 0 1px rgba(15, 27, 45, 0.04);
  --shadow-m: 0 8px 24px rgba(20, 38, 65, 0.08), 0 1px 2px rgba(15, 27, 45, 0.04);
  --shadow-l: 0 24px 60px rgba(20, 38, 65, 0.12), 0 2px 4px rgba(15, 27, 45, 0.04);
  --shadow-glow: 0 18px 50px rgba(46, 124, 246, 0.22);

  --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--grad-hero);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

/* ── glass surfaces ── */
.glass {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 30px rgba(20, 38, 65, 0.08);
  border-radius: var(--radius-l);
}
.glass-strong {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 22px 60px rgba(46, 124, 246, 0.32); color: #fff; }
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  backdrop-filter: blur(20px);
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { color: #fff; }
.btn-light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-sm { padding: 9px 14px; font-size: 13px; }

/* ── chip / badge ── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--ink-2);
  backdrop-filter: blur(12px);
}
.chip-primary { background: var(--primary-soft); color: var(--primary-dark); border-color: transparent; }
.chip-accent { background: var(--accent-soft); color: #0d8a87; border-color: transparent; }
.chip-success { background: #def5e8; color: #0e8a53; border-color: transparent; }
.chip-danger { background: #ffe2e3; color: #c63036; border-color: transparent; }
.chip-warn { background: #fff0db; color: #b6620d; border-color: transparent; }
.chip-dark { background: var(--ink); color: #fff; border-color: transparent; }

/* ── status dot ── */
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--success); box-shadow: 0 0 0 3px rgba(27, 183, 118, 0.18); }
.dot-orange { background: var(--warn); box-shadow: 0 0 0 3px rgba(255, 162, 53, 0.2); }
.dot-red { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.18); }
.dot-blue { background: var(--primary); box-shadow: 0 0 0 3px rgba(46, 124, 246, 0.18); }

/* ── type helpers ── */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
}
.muted { color: var(--ink-3); }
.muted-2 { color: var(--ink-2); }

/* ── input ── */
.input {
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-strong);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(46, 124, 246, 0.14); }

/* ── checkbox visual ── */
.check {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 18px;
}
.check.on { background: var(--primary); border-color: var(--primary); }
.check.on::after {
  content: ''; width: 10px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* progress bar */
.bar { height: 6px; background: var(--primary-soft); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grad-primary); border-radius: 999px; }

/* avatars */
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  flex: 0 0 36px;
}

/* divider */
.hr { height: 1px; background: var(--border); width: 100%; }
.hr-v { width: 1px; background: var(--border); align-self: stretch; }

/* product image surface */
.ac-img {
  position: relative;
  background: linear-gradient(180deg, #fbfdff 0%, #e7eff8 100%);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* gradient swirl placeholder */
.swirl-bg {
  position: absolute;
  width: 480px; height: 480px;
  filter: blur(60px); opacity: 0.55;
  background: conic-gradient(from 220deg, #2e7cf6, #1fc8c5, #6ddff0, #2e7cf6);
  border-radius: 50%;
  pointer-events: none;
}

/* card replacement (legacy class used widely in templates) */
.card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}

/* legacy .btn-accent — kept so older templates keep working;
   now styled with brand gradient instead of orange. */
.btn-accent {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--shadow-glow);
}
.btn-accent:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 22px 60px rgba(46, 124, 246, 0.32); }
