:root {
  --accent: #ff6a00;
  --accent-soft: rgba(255, 106, 0, 0.15);
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-alt: #eef2f8;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e4e7ef;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 96px;
}

html[data-theme='dark'] {
  --bg: #0e1116;
  --surface: #181d25;
  --surface-alt: #1f2631;
  --text: #f3f4f6;
  --text-muted: #98a2b3;
  --border: #283142;
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap');

body {
  background: radial-gradient(circle at top right, rgba(255, 106, 0, 0.07), transparent 38%), var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

iconify-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.card,
.table,
.dropdown-menu,
.modal-content,
.form-control,
.form-select {
  background-color: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.form-control,
.form-select {
  border-radius: 12px;
  min-height: 46px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(255, 106, 0, 0.2);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #e86000;
  border-color: #e86000;
  color: #fff;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.layout-shell {
  min-height: 100vh;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1018;
}

.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(190deg, #ff6a00 0%, #f25b00 50%, #e54f00 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 14px;
  z-index: 1020;
  transition: width 0.22s ease, transform 0.22s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 8px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.brand-copy {
  flex: 1;
  min-width: 0;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sidebar-nav .nav-link {
  color: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px 10px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  gap: 2px;
}

.sidebar-footer small {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  line-height: 1.2;
}

.main-content {
  margin-left: var(--sidebar-width);
  padding: 18px;
  transition: margin-left 0.22s ease;
}

.topbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-title {
  font-size: 1rem;
  font-weight: 700;
}

.avatar-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 4px 10px 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.avatar-btn img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.dropdown-item {
  color: var(--text);
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--text);
  background: var(--surface-alt);
}

.soft-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.layout-shell.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-width);
}

.layout-shell.sidebar-collapsed .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

.layout-shell.sidebar-collapsed .brand-copy,
.layout-shell.sidebar-collapsed .sidebar .nav-link span {
  display: none;
}

.layout-shell.sidebar-collapsed .sidebar-footer small:first-child {
  display: none;
}

.layout-shell.sidebar-collapsed .sidebar-footer small:nth-child(2) {
  display: none;
}

.layout-shell.sidebar-collapsed .sidebar-footer {
  justify-items: center;
}

.layout-shell.sidebar-collapsed .sidebar .nav-link {
  justify-content: center;
}

.layout-shell.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  gap: 0;
}

#sidebarCollapseDesktop {
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  z-index: 3;
  border-radius: 999px;
  border: 1px solid var(--panel-line);
  background: #ffffff;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

#sidebarCollapseDesktop iconify-icon {
  transition: transform 0.2s ease;
}

.layout-shell.sidebar-collapsed #sidebarCollapseDesktop iconify-icon {
  transform: rotate(180deg);
}

.auth-wrap {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.auth-card {
  max-width: 460px;
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  padding: 28px;
}

.authentication.authentication-moon {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px 14px;
  background: #212328;
  font-family: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.authentication-moon .authentication-logo {
  width: 448px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -10px;
  position: relative;
}

.authentication-moon .auth-logo-link {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  border: 0;
  z-index: 2;
}

.authentication-moon .auth-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.authentication-moon .auth-logo-fallback {
  width: 74%;
  height: 74%;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(165deg, #ff9a4a, #ff6a00);
}

.authentication-moon .auth-logo-bar {
  width: 72px;
  height: 4px;
  border-radius: 999px;
  margin-top: 8px;
  background: #ffffff;
  z-index: 2;
}

.authentication-moon .auth-logo-glow {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 170px;
  height: 62px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.24) 0%, rgba(255, 106, 0, 0.08) 38%, rgba(255, 106, 0, 0) 74%);
  filter: blur(12px);
}

.authentication-moon .authentication-content {
  width: min(100%, 448px);
  background: #17191f;
  border: 1px solid #3a3f49;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.33);
  padding: 34px 22px 20px;
}

.authentication-moon .authentication-header {
  text-align: center;
  margin-bottom: 18px;
}

.authentication-moon .heading h1 {
  color: #f7f7f8;
  font-size: 43px;
  line-height: 1.08;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.authentication-moon .description {
  color: #e7e8ea;
  font-size: 1.06rem;
  font-weight: 500;
}

.authentication-moon .authentication-form {
  display: grid;
  gap: 15px;
}

.authentication-moon .form-group {
  display: grid;
  gap: 7px;
}

.authentication-moon .form-label {
  color: #f6f7f8;
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
}

.authentication-moon .required {
  color: #ff6a00;
}

.authentication-moon .form-input {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #3c414b;
  background: #14181e;
  color: #f3f4f6;
  padding: 10px 14px;
  outline: none;
  font-size: 0.99rem;
}

.authentication-moon .form-input:focus {
  border-color: #4a515e;
  box-shadow: none;
}

.authentication-moon .form-group-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.authentication-moon .form-switcher {
  display: inline-flex;
  align-items: center;
}

.authentication-moon .form-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.authentication-moon .form-switcher-toggler {
  width: 40px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #5b616d;
  background: #12161b;
  position: relative;
  transition: 0.2s ease;
}

.authentication-moon .form-switcher-toggler::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f3f4f6;
  transition: 0.2s ease;
}

.authentication-moon .form-checkbox:checked + .form-switcher-toggler {
  background: rgba(255, 106, 0, 0.24);
  border-color: #ff6a00;
}

.authentication-moon .form-checkbox:checked + .form-switcher-toggler::after {
  transform: translateX(18px);
  background: #ff6a00;
}

.authentication-moon .auth-submit-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid #f0f1f3;
  background: #f0f1f3;
  color: #10151c;
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 5px;
}

.authentication-moon .auth-submit-btn:hover {
  background: #ffffff;
  color: #0e131a;
}

@media (max-width: 576px) {
  .authentication-moon .authentication-content {
    width: min(100%, 448px);
    padding: 28px 16px 18px;
  }

  .authentication-moon .heading h1 {
    font-size: 36px;
  }
}

/* Moonshine Authentication Styles - Two Column Layout */

.moon-auth-container {
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 36px);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1200px 420px at 12% 90%, rgba(255, 140, 64, 0.3), transparent 60%),
    radial-gradient(900px 360px at 88% 12%, rgba(255, 106, 0, 0.22), transparent 62%),
    linear-gradient(145deg, #ff9a3d 0%, #ff7a1a 40%, #e85a00 100%);
  overflow: auto;
}

.moon-auth-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -35deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 2px,
      transparent 26px
    ),
    repeating-linear-gradient(
      55deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 22px
    );
}

.moon-auth-shell {
  width: min(1100px, 100%);
  min-height: min(720px, 100%);
  background: #ffffff;
  border-radius: 34px;
  box-shadow: 0 34px 80px rgba(93, 40, 0, 0.3);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 0;
  overflow: hidden;
  position: relative;
  transition: opacity 0.26s ease;
}

.moon-auth-shell-register .moon-auth-form-section {
  order: 1;
}

.moon-auth-shell-register .moon-auth-visual {
  order: 2;
}

.moon-auth-shell.is-transitioning {
  pointer-events: none;
}

.moon-auth-shell.is-transitioning.to-register .moon-auth-form-section {
  animation: moon-panel-left-out 0.24s ease both;
}

.moon-auth-shell.is-transitioning.to-register .moon-auth-visual {
  animation: moon-panel-right-out 0.24s ease both;
}

.moon-auth-shell.is-transitioning.to-login .moon-auth-form-section {
  animation: moon-panel-right-out 0.24s ease both;
}

.moon-auth-shell.is-transitioning.to-login .moon-auth-visual {
  animation: moon-panel-left-out 0.24s ease both;
}

.moon-auth-shell.is-entering.from-login .moon-auth-form-section {
  animation: moon-panel-right-in 0.34s ease both;
}

.moon-auth-shell.is-entering.from-login .moon-auth-visual {
  animation: moon-panel-left-in 0.34s ease both;
}

.moon-auth-shell.is-entering.from-register .moon-auth-form-section {
  animation: moon-panel-left-in 0.34s ease both;
}

.moon-auth-shell.is-entering.from-register .moon-auth-visual {
  animation: moon-panel-right-in 0.34s ease both;
}

/* Login aligned to landing hero look */
.moon-auth-container.moon-auth-home-look {
  background:
    linear-gradient(180deg, rgba(13, 22, 35, 0.25), rgba(13, 22, 35, 0.25)),
    url("/assets/landing/images/background/bg2.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.moon-auth-container.moon-auth-home-look::before {
  background:
    radial-gradient(1100px 420px at 8% 92%, rgba(255, 106, 0, 0.22), transparent 66%),
    radial-gradient(900px 360px at 92% 10%, rgba(255, 255, 255, 0.08), transparent 64%);
}

.moon-auth-container.moon-auth-home-look .moon-auth-shell {
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.28);
}

.moon-auth-container.moon-auth-home-look .moon-auth-visual-overlay {
  background: linear-gradient(180deg, rgba(8, 15, 29, 0.06), rgba(8, 15, 29, 0.5));
}

.moon-auth-container.moon-auth-home-look .moon-auth-form-section {
  background: rgba(255, 255, 255, 0.96);
}

.moon-auth-container.moon-auth-home-look .moon-auth-form-container {
  background: transparent;
}

