/* ============================================================
   Beauty Salon OS — styles
   Mobile-first. Dark glow palette. Big tap targets.
   ============================================================ */

:root {
  /* HAKIMA NOIR — luxury glassmorphism (Apple meets Dior).
     Deep ink-black canvas with rose-gold + champagne-gold accents. */
  --bg:        #161213;        /* midnight ink */
  --bg-2:      #1f1b1b;        /* slightly raised */
  --surface:   #231f1f;        /* container */
  --surface-2: #2d2929;        /* container-high */
  --line:      rgba(255, 255, 255, 0.10);   /* hairline at 10% white */
  --line-2:    rgba(255, 255, 255, 0.18);
  --text:      #eae0e0;        /* on-surface — warm white */
  --text-2:    #d4c2c3;        /* on-surface-variant */
  --muted:     #9d8d8e;        /* outline / secondary text */
  --primary:   #E8B4B8;        /* rose gold */
  --primary-2: #ffd2d5;        /* rose-gold soft */
  --rose-deep: #2A1B3D;        /* deep plum (glass base tint) */
  --on-primary: #48272a;       /* dark text on rose */
  --secondary: #e9c349;        /* champagne gold — VIP */
  --accent:    #ffd1de;        /* tertiary pink */
  --accent-2:  #ffa8c5;        /* tertiary container */
  --good:      #7BD389;        /* status green w/ glow */
  --warn:      #e9c349;        /* champagne stands in for warn */
  --bad:       #ffb4ab;        /* error pink */
  --gold-grad: linear-gradient(135deg, #ffe088 0%, #e9c349 50%, #af8d11 100%);  /* champagne */
  --rose-grad: linear-gradient(135deg, #ffd2d5 0%, #E8B4B8 50%, #c4868a 100%);  /* rose gold */

  --glass-bg:  rgba(42, 27, 61, 0.40);          /* glass surface */
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-blur: 20px;

  --shadow-glow: 0 8px 32px rgba(232, 180, 184, .22), 0 0 0 1px rgba(232, 180, 184, .15) inset;
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;

  --radius: 1rem;       /* 16px */
  --radius-sm: 0.75rem; /* 12px */
  --radius-lg: 1.5rem;  /* 24px */
  --radius-xl: 2rem;    /* 32px */

  --tap: 48px;
  --nav-h: 80px;
  --top-h: 64px;
  --side-w: 256px;
  --side-w-collapsed: 72px;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .5; }
  50%      { transform: translate(20px, -30px) scale(1.08); opacity: .7; }
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #161213;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 209, 222, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(42, 27, 61, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(232, 180, 184, 0.03) 0%, transparent 60%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
  overscroll-behavior-y: none;
}
body::before {
  /* Animated soft-magenta orb for life */
  content: ""; position: fixed; pointer-events: none; z-index: 0;
  width: 480px; height: 480px; border-radius: 50%;
  top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(232, 180, 184, .25), transparent 65%);
  filter: blur(80px);
  animation: orbFloat 18s ease-in-out infinite;
}
body::after {
  content: ""; position: fixed; pointer-events: none; z-index: 0;
  width: 540px; height: 540px; border-radius: 50%;
  bottom: -150px; right: -120px;
  background: radial-gradient(circle, rgba(42, 27, 61, .55), transparent 65%);
  filter: blur(100px);
  animation: orbFloat 24s ease-in-out infinite reverse;
}
#app, #loginScreen, .modal-host { position: relative; z-index: 1; }

/* Headings — Noto Serif "magazine" feel */
h1, h2, h3, h4 {
  font-family: "Noto Serif", Georgia, serif;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-weight: 700; line-height: 1.1; font-size: 32px; }
h2 { font-weight: 600; line-height: 1.2; font-size: 22px; }
h3 { font-weight: 500; line-height: 1.3; font-size: 18px; }
p { line-height: 1.6; }
small { line-height: 1.4; }
strong { font-weight: 600; }
[dir="rtl"] body { line-height: 1.85; }   /* Arabic ascender room */
button { font-family: inherit; }
input, select, textarea, button { font-size: 16px; } /* prevent iOS zoom */

/* ============ APP SHELL ============ */
#app { min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 11, 20, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 700;
  letter-spacing: 0.18em; font-size: 14px; text-transform: uppercase;
  font-family: "Noto Serif", Georgia, serif;
  color: var(--primary);
}
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rose-grad);
  box-shadow: 0 0 12px rgba(232, 180, 184, .65);
}
.brand-text em {
  color: var(--primary); font-style: normal; font-weight: 700;
  letter-spacing: 0.18em;
}

/* Topbar — page title left, centered search, action icons right */
.topbar-left {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.page-title {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 18px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary);
}
.brand-dot.lg-hide { display: inline-block; }
@media (min-width: 1024px) {
  .brand-dot.lg-hide { display: none; }
}
.topbar-search {
  display: none;
  flex: 1; max-width: 380px;
  margin: 0 24px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 6px 16px;
  align-items: center; gap: 10px;
  transition: all .25s ease;
}
.topbar-search:focus-within {
  border-color: rgba(232, 180, 184, .35);
  box-shadow: 0 0 16px rgba(232, 180, 184, .15);
  background: rgba(255, 255, 255, .06);
}
.topbar-search-ico { color: var(--muted); font-size: 18px; }
.topbar-search-input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--text); font-size: 13px;
  font-family: "Manrope", sans-serif;
  min-height: 32px;
}
.topbar-search-input::placeholder { color: rgba(212, 194, 195, .35); }
.md-show { display: none; }
@media (min-width: 768px) { .md-show { display: flex; } }

/* Sidebar pushes the content on every breakpoint now (no bottom nav) */
.bottom-nav { display: none !important; }

/* Mobile / tablet: collapsed icon-rail */
.topbar      { padding-left: calc(var(--side-w-collapsed) + 16px); padding-right: 16px; }
main#view    { padding-left: calc(var(--side-w-collapsed) + 16px); padding-right: 16px; padding-bottom: 32px; max-width: 1280px; margin: 0 auto 0 0; }

/* Desktop: full sidebar */
@media (min-width: 1024px) {
  .topbar { padding-left: calc(var(--side-w) + 32px); padding-right: 32px; }
  main#view { padding-left: calc(var(--side-w) + 32px); padding-right: 48px; }
}

