/* SpinWin Admin — design tokens ported from base-ui */

@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/NunitoSans.ttf") format("truetype-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/NunitoSans-Italic.ttf") format("truetype-variations");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

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

html,
body {
  margin: 0;
}

body {
  background: var(--canvas);
  font-family: "Nunito Sans", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
}

input,
button,
select,
textarea {
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 8px;
  border: 2px solid var(--canvas);
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

/* Light theme (default) */
:root,
[data-theme="light"] {
  --ink: #171717;
  --ink2: #404040;
  --mut: #737373;
  --mut2: #a3a3a3;
  --line: #e5e5e5;
  --line2: #f2f2f2;
  --canvas: #fafafa;
  --surf: #ffffff;
  --accent: #0891b2;
  --accentH: #0e7490;
  --accentD: #155e75;
  --accentT: #ecfeff;
  --accentT2: #cff9fe;
  --ok: #059669;
  --okT: #ecfdf5;
  --warn: #b45309;
  --warnT: #fffbeb;
  --warnB: #fde68a;
  --err: #dc2626;
  --errT: #fef2f2;
  --errB: #fecaca;
  --info: #1d4ed8;
  --infoT: #eff6ff;
  --pink: #db2777;
  --sidebar-width: 248px;
}

/* Dark mode ready */
[data-theme="dark"] {
  --ink: #f5f5f5;
  --ink2: #d4d4d4;
  --mut: #a3a3a3;
  --mut2: #737373;
  --line: #404040;
  --line2: #333333;
  --canvas: #171717;
  --surf: #262626;
  --accent: #22d3ee;
  --accentH: #06b6d4;
  --accentD: #67e8f9;
  --accentT: #164e63;
  --accentT2: #155e75;
  --ok: #34d399;
  --okT: #064e3b;
  --warn: #fbbf24;
  --warnT: #451a03;
  --warnB: #78350f;
  --err: #f87171;
  --errT: #450a0a;
  --errB: #7f1d1d;
  --info: #60a5fa;
  --infoT: #1e3a8a;
}

#app {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.admin-sidebar {
  width: var(--sidebar-width);
  flex: none;
  background: var(--surf);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}

.admin-sidebar__brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--line2);
}

.admin-sidebar__brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar__logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
}

.admin-sidebar__title {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.05;
}

.admin-sidebar__subtitle {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut2);
}

.admin-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 2px;
  background: transparent;
  color: var(--ink2);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-item:hover:not(.is-disabled) {
  background: var(--line2);
  color: var(--ink);
}

.admin-nav-item.is-active {
  font-weight: 800;
  background: var(--accentT);
  color: var(--accentD);
}

.admin-nav-item.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-nav-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--mut);
}

.admin-nav-item.is-active .admin-nav-item__icon {
  color: var(--accent);
}

.admin-nav-item__badge {
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mut2);
  background: var(--line2);
  padding: 3px 6px;
  border-radius: 5px;
}

.admin-sidebar__footer {
  padding: 12px;
  border-top: 1px solid var(--line2);
}

.admin-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.admin-user-chip__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accentT2);
  color: var(--accentD);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex: none;
}