.moon-auth-container.moon-auth-home-look,
.moon-auth-container.moon-auth-home-look .moon-auth-form-title,
.moon-auth-container.moon-auth-home-look .moon-auth-form-subtitle,
.moon-auth-container.moon-auth-home-look .moon-auth-form-label,
.moon-auth-container.moon-auth-home-look .moon-auth-form-input,
.moon-auth-container.moon-auth-home-look .moon-auth-form-forgot,
.moon-auth-container.moon-auth-home-look .moon-auth-visual-title,
.moon-auth-container.moon-auth-home-look .moon-auth-visual-subtitle,
.moon-auth-container.moon-auth-home-look .moon-auth-social-btn,
.moon-auth-container.moon-auth-home-look .moon-auth-form-submit {
  font-family: "Figtree", sans-serif;
}

.moon-auth-container.moon-auth-home-look .moon-auth-form-submit {
  min-height: 50px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  background: #ff6a00;
}

.moon-auth-container.moon-auth-home-look .moon-auth-form-submit:hover {
  background: #e85b00;
}

.moon-auth-container.moon-auth-home-look .moon-auth-social-btn {
  border-radius: 25px;
  font-weight: 600;
}

@keyframes moon-panel-left-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-40px);
    opacity: 0;
  }
}

@keyframes moon-panel-right-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(40px);
    opacity: 0;
  }
}