/* ============ SIDEBAR (always visible — rail on mobile, full on desktop) ============ */
.side-nav {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--side-w-collapsed); z-index: 50;
  display: flex; flex-direction: column;
  padding: 14px 8px;
  background: rgba(42, 27, 61, 0.30);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  border-right: 1px solid var(--glass-border);
  overflow-y: auto; overflow-x: hidden;
}
@media (min-width: 1024px) {
  .side-nav { width: var(--side-w); padding: 24px 16px; }
}

.side-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 6px 18px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 14px;
}
@media (min-width: 1024px) { .side-brand { padding: 8px 8px 24px; } }
.side-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--glass-border);
  padding: 4px;
  flex: none;
}
@media (min-width: 1024px) { .side-logo { width: 52px; height: 52px; } }
.side-brand-text { display: none; min-width: 0; }
@media (min-width: 1024px) { .side-brand-text { display: block; } }
.side-brand-name {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 22px; font-weight: 700;
  color: var(--primary); letter-spacing: 0.06em;
  line-height: 1;
}
.side-brand-sub {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 12px; color: var(--muted); letter-spacing: 0.04em;
  margin-top: 4px;
}

.side-list { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; }
.side-link {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  border-radius: 12px;
  color: var(--muted);
  font-family: "Noto Serif", Georgia, serif;
  font-size: 14px;
  cursor: pointer;
  background: transparent; border: 0; text-align: left;
  transition: all .2s ease;
  border-left: 3px solid transparent;
  padding-left: 9px;
  white-space: nowrap;
  overflow: hidden;
}
.side-link > span:not(.ico):not(.material-symbols-outlined) {
  display: none;
}
@media (min-width: 1024px) {
  .side-link { padding: 11px 16px; padding-left: 13px; font-size: 14.5px; }
  .side-link > span:not(.ico):not(.material-symbols-outlined) { display: inline; }
}
.side-link:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.side-link.active {
  color: var(--primary);
  background: rgba(255, 255, 255, .05);
  border-left-color: var(--primary);
}
.side-link .ico,
.side-link .material-symbols-outlined { color: currentColor; opacity: .9; flex: none; }

/* Sidebar profile footer card (Stitch design) */
.side-foot {
  margin-top: auto; padding: 16px 4px 8px;
}
@media (min-width: 1024px) { .side-foot { padding: 24px 8px 8px; } }
.side-user-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 10px;
  display: flex; align-items: center; gap: 12px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  justify-content: center;
}
@media (min-width: 1024px) { .side-user-card { padding: 12px 14px; justify-content: flex-start; } }
.side-user-info { display: none; }
@media (min-width: 1024px) { .side-user-info { display: block; min-width: 0; } }
.side-user-photo {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--primary);
  overflow: hidden; flex: none; position: relative;
}
.side-user-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-user-fallback {
  position: absolute; inset: 0;
  background: var(--rose-deep);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; letter-spacing: 0.05em;
}
.side-user-info { min-width: 0; }
.side-user-name {
  font-family: "Manrope", sans-serif;
  font-size: 12px; font-weight: 700;
  color: var(--text); letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-transform: uppercase;
}
.side-user-role {
  font-size: 10px; color: var(--primary);
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.05em;
}
.topbar-right { display: flex; align-items: center; gap: 8px; }
.today-label { color: var(--muted); font-size: 13px; }

.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--primary);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: all .2s ease;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(232, 180, 184, .35);
  box-shadow: 0 0 12px rgba(232, 180, 184, .2);
}