.admin-user-chip__name {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-chip__role {
  font-weight: 600;
  font-size: 11px;
  color: var(--mut);
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surf) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-header__title {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0;
}

.admin-header__subtitle {
  font-weight: 600;
  font-size: 13px;
  color: var(--mut);
  margin-top: 2px;
}

.admin-content {
  flex: 1;
  padding: 28px 32px 64px;
  max-width: 1320px;
  width: 100%;
}

.admin-screen {
  animation: screenIn 0.3s ease;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.admin-kpi-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-kpi-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-kpi-card__label {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--mut);
}

.admin-kpi-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-kpi-card__value {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.admin-kpi-card__footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.admin-kpi-card__delta {
  font-weight: 800;
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 6px;
}

.admin-kpi-card__delta--up {
  background: var(--okT);
  color: #047857;
}

.admin-kpi-card__delta--down {
  background: var(--errT);
  color: #b91c1c;
}

.admin-kpi-card__delta--flat {
  background: var(--line2);
  color: var(--mut);
}

.admin-kpi-card__sub {
  font-weight: 600;
  font-size: 11.5px;
  color: var(--mut2);
}

.admin-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-card__header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-card__title {
  font-weight: 800;
  font-size: 15px;
  margin: 0;
}

.admin-card__subtitle {
  font-weight: 600;
  font-size: 12px;
  color: var(--mut);
  margin-top: 2px;
}

.admin-card__body {
  padding: 20px;
}

.admin-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
}

.admin-alert--info {
  background: var(--infoT);
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.admin-alert--success {
  background: var(--okT);
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.admin-alert--warning {
  background: var(--warnT);
  border: 1px solid var(--warnB);
  color: #92400e;
}

.admin-alert--danger {
  background: var(--errT);
  border: 1px solid var(--errB);
  color: #991b1b;
}

.admin-empty-state {
  padding: 64px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.admin-empty-state__icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--line2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mut2);
}

.admin-empty-state__title {
  font-weight: 800;
  font-size: 16px;
  margin-top: 16px;
}

.admin-empty-state__text {
  font-weight: 600;
  font-size: 13px;
  color: var(--mut);
  margin-top: 5px;
  max-width: 360px;
  line-height: 1.5;
}

.admin-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 20px;
}

.admin-loading__ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: spinRing 0.8s linear infinite;
}

.admin-loading__text {
  font-weight: 700;
  font-size: 13px;
  color: var(--mut);
}

.admin-sk {
  background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 8px;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--mut);
}

.admin-breadcrumb a {
  color: var(--mut);
  text-decoration: none;
}

.admin-breadcrumb a:hover {
  color: var(--accentD);
}

.admin-breadcrumb__sep {
  color: var(--mut2);
}

.admin-breadcrumb__current {
  color: var(--ink);
  font-weight: 700;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line2);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mut2);
  text-align: left;
}

.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line2);
  font-weight: 600;
  font-size: 13px;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

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

.admin-btn--primary:hover {
  background: var(--accentH);
  color: #fff;
}

.admin-btn--secondary {
  background: var(--surf);
  color: var(--ink2);
  border: 1px solid var(--line);
}

.admin-btn--secondary:hover {
  background: var(--line2);
  color: var(--ink);
}

.admin-error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--canvas);
}

.admin-error-page__card {
  max-width: 440px;
  width: 100%;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-error-page__code {
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.03em;
  color: var(--accentD);
  margin: 0;
}

.admin-error-page__title {
  font-weight: 800;
  font-size: 20px;
  margin: 8px 0 0;
}

.admin-error-page__text {
  font-weight: 600;
  font-size: 14px;
  color: var(--mut);
  margin-top: 8px;
  line-height: 1.5;
}

.admin-mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surf);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink2);
}

@media (max-width: 1199px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .admin-mobile-toggle {
    display: inline-flex;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }

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

  .admin-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 25;
  }

  .admin-sidebar-backdrop.is-visible {
    display: block;
  }

  .admin-header,
  .admin-content {
    padding-left: 20px;
    padding-right: 20px;
  }
}

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

.admin-usage-meter {
  margin-bottom: 1.25rem;
}

.admin-usage-meter__track {
  height: 10px;
  border-radius: 999px;
  background: var(--line2);
  overflow: hidden;
}

.admin-usage-meter__bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.admin-usage-meter__bar--ok {
  background: #059669;
}

.admin-usage-meter__bar--warn {
  background: #d97706;
}

.admin-usage-meter__bar--block {
  background: #dc2626;
}

.admin-plan-pill {
  font-weight: 800;
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accentT);
  color: var(--accentD);
}

/* Auth & profile forms (ported from base-ui) */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: var(--canvas);
}

.auth-page__inner {
  width: 100%;
  max-width: 420px;
  animation: screenIn 0.3s ease;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  text-decoration: none;
  color: inherit;
}

.auth-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.auth-brand__title {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.05;
  color: var(--ink);
}