@keyframes moon-panel-left-in {
  from {
    transform: translateX(-42px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes moon-panel-right-in {
  from {
    transform: translateX(42px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.moon-auth-shell::before,
.moon-auth-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.moon-auth-shell::before {
  width: 210px;
  height: 210px;
  left: -56px;
  bottom: -60px;
  background: rgba(255, 153, 92, 0.28);
}

.moon-auth-shell::after {
  width: 150px;
  height: 150px;
  right: -44px;
  bottom: 24px;
  background: rgba(255, 122, 26, 0.24);
}

.moon-auth-visual {
  position: relative;
  min-height: 520px;
  padding: clamp(16px, 2vw, 28px);
  display: flex;
  align-items: stretch;
}

.moon-auth-visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  filter: saturate(0.9) contrast(0.95);
}

.moon-auth-visual-overlay {
  position: absolute;
  inset: clamp(16px, 2vw, 28px);
  border-radius: 26px;
  background: transparent;
}

.moon-auth-visual-text {
  position: absolute;
  left: clamp(34px, 4vw, 54px);
  right: clamp(34px, 4vw, 54px);
  bottom: clamp(28px, 3vw, 42px);
  color: #fff6ed;
  z-index: 2;
}

.moon-auth-visual-title {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

.moon-auth-visual-subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(255, 241, 227, 0.92);
}

.moon-auth-form-section {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(26px, 3vw, 46px) clamp(24px, 2.8vw, 40px);
  position: relative;
  z-index: 1;
}

.moon-auth-form-container {
  width: min(390px, 100%);
  background: #ffffff;
  border-radius: 22px;
  backdrop-filter: blur(6px);
  padding: clamp(20px, 2.4vw, 30px);
}

.moon-auth-brand {
  margin-bottom: 18px;
}

.moon-auth-brand-logo {
  width: 112px;
  height: auto;
  display: block;
}

.moon-auth-form-head {
  margin-bottom: 22px;
}

.moon-auth-form-title {
  margin: 0 0 4px;
  font-size: clamp(1.75rem, 2.2vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: #7a2f00;
}

.moon-auth-form-subtitle {
  margin: 0;
  font-size: 0.93rem;
  color: #9a6a47;
}

.moon-auth-form-subtitle a {
  color: #ff6a00;
  font-weight: 600;
  text-decoration: none;
}

.moon-auth-form-subtitle a:hover {
  color: #c14d00;
}

.moon-auth-form {
  display: grid;
  gap: 16px;
}

.moon-auth-form-register {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 14px;
}

.moon-auth-form-register .moon-auth-form-group {
  min-width: 0;
}

.moon-auth-form-register .moon-auth-form-group-full,
.moon-auth-form-register .moon-auth-form-submit {
  grid-column: 1 / -1;
}

.moon-auth-form-group {
  display: grid;
  gap: 7px;
}

.moon-auth-form-label {
  font-size: 0.85rem;
  color: #8c6245;
  margin: 0;
}

.moon-auth-form-input {
  width: 100%;
  border: 1px solid #efdbc9;
  background: #fffaf5;
  color: #5c2f11;
  padding: 12px 14px;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.moon-auth-form-input::placeholder {
  color: #c79f84;
}

.moon-auth-form-input:focus {
  outline: none;
  border-color: #ff6a00;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
  background: #ffffff;
}

.moon-auth-password-wrap {
  position: relative;
}

.moon-auth-password-wrap .moon-auth-form-input {
  padding-right: 44px;
}

.moon-auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #b77e59;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.moon-auth-password-toggle:hover {
  color: #ff6a00;
  background: rgba(255, 106, 0, 0.08);
}

.moon-auth-password-toggle iconify-icon {
  font-size: 19px;
}

.moon-auth-form-error {
  font-size: 0.82rem;
  color: #c82963;
}

.moon-auth-form-options {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.moon-auth-form-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #a07555;
  cursor: pointer;
}

.moon-auth-form-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.moon-auth-form-switch {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #f3d8c4;
  border: 1px solid #efc5a8;
  position: relative;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.moon-auth-form-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease;
}

.moon-auth-form-checkbox:checked + .moon-auth-form-switch {
  background: #ff6a00;
  border-color: #ff6a00;
}

.moon-auth-form-checkbox:checked + .moon-auth-form-switch::after {
  transform: translateX(16px);
}

.moon-auth-form-checkbox:focus-visible + .moon-auth-form-switch {
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.18);
}

.moon-auth-form-forgot {
  color: #ff6a00;
  font-size: 0.84rem;
  text-decoration: none;
}

.moon-auth-form-forgot:hover {
  color: #c14d00;
}

.moon-auth-form-submit {
  margin-top: 6px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 11px 20px;
  background: linear-gradient(90deg, #ff7a1a 0%, #e85a00 100%);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.moon-auth-form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(232, 90, 0, 0.34);
}

.moon-auth-form-submit:active {
  transform: translateY(0);
}

.moon-auth-divider {
  margin: 20px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: #b99275;
}

.moon-auth-divider::before,
.moon-auth-divider::after {
  content: "";
  height: 1px;
  background: #edd8c9;
  flex: 1;
}

.moon-auth-social {
  display: grid;
  gap: 10px;
}

.moon-auth-social-btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid #efd8c7;
  border-radius: 12px;
  background: #ffffff;
  color: #8b6a55;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.moon-auth-social-btn:hover {
  background: #fff4eb;
  border-color: #f2ba92;
}

.moon-auth-social-icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.moon-auth-social-google {
  color: #8b6a55;
}

.moon-auth-container-simple {
  padding: clamp(20px, 4vw, 42px);
}

.moon-auth-shell-simple {
  width: min(560px, 100%);
  min-height: auto;
  grid-template-columns: 1fr;
}

.moon-auth-shell-simple::before,
.moon-auth-shell-simple::after {
  display: none;
}

.moon-auth-form-container-simple {
  width: min(460px, 100%);
  margin-inline: auto;
}

.moon-auth-form-simple {
  grid-template-columns: 1fr;
}

.moon-auth-form-footer-link {
  margin-top: 14px;
  text-align: center;
}

.moon-auth-form-footer-link a {
  color: #ff6a00;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.moon-auth-form-footer-link a:hover {
  color: #c14d00;
}

@media (max-width: 1100px) {
  .moon-auth-shell {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .moon-auth-container {
    padding: 14px;
  }

  .moon-auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .moon-auth-shell-register .moon-auth-visual {
    order: 1;
  }

  .moon-auth-shell-register .moon-auth-form-section {
    order: 2;
  }

  .moon-auth-visual {
    min-height: 280px;
    max-height: 320px;
  }

  .moon-auth-form-section {
    padding: 26px 20px 30px;
  }

  .moon-auth-form-container {
    width: min(460px, 100%);
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  .moon-auth-container {
    padding: 0;
    background: #ff7a1a;
  }

  .moon-auth-shell {
    border-radius: 0;
    min-height: 100vh;
  }

  .moon-auth-shell::before,
  .moon-auth-shell::after {
    display: none;
  }

  .moon-auth-visual {
    min-height: 230px;
    max-height: 230px;
    padding: 0;
  }

  .moon-auth-visual-image,
  .moon-auth-visual-overlay {
    border-radius: 0;
  }

  .moon-auth-visual-text {
    left: 18px;
    right: 18px;
    bottom: 16px;
  }

  .moon-auth-visual-title {
    font-size: 1.28rem;
  }

  .moon-auth-form-section {
    padding: 22px 16px 26px;
  }

  .moon-auth-form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .moon-auth-form-register {
    grid-template-columns: 1fr;
  }
}
.hero {
  padding: 92px 0 70px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
}

.landing-shell {
  background:
    radial-gradient(820px 360px at 10% -10%, rgba(255, 173, 115, 0.3), transparent 65%),
    radial-gradient(780px 340px at 100% 0, rgba(255, 106, 0, 0.18), transparent 72%),
    var(--bg);
}

.landing-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  padding: 12px 0;
}

.landing-hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(22px, 4vw, 36px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.landing-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.landing-hero {
  padding: clamp(38px, 7vw, 74px) 0 clamp(24px, 4vw, 42px);
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #f0ddcd;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(104, 45, 4, 0.16);
  padding: clamp(18px, 3vw, 34px);
}

html[data-theme='dark'] .landing-hero-grid {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.landing-hero-copy h1 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.landing-hero-copy p {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  max-width: 52ch;
  margin-bottom: 18px;
}

.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 106, 0, 0.28);
  background: rgba(255, 106, 0, 0.1);
  color: #c14d00;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.82rem;
}

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

.landing-hero-metrics-spotlight {
  grid-template-columns: 1fr;
}

.landing-hero-metrics > div {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 10px 12px;
}

.landing-metric-primary strong {
  font-size: 1.6rem;
  line-height: 1.05;
}

.landing-metric-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.landing-metric-inline strong {
  font-size: 1.45rem;
  line-height: 1;
}

.landing-metric-inline small {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.landing-hero-metrics-spotlight .landing-metric-inline {
  border: 0;
  background: transparent;
  padding: 0;
}

.landing-avatar-stack {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.landing-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.95);
  margin-left: -10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, #ff9a3d 0%, #ff6a00 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.landing-avatar:first-child {
  margin-left: 0;
}

.landing-hero-metrics strong {
  display: block;
  font-size: 1.05rem;
}

.landing-hero-metrics small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.landing-hero-visual {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  padding: 0;
  box-shadow: 0 22px 44px rgba(119, 55, 10, 0.12);
  min-height: 360px;
  display: flex;
  overflow: hidden;
}

.landing-hero-visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

html[data-theme='dark'] .landing-hero-visual {
  background: var(--surface);
}

.landing-strip {
  padding: 8px 0 30px;
}

.landing-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-feature {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: var(--surface);
}

.landing-feature h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.landing-feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.landing-directory {
  padding: clamp(24px, 5vw, 52px) 0;
}

.landing-filter-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 14px;
}

.landing-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.landing-plan {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.landing-plan.is-pro {
  color: #c14d00;
  background: rgba(255, 106, 0, 0.14);
  border-color: rgba(255, 106, 0, 0.3);
}

.landing-plan.is-free {
  color: var(--text-muted);
  background: var(--surface-alt);
  border-color: var(--border);
}

.landing-pricing {
  padding: 8px 0 clamp(28px, 5vw, 50px);
}

.landing-price-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 18px;
}

.landing-price-card.is-pro {
  border-color: rgba(255, 106, 0, 0.36);
  background: linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
}

html[data-theme='dark'] .landing-price-card.is-pro {
  background: linear-gradient(180deg, #1f2530 0%, #181f29 100%);
}

.landing-price {
  margin-bottom: 10px;
  color: var(--text-muted);
}

.landing-price-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.landing-price-card li {
  margin-bottom: 6px;
}

.landing-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 30px;
  color: var(--text-muted);
}

.section-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.template-pill input {
  display: none;
}

.template-pill label {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  width: 100%;
}

.template-pill input:checked + label {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.table {
  color: var(--text);
}

.table > :not(caption) > * > * {
  background-color: transparent;
  color: var(--text);
  border-bottom-color: var(--border);
}

.table thead th {
  color: var(--text-muted);
  font-weight: 600;
  border-bottom-width: 1px;
}

.table-hover > tbody > tr:hover > * {
  background-color: rgba(255, 106, 0, 0.08);
}

html[data-theme='dark'] .table-hover > tbody > tr:hover > * {
  background-color: rgba(255, 106, 0, 0.14);
}

.pagination {
  margin-bottom: 0;
  gap: 4px;
}

.pagination .page-link {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  min-width: 38px;
  text-align: center;
}

.pagination .page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface);
}

.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.55;
  background: var(--surface-alt);
  color: var(--text-muted);
}

.admin-search-form {
  width: min(320px, 100%);
  align-items: center;
  margin: 0;
}

.admin-search-form .form-control {
  min-height: 38px;
  height: 38px;
  border-radius: 0;
  line-height: 1.2;
  padding-top: 0;
  padding-bottom: 0;
}

.admin-search-form .form-control.form-control-sm {
  min-height: 38px;
  height: 38px;
  border-radius: 0;
}

.btn-inline-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-height: 38px;
  border-radius: 10px;
  padding-inline: 12px;
  height: 38px;
}

.admin-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.admin-action-btn iconify-icon {
  font-size: 16px;
}

.admin-businesses-table > :not(caption) > * > * {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  vertical-align: middle;
}

.admin-plans-table > :not(caption) > * > * {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  vertical-align: middle;
}

.admin-memberships-table > :not(caption) > * > * {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  vertical-align: middle;
}

.admin-reports-table > :not(caption) > * > * {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  vertical-align: middle;
}

.reviews-table > :not(caption) > * > * {
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
  vertical-align: middle;
}

.review-rating-stars {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  gap: 1px;
}

.review-rating-stars-filled {
  color: var(--accent);
  letter-spacing: 1px;
}

.review-rating-stars-empty {
  color: #b9c2d0;
  letter-spacing: 1px;
}

html[data-theme='dark'] .review-rating-stars-empty {
  color: #5f6b7f;
}

.admin-businesses-actions {
  align-items: center;
}

.admin-plans-actions {
  align-items: center;
}

.admin-memberships-actions {
  align-items: center;
}

.admin-businesses-actions form {
  margin: 0;
}

.admin-plans-actions form {
  margin: 0;
}

.admin-memberships-actions form {
  margin: 0;
}

.admin-businesses-published {
  text-align: center;
}

.admin-businesses-published form {
  margin: 0;
  min-height: 34px;
}

.admin-businesses-published .moon-auth-form-remember {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
}

.admin-businesses-btn {
  min-height: 34px;
  height: 34px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 12px;
}

.admin-plans-btn {
  min-height: 34px;
  height: 34px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 12px;
}

.admin-memberships-btn {
  min-height: 34px;
  height: 34px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.admin-reports-actions {
  align-items: center;
  margin: 0;
}

.admin-reports-control {
  min-height: 34px !important;
  height: 34px !important;
  border-radius: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.admin-reports-btn {
  min-height: 34px;
  height: 34px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 12px;
}

.admin-action-danger {
  border-color: #f3c1bd;
  color: #cc3a2b;
}

.admin-action-danger:hover {
  border-color: #e06d64;
  color: #b22d22;
}

.admin-plan-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

.admin-plan-pill.is-pro {
  background: rgba(255, 106, 0, 0.14);
  border-color: rgba(255, 106, 0, 0.28);
  color: #cc5200;
}

.admin-plan-pill.is-free {
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--text-muted);
}

.admin-chart-card {
  min-height: 210px;
}

.admin-canvas-wrap {
  position: relative;
  height: 280px;
}

.admin-canvas-wrap-sm {
  height: 220px;
}

.min-w-0 {
  min-width: 0;
}

.admin-user-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 14px;
  border-bottom: 1px solid var(--border);
}

.admin-user-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.admin-user-avatar {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #ff9a3d 0%, #ff6a00 100%);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  flex-shrink: 0;
}

.admin-user-main {
  min-width: 0;
}

.admin-user-main h4 {
  font-size: 1.3rem;
}

.admin-user-main p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 4px 10px;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1;
}

.admin-user-chip iconify-icon {
  font-size: 14px;
}

.admin-user-chip.is-success {
  background: rgba(46, 160, 67, 0.12);
  border-color: rgba(46, 160, 67, 0.3);
  color: #26853a;
}

.admin-user-chip.is-danger {
  background: rgba(204, 58, 43, 0.12);
  border-color: rgba(204, 58, 43, 0.3);
  color: #b93b2f;
}

.admin-user-chip.is-neutral {
  background: var(--surface-alt);
  border-color: var(--border);
  color: var(--text-muted);
}

.admin-user-stat {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.admin-user-stat small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.admin-user-stat strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.admin-user-info-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 15px;
  height: 100%;
}

.admin-user-info-card h6 {
  margin-bottom: 12px;
  font-size: 0.94rem;
  font-weight: 700;
}

.admin-user-info-grid {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 9px 12px;
}

.admin-user-info-grid span {
  font-size: 0.88rem;
  min-width: 0;
}

.admin-user-info-grid span:nth-child(odd) {
  color: var(--text-muted);
}

.admin-user-info-grid span:nth-child(even) {
  color: var(--text);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.admin-chart-row {
  display: grid;
  grid-template-columns: 90px 1fr 48px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.admin-bar {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
}

.admin-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9a3d 0%, #ff6a00 100%);
}

/* User detail view: square cards */
.admin-user-detail-hero,
.admin-user-stat,
.admin-user-info-card {
  border-radius: 0 !important;
}

/* Global panel cards: no border radius in all views */
#layoutShell .card.soft-card {
  border-radius: 0 !important;
}

/* Admin body cards: clean, flat style */
.admin-overview-grid .card.soft-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-kpi-flat {
  background: #eceff3 !important;
}

.admin-growth-split .admin-growth-progress,
.admin-growth-split .admin-growth-minimal {
  min-height: 260px;
}

.admin-growth-progress {
  background: #ffefe2 !important;
}

.admin-growth-progress h5,
.admin-growth-progress small,
.admin-growth-progress .small {
  color: #1f2937;
}

.admin-growth-minimal {
  background: #c8aff8 !important;
}

.admin-growth-minimal h5,
.admin-growth-minimal small {
  color: #ffffff;
}

.admin-growth-minimal .admin-canvas-wrap {
  position: relative;
  background: transparent !important;
}

.admin-growth-minimal .admin-canvas-wrap::before {
  content: none;
}

.admin-growth-minimal canvas {
  background: transparent !important;
}

.admin-month-days {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.admin-side-stack {
  height: 100%;
  display: block;
}

.admin-side-block {
  padding: 2px 0;
}

.admin-side-card {
  padding: 12px;
  background: var(--panel-surface);
}

.admin-side-divider {
  width: 100%;
  height: 1px;
  background: var(--panel-line);
  margin: 12px 0;
}

.admin-latest-users {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.admin-latest-users li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-line);
  border-radius: 0;
}

.admin-latest-users li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-latest-users img,
.admin-mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
}

