:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #6e6e6e;
  --line: #bfe4e8;
  --panel: #ffffff;
  --soft: #f2f5f5;
  --field: #e6f5f6;
  --brand: #19c6cf;
  --brand-soft: #cfecef;
  --brand-strong: #12aeb6;
  --warn: #b98516;
  --danger: #d9534f;
  --ok: #1f9d6a;
  --shadow: 0 18px 45px rgba(17, 17, 17, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: var(--brand);
}

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

.loading-panel,
.auth-wrap {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.loading-panel {
  gap: 8px;
  color: var(--muted);
}

.auth-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-card {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: hidden;
}

.auth-side {
  padding: 34px;
  background: linear-gradient(180deg, #e6f5f6 0%, #ffffff 100%);
  color: var(--ink);
}

.auth-side p {
  color: var(--muted);
}

.compliance-note {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3fbfb;
  color: var(--brand) !important;
  font-weight: 800;
}

.auth-logo {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--brand);
  font-size: 1.45rem;
  font-weight: 500;
}

.auth-main {
  padding: 30px;
}

.auth-language-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  display: grid;
  place-items: center;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-small {
  width: 38px;
  height: 38px;
}

.brand-logo-large {
  width: min(168px, 78%);
  height: 168px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 63px);
}

.sidebar {
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #e8f7f8;
}

.sidebar button {
  width: 100%;
  margin-bottom: 8px;
  justify-content: flex-start;
}

.content {
  padding: 22px;
}

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

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.panel {
  padding: 18px;
}

.panel h2,
.panel h3,
.auth-card h1,
.auth-card h2 {
  margin: 0 0 10px;
}

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

.metric {
  display: grid;
  gap: 4px;
}

.metric strong {
  font-size: 1.45rem;
}

.status-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  gap: 16px;
}

.status-card h3 {
  margin: 12px 0 4px;
  font-size: 1.45rem;
}

.summary-list,
.today-card,
.transfer-list,
.order-summary {
  display: grid;
  gap: 10px;
}

.profile-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-list div,
.today-card div,
.transfer-list div,
.order-summary div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
}

.summary-list div.summary-alert,
.today-card div.summary-alert,
.transfer-list div.summary-alert,
.order-summary div.summary-alert {
  border-color: rgba(217, 83, 79, 0.42);
  background: #fff2f1;
}

.summary-alert .muted,
.summary-alert strong {
  color: var(--danger);
}

.summary-list strong,
.today-card strong,
.transfer-list strong,
.order-summary strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.tabs,
.actions,
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.export-actions {
  margin-top: 12px;
}

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

.session-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.session-device-summary {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.session-device-summary strong,
.session-device-cell {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.session-control-actions {
  align-items: stretch;
}

.session-control-actions button {
  min-width: 170px;
}

.order-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(17, 17, 17, 0.42);
}

.order-modal {
  width: min(880px, 100%);
  max-height: min(88vh, 780px);
  overflow: auto;
}

.legal-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 17, 17, 0.48);
}

.legal-preview {
  display: grid;
  grid-template-rows: auto minmax(360px, 72vh) auto;
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: hidden;
}

.legal-preview-head,
.legal-preview-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.legal-preview-head {
  padding-bottom: 14px;
}

.legal-preview-head h2,
.legal-preview-head p {
  margin: 0;
}

.legal-preview-head > button {
  width: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 1.45rem;
  line-height: 1;
}

.legal-preview-scroll {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: auto;
  padding: 22px;
}

.legal-inline-copy {
  display: grid;
  gap: 18px;
  color: var(--ink);
}

.legal-inline-copy section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.legal-inline-copy section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-inline-copy h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.legal-inline-copy h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.1;
}

.legal-inline-copy h2 {
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.25;
}

.legal-inline-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.legal-inline-copy-full p {
  margin: 0 0 10px;
}

.legal-inline-copy-full .meta {
  color: var(--muted);
  font-weight: 700;
}

.legal-preview-actions {
  justify-content: flex-end;
  padding-top: 14px;
}