.auth-brand__subtitle {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut2);
}

.auth-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-card__title {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 4px;
}

.auth-card__subtitle {
  font-weight: 600;
  font-size: 13px;
  color: var(--mut);
  margin: 0 0 22px;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field--row {
  flex-direction: row;
  align-items: center;
}

.auth-label {
  font-weight: 700;
  font-size: 12px;
  color: var(--mut);
}

.auth-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accentT);
}

.auth-input::placeholder {
  color: var(--mut2);
  font-weight: 600;
}

.auth-input.is-invalid {
  border-color: var(--err);
}

.auth-error {
  font-weight: 600;
  font-size: 12px;
  color: var(--err);
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink2);
}

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

.auth-link {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--accentD);
  text-decoration: none;
}

.auth-link:hover {
  color: var(--accentH);
  text-decoration: underline;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.auth-actions--split {
  justify-content: space-between;
}

.auth-intro {
  font-weight: 600;
  font-size: 13px;
  color: var(--mut);
  line-height: 1.5;
  margin: 0 0 16px;
}

.auth-status {
  margin-bottom: 16px;
}

.auth-form-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line2);
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--mut);
}

.auth-inline-button {
  font-weight: 700;
  font-size: inherit;
  color: var(--accentD);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.auth-inline-button:hover {
  color: var(--accentH);
  text-decoration: underline;
}

.auth-link-button {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--accentD);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.auth-link-button:hover {
  color: var(--accentH);
  text-decoration: underline;
}

.admin-btn--danger {
  background: var(--err);
  color: #fff;
}

.admin-btn--danger:hover {
  background: #b91c1c;
  color: #fff;
}

.profile-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-form__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-saved {
  font-weight: 600;
  font-size: 13px;
  color: var(--ok);
}

.profile-verify-note {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink2);
  margin-top: 8px;
  line-height: 1.45;
}

.profile-verify-note .auth-link {
  font-size: inherit;
}

.admin-modal .modal-content {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.admin-modal .modal-header {
  border-bottom: 1px solid var(--line2);
  padding: 20px 24px 16px;
}

.admin-modal .modal-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}

.admin-modal .modal-body {
  padding: 16px 24px 24px;
}

.admin-modal .modal-footer {
  border-top: 1px solid var(--line2);
  padding: 16px 24px;
  gap: 10px;
}

.admin-modal__text {
  font-weight: 600;
  font-size: 13px;
  color: var(--mut);
  line-height: 1.5;
  margin: 0;
}

.branch-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

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

.branch-panel {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.branch-panel--qr {
  position: sticky;
  top: 88px;
}

.branch-panel__header {
  margin-bottom: 16px;
}

.branch-panel__brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.branch-panel__brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex: none;
}

.branch-panel__brand-name {
  font-weight: 800;
  font-size: 15px;
}

.branch-panel__brand-meta {
  font-weight: 600;
  font-size: 12px;
  color: var(--mut);
}

.branch-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.branch-list__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surf);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.branch-list__item:hover {
  border-color: var(--accent);
  color: inherit;
}

.branch-list__item--active {
  border-color: var(--accent);
  background: var(--accentT);
}

.branch-list__avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  background: var(--accentT2);
  color: var(--accentD);
  flex: none;
}

.branch-list__item--active .branch-list__avatar {
  background: var(--accent);
  color: #fff;
}

.branch-list__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.branch-list__name {
  font-weight: 700;
  font-size: 13.5px;
}

.branch-list__address {
  font-weight: 600;
  font-size: 11.5px;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.branch-list__meta {
  font-weight: 600;
  font-size: 11.5px;
  color: var(--mut2);
  flex: none;
}

.branch-add-btn {
  margin-top: 12px;
  height: 44px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  background: var(--canvas);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.branch-add-btn:hover {
  border-color: var(--accent);
  color: var(--accentD);
}

.branch-add-btn--disabled {
  color: var(--mut2);
  cursor: not-allowed;
}

.branch-staff {
  margin-top: 20px;
  border-top: 1px solid var(--line2);
  padding-top: 16px;
}

.branch-staff__title {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut2);
}

.branch-staff__row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 4px;
}

