:root {
  --ink: #111827;
  --muted: #667085;
  --line: #d8e0ea;
  --paper: #f4f7fb;
  --panel: #ffffff;
  --brand: #0f9f8f;
  --brand-2: #ff5a3d;
  --dark: #101828;
  --blue: #2563eb;
  --gold: #f6b83f;
  --violet: #7c3aed;
  --green: #15a46a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Salon Edge premium identity refresh */
:root {
  --ink: #14171c;
  --muted: #5b6470;
  --line: rgba(20, 23, 28, 0.12);
  --paper: #f7f2e9;
  --panel: rgba(255, 255, 255, 0.88);
  --brand: #c9a227;
  --brand-2: #7a1f2b;
  --dark: #14171c;
  --blue: #5b6470;
  --gold: #c9a227;
  --violet: #7a1f2b;
  --green: #60735a;
}

body {
  background:
    linear-gradient(135deg, rgba(20, 23, 28, 0.04), rgba(201, 162, 39, 0.06)),
    radial-gradient(circle at 12% 8%, rgba(201, 162, 39, 0.2), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(122, 31, 43, 0.1), transparent 25%),
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(20, 23, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 23, 28, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

.logo-mark {
  color: transparent;
  background:
    url("/salonedge-mark.svg") center/92% 92% no-repeat,
    #14171c;
  border: 1px solid rgba(201, 162, 39, 0.36);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(236, 234, 230, 0.06);
}

.auth-shell {
  background: #14171c;
}

.auth-brand {
  background:
    linear-gradient(90deg, rgba(20, 23, 28, 0.92), rgba(20, 23, 28, 0.44)),
    url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.auth-video {
  opacity: 0.42;
  filter: saturate(0.8) contrast(1.12);
}

.auth-overlay {
  background:
    linear-gradient(115deg, rgba(20, 23, 28, 0.96), rgba(20, 23, 28, 0.58), rgba(201, 162, 39, 0.18)),
    radial-gradient(circle at 76% 30%, rgba(201, 162, 39, 0.24), transparent 32%);
}

.auth-copy {
  max-width: 800px;
  padding: 42px;
  background: rgba(20, 23, 28, 0.62);
  border: 1px solid rgba(236, 234, 230, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(16px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.auth-copy h1 {
  font-size: clamp(44px, 6.4vw, 86px);
  color: #ffffff;
  text-shadow: 0 16px 46px rgba(0, 0, 0, 0.38);
}

.auth-copy p,
.brand-top span,
.side-brand span {
  color: rgba(236, 234, 230, 0.74);
}

.hero-proof span {
  color: #f7f2e9;
  background: rgba(236, 234, 230, 0.1);
  border-color: rgba(201, 162, 39, 0.34);
}

.auth-panel {
  background:
    linear-gradient(180deg, rgba(247, 242, 233, 0.95), rgba(236, 234, 230, 0.94)),
    var(--paper);
}

.auth-card,
.modal-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(20, 23, 28, 0.12);
  box-shadow: 0 28px 80px rgba(20, 23, 28, 0.18);
  backdrop-filter: blur(16px);
}

.lang-switch {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(20, 23, 28, 0.1);
  box-shadow: 0 14px 34px rgba(20, 23, 28, 0.08);
}

.lang-switch button.active {
  background: #14171c;
  color: #f7f2e9;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(20, 23, 28, 0.14);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(201, 162, 39, 0.34);
  border-color: rgba(201, 162, 39, 0.7);
}

.primary-btn,
.upgrade-btn {
  color: #14171c;
  background: linear-gradient(135deg, #f8e7a2, #c9a227 46%, #8f6e14);
  box-shadow: 0 16px 34px rgba(201, 162, 39, 0.24);
}

.secondary-btn,
.icon-btn {
  color: #14171c;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 242, 233, 0.92));
  border: 1px solid rgba(20, 23, 28, 0.13);
  box-shadow: 0 12px 24px rgba(20, 23, 28, 0.06);
}

.app-shell {
  grid-template-columns: 300px 1fr;
}

.sidebar {
  padding: 24px 18px;
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.14), transparent 30%),
    radial-gradient(circle at 10% 6%, rgba(201, 162, 39, 0.18), transparent 28%),
    #14171c;
  border-right: 1px solid rgba(201, 162, 39, 0.16);
  box-shadow: 22px 0 54px rgba(20, 23, 28, 0.2);
}

.side-brand {
  min-height: 76px;
  margin-bottom: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(236, 234, 230, 0.08);
  border-radius: 8px;
}

.nav-btn {
  min-height: 48px;
  padding: 0 13px;
  color: rgba(236, 234, 230, 0.68);
}

.nav-btn span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #c9a227;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 8px;
  font-size: 12px;
}

.nav-btn.active,
.nav-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.22), rgba(255, 255, 255, 0.08));
  border-color: rgba(201, 162, 39, 0.28);
}

.logout-btn {
  background: rgba(122, 31, 43, 0.28);
  border-color: rgba(201, 162, 39, 0.14);
}

.main {
  background:
    linear-gradient(180deg, rgba(247, 242, 233, 0.84), rgba(247, 242, 233, 0.98)),
    var(--paper);
}

.topbar {
  min-height: 76px;
  background: rgba(247, 242, 233, 0.82);
  border-bottom: 1px solid rgba(20, 23, 28, 0.1);
  box-shadow: 0 18px 42px rgba(20, 23, 28, 0.06);
}

.trial-pill {
  background: rgba(20, 23, 28, 0.06);
  border-color: rgba(201, 162, 39, 0.26);
}

.trial-pill.active {
  color: #ffffff;
  background: #198754;
  border-color: rgba(25, 135, 84, 0.38);
  box-shadow: 0 12px 28px rgba(25, 135, 84, 0.22);
}

.view {
  padding: 30px;
}

.premium-strip {
  min-height: 170px;
  padding: 28px 34px;
  background:
    linear-gradient(100deg, rgba(20, 23, 28, 0.96), rgba(20, 23, 28, 0.76) 45%, rgba(122, 31, 43, 0.58)),
    url("https://images.unsplash.com/photo-1521590832167-7bcbfaa6381f?auto=format&fit=crop&w=1600&q=85") center/cover;
  border: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: 0 28px 70px rgba(20, 23, 28, 0.2);
}

.premium-strip::after,
.marketing-hero::after {
  width: 300px;
  height: 300px;
  right: -90px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.34), transparent 62%);
}