main#view {
  flex: 1; padding: 32px 24px calc(var(--nav-h) + 32px);
  max-width: 720px; margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
}
main#view > h1:first-of-type {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 40px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.05;
  color: var(--text);
  margin-bottom: 4px;
}
main#view > p.muted:first-of-type,
main#view > h1:first-of-type + p {
  font-style: italic;
  color: var(--text-2);
  font-size: 17px;
  margin-bottom: 32px;
}
.label-caps-primary {
  font-family: "Manrope", sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--nav-h);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(11, 11, 20, .85);
  border-top: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .5);
}
.nav-btn {
  background: transparent; border: 0; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer; transition: color .2s ease;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0;
}
.nav-btn span { font-size: 22px; line-height: 1; opacity: .85; transition: opacity .2s ease; }
.nav-btn.active { color: var(--primary); }
.nav-btn.active span { opacity: 1; filter: drop-shadow(0 0 6px rgba(212,175,106,.4)); }
.nav-btn-fab {
  position: relative;
  margin-top: -26px;
}
.nav-btn-fab span {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--rose-grad);
  color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center;
  box-shadow:
    0 8px 32px rgba(232, 180, 184, .55),
    0 0 0 1px rgba(255, 255, 255, .35) inset;
  font-size: 30px; opacity: 1;
  transition: transform .2s ease;
}
.nav-btn-fab:hover span { transform: translateY(-2px); }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 { margin: 0 0 8px; }
h1 { font-size: 24px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 24px 0 12px;
}
.section-head h2 {
  font-family: "Manrope", sans-serif;
  font-size: 12px; color: var(--primary); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  position: relative; padding-left: 18px;
}
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 12px; height: 1px; background: var(--primary); opacity: .8;
  box-shadow: 0 0 6px var(--primary);
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* ============ CARDS / TILES ============ */
.card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all .3s ease;
}
.card:hover {
  border-color: rgba(232, 180, 184, .3);
  box-shadow: inset 0.5px 0.5px 0 rgba(232, 180, 184, .35), 0 4px 30px rgba(0,0,0,.3);
}
.card + .card { margin-top: 12px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.tile-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.tile {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all .3s ease;
}
.tile:hover {
  border-color: rgba(232, 180, 184, .35);
  box-shadow: inset 0.5px 0.5px 0 rgba(232, 180, 184, .3), 0 4px 30px rgba(0,0,0,.3);
}
.tile .tile-label {
  font-family: "Manrope", sans-serif;
  font-size: 12px; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.tile .tile-value {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 32px; font-weight: 600; margin-top: 8px;
  letter-spacing: -0.01em;
  color: var(--primary);
  line-height: 1.2;
}
.tile .tile-foot { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.tile.glow      { border-color: rgba(232, 180, 184, .35); }
.tile.cyan::after,
.tile.violet::after,
.tile.green::after { content: none; }

/* Stitch-design KPI tile — giant background icon, baseline value + delta */
.tile-icon-bg {
  position: absolute; top: 12px; right: 12px;
  font-size: 72px; opacity: .08;
  color: var(--primary);
  pointer-events: none;
  font-family: "Material Symbols Outlined";
  font-variation-settings: 'FILL' 0, 'wght' 300;
  transition: opacity .35s ease;
}
.tile:hover .tile-icon-bg { opacity: .18; }
.tile-baseline {
  display: flex; align-items: baseline; gap: 8px; margin-top: 8px;
}
.tile-delta {
  font-size: 11px; font-weight: 600;
  color: var(--primary); letter-spacing: 0;
}
.tile-delta.gold { color: var(--secondary); }
.tile-delta.muted { color: var(--muted); }

/* ============ BUTTONS ============ */
.btn {
  min-height: var(--tap);
  padding: 0 22px; border-radius: 12px;
  border: 1px solid rgba(232, 180, 184, .25);
  background: rgba(255, 255, 255, .04); color: var(--primary);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-weight: 600; font-size: 14px;
  letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .25s ease;
}
.btn:active { transform: scale(.98); }
.btn:hover {
  background: rgba(232, 180, 184, .12);
  border-color: rgba(232, 180, 184, .5);
  box-shadow: 0 0 16px rgba(232, 180, 184, .2);
}
.btn-primary {
  background: var(--rose-grad);
  border: 0; color: var(--on-primary);
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(232, 180, 184, .45);
  letter-spacing: 0;
  font-size: 14px;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 32px rgba(232, 180, 184, .55); }
.btn-ghost { background: transparent; border: 1px solid var(--glass-border); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); }
.btn-danger { background: rgba(255, 180, 171, .18); color: var(--bad); border: 1px solid rgba(255, 180, 171, .4); font-weight: 600; }
.btn-good   { background: rgba(123, 211, 137, .18); color: var(--good); border: 1px solid rgba(123, 211, 137, .4); font-weight: 600; }
.btn-block  { width: 100%; }
.btn-sm     { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; letter-spacing: 0; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ FORMS ============ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
  background: rgba(255, 255, 255, .03); color: var(--text);
  border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 12px 16px; min-height: var(--tap);
  outline: none; transition: all .2s ease;
  font-family: "Manrope", sans-serif;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 180, 184, .18), 0 0 16px rgba(232, 180, 184, .15);
  background: rgba(255, 255, 255, .05);
}
.input::placeholder, .textarea::placeholder { color: rgba(212, 194, 195, .35); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.textarea { min-height: 90px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ============ LIST ITEMS ============ */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  transition: all .25s ease;
}
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-weight: 600; font-size: 15px; letter-spacing: 0; color: var(--text); }
.list-item .li-sub { font-size: 13px; color: var(--text-2); margin-top: 3px; letter-spacing: 0; }
.list-item .li-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.list-item.clickable { cursor: pointer; }
.list-item.clickable:hover {
  border-color: rgba(232, 180, 184, .35);
  box-shadow: inset 0.5px 0.5px 0 rgba(232, 180, 184, .3);
  transform: translateY(-1px);
}
.list-item.clickable:active { transform: scale(.995); }

.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--rose-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--primary); flex: none;
  font-size: 13px; letter-spacing: 0.1em;
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px rgba(232, 180, 184, .3);
}