.admin-side-card .vstack > div {
  padding-bottom: 8px !important;
  border-bottom: 1px solid var(--panel-line);
}

.admin-side-card .vstack > div:last-child {
  border-bottom: 0;
  padding-bottom: 0 !important;
}

.admin-top-biz-row {
  border-radius: 0 !important;
}

.admin-pro-expiring-row {
  border-bottom: 1px solid var(--panel-line);
  border-radius: 0;
}

.admin-pro-expiring-list .admin-pro-expiring-row:last-child {
  border-bottom: 0;
}

.nera-toast-stack {
  width: min(420px, calc(100vw - 24px));
}

.nera-toast {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}

.nera-toast .toast-body {
  padding: 12px 14px;
}

.nera-toast-icon {
  font-size: 18px;
  margin-top: 1px;
}

.nera-toast-success {
  border-color: rgba(46, 160, 67, 0.28);
}

.nera-toast-success .nera-toast-icon {
  color: #2ea043;
}

.nera-toast-error {
  border-color: rgba(204, 58, 43, 0.3);
}

.nera-toast-error .nera-toast-icon {
  color: #cc3a2b;
}

.text-muted {
  color: var(--text-muted) !important;
}

@media (max-width: 991.98px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
  }

  .landing-strip-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .landing-topbar .btn {
    min-height: 40px;
    padding-inline: 12px;
  }

  .landing-hero-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-brand-logo {
    width: 48px;
    height: 48px;
  }

  .landing-hero-metrics {
    grid-template-columns: 1fr;
  }

  .landing-hero-metrics-spotlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .admin-user-detail-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-user-main p {
    white-space: normal;
  }

  .admin-user-info-grid {
    grid-template-columns: 116px 1fr;
  }

  .sidebar {
    transform: translateX(-100%);
  }

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

  .sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-content,
  .layout-shell.sidebar-collapsed .main-content {
    margin-left: 0;
  }

  .topbar {
    flex-wrap: wrap;
  }
}
/* Moonshine Utility Classes */
.w-full {
  width: 100%;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.text-red-500 {
  color: #ef4444;
}

.text-sm {
  font-size: 0.875rem;
}

.text-gray-300 {
  color: #d1d5db;
}

/* Form Checkbox Override */
.form-check-input {
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  accent-color: #ff6a00;
}

.form-check-input:focus {
  border-color: #ff6a00;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.form-check-input:checked {
  background-color: #ff6a00;
  border-color: #ff6a00;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.form-check-label {
  cursor: pointer;
  margin-bottom: 0;
  user-select: none;
}

/* Dashboard panel redesign (taskboard style) */
:root {
  --panel-bg: #eff1f4;
  --panel-surface: #f7f7f8;
  --panel-line: #dde1e7;
  --panel-text: #171a20;
  --panel-muted: #7d8594;
  --shell-header-height: 82px;
}

.layout-shell {
  min-height: 100vh;
  background: var(--panel-bg);
}

.sidebar {
  background: #f4f5f7;
  color: var(--panel-text);
  border-right: 1px solid var(--panel-line);
  padding: 18px 14px;
}

.sidebar-brand {
  margin-bottom: 16px;
  padding: 4px 6px;
  align-items: center;
}

.brand-mark-link {
  text-decoration: none;
}

.brand-mark {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark-image {
  width: auto;
  height: 42px;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.brand-copy small {
  color: var(--panel-muted);
}

.sidebar-user {
  text-align: center;
  padding: 6px 2px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  margin-bottom: 12px;
}

.sidebar-user img {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;
}

.sidebar-user strong {
  display: block;
  font-size: 0.95rem;
  color: var(--panel-text);
  margin-top: 2px;
}

.sidebar-user small {
  color: var(--panel-muted);
  font-size: 0.74rem;
}

.sidebar-nav .nav-link {
  color: #444d5c;
  border-radius: 12px;
  margin-bottom: 6px;
  padding: 10px 11px;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
  background: #e8ecf2;
  color: #111827;
}

.sidebar-footer {
  border-top: 1px solid var(--panel-line);
}

.sidebar-footer small {
  color: #6c7483;
}

#sidebarCollapseDesktop {
  right: -17px;
}

#sidebarCollapseDesktop:hover {
  border-color: #cfd5dd;
  background: #f8fafc;
}

.main-content {
  margin-left: var(--sidebar-width);
  padding: 16px;
  background: var(--panel-bg);
}

.panel-main-shell {
  border: 1px solid var(--panel-line);
  border-radius: 22px;
  background: var(--panel-surface);
  overflow: hidden;
}

.topbar {
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  box-shadow: none;
  background: #f7f7f8;
}

.topbar-title {
  font-size: 1.35rem;
  font-weight: 700;
}

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

.topbar-search {
  min-width: 220px;
  height: 40px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--panel-muted);
}

.topbar-search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 0.88rem;
  color: var(--panel-text);
  background: transparent;
}

.icon-btn {
  border-radius: 10px;
  width: 38px;
  height: 38px;
}

.avatar-btn {
  border-radius: 10px;
  padding: 4px 8px 4px 4px;
}

.avatar-btn span {
  display: none;
}

.dashboard-mock-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: calc(100vh - 170px);
}

.dashboard-main-col {
  padding: 24px;
  border-right: 1px solid var(--panel-line);
}

.dashboard-side-col {
  padding: 20px;
  background: #f4f5f7;
}

.dash-section-label {
  color: #8b93a1;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.dashboard-stat-card {
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  background: #f1f3f6;
  padding: 14px;
}

.dashboard-stat-value {
  color: #10131a;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.dashboard-stat-label {
  color: #6d7686;
  font-size: 0.8rem;
}

.dashboard-highlight-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.dashboard-progress-card,
.dashboard-hours-card,
.dashboard-bars-card,
.dashboard-side-block {
  border: 1px solid var(--panel-line);
  border-radius: 12px;
}

.dashboard-progress-card {
  background: linear-gradient(165deg, #ff9d57 0%, #ff8630 100%);
  padding: 14px;
  border: 0 !important;
}

.dashboard-progress-card .dashboard-widget-head h3,
.dashboard-progress-card .dashboard-widget-head span,
.dashboard-progress-card p,
.dashboard-progress-card .dashboard-mini-kpi {
  color: #fff;
}

.dashboard-progress-level {
  font-weight: 700;
  text-align: center;
  margin-top: 2px;
  margin-bottom: 0;
}

.dashboard-progress-next {
  text-align: center;
  margin-top: 12px;
  margin-bottom: -4px;
}

.dashboard-progress-actions {
  margin-top: 6px;
  display: flex;
  justify-content: center;
}

.dashboard-progress-card .btn-outline-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-progress-card .btn-outline-secondary:hover,
.dashboard-progress-card .btn-outline-secondary:focus {
  color: #ff6a00;
  border-color: #ffffff;
  background: #ffffff;
}

.dashboard-hours-card {
  background: #c8aff8;
  padding: 14px;
  border: 0 !important;
}

.dashboard-bars-card {
  background: #fbfbfc;
  padding: 14px;
}

.dashboard-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dashboard-widget-head h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #10131a;
}

.dashboard-widget-head span,
.dashboard-progress-card p,
.dashboard-hours-card p {
  color: #404754;
  font-size: 0.75rem;
  margin: 0;
}

.progress-ring {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  margin: 12px auto 0;
  background: conic-gradient(#10131a calc(var(--progress) * 1%), rgba(255, 255, 255, 0.35) 0);
  display: grid;
  place-items: center;
  position: relative;
}

.progress-ring::before {
  content: "";
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: #fff5eb;
}

.progress-ring strong {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.35rem;
  color: #131721;
}

.dashboard-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dashboard-side-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #202430;
}

.dashboard-side-icons {
  display: flex;
  gap: 6px;
}

.dashboard-side-block {
  background: #fbfbfc;
  padding: 12px;
  margin-bottom: 12px;
}

.dashboard-side-block small {
  color: #8c94a2;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 700;
}

.dashboard-timer {
  font-size: 1.55rem;
  color: #111521;
  font-weight: 600;
  margin-top: 8px;
}

.dashboard-timer-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.timer-pill {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: #171a20;
  color: #fff;
}

.timer-pill-accent {
  background: #bf9bf8;
}

.calendar-mini-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  font-size: 0.72rem;
  text-align: center;
  color: #5f6675;
}

.calendar-mini-grid span {
  padding: 5px 0;
  border-radius: 999px;
}

.calendar-mini-grid .is-active {
  background: var(--accent);
  color: #fff;
}

.dashboard-task-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.dashboard-task-list li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 9px;
}

.task-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 2px solid #1f2937;
}

.dashboard-task-list strong {
  display: block;
  font-size: 0.82rem;
  color: #111827;
}

.dashboard-task-list small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0;
  color: #8a93a3;
}

.dashboard-task-list img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
}

@media (max-width: 1200px) {
  .dashboard-mock-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-main-col {
    border-right: 0;
    border-bottom: 1px solid var(--panel-line);
  }

  .dashboard-side-col {
    background: #f7f7f8;
  }
}