.premium-strip span,
.marketing-hero span {
  color: #e0c465;
  letter-spacing: 1.8px;
}

.premium-strip strong {
  max-width: 760px;
  color: #fff;
  font-size: clamp(28px, 4vw, 50px);
}

.view-head h1 {
  color: #14171c;
  font-size: 38px;
}

.view-head p {
  color: #5b6470;
}

.stats-grid article,
.panel,
.table-card {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(20, 23, 28, 0.1);
  box-shadow: 0 20px 50px rgba(20, 23, 28, 0.08);
  backdrop-filter: blur(14px);
}

.stats-grid article {
  min-height: 138px;
}

.stats-grid article::after {
  opacity: 0.12;
  background: #c9a227;
}

.stat-hot,
.stat-blue,
.stat-gold,
.stat-green {
  border-top-color: #c9a227 !important;
}

.stats-grid strong,
.panel h2 {
  color: #14171c;
}

.list-item,
.finance-row,
.employee-rank,
.campaign-card,
.review,
.toggle-row {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 242, 233, 0.68));
  border-color: rgba(20, 23, 28, 0.1);
}

.employee-rank span {
  color: #14171c;
  background: linear-gradient(135deg, #f8e7a2, #c9a227);
}

.progress-card {
  background: rgba(247, 242, 233, 0.9);
  border-color: rgba(201, 162, 39, 0.3);
}

.progress {
  background: rgba(201, 162, 39, 0.18);
}

.progress i {
  background: linear-gradient(90deg, #7a1f2b, #c9a227);
}

.insight-card,
.insight-card.blue,
.insight-card.orange,
.marketing-hero {
  background:
    linear-gradient(135deg, rgba(20, 23, 28, 0.96), rgba(20, 23, 28, 0.78), rgba(122, 31, 43, 0.54)),
    url("https://images.unsplash.com/photo-1599351431202-1e0f0137899a?auto=format&fit=crop&w=1200&q=80") center/cover;
  border: 1px solid rgba(201, 162, 39, 0.22);
  box-shadow: 0 22px 54px rgba(20, 23, 28, 0.16);
}

.insight-card strong,
.marketing-hero strong {
  color: #fff;
}

.insight-card span,
.insight-card small,
.marketing-hero p {
  color: rgba(247, 242, 233, 0.76);
}

.marketing-hero .secondary-btn {
  color: #14171c;
  background: linear-gradient(135deg, #f8e7a2, #c9a227);
  border-color: rgba(201, 162, 39, 0.28);
}

.campaign-card.active {
  border-color: rgba(201, 162, 39, 0.42);
  background: linear-gradient(135deg, rgba(247, 242, 233, 0.94), rgba(255, 255, 255, 0.82));
}

.range-btn.active,
.range-btn:hover {
  background: #14171c;
  color: #f7f2e9;
}

.slot {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 242, 233, 0.82));
}

.slot.busy,
.slot-choice.selected {
  color: #7a1f2b;
  background: rgba(122, 31, 43, 0.08);
  border-color: rgba(122, 31, 43, 0.22);
}

.slot-choice {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 242, 233, 0.88));
}

th {
  color: #5b6470;
  background: rgba(247, 242, 233, 0.76);
}

td {
  background: rgba(255, 255, 255, 0.42);
}

.review-link {
  color: #14171c;
  background: linear-gradient(135deg, rgba(248, 231, 162, 0.68), rgba(255, 255, 255, 0.74));
  border-color: rgba(201, 162, 39, 0.28);
}

.phone-preview {
  background:
    linear-gradient(180deg, rgba(20, 23, 28, 0.92), rgba(20, 23, 28, 0.98)),
    #14171c;
  border-color: #0d0f13;
  box-shadow: 0 34px 84px rgba(20, 23, 28, 0.26);
}

.phone-cover,
.form-preview-image,
.booking-form-image {
  background:
    linear-gradient(180deg, rgba(20, 23, 28, 0.04), rgba(20, 23, 28, 0.32)),
    url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1200&q=85") center/cover;
}

.phone-service {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 162, 39, 0.18);
}

.phone-preview button {
  color: #14171c;
  background: linear-gradient(135deg, #f8e7a2, #c9a227);
}

.public-booking-mode {
  background:
    linear-gradient(115deg, rgba(20, 23, 28, 0.86), rgba(20, 23, 28, 0.4)),
    url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1800&q=85") center/cover fixed;
}

.public-booking-mode .booking-form {
  background: rgba(247, 242, 233, 0.94);
  border: 1px solid rgba(201, 162, 39, 0.26);
}

.public-booking-brand {
  padding: 12px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(20, 23, 28, 0.08);
  border-radius: 8px;
}

dialog::backdrop {
  background: rgba(20, 23, 28, 0.64);
  backdrop-filter: blur(8px);
}

.whatsapp {
  color: #14171c;
  background: linear-gradient(135deg, #f8e7a2, #c9a227);
}

@media (max-width: 980px) {
  .sidebar {
    background: #14171c;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 4%, rgba(15, 159, 143, 0.16), transparent 26%),
    radial-gradient(circle at 92% 14%, rgba(124, 58, 237, 0.14), transparent 28%),
    linear-gradient(315deg, rgba(255, 90, 61, 0.09), transparent 34%),
    var(--paper);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  background: #0b1220;
}

.auth-brand {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: white;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-video,
.auth-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-video {
  object-fit: cover;
}

.auth-overlay {
  background:
    linear-gradient(115deg, rgba(9, 16, 30, 0.92), rgba(15, 159, 143, 0.42), rgba(255, 90, 61, 0.24)),
    linear-gradient(0deg, rgba(9, 16, 30, 0.42), rgba(9, 16, 30, 0.18));
}

.brand-top,
.auth-copy,
.mobile-brand {
  position: relative;
  z-index: 1;
}

.brand-top,
.side-brand,
.mobile-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-top strong,
.side-brand strong,
.mobile-brand strong {
  display: block;
  font-size: 20px;
}

.brand-top span,
.side-brand span,
.mobile-brand span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--blue) 52%, var(--brand-2));
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-copy {
  max-width: 720px;
}

.auth-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.auth-copy p {
  margin: 0;
  max-width: 560px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.auth-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 247, 251, 0.94)),
    var(--paper);
}