/* ============ BADGES / CHIPS ============ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .04); color: var(--muted);
}
.badge.pending { background: rgba(233, 195, 73, .12); color: var(--secondary); border-color: rgba(233, 195, 73, .3); box-shadow: 0 0 10px rgba(233, 195, 73, .15); }
.badge.arrived { background: rgba(255, 209, 222, .14); color: var(--accent); border-color: rgba(255, 209, 222, .35); box-shadow: 0 0 10px rgba(255, 209, 222, .15); }
.badge.done    { background: rgba(255, 168, 197, .14); color: var(--accent-2); border-color: rgba(255, 168, 197, .35); box-shadow: 0 0 10px rgba(255, 168, 197, .15); }
.badge.paid    { background: rgba(123, 211, 137, .14); color: var(--good); border-color: rgba(123, 211, 137, .4); box-shadow: 0 0 10px rgba(123, 211, 137, .15); }
.badge.vip     { background: rgba(233, 195, 73, .14); color: var(--secondary); border-color: rgba(233, 195, 73, .45); box-shadow: 0 0 10px rgba(233, 195, 73, .25); }

.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, .03);
  color: var(--text-2); font-size: 13px; cursor: pointer;
  transition: all .2s ease;
  letter-spacing: 0; font-weight: 500;
}
.chip:hover { border-color: rgba(232, 180, 184, .4); color: var(--text); background: rgba(232, 180, 184, .08); }
.chip.active {
  background: var(--rose-grad);
  border-color: rgba(232, 180, 184, .6); color: var(--on-primary);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(232, 180, 184, .35);
}

/* ============ MODAL ============ */
.modal-host {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-host.hidden { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.modal {
  position: relative; width: 100%; max-width: 720px;
  background: rgba(35, 31, 31, 0.85);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-height: 92dvh; display: flex; flex-direction: column;
  animation: slideUp .25s ease;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .55);
}
.modal::before {
  content: ""; position: absolute; left: 50%; top: 8px;
  transform: translateX(-50%);
  width: 40px; height: 4px; border-radius: 999px;
  background: rgba(212, 175, 106, .3);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head {
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.modal-body { padding: 16px; overflow: auto; }
.modal-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }

@media (min-width: 720px) {
  .modal-host { align-items: center; padding: 24px; }
  .modal { border-radius: 22px; max-height: 88dvh; }
}

/* ============ TOAST ============ */
.toast {
  position: fixed; top: calc(var(--top-h) + 16px); left: 50%; transform: translateX(-50%);
  background: rgba(42, 27, 61, .55);
  color: var(--text);
  border: 1px solid var(--glass-border); border-radius: 14px;
  padding: 14px 22px 14px 26px; z-index: 200;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
  animation: fadeIn .2s ease;
  max-width: 90vw;
  font-size: 14px; font-weight: 500; letter-spacing: 0;
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  position: fixed; top: calc(var(--top-h) + 16px); bottom: auto;
}
.toast::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  border-radius: 14px 0 0 14px;
  background: var(--rose-grad);
  box-shadow: 0 0 12px rgba(232, 180, 184, .55);
}
.toast.hidden { display: none; }
.toast.success::before { background: var(--good); box-shadow: 0 0 12px rgba(123, 211, 137, .55); }
.toast.error::before   { background: var(--bad);  box-shadow: 0 0 12px rgba(255, 180, 171, .55); }
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============ HELPERS ============ */
.empty {
  text-align: center; padding: 48px 20px; color: var(--muted);
  letter-spacing: 0; font-size: 14px;
}
.empty .emoji { font-size: 42px; display: block; margin-bottom: 12px; opacity: .7; }
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  margin: 18px 0;
}
.spacer-8 { height: 8px; } .spacer-16 { height: 16px; } .spacer-24 { height: 24px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.hidden { display: none !important; }
.text-right { text-align: right; }
.mono { font-variant-numeric: tabular-nums; }
.warn { color: var(--warn); }
.bad  { color: var(--bad); }
.good { color: var(--good); }

/* ============ CALENDAR / DAY VIEW ============ */
.day-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 12px;
}
.day-toolbar .date-pill {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 18px; font-weight: 600;
  letter-spacing: 0;
}
.appt-card {
  padding: 14px 16px;
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, rgba(212,175,106,.7), rgba(184,138,79,.2)) 1;
  position: relative;
}
.appt-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold-grad);
  box-shadow: 0 0 12px rgba(212, 175, 106, .3);
}
.appt-time {
  font-weight: 700; font-size: 16px; min-width: 78px;
  display: flex; flex-direction: column; line-height: 1.2;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.appt-time small { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }

/* ============ TABS ============ */
.tabs {
  display: flex; gap: 4px; padding: 5px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--glass-border); border-radius: 14px; margin-bottom: 18px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.tabs button {
  flex: 1; padding: 11px; border: 0; background: transparent; color: var(--muted);
  border-radius: 10px; cursor: pointer; font-weight: 600;
  font-size: 13px; letter-spacing: 0;
  transition: all .25s ease;
}
.tabs button:hover { color: var(--text); }
.tabs button.active {
  background: rgba(232, 180, 184, .12);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(232, 180, 184, .35);
}

/* ============ LANGUAGE / RTL ============ */
.login-langs { margin-top: 8px; display: flex; gap: 6px; justify-content: center; }
.lang-chip.active { background: linear-gradient(135deg, #c8995c 0%, #a37a3f 100%); border-color: rgba(184, 138, 79, .6); color: #fff; font-weight: 600; }

.lang-sel {
  background: rgba(255, 255, 255, .04); color: var(--text);
  border: 1px solid var(--glass-border); border-radius: 999px;
  padding: 6px 12px; min-height: 36px; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  transition: all .2s ease;
}
.lang-sel:hover { border-color: rgba(232, 180, 184, .4); }
[dir="rtl"] .topbar { direction: rtl; }
[dir="rtl"] .side-nav { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--glass-border); }
[dir="rtl"] .side-link { border-left: 0; border-right: 3px solid transparent; padding-left: 12px; padding-right: 9px; }
@media (min-width: 1024px) { [dir="rtl"] .side-link { padding-right: 13px; } }
[dir="rtl"] .side-link.active { border-right-color: var(--primary); }
[dir="rtl"] .topbar { padding-right: calc(var(--side-w-collapsed) + 16px); padding-left: 16px; }
[dir="rtl"] main#view { padding-right: calc(var(--side-w-collapsed) + 16px); padding-left: 16px; }
@media (min-width: 1024px) {
  [dir="rtl"] .topbar { padding-right: calc(var(--side-w) + 32px); padding-left: 32px; }
  [dir="rtl"] main#view { padding-right: calc(var(--side-w) + 32px); padding-left: 48px; }
}
[dir="rtl"] .li-right { align-items: flex-start; }
[dir="rtl"] .text-right { text-align: left; }
[dir="rtl"] .appt-card { border-left: 0; border-right: 3px solid var(--primary); }

.icon-btn-rel { position: relative; }
#inboxDot {
  position: absolute; top: 4px; right: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 8px var(--primary);
}

/* ============ CLIENT CARDS REDESIGN ============ */
.client-hero {
  background:
    linear-gradient(135deg, rgba(212, 175, 106, .10), rgba(212, 165, 176, .06));
  border: 1px solid var(--line); border-radius: 24px;
  padding: 22px; margin-bottom: 16px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-soft);
}
.client-hero::before {
  content: ""; position: absolute; left: 16px; right: 60%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, .5), transparent);
}
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: 0;
}
.tag-new    { background: rgba(231, 201, 184, .12); color: var(--accent); border: 1px solid rgba(231, 201, 184, .35); }
.tag-repeat { background: rgba(212, 165, 176, .12); color: var(--accent-2); border: 1px solid rgba(212, 165, 176, .4); }
.tag-vip    { background: rgba(212, 175, 106, .18); color: var(--primary); border: 1px solid rgba(212, 175, 106, .5); }