@media (max-width: 991.98px) {
  .main-content,
  .layout-shell.sidebar-collapsed .main-content {
    margin-left: 0;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: 18px 0 30px rgba(0, 0, 0, 0.08);
  }

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

  .dashboard-main-col,
  .dashboard-side-col {
    padding: 14px;
  }

  .dashboard-stat-row,
  .dashboard-highlight-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .topbar-search {
    flex: 1;
    min-width: 140px;
  }
}

.layout-shell.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-width);
}

.layout-shell.sidebar-collapsed .brand-copy,
.layout-shell.sidebar-collapsed .sidebar .nav-link span,
.layout-shell.sidebar-collapsed .sidebar-footer small:last-child {
  display: none;
}

.layout-shell.sidebar-collapsed .sidebar-user {
  display: block;
  padding: 2px 0 10px;
  margin-bottom: 8px;
}

.layout-shell.sidebar-collapsed .sidebar-user strong,
.layout-shell.sidebar-collapsed .sidebar-user small {
  display: none;
}

.layout-shell.sidebar-collapsed .sidebar-user img {
  width: 36px;
  height: 36px;
  margin: 0 auto;
}

.layout-shell.sidebar-collapsed .sidebar-brand,
.layout-shell.sidebar-collapsed .sidebar .nav-link,
.layout-shell.sidebar-collapsed .sidebar-footer {
  justify-content: center;
}

.layout-shell.sidebar-collapsed .brand-mark-image {
  height: 34px;
}

.layout-shell.sidebar-collapsed .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

.layout-shell.sidebar-collapsed .sidebar-footer {
  display: grid !important;
  justify-items: center;
  align-items: center;
  width: 100%;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

.layout-shell.sidebar-collapsed .sidebar-footer small:first-child {
  display: block !important;
  margin: 0 auto;
  text-align: center;
}

.layout-shell.sidebar-collapsed .sidebar-footer small:last-child {
  display: none !important;
}

/* Pixel closer adjustments for dashboard mock */
.main-content {
  padding: 10px;
}

.panel-main-shell {
  border-radius: 28px;
  background: #f6f6f7;
}

.panel-main-shell > .topbar {
  border: 0;
  border-bottom: 1px solid var(--panel-line);
  border-radius: 0;
  background: #f6f6f7;
  padding: 0;
  height: var(--shell-header-height);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  align-items: stretch;
  box-sizing: border-box;
}

.topbar-section {
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
}

.topbar-section + .topbar-section {
  border-left: 1px solid var(--panel-line);
}

.topbar-section-start {
  justify-content: flex-start;
  gap: 18px;
}

.topbar-section-end {
  justify-content: flex-end;
  border-left: 1px solid var(--panel-line);
}

.topbar-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1a1f29;
  margin: 0;
}

.topbar-side-title {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 700;
  color: #1f2430;
}

.topbar-search {
  border: 0;
  background: transparent;
  min-width: 0;
  width: clamp(220px, 34%, 320px);
  margin-left: 0;
  flex: 0 0 auto;
  color: #8d95a3;
}

.topbar-search input {
  font-size: 0.84rem;
}

.topbar-actions .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border-color: transparent;
  background: transparent;
}

.dashboard-mock-grid {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  min-height: calc(100vh - 115px);
}

.dashboard-main-col {
  padding: 20px 22px;
}

.dashboard-side-col {
  border-left: 1px solid var(--panel-line);
  background: #f6f6f7;
  padding: 14px 14px 14px 24px;
}

.dashboard-stat-row {
  gap: 10px;
}

.dashboard-stat-card {
  min-height: 84px;
  background: #efeff0;
  border-color: #e4e5e8;
}

.dashboard-stat-value {
  font-size: 1.7rem;
}

.dashboard-highlight-row {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 10px;
}

.dashboard-progress-card,
.dashboard-hours-card,
.dashboard-bars-card,
.dashboard-side-block {
  border-radius: 8px;
}

.dashboard-widget-head h3 {
  font-size: 0.83rem;
  letter-spacing: 0.01em;
}

.progress-ring {
  width: 126px;
  height: 126px;
}

.progress-ring::before {
  width: 88px;
  height: 88px;
}

.dashboard-bars-card {
  min-height: 240px;
}

.calendar-mini-month {
  margin-top: 6px;
  font-size: 0.76rem;
  color: #8b93a0;
}

.calendar-mini-grid {
  margin-top: 6px;
}

@media (max-width: 1200px) {
  .panel-main-shell > .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-section + .topbar-section {
    border-left: 0;
    border-top: 1px solid var(--panel-line);
  }

  .topbar-section {
    min-height: 60px;
  }

  .topbar-section-end {
    justify-content: flex-end;
  }

  .topbar-search {
    margin-left: 0;
    width: 100%;
  }
}

/* Full-screen structural lines */
.main-content {
  padding: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.panel-main-shell {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: #f6f6f7;
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: flex;
  flex-direction: column;
}

.sidebar {
  padding-top: 0;
}

.sidebar-brand {
  height: var(--shell-header-height);
  margin-bottom: 0;
  padding: 0 14px;
  margin-left: -14px;
  margin-right: -14px;
  border-bottom: 1px solid var(--panel-line);
  box-sizing: border-box;
}

.sidebar-user {
  margin-top: 10px;
}

.panel-main-content {
  padding: 0 18px 20px;
}

.panel-main-shell > .topbar {
  border-bottom: 1px solid var(--panel-line);
  margin: 0;
  margin-top: 0;
  padding-top: 0 !important;
  flex: 0 0 var(--shell-header-height);
}

/* Structural split for admin overview */
@media (min-width: 1200px) {
  .admin-overview-grid {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
  }

  .admin-overview-main-col {
    padding-right: 16px;
    padding-top: 0;
  }

  .admin-overview-side-col {
    border-left: 1px solid var(--panel-line);
    padding-left: 24px;
    padding-top: 0;
  }
}

/* Final layout lock: no top gap, with working vertical scroll */
@media (min-width: 992px) {
  html:has(#layoutShell.layout-shell),
  body:has(#layoutShell.layout-shell) {
    height: 100%;
    overflow: hidden;
  }

  #layoutShell.layout-shell {
    position: fixed;
    inset: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  #layoutShell.layout-shell > #sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
  }

  #layoutShell.layout-shell > .main-content {
    position: absolute !important;
    top: 0 !important;
    right: 0;
    bottom: 0;
    left: var(--sidebar-width);
    margin: 0 !important;
    padding-top: 0 !important;
    overflow: hidden !important;
  }

  #layoutShell.layout-shell.sidebar-collapsed > .main-content {
    left: var(--sidebar-collapsed-width);
    margin-left: 0 !important;
  }

  #layoutShell.layout-shell > .main-content > .panel-main-shell {
    position: relative;
    min-height: 100%;
    height: auto;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #layoutShell.layout-shell > .main-content > .panel-main-shell > .topbar {
    position: relative;
    margin-top: 0 !important;
    padding-top: 0 !important;
    z-index: 2;
  }
}

@media (max-width: 991.98px) {
  #layoutShell.layout-shell > .main-content {
    margin-left: 0 !important;
    position: relative !important;
    top: 0 !important;
    bottom: auto;
    left: auto;
    right: auto;
    overflow: visible;
  }
}

/* Final behavior: fixed topbar, scroll only below topbar */
#layoutShell.layout-shell > .main-content {
  overflow: hidden !important;
}

#layoutShell.layout-shell > .main-content > .panel-main-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

#layoutShell.layout-shell > .main-content > .panel-main-shell > .topbar {
  position: relative;
  z-index: 30;
  flex: 0 0 var(--shell-header-height);
}

#layoutShell.layout-shell > .main-content > .panel-main-shell > .panel-main-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Hide scrollbar arrow buttons (up/down) */
*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* Topbar aligned with body split + profile/logout icons */
#layoutShell.layout-shell > .main-content > .panel-main-shell > .topbar {
  padding: 0 18px;
  display: block !important;
  grid-template-columns: none !important;
  position: relative;
  border-bottom: 0;
}

#layoutShell.layout-shell > .main-content > .panel-main-shell > .topbar > .topbar-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.03fr);
  align-items: stretch;
}

#layoutShell.layout-shell > .main-content > .panel-main-shell > .topbar > .topbar-inner > .topbar-section {
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 0 18px;
}

#layoutShell.layout-shell > .main-content > .panel-main-shell > .topbar > .topbar-inner > .topbar-section + .topbar-section {
  border-left: 1px solid var(--panel-line);
}

#layoutShell.layout-shell > .main-content > .panel-main-shell > .topbar::after {
  content: "";
  position: absolute;
  left: -3px;
  right: 0;
  bottom: 0;
  border-bottom: 1px solid var(--panel-line);
  pointer-events: none;
}

/* Panel theme override: white in light mode, dark in dark mode */
:root {
  --panel-bg: #ffffff;
  --panel-surface: #ffffff;
  --panel-line: #e5e7eb;
}

html[data-theme='dark'] {
  --panel-bg: #0f131a;
  --panel-surface: #151b24;
  --panel-line: #273143;
}

#layoutShell.layout-shell,
#layoutShell.layout-shell > .main-content,
#layoutShell.layout-shell > .main-content > .panel-main-shell,
#layoutShell.layout-shell > .main-content > .panel-main-shell > .topbar,
.dashboard-side-col,
.sidebar {
  background: var(--panel-bg) !important;
}

.dashboard-stat-card,
.dashboard-bars-card,
.dashboard-side-block,
.card.soft-card {
  background: var(--panel-surface);
  border-color: var(--panel-line);
}

.topbar-action-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}

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

.topbar-actions form.d-inline {
  display: inline-flex !important;
  align-items: center;
  margin: 0;
}