.branch-staff__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--line2);
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  flex: none;
}

.branch-staff__name {
  flex: 1;
  font-weight: 700;
  font-size: 13px;
}

.branch-staff__role {
  font-weight: 700;
  font-size: 11px;
  color: var(--mut);
  background: var(--line2);
  padding: 3px 9px;
  border-radius: 999px;
}

.branch-staff__empty {
  margin: 12px 0 0;
  font-weight: 600;
  font-size: 12px;
  color: var(--mut);
}

.branch-panel__footer {
  margin-top: 16px;
}

.branch-qr__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.branch-qr__title {
  font-weight: 800;
  font-size: 15px;
}

.branch-qr__subtitle {
  font-weight: 600;
  font-size: 12px;
  color: var(--mut);
}

.branch-qr__domain {
  font-weight: 700;
  font-size: 11px;
  color: var(--accentD);
  background: var(--accentT);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.branch-qr__preview-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.branch-qr__preview {
  width: 280px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
}

.branch-qr__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
}

.branch-qr__caption {
  font-weight: 800;
  font-size: 15px;
  margin-top: 14px;
}

.branch-qr__caption--muted {
  font-weight: 600;
  font-size: 12px;
  color: var(--mut);
  margin-top: 4px;
}

.branch-qr__picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.branch-qr__picker-item {
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink2);
}

.branch-qr__picker-item--active {
  border-color: var(--accent);
  background: var(--accentT);
  color: var(--accentD);
}

.branch-qr__actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.branch-qr__actions .admin-btn {
  flex: 1;
  min-width: 140px;
}

.branch-qr__hint {
  font-weight: 600;
  font-size: 11.5px;
  color: var(--mut2);
  text-align: center;
  margin: 12px 0 0;
}

.reward-panel {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.reward-panel__header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line2);
}

.reward-panel__title {
  font-weight: 800;
  font-size: 15px;
}

.reward-panel__subtitle {
  font-weight: 600;
  font-size: 12px;
  color: var(--mut);
}

.reward-panel__empty {
  padding: 24px 20px;
}

.reward-panel__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line2);
}

.admin-content .pagination {
  margin-bottom: 0;
  justify-content: center;
  gap: 4px;
}

.admin-content .page-link {
  border-radius: 8px;
  border-color: var(--line);
  color: var(--ink2);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  background: var(--surf);
}

.admin-content .page-link:hover {
  background: var(--line2);
  border-color: var(--line);
  color: var(--ink);
}

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

.admin-content .page-item.disabled .page-link {
  color: var(--mut2);
  background: var(--line2);
  border-color: var(--line);
}

.reward-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 20px;
}

.reward-grid--head {
  border-bottom: 1px solid var(--line2);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mut2);
  padding-top: 12px;
  padding-bottom: 12px;
}

.reward-grid--row {
  border-bottom: 1px solid var(--line2);
}

.reward-grid--row:last-child {
  border-bottom: none;
}

.reward-grid__name {
  font-weight: 700;
  font-size: 13.5px;
}

.reward-grid__tenant {
  display: block;
  font-weight: 600;
  font-size: 11px;
  color: var(--mut);
  margin-top: 2px;
}

.reward-grid__stock,
.reward-grid__expiry {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink2);
}

.reward-grid__expiry {
  font-weight: 600;
  color: var(--mut);
}

.customer-grid {
  display: grid;
  grid-template-columns: 36px 1.4fr 1fr 0.7fr 0.7fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
}

.customer-grid--head {
  border-bottom: 1px solid var(--line2);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mut2);
  padding-top: 12px;
  padding-bottom: 12px;
}

.customer-grid--row {
  border-bottom: 1px solid var(--line2);
}

.customer-grid--row:last-child {
  border-bottom: none;
}

.customer-grid__phone {
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.customer-grid__branch {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink2);
}

.customer-grid__tenant {
  display: block;
  font-weight: 600;
  font-size: 11px;
  color: var(--mut);
  margin-top: 2px;
}