/* ============ STOCK ALERT BANNER ============ */
.stock-banner {
  display: flex; align-items: center; gap: 14px;
  border-radius: 18px; padding: 14px 16px;
  margin-bottom: 16px; cursor: pointer;
  border: 1px solid;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stock-banner:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.stock-banner-icon { font-size: 28px; flex: none; }
.stock-banner-body { flex: 1; min-width: 0; }
.stock-banner-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.stock-banner-sub { font-size: 13px; color: var(--muted); }
.stock-banner-cta { color: inherit; opacity: .6; }
.stock-banner-critical {
  background: linear-gradient(135deg, rgba(179, 90, 90, .12), rgba(179, 90, 90, .04));
  border-color: rgba(179, 90, 90, .4);
  color: var(--text);
}
.stock-banner-critical .stock-banner-title { color: var(--bad); }
.stock-banner-low {
  background: linear-gradient(135deg, rgba(212, 165, 116, .14), rgba(212, 165, 116, .04));
  border-color: rgba(212, 165, 116, .45);
}
.stock-banner-low .stock-banner-title { color: var(--warn); }
.stock-banner-soon {
  background: linear-gradient(135deg, rgba(231, 201, 184, .14), rgba(231, 201, 184, .04));
  border-color: rgba(231, 201, 184, .5);
}

/* ============ ROLE SWATCH ============ */
.role-swatch {
  width: 8px; align-self: stretch;
  border-radius: 4px; flex: none;
  margin-right: -4px;
  box-shadow: 0 0 8px currentColor;
  opacity: .9;
}

/* ============ PERMISSION GROUPS ============ */
.perm-group { margin-bottom: 14px; }
.perm-group-head {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px; padding-left: 4px;
  border-left: 2px solid var(--primary);
  padding-left: 10px;
}
.preset-btn {
  background: linear-gradient(135deg, rgba(212, 175, 106, .08), rgba(212, 165, 176, .04)) !important;
  border-color: rgba(184, 138, 79, .35) !important;
  font-weight: 600;
}
.preset-btn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 106, .15), rgba(212, 165, 176, .08)) !important;
}

/* ============ APPOINTMENT SECTION BOXES ============ */
.appt-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 600px) { .appt-grid { grid-template-columns: 1fr 1fr; } }

.appt-box {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all .35s ease;
  cursor: pointer;
  display: flex; flex-direction: column;
  position: relative;
}
.appt-box:hover {
  transform: translateY(-3px); border-color: rgba(232, 180, 184, .4);
  box-shadow: inset 0.5px 0.5px 0 rgba(232, 180, 184, .35), 0 12px 40px rgba(0,0,0,.4);
}

/* Left status stripe — visual cue per state */
.appt-box::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 1;
}
.appt-box.appt-status-pending::before  { background: var(--warn); }
.appt-box.appt-status-arrived::before  { background: var(--accent); }
.appt-box.appt-status-done::before     { background: var(--accent-2); }
.appt-box.appt-status-paid::before     { background: var(--good); }

/* Hero — client identity strip */
.appt-hero {
  position: relative;
  padding: 16px 16px 14px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.appt-hero-vip {
  background: linear-gradient(135deg, rgba(212, 175, 106, .22), rgba(212, 165, 176, .12));
}
.appt-hero-repeat {
  background: linear-gradient(135deg, rgba(212, 165, 176, .18), rgba(231, 201, 184, .08));
}
.appt-hero-new {
  background: linear-gradient(135deg, rgba(231, 201, 184, .18), rgba(212, 175, 106, .06));
}
.appt-hero-walkin {
  background: linear-gradient(135deg, rgba(168, 153, 140, .12), rgba(255, 255, 255, .06));
}
.appt-hero::before {
  content: ""; position: absolute; left: 20px; right: 50%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 79, .55), transparent);
}

.appt-vip {
  position: absolute; top: 6px; right: 12px;
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(212, 175, 106, .6));
}

.appt-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #c8995c 0%, #a37a3f 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.4) inset, 0 4px 12px rgba(184, 138, 79, .25);
  flex: none;
}
.appt-hero-main { flex: 1; min-width: 0; }
.appt-client {
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.appt-tag { margin-top: 4px; }
.appt-status-pill { flex: none; }

/* Body */
.appt-body { padding: 14px 16px 14px 20px; }

.appt-row-time {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 10px;
}
.appt-time-block {
  display: flex; flex-direction: column;
  background: rgba(232, 180, 184, .12);
  border: 1px solid rgba(232, 180, 184, .35);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 92px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.appt-time-big {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 24px; font-weight: 700; color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1;
}
.appt-time-sub { font-size: 11px; color: var(--muted); margin-top: 6px; }

.appt-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.appt-service {
  font-size: 14px; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.appt-service .ico { color: var(--primary); flex: none; width: 14px; height: 14px; }
.appt-emp {
  font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.appt-emp-photo {
  width: 22px; height: 22px; border-radius: 50%;
  overflow: hidden; flex: none; position: relative;
}
.appt-emp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.appt-emp-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #c8995c 0%, #a37a3f 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 700;
}
.appt-price {
  font-size: 16px; font-weight: 700;
  color: var(--text);
}

.appt-note {
  background: linear-gradient(135deg, rgba(212, 175, 106, .08), rgba(212, 165, 176, .04));
  border: 1px solid rgba(184, 138, 79, .2);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 12.5px; line-height: 1.45;
  display: flex; align-items: flex-start; gap: 8px;
}
.appt-note .ico { color: var(--primary); margin-top: 1px; flex: none; }

.appt-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.appt-actions .btn { flex: 1; min-width: 0; }

/* ============ CLIENT CARDS ============ */
.cli-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 540px) { .cli-grid { grid-template-columns: 1fr 1fr; } }

.cli-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all .35s ease;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.cli-card:hover {
  transform: translateY(-3px); border-color: rgba(232, 180, 184, .4);
  box-shadow: inset 0.5px 0.5px 0 rgba(232, 180, 184, .35), 0 12px 40px rgba(0,0,0,.4);
}

.cli-hero {
  position: relative;
  padding: 22px 16px 18px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--line);
}
.cli-hero-vip {
  background: linear-gradient(135deg, rgba(212, 175, 106, .22), rgba(212, 165, 176, .14));
}
.cli-hero-repeat {
  background: linear-gradient(135deg, rgba(212, 165, 176, .18), rgba(231, 201, 184, .08));
}
.cli-hero-new {
  background: linear-gradient(135deg, rgba(231, 201, 184, .18), rgba(212, 175, 106, .06));
}
.cli-hero::before {
  content: ""; position: absolute; left: 16px; right: 50%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 79, .55), transparent);
}

.cli-vip-crown {
  position: absolute; top: 8px; right: 12px;
  font-size: 22px;
  filter: drop-shadow(0 0 6px rgba(212, 175, 106, .6));
}

.cli-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #c8995c 0%, #a37a3f 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.4) inset, 0 4px 14px rgba(184, 138, 79, .25);
  flex: none;
}