#layoutShell.layout-shell > .main-content > .panel-main-shell.is-dashboard-shell > .topbar > .topbar-inner > .topbar-section.topbar-section-end {
  justify-content: flex-end;
}

#layoutShell.layout-shell > .main-content > .panel-main-shell.is-dashboard-shell > .topbar > .topbar-inner > .topbar-section.topbar-section-end .topbar-actions {
  margin-left: auto;
}

@media (min-width: 1200px) {
  #layoutShell.layout-shell > .main-content > .panel-main-shell.is-dashboard-shell .topbar-public-profile-link {
    margin-left: -10px;
  }
}

.topbar-section-start .topbar-search {
  margin-left: auto;
}

@media (max-width: 1200px) {
  #layoutShell.layout-shell > .main-content > .panel-main-shell > .topbar {
    padding: 0;
  }

  #layoutShell.layout-shell > .main-content > .panel-main-shell > .topbar > .topbar-inner {
    grid-template-columns: 1fr;
  }

  #layoutShell.layout-shell > .main-content > .panel-main-shell > .topbar > .topbar-inner > .topbar-section + .topbar-section {
    border-left: 0;
    border-top: 1px solid var(--panel-line);
  }
}

/* Single structural divider shared by topbar + body (desktop) */
@media (min-width: 1200px) {
  #layoutShell.layout-shell > .main-content > .panel-main-shell.is-dashboard-shell {
    --shell-pad-x: 18px;
    --shell-split-ratio: 0.6666667;
    position: relative;
  }

  #layoutShell.layout-shell > .main-content > .panel-main-shell.is-dashboard-shell::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--shell-pad-x) + ((100% - (var(--shell-pad-x) * 2)) * var(--shell-split-ratio)));
    width: 1px;
    background: var(--panel-line);
    pointer-events: none;
    z-index: 6;
  }

  #layoutShell.layout-shell > .main-content > .panel-main-shell.is-dashboard-shell > .topbar > .topbar-inner > .topbar-section + .topbar-section {
    border-left: 0;
  }

  #layoutShell.layout-shell > .main-content > .panel-main-shell.is-dashboard-shell > .topbar {
    position: relative;
  }

  #layoutShell.layout-shell > .main-content > .panel-main-shell.is-dashboard-shell > .topbar::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--shell-pad-x) + ((100% - (var(--shell-pad-x) * 2)) * var(--shell-split-ratio)));
    width: 1px;
    background: var(--panel-line);
    pointer-events: none;
    z-index: 31;
  }

  .admin-overview-side-col,
  .dashboard-side-col {
    border-left: 0 !important;
  }
}

/* Non-dashboard sections: no body split line + softer cards */
.panel-main-shell.is-standard-shell::before,
.panel-main-shell.is-standard-shell > .topbar::before {
  content: none !important;
}

.panel-main-shell.is-standard-shell .card.soft-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Profile page */
.profile-page .card.soft-card h6 {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.profile-avatar-block {
  width: 112px;
  height: 112px;
  border: 1px solid var(--panel-line);
  background: #f5f6f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-theme='dark'] .profile-avatar-block {
  background: #1d2430;
}

.profile-page input[type="file"].form-control {
  padding: 0;
  min-height: 46px;
  height: 46px;
  line-height: 46px;
  overflow: hidden;
}

.profile-page input[type="file"].form-control::file-selector-button {
  height: 44px;
  border: 0;
  border-right: 1px solid var(--panel-line);
  margin: 0 12px 0 0;
  padding: 0 14px;
  background: #eef1f5;
  color: var(--panel-text);
}

.profile-page input[type="file"].form-control::-webkit-file-upload-button {
  height: 44px;
  border: 0;
  border-right: 1px solid var(--panel-line);
  margin: 0 12px 0 0;
  padding: 0 14px;
  background: #eef1f5;
  color: var(--panel-text);
}

html[data-theme='dark'] .profile-page input[type="file"].form-control::file-selector-button {
  background: #202734;
  color: #e5e7eb;
  border-right-color: var(--panel-line);
}

html[data-theme='dark'] .profile-page input[type="file"].form-control::-webkit-file-upload-button {
  background: #202734;
  color: #e5e7eb;
  border-right-color: var(--panel-line);
}

.panel-main-content input[type="file"].form-control {
  padding: 0;
  min-height: 46px;
  height: 46px;
  line-height: 46px;
  overflow: hidden;
}

.panel-main-content input[type="file"].form-control::file-selector-button,
.panel-main-content input[type="file"].form-control::-webkit-file-upload-button {
  height: 44px;
  border: 0;
  border-right: 1px solid var(--panel-line);
  margin: 0 12px 0 0;
  padding: 0 14px;
  background: #eef1f5;
  color: var(--panel-text);
}

html[data-theme='dark'] .panel-main-content input[type="file"].form-control::file-selector-button,
html[data-theme='dark'] .panel-main-content input[type="file"].form-control::-webkit-file-upload-button {
  background: #202734;
  color: #e5e7eb;
  border-right-color: var(--panel-line);
}

/* Global file input normalization (including modals moved to <body>) */
.form-control[type="file"] {
  padding: 0 !important;
  min-height: 46px;
  height: 46px;
  line-height: 46px;
  overflow: hidden;
}

.form-control[type="file"]::file-selector-button,
.form-control[type="file"]::-webkit-file-upload-button {
  height: 44px;
  border: 0;
  border-right: 1px solid var(--panel-line);
  margin: 0 12px 0 0;
  padding: 0 14px;
  background: #eef1f5;
  color: var(--panel-text);
}

html[data-theme='dark'] .form-control[type="file"]::file-selector-button,
html[data-theme='dark'] .form-control[type="file"]::-webkit-file-upload-button {
  background: #202734;
  color: #e5e7eb;
  border-right-color: var(--panel-line);
}

.appointments-calendar .fc {
  --fc-border-color: var(--panel-line);
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: transparent;
  --fc-list-event-hover-bg-color: rgba(255, 106, 0, 0.08);
  --fc-today-bg-color: rgba(255, 106, 0, 0.08);
  --fc-button-bg-color: var(--accent);
  --fc-button-border-color: var(--accent);
  --fc-button-hover-bg-color: #e86000;
  --fc-button-hover-border-color: #e86000;
  --fc-button-active-bg-color: #e86000;
  --fc-button-active-border-color: #e86000;
}

.appointments-calendar .fc .fc-toolbar-title {
  font-size: 1rem;
  font-weight: 700;
}

.appointments-calendar .fc .fc-button {
  border-radius: 0;
  box-shadow: none;
}

.appointments-page {
  min-height: calc(100vh - var(--shell-header-height) - 28px);
}

.appointments-page > [class*='col-'] {
  display: flex;
  flex-direction: column;
}

.appointments-calendar-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.appointments-calendar {
  flex: 1 1 auto;
  min-height: 0;
}

.appointments-calendar .fc {
  height: 100%;
  font-size: 0.9rem;
}

.appointments-calendar .fc .fc-toolbar.fc-header-toolbar {
  margin-bottom: 0.6rem;
}

.appointments-calendar .fc .fc-toolbar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--panel-text);
}

.appointments-calendar .fc .fc-daygrid-day-frame {
  min-height: 92px;
  padding: 2px;
}

.appointments-calendar .fc .fc-col-header-cell-cushion,
.appointments-calendar .fc .fc-daygrid-day-number {
  color: var(--panel-text);
  text-decoration: none;
}

.appointments-calendar .fc .fc-daygrid-day-number,
.appointments-calendar .fc .fc-col-header-cell-cushion,
.appointments-calendar .fc .fc-button {
  color: #111827 !important;
  text-decoration: none !important;
}

.appointments-calendar .fc a,
.appointments-calendar .fc a:link,
.appointments-calendar .fc a:visited,
.appointments-calendar .fc a:hover,
.appointments-calendar .fc a:active,
.appointments-calendar .fc a:focus {
  color: #111827 !important;
  text-decoration: none !important;
}

.appointments-calendar .fc .fc-event {
  cursor: pointer;
}

.appointments-calendar .fc .fc-daygrid-day-frame,
.appointments-calendar .fc .fc-daygrid-day-number {
  cursor: pointer;
}

.appointments-calendar .fc .fc-daygrid-event-dot,
.appointments-calendar .fc .fc-list-event-dot {
  border-color: currentColor !important;
}

.appointments-calendar .fc .fc-day-today {
  background: rgba(255, 106, 0, 0.08) !important;
}

.appointments-calendar .fc .fc-event {
  border: 0;
  border-radius: 0;
  padding: 1px 4px;
}

html[data-theme='dark'] .appointments-calendar .fc .fc-toolbar-title,
html[data-theme='dark'] .appointments-calendar .fc .fc-col-header-cell-cushion,
html[data-theme='dark'] .appointments-calendar .fc .fc-daygrid-day-number {
  color: #e7ecf3;
}

html[data-theme='dark'] .appointments-calendar .fc .fc-button {
  color: #ffffff !important;
}

html[data-theme='dark'] .appointments-calendar .fc a,
html[data-theme='dark'] .appointments-calendar .fc a:link,
html[data-theme='dark'] .appointments-calendar .fc a:visited,
html[data-theme='dark'] .appointments-calendar .fc a:hover,
html[data-theme='dark'] .appointments-calendar .fc a:active,
html[data-theme='dark'] .appointments-calendar .fc a:focus {
  color: #e7ecf3 !important;
  text-decoration: none !important;
}