.customer-grid__metric {
  font-weight: 700;
  font-size: 13px;
}

.customer-grid__date {
  font-weight: 600;
  font-size: 13px;
  color: var(--mut);
}

.report-grid__si {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 12px;
  color: var(--mut2);
}

.spin-log-grid {
  display: grid;
  grid-template-columns: 36px 0.8fr 1fr 1fr 1.2fr 0.7fr 0.9fr;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
}

.spin-log-grid--head {
  border-bottom: 1px solid var(--line2);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mut2);
  padding-top: 12px;
  padding-bottom: 12px;
}

.spin-log-grid--row {
  border-bottom: 1px solid var(--line2);
}

.spin-log-grid--row:last-child {
  border-bottom: none;
}

.spin-log-grid__time {
  font-variant-numeric: tabular-nums;
  color: var(--mut);
  font-size: 12.5px;
  font-weight: 600;
}

.spin-log-grid__guest {
  font-weight: 700;
  font-size: 13px;
}

.spin-log-grid__branch {
  color: var(--ink2);
  font-weight: 600;
  font-size: 13px;
}

.spin-log-grid__result {
  font-weight: 700;
  font-size: 13px;
}

.spin-log-grid__result--win {
  color: #047857;
}

.spin-log-grid__result--lose {
  color: var(--mut);
}

.spin-log-grid__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.redemption-status-pill {
  font-weight: 800;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
}

.redemption-status-pill--ok {
  color: #047857;
  background: var(--okT);
}

.redemption-status-pill--warn {
  color: #b45309;
  background: var(--warnT);
}

.redemption-status-pill--accent {
  color: #155e75;
  background: var(--accentT);
}

.redemption-status-pill--err {
  color: #b91c1c;
  background: var(--errT);
}

.redemption-status-pill--muted {
  color: var(--mut2);
  background: var(--line2);
}

.reward-type-pill {
  font-weight: 700;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--line2);
  color: var(--ink2);
}

.reward-status-pill {
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}

.reward-status-pill--ok {
  background: var(--okT);
  color: #047857;
}

.reward-status-pill--err {
  background: var(--errT);
  color: #b91c1c;
}

.reward-status-pill--muted {
  background: var(--line2);
  color: var(--mut);
}

.reward-status-pill--warn {
  background: var(--warnT);
  color: #b45309;
}

.reward-status-pill--info {
  background: var(--accentT);
  color: var(--accentD);
}

.campaign-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.campaign-nav__item {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  color: var(--mut);
}

.campaign-nav__item--active {
  border-color: var(--accent);
  background: var(--accentT);
  color: var(--accentD);
}

.template-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}

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

.template-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.template-panel {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  overflow: hidden;
}

.template-panel--preview {
  position: sticky;
  top: 88px;
}

.template-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line2);
  margin-bottom: 0;
}

.template-panel__title {
  font-weight: 800;
  font-size: 15px;
}

.template-panel__subtitle {
  font-weight: 600;
  font-size: 12px;
  color: var(--mut);
}

.template-wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin: 18px 0 8px;
}

.template-wheel__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.template-wheel__ring svg {
  display: block;
  width: 100%;
  height: 100%;
}

.template-wheel__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: var(--accent);
}

.template-wheel__hint {
  font-weight: 600;
  font-size: 12px;
  color: var(--mut);
  text-align: center;
  line-height: 1.5;
}

.template-segment-row {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line2);
}

.template-probability-bar {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--canvas);
}

.template-probability-bar__label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mut);
}

.template-probability-bar__value {
  font-weight: 800;
  font-size: 22px;
}

.template-probability-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.template-probability-bar__message {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--mut);
}

.template-sync-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-sync-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.template-sync-row__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.template-sync-row__dot--inherited {
  background: #059669;
}

.template-sync-row__dot--overridden {
  background: #d97706;
}

.template-sync-pill {
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.template-sync-pill--inherited {
  background: var(--okT);
  color: #047857;
}

.template-sync-pill--overridden {
  background: var(--warnT);
  color: #b45309;
}

.template-audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line2);
}