.walkthrough-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(17, 17, 17, 0.46);
}

.walkthrough-inline {
  margin: 0 0 18px;
}

.walkthrough-inline .walkthrough-modal {
  width: 100%;
  max-height: none;
  overflow: visible;
}

.walkthrough-modal {
  width: min(900px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
}

.walkthrough-head,
.walkthrough-footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.walkthrough-head {
  margin-bottom: 18px;
}

.walkthrough-head h2,
.walkthrough-head p,
.walkthrough-copy h3,
.walkthrough-copy p {
  margin: 0;
}

.walkthrough-head > button {
  width: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 1.45rem;
  line-height: 1;
}

.walkthrough-body {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(240px, 0.78fr);
  gap: 18px;
  align-items: center;
}

.walkthrough-copy {
  display: grid;
  gap: 12px;
}

.walkthrough-copy h3 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.walkthrough-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.walkthrough-shot {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbfb, #ffffff);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
}

.walkthrough-shot-top {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.walkthrough-shot-top span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-soft);
}

.walkthrough-shot-screen {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 310px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #dcebed;
  border-radius: 8px;
  background: var(--panel);
}

.tour-shell {
  display: grid;
  gap: 12px;
}

.tour-title-row,
.tour-payment-box,
.tour-export-card,
.tour-user-row,
.tour-profile-card,
.tour-support-card,
.tour-ticket {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.tour-title-row {
  padding-bottom: 4px;
}

.tour-title-row div,
.tour-payment-box div,
.tour-export-card div,
.tour-user-row div,
.tour-support-card div {
  display: grid;
  gap: 3px;
}

.tour-title-row span,
.tour-payment-box span,
.tour-export-card span,
.tour-user-row span,
.tour-support-card span,
.tour-ticket span,
.tour-form label,
.tour-profile-card span,
.tour-plan-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.tour-title-row em,
.tour-status {
  padding: 6px 9px;
  border-radius: 8px;
  background: #e8f8ef;
  color: var(--ok);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.tour-stat-grid,
.tour-today-row,
.tour-plan-grid,
.tour-form,
.tour-profile-card {
  display: grid;
  gap: 10px;
}

.tour-stat-grid,
.tour-today-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tour-stat,
.tour-list div,
.tour-form,
.tour-payment-box,
.tour-export-card,
.tour-user-row,
.tour-profile-card,
.tour-support-card,
.tour-ticket,
.tour-plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
}

.tour-stat {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 10px;
}

.tour-stat strong {
  font-size: 1.25rem;
}

.tour-stat.ok {
  background: #ecfaf3;
}

.tour-stat.danger {
  background: #fff2f1;
  border-color: #f0c2bf;
}

.tour-stat.danger strong {
  color: var(--danger);
}

.tour-list {
  display: grid;
  gap: 8px;
}

.tour-list div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.tour-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
}

.tour-form label {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
}

.tour-form label span {
  color: var(--ink);
  font-weight: 800;
}