html[data-theme='dark'] #appointmentsCalendar .fc .fc-daygrid-day-number,
html[data-theme='dark'] #appointmentsCalendar .fc .fc-col-header-cell-cushion,
html[data-theme='dark'] #appointmentsCalendar .fc a {
  color: #ffffff !important;
}

html[data-theme='dark'] .appointments-page .form-control::placeholder,
html[data-theme='dark'] .appointments-page .form-select::placeholder {
  color: #aab6c8 !important;
  opacity: 1;
}

/* Global placeholders in dark mode across panel modules */
html[data-theme='dark'] .panel-main-content input::placeholder,
html[data-theme='dark'] .panel-main-content textarea::placeholder,
html[data-theme='dark'] .panel-main-content .form-control::placeholder {
  color: #aab6c8 !important;
  opacity: 1 !important;
}

html[data-theme='dark'] .panel-main-content input::-webkit-input-placeholder,
html[data-theme='dark'] .panel-main-content textarea::-webkit-input-placeholder {
  color: #aab6c8 !important;
  opacity: 1 !important;
}

html[data-theme='dark'] .panel-main-content input:-ms-input-placeholder,
html[data-theme='dark'] .panel-main-content textarea:-ms-input-placeholder {
  color: #aab6c8 !important;
}

.plan-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--panel-muted);
  margin-bottom: 6px;
}

.plan-membership-card {
  border: 1px solid var(--panel-line) !important;
}

.plan-membership-card.is-pro {
  background: linear-gradient(180deg, rgba(255, 106, 0, 0.07), transparent 58%);
}

.plan-membership-card.is-free {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.1), transparent 58%);
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 30px;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--panel-line);
}

.plan-pill.is-pro {
  background: rgba(255, 106, 0, 0.12);
  color: #b54708;
  border-color: rgba(255, 106, 0, 0.38);
}

.plan-pill.is-free {
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
}

.plan-mini-stat {
  border: 1px solid var(--panel-line);
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}

.plan-mini-stat small {
  color: var(--panel-muted);
  font-size: 0.76rem;
}

.plan-mini-stat strong {
  color: var(--panel-text);
  font-size: 0.95rem;
}

.plan-line-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--panel-text);
  font-size: 0.9rem;
}

.plan-line-item iconify-icon {
  color: var(--accent);
}