@media (max-width: 991.98px) {
  .reward-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .reward-grid--head {
    display: none;
  }

  .reward-grid--row {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

.reports-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.reports-toolbar__tabs {
  flex: 1;
  min-width: 0;
}

.reports-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.reports-filter-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin: 0;
}

.reports-filter-form__label {
  font-weight: 700;
  font-size: 12px;
  color: var(--mut);
  white-space: nowrap;
  margin: 0;
}

.reports-filter-form .form-control-sm {
  width: auto;
  min-width: 9.5rem;
}

.reports-export-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.reports-export-form__button {
  font-weight: 800;
  white-space: nowrap;
}

.reward-log-grid {
  display: grid;
  grid-template-columns: 36px 1.1fr 1fr 1fr 1.2fr 0.9fr;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
}

.reward-log-grid--head {
  border-bottom: 1px solid var(--line2);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mut2);
  padding-top: 12px;
  padding-bottom: 12px;
}

.reward-log-grid--row {
  border-bottom: 1px solid var(--line2);
}

.reward-log-grid--row:last-child {
  border-bottom: none;
}

.branch-analytics {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px;
}

.branch-analytics--compact {
  padding: 8px 4px 4px;
}

.branch-analytics__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.branch-analytics__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.branch-analytics__name {
  font-weight: 700;
  font-size: 13px;
}

.branch-analytics__value {
  font-weight: 800;
  font-size: 13px;
}

.branch-analytics__track {
  height: 10px;
  border-radius: 999px;
  background: var(--line2);
  overflow: hidden;
}

.branch-analytics--compact .branch-analytics__track {
  height: 8px;
}

.branch-analytics__bar {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.dashboard-activity {
  padding: 8px 4px 4px;
}

.dashboard-activity__legend {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-activity__legend-item {
  font-weight: 700;
  font-size: 12px;
  color: var(--mut);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-activity__legend-item::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.dashboard-activity__legend-item--spins::before {
  background: var(--accent);
}

.dashboard-activity__legend-item--redemptions::before {
  background: var(--accentT2);
}

.dashboard-activity__chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 180px;
}

.dashboard-activity__column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dashboard-activity__bars {
  width: 100%;
  max-width: 38px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
}

.dashboard-activity__bar {
  width: 100%;
  border-radius: 5px;
}

.dashboard-activity__bar--spins {
  background: var(--accent);
  border-radius: 5px 5px 0 0;
}

.dashboard-activity__bar--redemptions {
  background: var(--accentT2);
  border-radius: 0 0 5px 5px;
}

.dashboard-activity__label {
  font-weight: 700;
  font-size: 11px;
  color: var(--mut2);
}

.fraud-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 991.98px) {
  .fraud-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fraud-stat-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.fraud-stat-card__label {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--mut);
}

.fraud-stat-card__value {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.fraud-stat-card__value--err {
  color: var(--err);
}

.fraud-stat-card__value--warn {
  color: var(--warn);
}

.fraud-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.fraud-main-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

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

.fraud-settings-panel {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  position: sticky;
  top: 88px;
}

.fraud-settings-panel__title {
  font-weight: 800;
  font-size: 15px;
}

.fraud-settings-panel__subtitle {
  font-weight: 600;
  font-size: 12px;
  color: var(--mut);
  margin-top: 2px;
}

.fraud-settings-panel__hint {
  font-weight: 600;
  font-size: 13px;
  color: var(--mut);
  line-height: 1.5;
  margin-top: 18px;
}

.fraud-settings-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fraud-range-field__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
}

.fraud-range-field__label {
  font-weight: 700;
  font-size: 13px;
}

.fraud-range-field__sub {
  font-weight: 600;
  font-size: 11px;
  color: var(--mut2);
}

.fraud-range-field__value {
  font-weight: 800;
  font-size: 15px;
  color: var(--accentD);
}

.fraud-range-field__unit {
  font-weight: 700;
  font-size: 11px;
  color: var(--mut);
}

.fraud-settings-readonly {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fraud-settings-readonly dt {
  font-weight: 700;
  font-size: 12px;
  color: var(--mut);
}

.fraud-settings-readonly dd {
  font-weight: 800;
  font-size: 15px;
  margin: 0;
}

.fraud-flag-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line2);
  border-left: 6px solid var(--line2);
}