.tour-button {
  display: inline-flex;
  min-height: 34px;
  padding: 8px 11px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.tour-button.primary {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.tour-user-row,
.tour-payment-box,
.tour-export-card,
.tour-profile-card,
.tour-support-card {
  padding: 12px;
}

.tour-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.tour-tabs span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-weight: 900;
}

.tour-tabs span.active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.tour-plan-card {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.tour-plan-card small {
  width: max-content;
  padding: 4px 7px;
  border-radius: 8px;
  background: #e8f8ef;
  color: #0d7a50;
  font-size: 0.68rem;
  font-weight: 900;
}

.tour-plan-card strong {
  font-size: 1.85rem;
  line-height: 1;
}

.tour-plan-card em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.tour-plan-card.green {
  border-color: #51bd87;
}

.tour-plan-card.blue {
  border-color: var(--brand);
}

.tour-profile-card,
.tour-support-card {
  align-items: stretch;
  flex-direction: column;
}

.tour-profile-card div {
  display: grid;
  gap: 3px;
}

.tour-profile-card b {
  word-break: break-word;
}

.tour-ticket {
  width: 100%;
  padding: 10px;
}

.tour-highlight {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(25, 198, 207, 0.08);
}

.tour-highlight-soft {
  outline: 2px solid rgba(25, 198, 207, 0.42);
  outline-offset: 3px;
}

.walkthrough-footer {
  margin-top: 18px;
}

.walkthrough-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.walkthrough-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  transition: width 0.18s ease, background 0.18s ease;
}

.walkthrough-dots span.active {
  width: 26px;
  background: var(--brand);
}

.order-modal-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.order-modal-head h2 {
  margin-top: 10px;
}

.order-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.order-slip-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.support-form {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.support-history {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.support-history h3 {
  margin: 0;
}

.support-detail {
  display: grid;
  gap: 16px;
}

.support-detail-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.support-detail-head h3,
.support-message h3 {
  margin: 0 0 6px;
}

.support-ticket-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-message {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
}

.support-message p,
.support-response p {
  margin: 0;
  white-space: pre-wrap;
}

.support-response {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.support-response:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
}

.language-switch button {
  min-height: 32px;
  padding: 6px 9px;
  border-color: transparent;
}

.tabs {
  margin-bottom: 18px;
}

.plan-period-tabs {
  margin-top: 16px;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: var(--field);
  color: var(--ink);
}

input[type="checkbox"] {
  width: auto;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 46px;
}

.password-field input::-ms-clear,
.password-field input::-ms-reveal {
  display: none;
}

.password-field input::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 34px;
  min-height: 32px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
  background: rgba(25, 198, 207, 0.12);
  color: var(--brand-strong);
}

.password-toggle:disabled {
  cursor: not-allowed;
}

.password-eye {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
  pointer-events: none;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

button.primary,
.button.primary {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
}

button.primary:hover,
.button.primary:hover {
  background: #bfe7ea;
}

button.danger {
  border-color: rgba(165, 38, 38, 0.28);
  color: var(--danger);
}

button:disabled {
  opacity: 0.58;
  cursor: wait;
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.62;
  background: #eef1f1;
  color: var(--muted);
  cursor: not-allowed;
}

.form-disabled {
  opacity: 0.86;
}

.processing-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(25, 198, 207, 0.35);
  border-radius: 8px;
  background: #eefafa;
  color: var(--ink);
  font-weight: 800;
}

.processing-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(25, 198, 207, 0.35);
  animation: processing-pulse 1s ease-in-out infinite;
}

@keyframes processing-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(25, 198, 207, 0.35);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(25, 198, 207, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(25, 198, 207, 0);
  }
}

.notice {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e6f8f8;
  color: #09131e;
}

.notice.error {
  border-color: #e0b5b5;
  background: #fff2f1;
  color: var(--danger);
}

.notice.warn {
  border-color: #e2c871;
  background: #fff8db;
  color: #4f3d00;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 4px 8px;
  background: #e8f7f8;
  color: var(--muted);
  font-size: 0.82rem;
}

.pill.ok {
  background: #e7f6ec;
  color: var(--ok);
}

.pill.warn {
  background: #fff2df;
  color: var(--warn);
}

.pill.danger-pill {
  background: #fff2f1;
  color: var(--danger);
}

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

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
}

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