.plan-benefit-card {
  border: 1px solid var(--panel-line);
  min-height: 130px;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.plan-benefit-card iconify-icon {
  font-size: 1.25rem;
  color: var(--accent);
}

.plan-benefit-card strong {
  color: var(--panel-text);
  font-size: 0.92rem;
}

.plan-benefit-card small {
  color: var(--panel-muted);
  font-size: 0.8rem;
}

.qr-page {
  min-height: calc(100vh - var(--shell-header-height) - 28px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-showcase-card {
  width: min(720px, 100%);
}

.qr-stand-scene {
  width: min(520px, 100%);
  margin: 0 auto;
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.qr-plaque {
  position: absolute;
  width: min(340px, 76%);
  aspect-ratio: 1 / 1.2;
  border: 1px solid var(--panel-line);
  background: #ffffff;
  padding: 18px 18px 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.qr-plaque-back {
  transform: translate(-74px, -22px) rotate(-5deg);
  background: linear-gradient(180deg, #222936, #1b222d);
  border-color: #273142;
  z-index: 1;
}

.qr-plaque-back .qr-plaque-brand {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 4px;
}

.qr-plaque-back-code {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.qr-plaque-back-code img {
  width: 62%;
  opacity: 0.34;
}

.qr-plaque-front {
  transform: translate(28px, 0) rotate(1deg);
  z-index: 2;
  animation: qr-plaque-float 4.5s ease-in-out infinite;
}

.qr-plaque-head {
  text-align: center;
  margin-bottom: 10px;
}

.qr-plaque-head small {
  display: block;
  color: var(--panel-muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qr-plaque-head h6 {
  margin: 4px 0 0;
  color: var(--panel-text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.qr-plaque-code {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-plaque-foot {
  margin-top: 10px;
  border-top: 1px solid var(--panel-line);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--panel-muted);
  font-size: 0.72rem;
}

.qr-plaque-foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qr-plaque-foot-brand img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.qr-stand-base {
  position: absolute;
  bottom: 20px;
  width: min(370px, 86%);
  height: 22px;
  z-index: 0;
  display: flex;
  justify-content: center;
}

.qr-stand-base i {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #a66a3f, #8b542f);
  border-radius: 3px;
  box-shadow: 0 8px 18px rgba(22, 24, 28, 0.22);
}

.qr-image {
  max-width: 220px;
}

.qr-export-sheet {
  position: fixed;
  left: 0;
  top: 0;
  width: 2550px;
  height: 3300px;
  background: #ffffff;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 180px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.qr-export-plaque {
  width: 980px;
  min-height: 1240px;
  border: 1px solid #d7dde8;
  background: #ffffff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 72px 72px 56px;
}

.qr-export-head {
  text-align: center;
  margin-bottom: 32px;
}

.qr-export-head small {
  display: block;
  color: #6d7b90;
  font-size: 32px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qr-export-head h6 {
  margin: 12px 0 0;
  color: #121b2c;
  font-size: 52px;
  line-height: 1.2;
  font-weight: 700;
}

.qr-export-code {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-export-code img {
  width: 650px;
  height: 650px;
  object-fit: contain;
}

.qr-export-foot {
  margin-top: 30px;
  border-top: 1px solid #d7dde8;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #55657f;
  font-size: 34px;
  font-weight: 600;
}

.qr-export-foot-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

body.qr-capturing .qr-export-sheet {
  opacity: 1;
  z-index: 10000;
}

@keyframes qr-plaque-float {
  0%,
  100% {
    transform: translate(28px, 0) rotate(1deg);
  }
  50% {
    transform: translate(28px, -6px) rotate(1deg);
  }
}

html[data-theme='dark'] .qr-plaque-front {
  background: #151b24;
  border-color: var(--panel-line);
}

html[data-theme='dark'] .qr-plaque-head h6 {
  color: #f3f6fb;
}

html[data-theme='dark'] .qr-plaque-head small,
html[data-theme='dark'] .qr-plaque-foot {
  color: #a6b3c5;
}

html[data-theme='dark'] .qr-plaque-back {
  background: linear-gradient(180deg, #141b25, #0f141c);
  border-color: #263042;
}

html[data-theme='dark'] .qr-plaque-back-code img {
  opacity: 0.38;
}

html[data-theme='dark'] .appointments-calendar .fc .fc-day-today {
  background: rgba(255, 106, 0, 0.14) !important;
}

@media (max-width: 991.98px) {
  .appointments-page {
    min-height: auto;
  }

  .appointments-calendar-card {
    min-height: 620px;
  }
}

@media (min-width: 992px) {
  #layoutShell.layout-shell > .main-content > .panel-main-shell:has(.appointments-page) > .panel-main-content {
    overflow: hidden;
  }
}

.appointments-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--panel-line);
}

.appointments-calendar-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--panel-text);
}

.appointments-calendar-legend .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.appointments-calendar-legend .legend-dot.is-scheduled {
  background: #ff6a00;
}

.appointments-calendar-legend .legend-dot.is-completed {
  background: #16a34a;
}

.appointments-calendar-legend .legend-dot.is-cancelled {
  background: #dc2626;
}

.appointments-calendar-legend .legend-dot.is-no-show {
  background: #6b7280;
}

/* Dark polish: text contrast + transparent panel surfaces */
html[data-theme='dark'] {
  --panel-text: #e7ecf3;
  --panel-muted: #9aa7bb;
  --panel-surface: transparent;
}

html[data-theme='dark'] .brand-title,
html[data-theme='dark'] .topbar-title,
html[data-theme='dark'] .sidebar-user strong,
html[data-theme='dark'] .sidebar-user small,
html[data-theme='dark'] .sidebar-nav .nav-link,
html[data-theme='dark'] .sidebar-footer small,
html[data-theme='dark'] .topbar-search,
html[data-theme='dark'] .topbar-search input {
  color: var(--panel-text) !important;
}

html[data-theme='dark'] .sidebar-nav .nav-link.active,
html[data-theme='dark'] .sidebar-nav .nav-link:hover {
  background: rgba(154, 167, 187, 0.12) !important;
  color: #f3f6fb !important;
}

html[data-theme='dark'] #layoutShell .panel-main-shell.is-standard-shell .card.soft-card,
html[data-theme='dark'] #layoutShell .panel-main-shell.is-standard-shell .table,
html[data-theme='dark'] #layoutShell .panel-main-shell.is-standard-shell .table > :not(caption) > * > * {
  background: transparent !important;
}

html[data-theme='dark'] .topbar-search {
  color: var(--panel-muted) !important;
}

html[data-theme='dark'] .topbar-search input,
html[data-theme='dark'] .admin-search-form .form-control,
html[data-theme='dark'] input[type='search'].form-control {
  color: var(--panel-text) !important;
  background: rgba(15, 19, 26, 0.45) !important;
  border-color: var(--panel-line) !important;
}

html[data-theme='dark'] .topbar-search input::placeholder,
html[data-theme='dark'] .admin-search-form .form-control::placeholder,
html[data-theme='dark'] input[type='search'].form-control::placeholder {
  color: var(--panel-muted) !important;
}

html[data-theme='dark'] .admin-kpi-flat .h4,
html[data-theme='dark'] .admin-kpi-flat div.h4 {
  color: #f3f6fb !important;
}

html[data-theme='dark'] .admin-kpi-flat .text-muted,
html[data-theme='dark'] .admin-kpi-flat small {
  color: #a9b4c5 !important;
}

html[data-theme='dark'] .admin-kpi-flat {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--panel-line) !important;
}

@media (min-width: 1200px) {
  .dashboard-main-col {
    border-right: 0 !important;
  }
}

/* Ensure Bootstrap modals are above panel shell/backdrop layers */
.modal-backdrop.show {
  z-index: 2050 !important;
}

.modal.show {
  z-index: 2060 !important;
}

/* Free plan sidebar upgrade card */
.sidebar-pro-upgrade {
  margin-top: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 0;
  background: #eceff3;
  display: grid;
  gap: 8px;
}

.sidebar-pro-upgrade-icon {
  width: 32px;
  height: 32px;
  border: 0;
  background: #dde3ea;
  color: #3f4a5c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-pro-upgrade h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--panel-text);
}

.sidebar-pro-upgrade p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--panel-muted);
}

.sidebar-pro-upgrade .btn {
  width: fit-content;
  border-radius: 0;
  min-height: 34px;
  height: 34px;
  padding-inline: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.layout-shell.sidebar-collapsed .sidebar-pro-upgrade {
  display: none;
}

html[data-theme='dark'] .sidebar-pro-upgrade {
  background: rgba(148, 163, 184, 0.12);
}

html[data-theme='dark'] .sidebar-pro-upgrade-icon {
  background: rgba(148, 163, 184, 0.2);
  color: #dbe5f3;
}

/* Business setup redesign */
.business-page .business-section h5 {
  font-weight: 700;
}

.business-logo-preview {
  width: 128px;
  height: 128px;
}

.business-template-carousel {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
}

.business-template-nav {
  border-radius: 0;
}

.business-template-stage {
  display: grid;
  gap: 12px;
}

.business-template-preview {
  user-select: none;
  touch-action: pan-y;
  border: 1px solid var(--panel-line);
  background: #f2f5fa;
  padding: 16px;
}

.business-template-phone {
  margin-inline: auto;
  width: min(100%, 360px);
  border: 1px solid var(--panel-line);
  background: #ffffff;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.business-template-top {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.business-template-top img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 999px;
}

.business-template-top strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
}

.business-template-top small {
  color: var(--panel-muted);
  font-size: 0.76rem;
}

.business-template-body {
  display: grid;
  gap: 8px;
}

.business-template-body p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.business-template-chip {
  border: 1px solid var(--panel-line);
  padding: 8px 10px;
  font-size: 0.76rem;
}

.business-template-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.business-template-chip-btn {
  border: 1px solid var(--panel-line);
  background: #fff;
  color: var(--panel-text);
  padding: 8px 10px;
  font-size: 0.75rem;
  line-height: 1;
}

.business-template-chip-btn.is-active {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.business-template-preview[data-template='template-1'] .business-template-phone {
  background: #ffffff;
}

.business-template-preview[data-template='template-2'] .business-template-phone {
  background: #f7f7fc;
}

.business-template-preview[data-template='template-3'] .business-template-phone {
  background: #fff4eb;
}

.business-template-preview[data-template='template-4'] .business-template-phone {
  background: #eff8f7;
}

.business-template-preview[data-template='template-5'] .business-template-phone {
  background: #f8f2ff;
}

.business-template-preview[data-template='template-6'] .business-template-phone {
  background: #f5f7fb;
}

.business-template-preview[data-template='template-7'] .business-template-phone {
  background: #f2f8ff;
}

.business-template-preview[data-template='template-8'] .business-template-phone {
  background: #fff8f0;
}

html[data-theme='dark'] .business-template-preview {
  background: rgba(148, 163, 184, 0.08);
}

html[data-theme='dark'] .business-template-phone {
  background: rgba(13, 17, 23, 0.75);
  border-color: var(--panel-line);
}

html[data-theme='dark'] .business-template-chip,
html[data-theme='dark'] .business-template-chip-btn {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--panel-line);
}

@media (max-width: 991.98px) {
  .business-template-carousel {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }
}

/* Business cinema template selector */
.business-logo-preview {
  width: 92px;
  height: 92px;
}

.business-template-cinema-wrap {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
}

.business-template-cinema {
  position: relative;
  height: 580px;
  display: grid;
  place-items: center;
  user-select: none;
  touch-action: pan-y;
}

.business-template-phone-shell {
  position: relative;
  z-index: 20;
  width: min(100%, 300px);
  border-radius: 30px;
  background: #121722;
  padding: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.business-template-phone-shell::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.business-template-preview {
  border: 1px solid var(--panel-line);
  background: #f2f5fa;
  padding: 12px;
  border-radius: 22px;
  min-height: 530px;
}

.business-template-phone {
  width: 100%;
  border: 1px solid var(--panel-line);
  background: #ffffff;
  padding: 12px;
  border-radius: 16px;
  display: grid;
  gap: 8px;
  min-height: 504px;
}

.business-template-side {
  position: absolute;
  top: 50%;
  width: 160px;
  height: 490px;
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  background: #eceff3;
  transform: translateY(-50%);
  display: grid;
  align-items: end;
  padding: 10px;
  color: #4f5a6d;
  font-size: 0.75rem;
  line-height: 1;
  pointer-events: none;
}

.business-template-side span {
  background: rgba(17, 24, 39, 0.08);
  color: #303949;
  padding: 6px 8px;
  border-radius: 8px;
  width: fit-content;
}

.business-template-side.is-left {
  left: 14%;
  transform: translateY(-50%) rotateY(25deg) scale(0.92);
  z-index: 12;
}

.business-template-side.is-right {
  right: 14%;
  transform: translateY(-50%) rotateY(-25deg) scale(0.92);
  z-index: 12;
}

.business-template-side.is-edge-left,
.business-template-side.is-edge-right {
  width: 94px;
  height: 420px;
  opacity: 0.65;
  padding: 8px;
}

.business-template-side.is-edge-left {
  left: 2%;
  transform: translateY(-50%) rotateY(38deg) scale(0.84);
  z-index: 10;
}

.business-template-side.is-edge-right {
  right: 2%;
  transform: translateY(-50%) rotateY(-38deg) scale(0.84);
  z-index: 10;
}

.business-template-dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.business-template-chip-btn {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--panel-line);
  background: #d1d7e1;
  padding: 0;
}

.business-template-chip-btn.is-active {
  width: 30px;
  border-color: var(--accent);
  background: var(--accent);
}

.business-template-preview[data-template='template-1'] .business-template-phone,
.business-template-side[data-template='template-1'] {
  background: #ffffff;
}

.business-template-preview[data-template='template-2'] .business-template-phone,
.business-template-side[data-template='template-2'] {
  background: #f7f7fc;
}

.business-template-preview[data-template='template-3'] .business-template-phone,
.business-template-side[data-template='template-3'] {
  background: #fff4eb;
}

.business-template-preview[data-template='template-4'] .business-template-phone,
.business-template-side[data-template='template-4'] {
  background: #eff8f7;
}

.business-template-preview[data-template='template-5'] .business-template-phone,
.business-template-side[data-template='template-5'] {
  background: #f8f2ff;
}

.business-template-preview[data-template='template-6'] .business-template-phone,
.business-template-side[data-template='template-6'] {
  background: #f5f7fb;
}

.business-template-preview[data-template='template-7'] .business-template-phone,
.business-template-side[data-template='template-7'] {
  background: #f2f8ff;
}

.business-template-preview[data-template='template-8'] .business-template-phone,
.business-template-side[data-template='template-8'] {
  background: #fff8f0;
}

@media (max-width: 991.98px) {
  .business-template-cinema {
    height: 470px;
  }

  .business-template-side.is-edge-left,
  .business-template-side.is-edge-right {
    display: none;
  }

  .business-template-side.is-left {
    left: 6%;
  }

  .business-template-side.is-right {
    right: 6%;
  }
}

/* Business page two-column layout refinements */
@media (min-width: 1200px) {
  .business-page .business-template-panel {
    position: sticky;
    top: 10px;
  }

  .business-page .business-section {
    margin-bottom: 0;
  }
}

.business-page .business-template-cinema {
  min-height: 580px;
}

.business-page .business-template-phone-shell {
  width: min(100%, 300px);
}

.business-page .business-template-side {
  height: 490px;
}

.business-page .business-template-side.is-edge-left,
.business-page .business-template-side.is-edge-right {
  height: 420px;
}

.business-page .business-template-preview {
  min-height: 530px;
}

/* Real mobile simulation for business profile preview */
.business-page .business-template-cinema-wrap {
  grid-template-columns: minmax(0, 1fr);
}

.business-page .business-template-cinema {
  min-height: auto;
  height: auto;
  padding: 4px 0;
}

.business-page .business-template-phone-shell {
  width: min(100%, 368px);
  border-radius: 36px;
  padding: 12px;
  background: #0f172a;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.28);
}

.business-page .business-template-phone-shell::before {
  top: 7px;
  width: 96px;
  height: 7px;
  background: rgba(255, 255, 255, 0.32);
}

.business-page .business-template-preview {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
}

.business-page .business-template-phone {
  position: relative;
  margin-inline: 0;
  width: 100%;
  aspect-ratio: 390 / 844;
  min-height: 0;
  border: 0;
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  display: block;
  background: #ffffff;
}

.business-page .business-template-phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 22px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  z-index: 2;
  pointer-events: none;
}

.business-page #businessTemplateFrame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #ffffff;
}

@media (max-width: 991.98px) {
  .business-page .business-template-phone-shell {
    width: min(100%, 338px);
  }
}