.cli-tag { flex: 1; min-width: 0; }
.cli-disc {
  background: rgba(155, 185, 143, .18);
  color: var(--good);
  border: 1px solid rgba(155, 185, 143, .5);
  padding: 4px 10px; border-radius: 999px;
  font-weight: 700; font-size: 12px;
  flex: none;
}

.cli-body { padding: 14px 16px 16px; }
.cli-name {
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 600; font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 2px; color: var(--text);
}
.cli-phone {
  font-size: 13px; color: var(--muted); margin-bottom: 10px;
}

.cli-note {
  background: linear-gradient(135deg, rgba(212, 175, 106, .08), rgba(212, 165, 176, .04));
  border: 1px solid rgba(184, 138, 79, .2);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 12.5px; line-height: 1.45;
  display: flex; align-items: flex-start; gap: 8px;
}
.cli-note .ico { color: var(--primary); margin-top: 1px; flex: none; }

.cli-alert {
  background: rgba(212, 165, 116, .14);
  border: 1px solid rgba(212, 165, 116, .45);
  color: var(--warn);
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-size: 12px; font-weight: 600;
}

.cli-upcoming {
  background: rgba(155, 185, 143, .12);
  border: 1px solid rgba(155, 185, 143, .4);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
}
.cli-upcoming .ico { color: var(--good); flex: none; }

.cli-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.cli-stat { text-align: center; }
.cli-stat .v {
  font-size: 14px; font-weight: 700; color: var(--text);
  display: block; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.cli-stat .l {
  font-size: 10.5px; color: var(--muted); font-weight: 500;
}

.cli-history { margin-bottom: 12px; }
.cli-history-head {
  font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}
.cli-history-head .ico { color: var(--primary); width: 14px; height: 14px; }
.cli-history-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.cli-history-row:last-child { border-bottom: 0; }

.cli-actions {
  display: flex; gap: 8px;
}
.cli-actions .btn { flex: 1; }

/* ============ INVENTORY ============ */
.stock-bar {
  height: 4px; background: var(--bg-2); border-radius: 999px; overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--line);
}
.stock-bar > span {
  display: block; height: 100%;
  background: var(--gold-grad);
  transition: width .4s ease;
  box-shadow: 0 0 8px rgba(212, 175, 106, .3);
}
.stock-bar.low > span { background: linear-gradient(90deg, #c47979, #8a4a4a); box-shadow: 0 0 8px rgba(196, 121, 121, .3); }
.stock-bar.med > span { background: linear-gradient(90deg, #d4a574, #b88a4f); }

/* ============ INBOX / NOTIFICATIONS ============ */
.notif {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start;
  box-shadow: var(--shadow-soft);
}
.notif.unread {
  border-color: rgba(184, 138, 79, .5);
  background: linear-gradient(180deg, #fffaf1, #fbf2e1);
  box-shadow: 0 0 16px rgba(184, 138, 79, .12), var(--shadow-soft);
}
.notif .notif-icon { font-size: 22px; flex: none; opacity: .9; }
.notif .notif-time { font-size: 12px; color: var(--muted); letter-spacing: 0; }

#inboxDot { background: var(--primary); box-shadow: 0 0 10px rgba(212, 175, 106, .7); }

/* ============ ICONS (SVG line) ============ */
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15em; height: 1.15em; flex: none;
  vertical-align: -0.18em;
}
.ico svg { width: 100%; height: 100%; }
.ico.lg { width: 22px; height: 22px; }
.ico.xl { width: 28px; height: 28px; }
.nav-btn .ico { width: 22px; height: 22px; opacity: .85; transition: opacity .2s ease, transform .2s ease; }
.nav-btn.active .ico { color: var(--primary); opacity: 1; }
.nav-btn-fab .ico { width: 28px; height: 28px; color: #fff; }
.btn .ico, .btn-sm .ico { width: 16px; height: 16px; }
.icon-btn .ico { width: 18px; height: 18px; color: var(--text); }
.tile-value .ico { width: 28px; height: 28px; color: var(--primary); vertical-align: -0.3em; }
.hub-card .hub-icon .ico { width: 28px; height: 28px; color: var(--primary); }

/* ============ EMPLOYEE PROFILE CARD ============ */
.emp-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 540px) { .emp-grid { grid-template-columns: 1fr 1fr; } }
.emp-card {
  position: relative; overflow: hidden;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 0;
  box-shadow: var(--shadow-card);
  transition: all .35s ease;
  display: flex; flex-direction: column;
}
.emp-card:hover {
  transform: translateY(-3px); border-color: rgba(232, 180, 184, .4);
  box-shadow: inset 0.5px 0.5px 0 rgba(232, 180, 184, .35), 0 12px 40px rgba(0,0,0,.4);
}
.emp-card .emp-photo {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f3e6d0, #e7d3b3);
  position: relative; overflow: hidden;
}
.emp-card .emp-photo img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.emp-card .emp-photo-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #c8995c 0%, #a37a3f 100%);
  letter-spacing: -0.01em;
}
.emp-card .emp-role-pill {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255, 255, 255, .94);
  color: var(--primary-2);
  font-size: 11px; letter-spacing: 0;
  padding: 5px 10px; border-radius: 999px; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(120, 90, 50, .12);
  display: inline-flex; align-items: center; gap: 4px;
}
.emp-card .emp-net {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(120, 90, 50, .15);
  font-variant-numeric: tabular-nums;
}
.emp-card .emp-body {
  padding: 14px 16px 16px;
}
.emp-card .emp-name {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 6px; color: var(--text);
}
.emp-card .emp-meta-list {
  display: flex; flex-direction: column; gap: 8px;
  margin: 10px 0 14px;
}
.emp-card .emp-meta {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--muted); font-size: 13px;
}
.emp-card .emp-meta .ico { color: var(--primary); width: 16px; height: 16px; margin-top: 1px; }
.emp-card .emp-meta strong { color: var(--text); font-weight: 500; }
.emp-card .emp-behavior {
  background: linear-gradient(135deg, rgba(212, 175, 106, .08), rgba(212, 165, 176, .04));
  border: 1px solid rgba(184, 138, 79, .2);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12px; line-height: 1.5;
  color: var(--text);
  display: flex; align-items: flex-start; gap: 8px;
}
.emp-card .emp-behavior .ico { color: var(--primary); margin-top: 1px; }
.emp-card .emp-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-bottom: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.emp-card .emp-stat {
  text-align: center;
}
.emp-card .emp-stat .v {
  font-size: 16px; font-weight: 700; color: var(--text);
  display: block; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.emp-card .emp-stat .l {
  font-size: 11px; letter-spacing: 0; color: var(--muted); font-weight: 500;
}
.emp-card .emp-actions {
  display: flex; gap: 8px;
}
.emp-card .emp-actions .btn { flex: 1; }

/* ============ CHARTS ============ */
.chart-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.chart-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.chart-title {
  font-family: "Manrope", sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary);
}
.chart-sub {
  font-size: 12px; color: var(--text-2);
}
.chart-bars {
  display: flex; align-items: flex-end; gap: 6px; height: 80px;
}
.chart-bar {
  flex: 1; min-width: 8px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(232, 180, 184, .3) 100%);
  border-radius: 4px 4px 0 0;
  position: relative;
  box-shadow: 0 0 8px rgba(232, 180, 184, .3);
  transition: filter .2s ease;
}
.chart-bar:hover { filter: brightness(1.2); }
.chart-bar.gold { background: linear-gradient(180deg, var(--secondary) 0%, rgba(233, 195, 73, .3) 100%); box-shadow: 0 0 8px rgba(233, 195, 73, .3); }
.chart-bar.muted { background: rgba(255, 255, 255, .12); box-shadow: none; }
.chart-labels {
  display: flex; gap: 6px; margin-top: 8px;
}
.chart-labels > span {
  flex: 1; text-align: center;
  font-size: 10px; color: var(--muted); letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* Donut */
.chart-donut svg { display: block; margin: 0 auto; }
.chart-donut .donut-track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 14; }
.chart-donut .donut-arc   { fill: none; stroke-linecap: round; stroke-width: 14; }
.chart-donut .donut-center { font-family: "Noto Serif", Georgia, serif; font-weight: 700; fill: var(--primary); }