th {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.scroll {
  overflow-x: auto;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.plan-catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.catalog-card {
  --card-accent: var(--brand);
  --card-accent-soft: #76d4b1;
  --card-chip-bg: #eaf9fb;
  --card-chip-fg: var(--brand-strong);
  overflow: hidden;
  border: 1px solid #dceef2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.08);
}

.catalog-card.highlighted {
  border-color: var(--card-accent);
}

.catalog-theme-free {
  --card-accent: #19c6cf;
  --card-accent-soft: #86e0d1;
  --card-chip-bg: #eaf9fb;
  --card-chip-fg: #0d8e95;
}

.catalog-theme-micro {
  --card-accent: #35b779;
  --card-accent-soft: #a8e3bb;
  --card-chip-bg: #edf9f1;
  --card-chip-fg: #22784f;
}

.catalog-theme-mini {
  --card-accent: #4e9fe6;
  --card-accent-soft: #bdddf7;
  --card-chip-bg: #edf6ff;
  --card-chip-fg: #236da8;
}

.catalog-theme-small {
  --card-accent: #d4a72c;
  --card-accent-soft: #f3dc90;
  --card-chip-bg: #fff8e4;
  --card-chip-fg: #8a6410;
}

.catalog-theme-medium {
  --card-accent: #ef6f6c;
  --card-accent-soft: #f7b3a4;
  --card-chip-bg: #fff0ee;
  --card-chip-fg: #b84543;
}

.catalog-theme-large {
  --card-accent: #7a9b46;
  --card-accent-soft: #c9da83;
  --card-chip-bg: #f3f8e8;
  --card-chip-fg: #52692a;
}

.catalog-theme-xlarge {
  --card-accent: #7c6fd1;
  --card-accent-soft: #c7bfef;
  --card-chip-bg: #f1effc;
  --card-chip-fg: #5749a7;
}

.catalog-theme-scan {
  --card-accent: #20a5a8;
  --card-accent-soft: #94dcde;
  --card-chip-bg: #e9fafa;
  --card-chip-fg: #147477;
}

.catalog-theme-staff {
  --card-accent: #db7a35;
  --card-accent-soft: #f2bd86;
  --card-chip-bg: #fff2e7;
  --card-chip-fg: #9b4f19;
}

.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--card-accent), var(--card-accent-soft));
}

.catalog-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.catalog-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.badge,
.savings-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.badge {
  background: var(--card-chip-bg);
  color: var(--card-chip-fg);
}

.savings-badge {
  border: 1px solid #c9ebd8;
  background: #effaf4;
  color: var(--ok);
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.price-line strong {
  color: #242424;
  font-size: 1.65rem;
  line-height: 1.05;
  font-weight: 900;
}

.price-line span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.volume-line {
  margin: 0;
  color: var(--card-accent);
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 900;
}

.feature-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.feature-list li {
  padding-left: 18px;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--card-accent);
}

.blocked-text {
  margin: 0;
  color: var(--danger);
  font-weight: 800;
}

.catalog-action {
  width: 100%;
}

.code-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1.5px solid var(--brand);
  border-radius: 8px;
  background: var(--field);
  box-shadow: 0 8px 18px rgba(25, 198, 207, 0.12);
}

.settings-note {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
  color: var(--muted);
  font-weight: 700;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .auth-card,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .span-3,
  .span-4,
  .span-6,
  .span-8 {
    grid-column: span 12;
  }

  .status-card {
    grid-template-columns: 1fr;
  }

  .session-top-grid {
    grid-template-columns: 1fr;
  }

  .order-modal-grid,
  .order-modal-head {
    grid-template-columns: 1fr;
  }

  .order-modal-head {
    display: grid;
  }

  .walkthrough-body {
    grid-template-columns: 1fr;
  }
}

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

  .profile-list {
    grid-template-columns: 1fr;
  }

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

  .walkthrough-backdrop {
    padding: 12px;
  }

  .walkthrough-modal {
    max-height: 92vh;
  }

  .walkthrough-head,
  .walkthrough-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .walkthrough-footer .actions {
    width: 100%;
  }

  .walkthrough-footer .actions button {
    flex: 1 1 auto;
  }

  .walkthrough-shot-screen {
    min-height: 250px;
  }

  .tour-stat-grid,
  .tour-today-row,
  .tour-tabs,
  .tour-plan-grid,
  .tour-form {
    grid-template-columns: 1fr;
  }

  .tour-title-row,
  .tour-payment-box,
  .tour-export-card,
  .tour-user-row {
    align-items: stretch;
    flex-direction: column;
  }

  .tour-actions {
    justify-content: flex-start;
  }
}