.lang-switch {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 6px;
  padding: 5px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--muted);
}

.lang-switch button.active {
  background: var(--dark);
  color: white;
}

.auth-card,
.modal-card {
  width: min(100%, 520px);
  background: white;
  border: 1px solid rgba(216, 224, 234, 0.92);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 26px 70px rgba(16, 24, 40, 0.18);
}

.mobile-brand {
  display: none;
  margin-bottom: 24px;
}

.mobile-brand span {
  color: var(--muted);
}

h1,
h2,
p {
  margin-top: 0;
}

.auth-card h2,
.modal-card h2,
.panel h2 {
  margin-bottom: 20px;
}

.auth-message {
  min-height: 20px;
  margin: 0 0 14px;
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
}

.auth-message[data-type="success"] {
  color: var(--green);
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
}

textarea {
  padding: 12px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.primary-btn,
.secondary-btn,
.upgrade-btn,
.icon-btn {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 800;
}

.primary-btn {
  width: 100%;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.secondary-btn {
  color: var(--ink);
  background: linear-gradient(180deg, white, #f8fafc);
  border: 1px solid var(--line);
}

.switch-text {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.switch-text button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 900;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px 1fr;
}

.app-shell.sections-hidden {
  grid-template-columns: 1fr;
}

.app-shell.sections-hidden .sidebar {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  color: white;
  background:
    linear-gradient(180deg, rgba(15, 159, 143, 0.28), transparent 26%),
    linear-gradient(135deg, #111827, #172554 58%, #2b1238);
  box-shadow: 12px 0 34px rgba(16, 24, 40, 0.16);
  display: flex;
  flex-direction: column;
}

.side-brand {
  margin-bottom: 24px;
}

.sidebar nav {
  display: grid;
  gap: 8px;
  flex: 1;
  overflow: auto;
  padding-right: 2px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
}

.nav-btn.active,
.nav-btn:hover {
  color: white;
  background: linear-gradient(135deg, rgba(15, 159, 143, 0.42), rgba(37, 99, 235, 0.34));
  border-color: rgba(255, 255, 255, 0.2);
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  padding: 0 12px;
  color: white;
  background: rgba(255, 90, 61, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  text-align: left;
}

.logout-btn:hover {
  background: rgba(255, 90, 61, 0.3);
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 0 28px;
  background: rgba(244, 247, 251, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trial-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 12px;
  color: var(--ink) !important;
  background: linear-gradient(135deg, #fff5cf, #ffe3d9);
  border: 1px solid #efd99d;
  border-radius: 8px;
}

.upgrade-btn {
  color: white;
  background: linear-gradient(135deg, var(--brand-2), var(--violet));
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.24);
}

.icon-btn {
  display: none;
  background: white;
  border: 1px solid var(--line);
}

.view {
  display: none;
  padding: 28px;
}

.premium-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  min-height: 96px;
  padding: 20px 22px;
  color: white;
  background:
    linear-gradient(135deg, rgba(15, 159, 143, 0.96), rgba(37, 99, 235, 0.94) 48%, rgba(124, 58, 237, 0.9) 70%, rgba(255, 90, 61, 0.94));
  border-radius: 8px;
  box-shadow: 0 22px 52px rgba(37, 99, 235, 0.22);
  position: relative;
  overflow: hidden;
}

.premium-strip::after,
.marketing-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -80px;
  width: 230px;
  height: 230px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.premium-strip span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.premium-strip strong {
  display: block;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.08;
}

.view.active {
  display: block;
}

.view-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.view-head h1 {
  margin-bottom: 6px;
  font-size: 34px;
  letter-spacing: 0;
}

.view-head p {
  color: var(--muted);
}

.view-head .primary-btn,
.view-head .secondary-btn {
  width: auto;
  flex: 0 0 auto;
}

.head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stats-grid article,
.panel,
.table-card {
  background: var(--panel);
  border: 1px solid rgba(216, 224, 234, 0.86);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.08);
}

.stats-grid article {
  min-height: 128px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.stats-grid article::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px auto;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  opacity: 0.18;
  transform: rotate(10deg);
}

.stat-hot {
  border-top: 4px solid var(--brand-2) !important;
}

.stat-hot::after {
  background: var(--brand-2);
}

.stat-blue {
  border-top: 4px solid var(--blue) !important;
}

.stat-blue::after {
  background: var(--blue);
}

.stat-gold {
  border-top: 4px solid var(--gold) !important;
}

.stat-gold::after {
  background: var(--gold);
}

.stat-green {
  border-top: 4px solid var(--green) !important;
}

.stat-green::after {
  background: var(--green);
}

.stats-grid span,
.stats-grid small {
  display: block;
  color: var(--muted);
}

.stats-grid strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 30px;
}

.content-grid,
.agenda-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.content-grid.single {
  grid-template-columns: 1fr;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-title-row h2 {
  margin: 0;
}

.panel-title-row .secondary-btn {
  width: auto;
  min-height: 38px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.insight-card {
  min-height: 154px;
  padding: 20px;
  color: white;
  background: linear-gradient(135deg, #0f9f8f, #106fcb);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.1);
}

.insight-card.blue {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.insight-card.orange {
  background: linear-gradient(135deg, #ff5a3d, #f6b83f);
}

.insight-card span,
.insight-card small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.insight-card strong {
  display: block;
  margin: 10px 0 12px;
  font-size: 22px;
  line-height: 1.15;
}

.panel {
  padding: 20px;
}

.list {
  display: grid;
  gap: 10px;
}

.employee-ranks {
  display: grid;
  gap: 10px;
}

.empty-state {
  padding: 14px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 14px;
}

.list-item,
.finance-row,
.employee-rank {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.list-item em,
.employee-rank em {
  color: var(--muted);
  font-style: normal;
}

.employee-rank span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--blue));
}

.progress-card {
  margin-top: 14px;
  padding: 14px;
  background: #fff8eb;
  border: 1px solid #f3d392;
  border-radius: 8px;
}

.progress-card div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.progress-card span {
  color: var(--muted);
}

.progress {
  height: 10px;
  overflow: hidden;
  background: #ffe6ad;
  border-radius: 8px;
}

.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--brand-2));
  border-radius: inherit;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.slot {
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #eefbf7);
}

.slot.busy {
  color: #8f2f24;
  background: #fff0ed;
  border-color: #f0c0b8;
}

.selectable {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}

.slot-choice {
  min-height: 68px;
  padding: 10px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #eefbf7);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.slot-choice span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.slot-choice.selected {
  color: #8f2f24;
  background: #fff0ed;
  border-color: #f0c0b8;
}

.slot-choice:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.range-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.range-btn {
  min-height: 40px;
  padding: 0 13px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.range-btn.active,
.range-btn:hover {
  color: white;
  background: var(--dark);
}

.range-bar input {
  width: auto;
}

.table-card {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 13px;
}

.review-link {
  display: block;
  width: 100%;
  padding: 12px;
  color: var(--brand);
  background: linear-gradient(135deg, #e8fff9, #edf4ff);
  border: 1px solid rgba(15, 159, 143, 0.18);
  border-radius: 8px;
  font-weight: 800;
  text-align: left;
  word-break: break-word;
}

.muted {
  color: var(--muted);
}

.review {
  margin-top: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.total {
  background: linear-gradient(135deg, #e8fff9, #fff4dc);
}

.marketing-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 178px;
  margin-bottom: 18px;
  padding: 24px;
  color: white;
  background: linear-gradient(135deg, #101828, #172554 48%, #7c2d12);
  border-radius: 8px;
  box-shadow: 0 22px 52px rgba(16, 24, 40, 0.18);
}

.marketing-hero > * {
  position: relative;
  z-index: 1;
}

.marketing-hero span {
  color: #a7f3d0;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.marketing-hero strong {
  display: block;
  max-width: 720px;
  margin: 8px 0;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.04;
}

.marketing-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.marketing-hero .secondary-btn {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.campaign-card {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.campaign-card.active {
  border-color: rgba(15, 159, 143, 0.38);
  background: linear-gradient(135deg, #ecfff9, #eef4ff);
}

.campaign-card span,
.campaign-card em,
.loyalty-card span {
  color: var(--muted);
  font-style: normal;
}

.sms-modal {
  width: min(94vw, 680px);
}

.sms-numbers {
  margin: 10px 0 18px;
  padding: 14px;
  background: linear-gradient(135deg, #ecfff9, #eef4ff);
  border: 1px solid rgba(15, 159, 143, 0.2);
  border-radius: 8px;
}

#smsNumbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#smsNumbers span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: #0f3f3a;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.loyalty-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  margin-bottom: 12px;
  padding: 16px;
  color: white;
  background: linear-gradient(135deg, #0f9f8f, #2563eb 52%, #7c3aed);
  border-radius: 8px;
}

.loyalty-card span {
  color: rgba(255, 255, 255, 0.78);
}

.site-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}

.booking-agenda {
  margin-bottom: 18px;
}

.phone-preview {
  min-height: 640px;
  padding: 16px;
  background: #111827;
  border: 10px solid #0b1220;
  border-radius: 34px;
  box-shadow: 0 26px 70px rgba(16, 24, 40, 0.22);
  color: white;
}

.phone-top {
  width: 96px;
  height: 6px;
  margin: 0 auto 14px;
  background: #344054;
  border-radius: 999px;
}

.phone-cover {
  height: 220px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(16, 24, 40, 0.02), rgba(16, 24, 40, 0.32)),
    url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=800&q=80") center/cover;
}

.form-preview-image,
.booking-form-image {
  min-height: 210px;
  margin-bottom: 16px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 24, 40, 0.02), rgba(16, 24, 40, 0.22)),
    url("https://images.unsplash.com/photo-1521590832167-7bcbfaa6381f?auto=format&fit=crop&w=1000&q=80") center/cover;
}

.booking-form-image {
  min-height: 170px;
}

.phone-preview h2 {
  margin: 20px 0 8px;
  font-size: 30px;
}

.phone-preview p {
  color: rgba(255, 255, 255, 0.72);
}

.phone-service,
.toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.phone-preview button {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.booking-controls {
  display: grid;
  gap: 18px;
}

.toggle-row {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-color: var(--line);
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(10, 14, 12, 0.54);
}

.modal-card {
  width: min(94vw, 520px);
}

.wide-modal {
  width: min(94vw, 860px);
}

.booking-form {
  width: min(94vw, 620px);
}

.public-booking-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.public-booking-brand strong {
  display: block;
  font-size: 24px;
}

.public-booking-brand span {
  color: var(--muted);
  font-weight: 800;
}

.public-booking-mode {
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(16, 24, 40, 0.72), rgba(15, 159, 143, 0.34)),
    url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1800&q=80") center/cover fixed;
}

.public-booking-mode #clientBookingDialog {
  position: static;
  display: grid;
  min-height: 100vh;
  width: 100%;
  max-width: none;
  place-items: center;
  padding: 24px;
  background: transparent;
}

.public-booking-mode #clientBookingDialog::backdrop {
  background: transparent;
}

.public-booking-mode .booking-form {
  width: min(94vw, 660px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.weekday-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 10px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-card input {
  width: auto;
  min-height: auto;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.modal-actions .primary-btn,
.modal-actions .secondary-btn {
  width: auto;
}

.whatsapp {
  display: block;
  margin: 18px 0;
  padding: 14px;
  color: white;
  background: #168c52;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
  text-decoration: none;
}

[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .nav-btn,
[dir="rtl"] th,
[dir="rtl"] td {
  text-align: right;
}

.arabic-ui {
  text-align: right;
}

.arabic-ui input,
.arabic-ui select,
.arabic-ui textarea,
.arabic-ui .stats-grid strong,
.arabic-ui .review-link,
.arabic-ui .slot,
.arabic-ui .slot-choice {
  direction: ltr;
  text-align: left;
}

.arabic-ui .nav-btn,
.arabic-ui th,
.arabic-ui td {
  text-align: right;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding-top: 86px;
  }

  .mobile-brand {
    display: flex;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .icon-btn {
    display: inline-grid;
    place-items: center;
  }

  .stats-grid,
  .content-grid,
  .agenda-layout,
  .insight-grid,
  .site-layout {
    grid-template-columns: 1fr 1fr;
  }

  .premium-strip {
    display: grid;
  }
}

@media (max-width: 680px) {
  .auth-panel,
  .view {
    padding-left: 16px;
    padding-right: 16px;
  }

  .auth-card {
    padding: 22px;
  }

  .form-grid,
  .stats-grid,
  .content-grid,
  .agenda-layout,
  .insight-grid,
  .site-layout,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .marketing-hero {
    display: grid;
  }

  .phone-preview {
    min-height: 560px;
  }

  .topbar {
    padding: 0 14px;
  }

  .top-actions {
    gap: 6px;
  }

  .trial-pill {
    padding: 0 8px;
  }

  .view-head {
    display: grid;
  }

  .view-head .primary-btn,
  .view-head .secondary-btn {
    width: 100%;
  }

  .head-actions {
    display: grid;
    width: 100%;
  }
}

/* Final premium overrides - keep this block last */
body {
  color: #14171c;
  background:
    linear-gradient(135deg, rgba(20, 23, 28, 0.04), rgba(201, 162, 39, 0.06)),
    radial-gradient(circle at 12% 8%, rgba(201, 162, 39, 0.2), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(122, 31, 43, 0.1), transparent 25%),
    #f7f2e9;
}

.logo-mark {
  color: transparent !important;
  background: url("/salonedge-mark.svg") center/92% 92% no-repeat, #14171c !important;
  border: 1px solid rgba(201, 162, 39, 0.36) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.brand-top .logo-mark,
.side-brand .logo-mark,
.mobile-brand .logo-mark,
.public-booking-brand .logo-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
}

.brand-top strong,
.side-brand strong,
.mobile-brand strong,
.public-booking-brand strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: #eceae6;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.auth-card .mobile-brand strong,
.public-booking-brand strong {
  color: #14171c;
}

.brand-top strong::after,
.side-brand strong::after,
.mobile-brand strong::after,
.public-booking-brand strong::after {
  content: "";
  display: none;
}

.brand-top strong,
.side-brand strong,
.mobile-brand strong {
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.brand-name-main {
  color: inherit;
}

.brand-name-accent {
  color: #c9a227;
}

.auth-card .brand-name-main {
  color: #eceae6;
}

.auth-shell,
.sidebar {
  background: #14171c !important;
}

.auth-brand {
  background:
    linear-gradient(90deg, rgba(20, 23, 28, 0.92), rgba(20, 23, 28, 0.44)),
    url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1800&q=85") center/cover !important;
}

.auth-overlay {
  background:
    linear-gradient(115deg, rgba(20, 23, 28, 0.96), rgba(20, 23, 28, 0.58), rgba(201, 162, 39, 0.18)),
    radial-gradient(circle at 76% 30%, rgba(201, 162, 39, 0.24), transparent 32%) !important;
}

.auth-copy {
  padding: 42px;
  background: rgba(20, 23, 28, 0.62);
  border: 1px solid rgba(236, 234, 230, 0.14);
  backdrop-filter: blur(16px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.auth-copy h1,
.premium-strip strong,
.insight-card strong,
.marketing-hero strong {
  color: #fff;
}

.auth-panel,
.main {
  background: linear-gradient(180deg, rgba(247, 242, 233, 0.94), rgba(247, 242, 233, 0.99)) !important;
}

.auth-card,
.modal-card,
.stats-grid article,
.panel,
.table-card {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(20, 23, 28, 0.1) !important;
  box-shadow: 0 20px 50px rgba(20, 23, 28, 0.08) !important;
  backdrop-filter: blur(14px);
}

.primary-btn,
.upgrade-btn,
.phone-preview button,
.marketing-hero .secondary-btn,
.whatsapp {
  color: #14171c !important;
  background: linear-gradient(135deg, #f8e7a2, #c9a227 48%, #8f6e14) !important;
  box-shadow: 0 16px 34px rgba(201, 162, 39, 0.24) !important;
}

.secondary-btn,
.icon-btn,
.range-btn {
  color: #14171c !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 242, 233, 0.92)) !important;
  border: 1px solid rgba(20, 23, 28, 0.13) !important;
}

.range-btn.active,
.range-btn:hover,
.lang-switch button.active {
  color: #f7f2e9 !important;
  background: #14171c !important;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.14), transparent 30%),
    radial-gradient(circle at 10% 6%, rgba(201, 162, 39, 0.18), transparent 28%),
    #14171c !important;
  border-right: 1px solid rgba(201, 162, 39, 0.16);
}

.side-brand {
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(236, 234, 230, 0.08);
}

.nav-btn {
  color: rgba(236, 234, 230, 0.68) !important;
}

.nav-btn span {
  color: #c9a227;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.18);
}

.nav-btn.active,
.nav-btn:hover {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.22), rgba(255, 255, 255, 0.08)) !important;
  border-color: rgba(201, 162, 39, 0.28) !important;
}

.topbar {
  background: rgba(247, 242, 233, 0.86) !important;
  border-bottom: 1px solid rgba(20, 23, 28, 0.1);
  box-shadow: 0 18px 42px rgba(20, 23, 28, 0.06);
}

.premium-strip {
  min-height: 170px;
  background:
    linear-gradient(100deg, rgba(20, 23, 28, 0.96), rgba(20, 23, 28, 0.76) 45%, rgba(122, 31, 43, 0.58)),
    url("https://images.unsplash.com/photo-1521590832167-7bcbfaa6381f?auto=format&fit=crop&w=1600&q=85") center/cover !important;
  border: 1px solid rgba(201, 162, 39, 0.28);
}

.premium-strip span,
.marketing-hero span {
  color: #e0c465 !important;
  letter-spacing: 1.8px;
}

.view-head h1,
.stats-grid strong,
.panel h2 {
  color: #14171c !important;
}

.view-head p,
.stats-grid span,
.stats-grid small,
.list-item em,
.employee-rank em {
  color: #5b6470 !important;
}

.stats-grid article::after {
  background: #c9a227 !important;
}

.stat-hot,
.stat-blue,
.stat-gold,
.stat-green {
  border-top-color: #c9a227 !important;
}

.list-item,
.finance-row,
.employee-rank,
.campaign-card,
.review,
.toggle-row,
.slot,
.slot-choice {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 242, 233, 0.72)) !important;
  border-color: rgba(20, 23, 28, 0.1) !important;
}

.employee-rank span,
.progress i {
  color: #14171c;
  background: linear-gradient(135deg, #f8e7a2, #c9a227) !important;
}

.progress,
.progress-card {
  background: rgba(201, 162, 39, 0.14) !important;
  border-color: rgba(201, 162, 39, 0.3) !important;
}

.insight-card,
.insight-card.blue,
.insight-card.orange,
.marketing-hero {
  background:
    linear-gradient(135deg, rgba(20, 23, 28, 0.96), rgba(20, 23, 28, 0.78), rgba(122, 31, 43, 0.54)),
    url("https://images.unsplash.com/photo-1599351431202-1e0f0137899a?auto=format&fit=crop&w=1200&q=80") center/cover !important;
  border: 1px solid rgba(201, 162, 39, 0.22);
}

.insight-card span,
.insight-card small,
.marketing-hero p {
  color: rgba(247, 242, 233, 0.76) !important;
}

.slot.busy,
.slot-choice.selected {
  color: #7a1f2b !important;
  background: rgba(122, 31, 43, 0.08) !important;
  border-color: rgba(122, 31, 43, 0.22) !important;
}

th {
  color: #5b6470 !important;
  background: rgba(247, 242, 233, 0.76) !important;
}

td {
  background: rgba(255, 255, 255, 0.42) !important;
}

.review-link {
  color: #14171c !important;
  background: linear-gradient(135deg, rgba(248, 231, 162, 0.68), rgba(255, 255, 255, 0.74)) !important;
  border-color: rgba(201, 162, 39, 0.28) !important;
}

.phone-preview {
  background: linear-gradient(180deg, rgba(20, 23, 28, 0.92), rgba(20, 23, 28, 0.98)), #14171c !important;
  border-color: #0d0f13 !important;
}

.phone-cover,
.form-preview-image,
.booking-form-image {
  background:
    linear-gradient(180deg, rgba(20, 23, 28, 0.04), rgba(20, 23, 28, 0.32)),
    url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1200&q=85") center/cover !important;
}

.phone-service {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(201, 162, 39, 0.18) !important;
}

.public-booking-mode {
  background:
    linear-gradient(115deg, rgba(20, 23, 28, 0.86), rgba(20, 23, 28, 0.4)),
    url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1800&q=85") center/cover fixed !important;
}

.public-booking-mode .booking-form {
  background: rgba(247, 242, 233, 0.94) !important;
  border: 1px solid rgba(201, 162, 39, 0.26) !important;
}

.public-booking-brand {
  background: rgba(255, 255, 255, 0.56) !important;
  border: 1px solid rgba(20, 23, 28, 0.08) !important;
}

dialog::backdrop {
  background: rgba(20, 23, 28, 0.64) !important;
  backdrop-filter: blur(8px);
}

/* Mixed salon/barber balance: sober, premium, less feminine */
:root {
  --brand-2: #2f343b;
  --violet: #2f343b;
  --green: #4f675a;
}

body {
  background:
    linear-gradient(135deg, rgba(20, 23, 28, 0.05), rgba(201, 162, 39, 0.045)),
    radial-gradient(circle at 10% 10%, rgba(201, 162, 39, 0.16), transparent 22%),
    radial-gradient(circle at 90% 6%, rgba(47, 52, 59, 0.12), transparent 26%),
    #f7f2e9 !important;
}

.brand-top .logo-mark,
.side-brand .logo-mark,
.auth-card .mobile-brand .logo-mark {
  background: url("/salonedge-mark-light.svg") center/92% 92% no-repeat, transparent !important;
  border-color: rgba(236, 234, 230, 0.28) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.public-booking-brand .logo-mark {
  background: url("/salonedge-mark.svg") center/92% 92% no-repeat, #14171c !important;
}

.premium-strip,
.insight-card,
.insight-card.blue,
.insight-card.orange,
.marketing-hero {
  background:
    linear-gradient(110deg, rgba(20, 23, 28, 0.96), rgba(31, 35, 41, 0.86) 55%, rgba(201, 162, 39, 0.18)),
    url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1600&q=85") center/cover !important;
}

.premium-strip::after,
.marketing-hero::after {
  background: radial-gradient(circle, rgba(201, 162, 39, 0.22), transparent 64%) !important;
}

.stat-hot,
.stat-blue,
.stat-gold,
.stat-green {
  border-top-color: #c9a227 !important;
}

.stats-grid article::after {
  background: #2f343b !important;
}

.nav-btn.active,
.nav-btn:hover {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(236, 234, 230, 0.08)) !important;
}

.logout-btn {
  background: rgba(201, 162, 39, 0.1) !important;
}

.slot.busy,
.slot-choice.selected {
  color: #14171c !important;
  background: rgba(201, 162, 39, 0.16) !important;
  border-color: rgba(201, 162, 39, 0.32) !important;
}

/* Real logo rendering fix */
.logo-mark {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  background: #f7f2e9 !important;
  border: 1px solid rgba(201, 162, 39, 0.42) !important;
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: url("/salonedge-mark.svg") center/contain no-repeat;
}

.brand-top .logo-mark,
.side-brand .logo-mark,
.auth-card .mobile-brand .logo-mark,
.public-booking-brand .logo-mark {
  background: #f7f2e9 !important;
}

/* Official SalonEdge logo pack */
.brand-top,
.side-brand,
.mobile-brand {
  gap: 0 !important;
}

.brand-top .logo-mark,
.side-brand .logo-mark,
.mobile-brand .logo-mark {
  display: none !important;
}

.brand-top > div:last-child,
.side-brand > div:last-child,
.mobile-brand > div:last-child {
  min-width: 186px;
}

.brand-top strong,
.side-brand strong,
.mobile-brand strong {
  display: block !important;
  width: 188px;
  height: 44px;
  color: transparent !important;
  overflow: hidden;
  background: url("/brand/SalonEdge-Logo/svg/logo-horizontal-dark.svg") left center/contain no-repeat;
}

.auth-card .mobile-brand strong {
  background-image: url("/brand/SalonEdge-Logo/svg/logo-horizontal-dark.svg");
}

.brand-top span,
.side-brand span,
.mobile-brand span {
  margin-top: 4px;
  padding-left: 2px;
}

.public-booking-brand .logo-mark,
.phone-preview .logo-mark,
.loyalty-card .logo-mark {
  color: transparent !important;
  background: url("/brand/SalonEdge-Logo/svg/icon.svg") center/contain no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
}

.public-booking-brand .logo-mark::before,
.phone-preview .logo-mark::before,
.loyalty-card .logo-mark::before,
.brand-top .logo-mark::before,
.side-brand .logo-mark::before,
.mobile-brand .logo-mark::before {
  display: none !important;
}

.topbar > div:first-of-type strong {
  display: block;
  width: 160px;
  height: 34px;
  color: transparent !important;
  background: url("/brand/SalonEdge-Logo/svg/logo-horizontal-light.svg") left center/contain no-repeat;
}

/* Official logo images in brand blocks */
.brand-logo {
  display: block;
  width: 174px;
  max-width: 100%;
  height: auto;
  flex: 0 0 auto;
}

.brand-logo-dark {
  filter: none;
}

.brand-icon {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 54px;
}

.brand-top,
.side-brand,
.mobile-brand {
  align-items: center !important;
  gap: 14px !important;
}

.brand-top > div:last-child,
.side-brand > div:last-child,
.mobile-brand > div:last-child {
  min-width: 0 !important;
}

.side-brand {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 8px !important;
  align-items: start !important;
}

.side-brand .brand-logo {
  width: 178px;
}

.side-brand #salonName {
  padding-left: 2px;
  color: rgba(247, 242, 233, 0.82) !important;
  font-size: 14px;
}

.auth-card .mobile-brand .brand-logo {
  width: 168px;
}

.public-booking-brand {
  gap: 14px !important;
}

/* Login full barber-salon image */
.auth-shell {
  position: relative;
  grid-template-columns: 1fr !important;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 23, 28, 0.88), rgba(20, 23, 28, 0.36)),
    url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=2200&q=90") center/cover no-repeat !important;
}

.auth-brand {
  position: absolute !important;
  inset: 0;
  min-height: 100vh;
  padding: 42px;
  background: transparent !important;
  pointer-events: none;
}

.auth-video {
  display: none !important;
}

.auth-overlay {
  background:
    linear-gradient(90deg, rgba(20, 23, 28, 0.86), rgba(20, 23, 28, 0.2) 58%, rgba(20, 23, 28, 0.82)),
    radial-gradient(circle at 72% 26%, rgba(201, 162, 39, 0.2), transparent 34%) !important;
}

.auth-panel {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  padding: 92px 7vw 42px;
  background: transparent !important;
}

.auth-card {
  background: rgba(20, 23, 28, 0.72) !important;
  color: #f7f2e9;
  border-color: rgba(201, 162, 39, 0.28) !important;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42) !important;
}

.auth-card h2,
.auth-card label,
.auth-card .switch-text {
  color: rgba(247, 242, 233, 0.86);
}

.auth-card input,
.auth-card select {
  color: #f7f2e9;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(247, 242, 233, 0.2);
}

.auth-card input::placeholder {
  color: rgba(247, 242, 233, 0.5);
}

.auth-card .switch-text button {
  color: #e0c465;
}

.auth-copy {
  max-width: 720px;
  margin-bottom: 42px;
}

@media (max-width: 980px) {
  .auth-brand {
    display: flex !important;
  }

  .auth-copy {
    display: none;
  }

  .auth-panel {
    justify-content: center;
    padding: 92px 18px 34px;
  }
}

/* Login final video composition */
.auth-shell {
  background: #14171c !important;
}

.auth-brand {
  position: absolute !important;
  inset: 0;
  display: flex !important;
  min-height: 100vh;
  padding: 38px 6vw;
  background: transparent !important;
  pointer-events: none;
}

.auth-video {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(0.9) contrast(1.08) brightness(0.74);
}

.auth-overlay {
  background:
    linear-gradient(90deg, rgba(20, 23, 28, 0.9) 0%, rgba(20, 23, 28, 0.56) 42%, rgba(20, 23, 28, 0.18) 68%, rgba(20, 23, 28, 0.72) 100%),
    radial-gradient(circle at 72% 28%, rgba(201, 162, 39, 0.18), transparent 32%) !important;
}

.auth-copy {
  width: min(720px, 52vw);
  margin: auto auto 42px 0;
  padding: 28px 32px;
  background: rgba(20, 23, 28, 0.54);
  border: 1px solid rgba(236, 234, 230, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 74px rgba(0, 0, 0, 0.3);
}

.auth-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 56px) !important;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.55;
}

.hero-proof {
  margin-top: 20px;
}

.hero-proof span {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.auth-panel {
  justify-content: flex-end;
  align-items: center;
  padding: 96px 6vw 42px;
}

.auth-card {
  width: min(100%, 460px);
  padding: 26px;
  background: rgba(20, 23, 28, 0.68) !important;
  border-color: rgba(201, 162, 39, 0.24) !important;
  box-shadow: 0 26px 82px rgba(0, 0, 0, 0.36) !important;
}

.auth-card h2 {
  margin-bottom: 18px;
  font-size: 27px;
}

.auth-card label {
  margin-bottom: 13px;
}

@media (max-width: 980px) {
  .auth-copy {
    display: none;
  }

  .auth-panel {
    justify-content: center;
  }
}

.super-admin {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 360px 1fr;
  background:
    linear-gradient(135deg, rgba(20, 23, 28, 0.94), rgba(20, 23, 28, 0.76)),
    url("https://images.unsplash.com/photo-1621605815971-fbc98d665033?auto=format&fit=crop&w=1800&q=85") center/cover fixed;
  color: #f7f2e9;
}

.super-admin.hidden {
  display: none;
}

.super-admin-side {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 34px;
  border-right: 1px solid rgba(247, 242, 233, 0.12);
  background: rgba(20, 23, 28, 0.78);
  backdrop-filter: blur(18px);
}

.super-admin-side img {
  width: 210px;
  max-width: 100%;
}

.super-admin-side span,
.super-admin-header span,
.super-admin-stats span,
.super-admin-card span {
  color: rgba(247, 242, 233, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.super-admin-side strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
}

.super-admin-login {
  margin-top: auto;
  padding: 20px;
  border: 1px solid rgba(201, 162, 39, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.super-admin.unlocked .super-admin-login {
  display: none;
}

.super-admin-login label,
.super-admin-toolbar {
  display: grid;
  gap: 10px;
}

.super-admin-login input,
.super-admin-toolbar input,
.super-admin-toolbar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(247, 242, 233, 0.2);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #f7f2e9;
}

.super-admin-toolbar select option {
  color: #14171c;
}

.super-admin-main {
  min-width: 0;
  padding: 34px;
  overflow: auto;
}

.super-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 26px;
}

.super-admin-header h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.super-admin-header p {
  max-width: 720px;
  color: rgba(247, 242, 233, 0.72);
  font-size: 17px;
}

.super-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.super-admin-stats article,
.super-admin-card {
  border: 1px solid rgba(247, 242, 233, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.super-admin-stats article {
  padding: 18px;
}

.super-admin-stats strong {
  display: block;
  margin-top: 8px;
  color: #e0c465;
  font-size: 34px;
}

.super-admin-toolbar {
  grid-template-columns: minmax(220px, 1fr) 220px;
  margin-bottom: 18px;
}

.super-admin-users {
  display: grid;
  gap: 14px;
}

.super-admin-card {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.super-admin-card h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.super-admin-card p,
.super-admin-card em {
  color: rgba(247, 242, 233, 0.72);
  font-style: normal;
}

.super-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.super-admin-grid div {
  padding: 10px;
  border-radius: 8px;
  background: rgba(20, 23, 28, 0.28);
}

.super-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 999px;
  color: #14171c;
  background: #e0c465;
  font-size: 13px;
  font-weight: 800;
}

.super-status.danger {
  color: #fff;
  background: #9b2637;
}

.super-status.active {
  color: #fff;
  background: #60735a;
}

.super-admin-actions {
  display: grid;
  gap: 10px;
  min-width: 160px;
}

.super-admin-actions button {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .super-admin {
    grid-template-columns: 1fr;
  }

  .super-admin-side {
    border-right: 0;
    border-bottom: 1px solid rgba(247, 242, 233, 0.12);
  }

  .super-admin-stats,
  .super-admin-card {
    grid-template-columns: 1fr;
  }

  .super-admin-toolbar,
  .super-admin-grid {
    grid-template-columns: 1fr;
  }
}

.trial-pill.active {
  color: #ffffff !important;
  background: #198754 !important;
  border-color: rgba(25, 135, 84, 0.5) !important;
  box-shadow: 0 12px 28px rgba(25, 135, 84, 0.22) !important;
}

#dashboard .head-actions {
  align-items: center;
}

#dashboard .head-actions .primary-btn,
#dashboard .head-actions .secondary-btn {
  min-height: 44px;
}

.credit-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.credit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.credit-row .settle-credit {
  min-height: 34px;
  padding: 0 12px;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions .secondary-btn {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
}

.hr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.hr-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(20, 23, 28, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(20, 23, 28, 0.08);
}

.hr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hr-card h2 {
  margin: 0;
  font-size: 20px;
}

.hr-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hr-summary div {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.82);
}

.hr-summary .wide {
  grid-column: 1 / -1;
}

.hr-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hr-summary strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hr-card label {
  display: grid;
  gap: 6px;
}

.hr-card input,
.hr-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

@media (max-width: 680px) {
  .credit-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.trial-pill.active {
  cursor: pointer;
}

.nav-toggle-btn {
  display: inline-grid !important;
  place-items: center;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  color: #14171c;
  background: linear-gradient(135deg, #f8e7a2, #c9a227);
  border: 1px solid rgba(20, 23, 28, 0.16);
  box-shadow: 0 10px 22px rgba(20, 23, 28, 0.2);
  line-height: 1;
}

.nav-toggle-btn::before {
  content: "";
  display: block;
  width: 17px;
  height: 14px;
  border: 2px solid #14171c;
  border-radius: 4px;
  background:
    linear-gradient(90deg, #14171c 0 5px, transparent 5px 100%),
    rgba(255, 255, 255, 0.42);
}

.nav-toggle-btn::after {
  content: "";
  position: absolute;
  right: 7px;
  width: 5px;
  height: 5px;
  border-top: 2px solid #14171c;
  border-right: 2px solid #14171c;
  transform: rotate(45deg);
}

.nav-toggle-btn.is-collapsed::before {
  background:
    linear-gradient(90deg, transparent 0 12px, #14171c 12px 100%),
    rgba(255, 255, 255, 0.42);
}

.nav-toggle-btn.is-collapsed::after {
  left: 7px;
  right: auto;
  transform: rotate(225deg);
}

.subscription-info {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.subscription-info div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.86);
}

.subscription-info span {
  color: var(--muted);
  font-weight: 800;
}

.trial-expired-card {
  max-width: 560px;
  text-align: center;
  border: 2px solid rgba(201, 162, 39, 0.44);
  box-shadow: 0 28px 90px rgba(20, 23, 28, 0.34);
}

.trial-expired-card h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.trial-expired-card p {
  color: var(--muted);
  font-size: 18px;
}

.side-brand {
  position: relative;
}

.app-shell.sections-hidden {
  grid-template-columns: 56px 1fr !important;
}

.app-shell.sections-hidden .sidebar {
  display: flex !important;
  padding: 10px;
}

.app-shell.sections-hidden .side-brand {
  min-height: 44px;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.app-shell.sections-hidden .side-brand .brand-logo,
.app-shell.sections-hidden .side-brand > div,
.app-shell.sections-hidden .sidebar nav,
.app-shell.sections-hidden .logout-btn {
  display: none !important;
}

.app-shell.sections-hidden .nav-toggle-btn {
  top: 0;
  right: 0;
}