/* Sparkline (inside tiles) */
.tile-spark { margin-top: 12px; height: 36px; width: 100%; }
.tile-spark path { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(232, 180, 184, .5)); }
.tile-spark .area { fill: url(#sparkGrad); stroke: none; opacity: .25; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

/* small screen tweaks */
@media (max-width: 380px) {
  .tile .tile-value { font-size: 22px; }
  .row-2 { grid-template-columns: 1fr; }
}

/* ============ LOGIN SCREEN ============ */
.login-screen {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  position: relative; overflow: hidden;
}
.login-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
}
.orb-1 { width: 420px; height: 420px; background: rgba(232, 180, 184, .55); top: -80px; left: -80px; opacity: .35; animation: orbFloat 20s ease-in-out infinite; }
.orb-2 { width: 360px; height: 360px; background: rgba(42, 27, 61, .8); bottom: -60px; right: -40px; opacity: .55; animation: orbFloat 28s ease-in-out infinite reverse; }
.orb-3 { width: 280px; height: 280px; background: rgba(255, 209, 222, .35); top: 40%; left: 50%; opacity: .25; animation: orbFloat 22s ease-in-out infinite; }
.login-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  background: rgba(42, 27, 61, .35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0.5px 0.5px 0 rgba(232, 180, 184, .15);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
}
.login-card::before {
  content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, .55), transparent);
}
.login-brand { text-align: center; margin-bottom: 22px; }
.login-brand h1 {
  font-size: 28px; margin: 16px 0 4px;
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 700; letter-spacing: 0.05em;
  color: var(--primary);
}
.login-brand h1 em {
  display: block; color: var(--text-2); font-style: normal;
  letter-spacing: 0.18em; font-size: 13px; font-weight: 500;
  text-transform: uppercase; margin-top: 4px;
}
.brand-dot.big { display: none; }
.login-logo {
  width: 96px; height: 96px;
  border-radius: 24px;
  object-fit: contain;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--glass-border);
  padding: 12px;
  box-shadow: 0 0 30px rgba(232, 180, 184, .25);
  margin-bottom: 4px;
}
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px 16px; cursor: pointer; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all .3s ease;
  position: relative; overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.role-card:hover {
  transform: translateY(-3px); border-color: rgba(232, 180, 184, .5);
  box-shadow: 0 8px 32px rgba(232, 180, 184, .25), inset 0.5px 0.5px 0 rgba(232, 180, 184, .35);
}
.role-card .role-icon { font-size: 34px; }
.role-card .role-name { font-weight: 700; font-size: 16px; letter-spacing: 0; }
.role-card .role-sub { font-size: 12px; color: var(--muted); text-align: center; letter-spacing: 0; }

/* ============ AVAILABILITY BOARD ============ */
.avail-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 540px) { .avail-grid { grid-template-columns: 1fr 1fr; } }

.avail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: flex; gap: 14px; align-items: flex-start;
  cursor: pointer;
  box-shadow: var(--shadow-card), var(--shadow-soft);
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.avail-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--good);
}
.avail-card.avail-busy::before        { background: var(--accent-2); }
.avail-card.avail-ending-soon::before { background: var(--warn); }
.avail-card.avail-absent::before      { background: var(--bad); }
.avail-card.avail-vacation::before    { background: #a37a3f; }
.avail-card.avail-off::before         { background: var(--muted); }
.avail-card:hover { transform: translateY(-2px); border-color: rgba(184, 138, 79, .35); box-shadow: var(--shadow-glow); }

.avail-photo {
  width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden; flex: none; position: relative;
}
.avail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avail-photo-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #c8995c 0%, #a37a3f 100%);
  color: #fff; font-weight: 700; font-size: 18px;
}