.fraud-flag-row--err {
  border-left-color: #dc2626;
}

.fraud-flag-row--warn {
  border-left-color: #b45309;
}

.fraud-flag-row--info {
  border-left-color: #1d4ed8;
}

.fraud-flag-row__content {
  flex: 1;
  min-width: 0;
}

.fraud-flag-row__title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-weight: 800;
  font-size: 14px;
}

.fraud-flag-row__detail {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink2);
  margin-top: 4px;
}

.fraud-flag-row__meta {
  font-weight: 600;
  font-size: 11.5px;
  color: var(--mut2);
  margin-top: 5px;
}

.fraud-flag-row__actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: none;
}

.fraud-severity-pill {
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}

.fraud-severity-pill--err {
  color: #dc2626;
  background: var(--errT);
  border: 1px solid var(--errB, #fecaca);
}

.fraud-severity-pill--warn {
  color: #b45309;
  background: var(--warnT);
  border: 1px solid #fde68a;
}

.fraud-severity-pill--info {
  color: #1d4ed8;
  background: var(--infoT, #dbeafe);
  border: 1px solid #bfdbfe;
}

/* Branding ---------------------------------------------------------------- */
.branding-layout {
  display: grid;
  grid-template-columns: 1fr 392px;
  gap: 24px;
  align-items: start;
  animation: screenIn 0.3s ease;
}

@media (max-width: 1199px) {
  .branding-layout {
    grid-template-columns: 1fr;
  }
}

.branding-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.branding-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.branding-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.branding-card__title {
  font-weight: 800;
  font-size: 15px;
}

.branding-card__subtitle {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--mut);
  margin-top: 2px;
}

.branding-color-row {
  display: flex;
  gap: 28px;
  margin-top: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.branding-wheel {
  position: relative;
  width: 220px;
  height: 220px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #ff2d2d, #ffd21e, #5bd11e, #1ec7c7, #2d6bff, #c02dff, #ff2d8a, #ff2d2d);
  cursor: crosshair;
  touch-action: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.branding-wheel[data-readonly] {
  cursor: default;
  pointer-events: none;
}

.branding-wheel__inner {
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: var(--surf);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.branding-wheel__swatch {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff, 0 2px 8px rgba(0, 0, 0, 0.15);
}

.branding-wheel__hex {
  font-weight: 800;
  font-size: 14px;
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.branding-wheel__thumb {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.branding-sliders {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.branding-slider__meta {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 12px;
  color: var(--mut);
  margin-bottom: 7px;
}

.branding-slider__meta span:last-child {
  color: var(--ink);
}

.branding-hex-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
}

.branding-hex-input__swatch {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.branding-hex-input input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.branding-presets {
  margin-top: 20px;
}

.branding-presets__label {
  font-weight: 700;
  font-size: 12px;
  color: var(--mut);
  margin-bottom: 9px;
}

.branding-presets__grid {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.branding-preset {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.12);
  padding: 0;
}

.branding-preset.is-active {
  border-color: var(--ink);
}

.branding-palette-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 767px) {
  .branding-palette-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.branding-palette-swatch__chip {
  height: 56px;
  border-radius: 9px;
  display: flex;
  align-items: flex-end;
  padding: 6px;
  font-weight: 800;
  font-size: 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.branding-palette-swatch__name {
  font-weight: 700;
  font-size: 11px;
  margin-top: 6px;
}

.branding-palette-swatch__hex {
  font-weight: 600;
  font-size: 10.5px;
  color: var(--mut2);
  letter-spacing: 0.03em;
}

.branding-palette-note {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 9px;
  background: var(--okT);
  border: 1px solid #a7f3d0;
  font-weight: 600;
  font-size: 12px;
  color: #065f46;
}

.branding-contrast-pill {
  display: inline-block;
  font-weight: 800;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 7px;
}

.branding-contrast-pill.is-pass {
  background: var(--okT);
  color: #047857;
  border: 1px solid #a7f3d0;
}

.branding-contrast-pill.is-warn {
  background: var(--warnT);
  color: #b45309;
  border: 1px solid var(--warnB);
}

.branding-logo-drop {
  display: block;
  margin-top: 14px;
  min-height: 88px;
  border: 1.5px dashed var(--accentT2);
  border-radius: 12px;
  background: var(--accentT);
  padding: 16px;
  cursor: pointer;
}

.branding-logo-drop.is-uploaded {
  border-color: var(--line);
  background: var(--canvas);
}

.branding-logo-drop--readonly {
  cursor: default;
}

.branding-logo-drop__empty,
.branding-logo-drop__uploaded {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.branding-logo-drop__empty {
  flex-direction: column;
  gap: 8px;
  color: var(--mut);
  font-weight: 700;
  font-size: 13px;
}

.branding-logo-drop__meta {
  flex: 1;
  text-align: left;
}

.branding-logo-drop__filename {
  font-weight: 700;
  font-size: 13px;
}

.branding-logo-drop__hint {
  font-weight: 600;
  font-size: 11.5px;
  color: var(--mut);
}

.branding-logo-drop__replace {
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
}

.branding-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.branding-preview {
  position: sticky;
  top: 88px;
}

@media (max-width: 1199px) {
  .branding-preview {
    position: static;
  }
}

.branding-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.branding-preview__title {
  font-weight: 800;
  font-size: 13px;
}

.branding-preview__tabs {
  display: flex;
  gap: 6px;
}

.branding-preview-tab {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  background: var(--surf);
  color: var(--mut);
}

.branding-preview-tab.is-active {
  border-color: var(--accent);
  background: var(--accentT);
  color: var(--accentD);
}

.branding-phone {
  width: 340px;
  max-width: 100%;
  height: 700px;
  background: #111;
  border-radius: 40px;
  padding: 9px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(0, 0, 0, 0.5);
}

.branding-phone__screen {
  width: 100%;
  height: 100%;
}

.branding-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.branding-actions__btn {
  flex: 1;
  height: 42px;
  font-weight: 700;
}

.branding-prev-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.branding-prev-status {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-weight: 800;
  font-size: 13px;
  color: #1a1613;
}

.branding-prev-body {
  flex: 1;
  overflow: hidden;
}

.branding-prev-landing,
.branding-prev-wheel-view {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.branding-prev-landing__header,
.branding-prev-wheel-view__header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.branding-prev-wheel-view__header {
  justify-content: space-between;
}

.branding-prev-wheel-view__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: #1a1613;
}

.branding-prev-landing__name {
  font-weight: 800;
  font-size: 16px;
  color: #1a1613;
}

.branding-prev-landing__sub {
  font-weight: 600;
  font-size: 11.5px;
  color: #8a827a;
}

.branding-prev-landing__hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.branding-prev-badge {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
}

.branding-prev-wheel-sm {
  width: 130px;
  height: 130px;
  margin: 18px 0;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.16));
}

.branding-prev-title {
  font-weight: 800;
  font-size: 28px;
  color: #1a1613;
  margin: 0;
  letter-spacing: -0.02em;
}

.branding-prev-copy {
  font-weight: 500;
  font-size: 13px;
  color: #8a827a;
  margin: 8px 0 0;
  max-width: 230px;
  line-height: 1.5;
}

.branding-prev-cta {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 15px;
  font-weight: 800;
  font-size: 15px;
}

.branding-prev-wheel-view__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.branding-prev-wheel-view__title {
  font-weight: 800;
  font-size: 22px;
  color: #1a1613;
}

.branding-prev-wheel-lg {
  position: relative;
  width: 250px;
  height: 250px;
  margin-top: 18px;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.2));
}

.branding-prev-wheel-lg__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
}

.branding-prev-wheel-lg__pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 18px solid;
}