.avail-dot {
  position: absolute; bottom: 0; right: 0;
  width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: 0 0 8px currentColor;
}
.dot-available    { background: var(--good); }
.dot-busy         { background: var(--accent-2); }
.dot-ending-soon  { background: var(--warn);
  animation: blink 1.4s infinite ease-in-out;
}
.dot-absent       { background: var(--bad); }
.dot-vacation     { background: #a37a3f; }
.dot-off          { background: var(--muted); }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

.avail-body { flex: 1; min-width: 0; }
.avail-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.avail-status { font-size: 12.5px; margin-bottom: 6px; }
.avail-current {
  font-size: 12px; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.avail-current .ico { color: var(--primary); width: 14px; height: 14px; }
.avail-specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* ============ MINI AVAILABILITY (in appointment modal) ============ */
.avail-mini {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.avail-mini-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; display: flex; align-items: center; gap: 8px;
  cursor: pointer; text-align: left;
  transition: border-color .2s ease, transform .2s ease;
}
.avail-mini-card:hover { transform: translateY(-1px); border-color: rgba(184, 138, 79, .4); }
.avail-mini-card .avail-dot {
  position: static; border: 0; width: 10px; height: 10px; flex: none;
}
.avail-mini-name { font-weight: 600; font-size: 12.5px; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avail-mini-status { font-size: 11px; font-weight: 600; }

/* ============ STAFF LOGIN PICKER ============ */
.rec-pick-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  max-height: 50vh; overflow-y: auto; padding: 2px;
}
.rec-pick-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 10px;
  cursor: pointer; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.rec-pick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 138, 79, .45);
  box-shadow: var(--shadow-glow);
}
.rec-pick-photo {
  width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden; flex: none; position: relative;
  box-shadow: 0 2px 10px rgba(120, 90, 50, .15);
}
.rec-pick-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-pick-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #c8995c 0%, #a37a3f 100%);
  color: #fff; font-weight: 700; font-size: 22px;
}
.rec-pick-fallback.big { font-size: 36px; }
.rec-pick-name { font-weight: 700; font-size: 14px; text-align: center; line-height: 1.2; }
.rec-pick-role { font-size: 11px; font-weight: 600; }
.rec-pick-lock {
  position: absolute; top: 8px; right: 8px;
  font-size: 14px; opacity: .6;
}
.rec-pick-nopin { color: var(--warn); opacity: 1; }

/* ============ EMPLOYEE PIN PAD HEAD ============ */
.pin-user-head {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-bottom: 12px;
}
.pin-user-photo {
  width: 84px; height: 84px; border-radius: 50%;
  overflow: hidden; flex: none; position: relative;
  box-shadow: 0 4px 16px rgba(120, 90, 50, .2);
  border: 2px solid rgba(184, 138, 79, .3);
}
.pin-user-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pin-user-name { font-size: 18px; font-weight: 700; }
.pin-user-role { font-size: 12px; font-weight: 600; }

.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pin-key {
  min-height: 60px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--glass-border); color: var(--primary);
  border-radius: 16px; cursor: pointer; font-size: 22px; font-weight: 600;
  transition: all .2s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pin-key:hover { background: rgba(232, 180, 184, .12); border-color: rgba(232, 180, 184, .4); }
.pin-key.zero { grid-column: 2; }
.pin-key.del  { grid-column: 3; }
.pin-display {
  display: flex; gap: 10px; justify-content: center; margin: 14px 0 4px;
}
.pin-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line); transition: all .15s ease;
}
.pin-dot.filled { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 14px rgba(232, 180, 184, .65); }

/* ============ ADMIN HUB ============ */
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 720px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
.hub-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  border: 1px solid var(--glass-border);
  cursor: pointer; color: var(--text); text-align: left;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: all .35s ease;
  box-shadow: var(--shadow-card);
}
.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 180, 184, .4);
  box-shadow: inset 0.5px 0.5px 0 rgba(232, 180, 184, .35), 0 12px 40px rgba(0,0,0,.35);
}
.hub-card .hub-icon {
  font-size: 28px; margin-bottom: 14px; opacity: .95;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(232, 180, 184, .12);
  color: var(--primary);
  border: 1px solid rgba(232, 180, 184, .25);
}
.hub-card .hub-title {
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 600; font-size: 22px;
  letter-spacing: -0.01em; color: var(--primary);
}
.hub-card .hub-sub { color: var(--text-2); font-size: 13px; margin-top: 4px; letter-spacing: 0; line-height: 1.5; }
.hub-card .hub-stat {
  margin-top: 18px; font-size: 12px; color: var(--secondary);
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.hub-card.glow-pink::after,
.hub-card.glow-cyan::after,
.hub-card.glow-violet::after,
.hub-card.glow-green::after { content: none; }

/* ============ VOICE / MIC ============ */
.mic-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--rose-grad);
  color: var(--on-primary); border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow:
    0 8px 28px rgba(232, 180, 184, .55),
    0 0 0 1px rgba(255, 255, 255, .35) inset;
  transition: transform .2s ease;
}
.mic-btn:hover { transform: scale(1.05); }
.mic-btn.listening {
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 165, 176, .55); }
  50%      { box-shadow: 0 0 0 16px rgba(212, 165, 176, 0); }
}
.transcript {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; min-height: 60px; font-style: italic; color: var(--muted);
}
.transcript.has-text { color: var(--text); font-style: normal; }

/* ============ CAMERA TILES ============ */
.cam-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 540px) { .cam-grid { grid-template-columns: 1fr 1fr; } }
.cam-tile {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: #000; aspect-ratio: 16/9; position: relative;
}
.cam-tile iframe, .cam-tile video, .cam-tile img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.cam-tile .cam-name {
  position: absolute; left: 8px; top: 8px;
  background: rgba(0,0,0,.55); padding: 4px 8px; border-radius: 8px;
  font-size: 12px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ============ AWARDS ============ */
.award-card {
  background: rgba(233, 195, 73, .10);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(233, 195, 73, .35);
  border-radius: var(--radius-lg); padding: 18px;
  position: relative; overflow: hidden;
  box-shadow: 0 0 24px rgba(233, 195, 73, .15) inset, var(--shadow-card);
}
.award-card::before {
  content: ""; position: absolute; left: 16px; right: 50%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, .6), transparent);
}
.award-card::after {
  content: ""; position: absolute; right: -50px; top: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212, 175, 106, .18), transparent);
  pointer-events: none;
}
.award-card .crown { font-size: 28px; filter: drop-shadow(0 0 8px rgba(212, 175, 106, .4)); }
.award-card .li-title {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 20px; font-weight: 600; margin-top: 6px; letter-spacing: -0.01em;
  color: var(--secondary);
}

