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

:root {
  --bg: #eef3f8;
  --bg-strong: #e3ebf5;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-soft: #f6f9fc;
  --surface-muted: #edf3f9;
  --text: #142033;
  --text-soft: #415067;
  --muted: #66758c;
  --line: rgba(19, 33, 56, 0.11);
  --line-strong: rgba(19, 33, 56, 0.18);
  --primary: #1e63d5;
  --primary-strong: #174fad;
  --primary-soft: #eaf2ff;
  --success: #177a4d;
  --success-soft: #e7f7ef;
  --warning: #a86712;
  --warning-soft: #fff3e1;
  --danger: #bf3f47;
  --danger-soft: #fdebed;
  --shadow-lg: 0 22px 50px rgba(24, 40, 72, 0.12);
  --shadow-md: 0 14px 34px rgba(24, 40, 72, 0.09);
  --shadow-sm: 0 8px 18px rgba(24, 40, 72, 0.07);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --sidebar-width: 268px;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  line-height: 1.42;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(30, 99, 213, 0.11), transparent 28%),
    radial-gradient(circle at top right, rgba(12, 138, 120, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 56%, var(--bg-strong) 100%);
}

body.auth-gated-page .app-shell {
  visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 14px 14px;
  background: rgba(249, 252, 255, 0.92);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(19, 33, 56, 0.08);
  box-shadow: 24px 0 60px rgba(21, 34, 58, 0.06);
  transform: translateX(-106%);
  transition: transform 0.28s ease;
}

.brand-lockup,
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-lockup {
  padding: 4px 6px 10px;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.brand-badge {
  display: none;
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-note,
.nav-meta,
.eyebrow,
.page-subtitle,
.section-copy,
.hero-side,
.action-copy,
.auth-brand .mini-list {
  display: none;
}

.side-user {
  display: grid;
  gap: 8px;
}

.side-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar .side-user-row {
  display: none;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

.side-nav {
  display: grid;
  gap: 6px;
  align-content: start;
  overflow: auto;
}

.side-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s ease;
}

.side-nav a:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(19, 33, 56, 0.08);
  transform: translateX(2px);
}

.side-nav a.active {
  color: var(--primary-strong);
  background: linear-gradient(135deg, rgba(30, 99, 213, 0.11), rgba(255, 255, 255, 0.96));
  border-color: rgba(30, 99, 213, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.side-nav a[data-page="admin"] {
  display: none !important;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex: 0 0 18px;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.nav-label {
  display: inline-flex;
  align-items: center;
}

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

.main-shell {
  min-height: 100vh;
  transition: margin-left 0.28s ease;
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #f9fcff;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(19, 33, 56, 0.08);
}

.mobile-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
}

.mobile-header .user-chip {
  display: none;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: none;
  background: rgba(14, 23, 38, 0.35);
}

body.menu-open .mobile-overlay {
  display: block;
}

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

.page-content {
  padding: 14px 14px 92px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.stack > * + * {
  margin-top: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(19, 33, 56, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.card.soft {
  background: rgba(255, 255, 255, 0.75);
}

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(17, 120, 107, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(22, 73, 161, 0.06), rgba(255, 255, 255, 0.94));
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -56px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  filter: blur(8px);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  align-items: center;
}

.page-title,
.section-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.page-title {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1.08;
}

.section-title {
  font-size: 1rem;
}

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

.hero-actions,
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row.wrap,
.hero-actions {
  flex-wrap: wrap;
}

.row:has(.field) {
  align-items: flex-end;
}

.row:has(.field) .field {
  margin: 0;
}

.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.grid {
  display: grid;
  gap: 12px;
}

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

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

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 12px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 252, 0.95));
  border: 1px solid rgba(19, 33, 56, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.stat .label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat .value {
  margin-top: 5px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat .meta {
  display: none;
}

.subtle-card {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(19, 33, 56, 0.08);
  box-shadow: var(--shadow-sm);
}

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

.mini-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(19, 33, 56, 0.08);
}

.mini-list-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mini-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}

.mini-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.action-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.action-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(19, 33, 56, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 252, 0.96));
  box-shadow: var(--shadow-sm);
}

.action-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.field + .field {
  margin-top: 8px;
}

label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.field-hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(19, 33, 56, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

input[readonly],
textarea[readonly] {
  background: var(--surface-soft);
  color: var(--text-soft);
}

input::placeholder,
textarea::placeholder {
  color: #8a96a8;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(30, 99, 213, 0.38);
  box-shadow: 0 0 0 4px rgba(30, 99, 213, 0.12);
  background: #ffffff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid rgba(19, 33, 56, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary) 0%, #1658ba 100%);
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--primary-strong) 0%, #14458f 100%);
}

.btn.is-loading {
  position: relative;
  color: transparent !important;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: btn-spin 0.8s linear infinite;
}

.btn.success {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--success) 0%, #12643f 100%);
}

.btn.subtle {
  background: var(--surface-soft);
}

.btn.danger {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--danger) 0%, #a32a33 100%);
}

.notice {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 80;
  width: min(360px, calc(100vw - 28px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(30, 99, 213, 0.14);
  background: rgba(234, 242, 255, 0.96);
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 18px 40px rgba(24, 40, 72, 0.18);
  backdrop-filter: blur(14px);
}

.notice.good {
  color: var(--success);
  background: var(--success-soft);
  border-color: rgba(23, 122, 77, 0.16);
}

.notice.bad {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(191, 63, 71, 0.16);
}

.notyf {
  z-index: 12000;
}

.notyf__wrapper {
  padding: 14px 16px;
}

.notyf__toast {
  max-width: min(360px, calc(100vw - 28px));
  position: relative;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 20px 42px rgba(24, 40, 72, 0.16);
}

.notyf__message {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.notyf__icon {
  display: none !important;
}

.notyf__toast.nityhub-notyf-success,
.notyf__toast.nityhub-notyf-error,
.notyf__toast.nityhub-notyf-info {
  background: #ffffff !important;
  border: 1px solid rgba(19, 33, 56, 0.08);
  backdrop-filter: none;
  overflow: hidden;
}

.notyf__toast.nityhub-notyf-success::before,
.notyf__toast.nityhub-notyf-error::before,
.notyf__toast.nityhub-notyf-info::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
}

.notyf__toast.nityhub-notyf-success {
  color: var(--success);
  box-shadow: 0 20px 42px rgba(23, 122, 77, 0.12);
}

.notyf__toast.nityhub-notyf-success::before {
  background: var(--success);
}

.notyf__toast.nityhub-notyf-error {
  color: var(--danger);
  box-shadow: 0 20px 42px rgba(191, 63, 71, 0.12);
}

.notyf__toast.nityhub-notyf-error::before {
  background: var(--danger);
}

.notyf__toast.nityhub-notyf-info {
  color: var(--primary-strong);
  box-shadow: 0 20px 42px rgba(30, 99, 213, 0.12);
}

.notyf__toast.nityhub-notyf-info::before {
  background: var(--primary);
}

.auth-wrap .notyf__wrapper {
  padding-top: 18px;
}

.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(19, 33, 56, 0.08);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

.meta-chip span,
.meta-chip strong {
  color: var(--text);
  font-weight: 700;
}

.meta-chip.success {
  background: var(--success-soft);
  color: var(--success);
}

.meta-chip.success span,
.meta-chip.success strong {
  color: var(--success);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(65, 80, 103, 0.09);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag.success {
  background: var(--success-soft);
  color: var(--success);
}

.tag.warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.tag.info {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.tag.fail {
  background: var(--danger-soft);
  color: var(--danger);
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(19, 33, 56, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.scroll-area {
  max-height: 390px;
}

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

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(19, 33, 56, 0.08);
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(242, 246, 251, 0.96);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: rgba(247, 250, 254, 0.82);
}

tbody tr:nth-child(even) {
  background: rgba(248, 251, 255, 0.72);
}

.orders-table {
  min-width: 980px;
}

.orders-table th,
.orders-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.orders-table th:nth-child(1),
.orders-table td:nth-child(1) {
  min-width: 220px;
}

.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
  width: 88px;
}

.orders-table th:nth-child(3),
.orders-table td:nth-child(3) {
  width: 128px;
}

.orders-table th:nth-child(4),
.orders-table td:nth-child(4) {
  width: 86px;
}

.orders-table th:nth-child(5),
.orders-table td:nth-child(5),
.orders-table th:nth-child(7),
.orders-table td:nth-child(7) {
  font-variant-numeric: tabular-nums;
}

.orders-table td:nth-child(1),
.orders-table td:nth-child(5),
.orders-table td:nth-child(6),
.orders-table td:nth-child(7) {
  font-weight: 600;
}

.orders-table td:nth-child(6) {
  text-transform: capitalize;
}

.table-action-cell {
  width: 112px;
}

.table-action-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.bundle-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bundle-btn {
  min-height: 64px;
  padding: 8px 8px;
  border-radius: 14px;
  border: 1px solid rgba(19, 33, 56, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 252, 0.94));
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.bundle-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 99, 213, 0.2);
  box-shadow: var(--shadow-sm);
}

.bundle-btn.active {
  border-color: rgba(30, 99, 213, 0.38);
  background: linear-gradient(180deg, rgba(233, 242, 255, 0.95), rgba(255, 255, 255, 0.96));
}

.bundle-main {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.bundle-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.selection-note {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(19, 33, 56, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.form-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.form-row .field {
  flex: 1 1 220px;
  margin: 0;
}

.form-row .btn {
  flex: 0 0 auto;
}

.empty-state {
  padding: 18px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px 14px;
}

.auth-shell {
  width: min(1020px, 100%);
  display: grid;
  grid-template-columns: minmax(180px, 0.56fr) minmax(0, 1fr);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(19, 33, 56, 0.08);
  box-shadow: var(--shadow-lg);
}

.auth-brand {
  padding: 30px 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(160deg, #143d87 0%, #1e63d5 52%, #0c8a78 100%);
  color: #ffffff;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
}

.auth-brand .brand-badge {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.auth-brand .brand-lockup {
  justify-content: center;
}

.auth-card {
  padding: 28px 26px;
  background: rgba(255, 255, 255, 0.96);
}

.auth-card-layout {
  margin-top: 22px;
  display: grid;
  gap: 18px;
  align-items: start;
}

.auth-switcher-panel {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(19, 33, 56, 0.08);
}

.auth-form-panel {
  min-width: 0;
}

.auth-text-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.auth-text-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0 0 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.auth-text-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.18s ease;
}

.auth-text-tab.active {
  color: var(--primary-strong);
}

.auth-text-tab.active::after {
  background: var(--primary);
}

.auth-text-tab:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.auth-card form .btn {
  width: 100%;
}

.auth-footer-row .btn {
  width: auto;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface-muted);
}

.tab {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.admin-tab.active {
  background: linear-gradient(135deg, rgba(30, 99, 213, 0.12), rgba(255, 255, 255, 0.94));
  border-color: rgba(30, 99, 213, 0.18);
  color: var(--primary-strong);
}

.admin-sidebar-btn {
  width: 100%;
}

body.admin-page .sidebar,
body.admin-page .mobile-header,
body.admin-page .mobile-overlay {
  display: none !important;
}

body.admin-page .main-shell {
  margin-left: 0;
}

body.admin-page .page-content {
  padding: 12px 12px 88px;
}

body.admin-page .app-footer {
  left: 0;
}

body.admin-page .container {
  max-width: 1320px;
  min-width: 0;
}

.admin-page-shell {
  position: relative;
  min-width: 0;
}

.admin-main-shell {
  min-height: 100vh;
}

.admin-page-content {
  padding-top: 12px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  min-width: 0;
  overflow: hidden;
}

.admin-topbar-brand {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-topbar-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.admin-topbar-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.admin-workspace {
  gap: 16px;
  min-width: 0;
}

.admin-access-card,
.admin-hero-card {
  overflow: hidden;
}

.admin-hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-items: start;
}

.admin-hero-copy {
  display: grid;
  gap: 10px;
}

.admin-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(30, 99, 213, 0.12);
  color: var(--primary-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-hero-text,
.admin-access-note,
.admin-panel-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.admin-hero-text {
  max-width: 64ch;
}

.admin-access-card {
  min-height: 220px;
}

.admin-access-state {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(19, 33, 56, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.admin-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(19, 33, 56, 0.09);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.admin-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(30, 99, 213, 0.12);
}

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

.admin-summary-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(19, 33, 56, 0.09);
  box-shadow: var(--shadow-sm);
}

.admin-summary-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-summary-value {
  color: var(--text);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.admin-summary-meta {
  color: var(--text-soft);
  font-size: 12px;
}

.admin-nav-card {
  padding-top: 12px;
  padding-bottom: 12px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.74);
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  min-width: 0;
}

.admin-panel-head--tight {
  margin-bottom: 10px;
}

.admin-panel-copy {
  max-width: 62ch;
}

.admin-panel-head > div,
.admin-inline-actions,
.admin-split-grid,
.admin-split-grid > *,
.admin-section,
.admin-subpanel,
.admin-package-shell {
  min-width: 0;
  max-width: 100%;
}

.admin-scroll-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-inline-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-inline-actions--spaced {
  margin-top: 12px;
}

.admin-inline-field {
  min-width: 140px;
  margin: 0;
}

.admin-toolbar {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 14px;
}

.admin-toolbar--compact {
  grid-template-columns: minmax(0, 360px);
}

.admin-bulk-toolbar {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(19, 33, 56, 0.08);
  border-radius: 14px;
  background: rgba(244, 248, 253, 0.78);
}

.admin-bulk-toolbar__actions {
  display: flex;
  align-items: flex-end;
}

.admin-bulk-toolbar__actions .btn {
  width: 100%;
}

.admin-section {
  scroll-margin-top: 88px;
  overflow: hidden;
}

body.admin-page .page-content .card {
  border-radius: 20px;
}

.admin-access-card,
.admin-hero-card,
.admin-nav-card,
.admin-section {
  padding: 16px;
}

body.admin-page .page-content .btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
}

body.admin-page .page-content input,
body.admin-page .page-content select,
body.admin-page .page-content textarea {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}

body.admin-page .page-content label {
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: 0.07em;
}

body.admin-page .page-content .tag {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 9px;
}

body.admin-page .page-content .table-wrap {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

body.admin-page .page-content .scroll-area {
  max-height: min(34vh, 250px);
}

.admin-split-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
}

.admin-subpanel {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(19, 33, 56, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 253, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.admin-subpanel--flush {
  display: grid;
  gap: 14px;
}

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

.admin-health-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-health-card {
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(19, 33, 56, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.admin-health-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-health-name {
  font-size: 14px;
  font-weight: 700;
}

.admin-health-list {
  display: grid;
  gap: 6px;
}

.admin-health-item {
  color: var(--text-soft);
  font-size: 12px;
}

.admin-health-item strong {
  color: var(--text);
}

.admin-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: max-content;
}

.admin-table-actions .btn {
  width: auto;
  white-space: nowrap;
}

.admin-responsive-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 99, 213, 0.45) rgba(30, 99, 213, 0.08);
}

.admin-responsive-table::-webkit-scrollbar {
  display: block;
  width: 10px;
  height: 10px;
}

.admin-responsive-table::-webkit-scrollbar-track {
  background: rgba(30, 99, 213, 0.08);
  border-radius: 999px;
}

.admin-responsive-table::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(30, 99, 213, 0.72), rgba(23, 79, 173, 0.92));
  border-radius: 999px;
}

.admin-responsive-table::-webkit-scrollbar-corner {
  background: transparent;
}

.admin-table {
  width: max-content;
  min-width: 100%;
}

.admin-table th,
.admin-table td {
  white-space: nowrap;
  word-break: normal;
  padding: 10px 12px;
  font-size: 11px;
}

.admin-responsive-table td,
.admin-responsive-table th {
  word-break: normal;
}

.admin-table-empty td {
  text-align: center;
}

.admin-table-dashboard {
  min-width: 840px;
}

.admin-table-orders {
  min-width: 1180px;
}

.admin-table-users {
  min-width: 1160px;
}

.admin-table-transactions {
  min-width: 820px;
}

.admin-table-afa {
  min-width: 940px;
}

.admin-table-packages {
  min-width: 1280px;
}

.admin-section-packages,
.admin-package-shell {
  overflow: hidden;
}

.admin-package-table.scroll-area {
  max-height: min(40vh, 300px);
}

.admin-package-table input,
.admin-package-table select {
  min-width: 96px;
}

.admin-package-table .btn-remove-package {
  width: 100%;
}

@media (min-width: 980px) {
  .admin-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  }
}

@media (min-width: 1024px) {
  body.admin-page .main-shell {
    margin-left: 0;
  }

  body.admin-page .app-footer {
    left: 0;
  }
}

@media (max-width: 1023px) {
  .admin-split-grid,
  .admin-routing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.admin-page .page-content {
    padding: 10px 10px 84px;
  }

  body.admin-page .page-content .scroll-area {
    max-height: 200px;
  }

  .admin-hero {
    gap: 14px;
  }

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

  .admin-topbar-actions {
    align-items: stretch;
  }

  .admin-topbar-actions .btn,
  .admin-topbar-actions .user-chip {
    width: 100%;
    justify-content: center;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-inline-actions {
    align-items: stretch;
  }

  .admin-inline-actions .btn,
  .admin-inline-field {
    width: 100%;
  }

  .admin-tab {
    min-height: 34px;
    padding: 0 12px;
  }

  .admin-responsive-table {
    border-radius: 14px;
    max-width: 100%;
  }

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

  .admin-package-table input,
  .admin-package-table select {
    min-width: 92px;
  }

  .admin-health-grid {
    grid-template-columns: 1fr;
  }

  .admin-subpanel {
    padding: 13px;
  }
}

@media (max-width: 480px) {
  body.admin-page .page-content .scroll-area {
    max-height: 180px;
  }

  .admin-access-state {
    padding: 12px;
    border-radius: 16px;
  }

  .admin-status-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-summary-card {
    padding: 12px;
  }

  .admin-responsive-table th,
  .admin-responsive-table td {
    padding: 9px 10px;
  }
}

.page-cluster {
  display: grid;
  gap: 14px;
}

.page-cluster.compact {
  gap: 12px;
}

.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  padding: 0;
  background: #ffffff;
}

.app-footer__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 0;
  background: #ffffff;
  border-top: 1px solid rgba(19, 33, 56, 0.08);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 -10px 24px rgba(24, 40, 72, 0.08);
}

.app-footer__brand {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.app-footer__brand strong {
  font-size: 13px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.app-footer__brand span {
  font-size: 11px;
  color: var(--muted);
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0);
  }

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

  .mobile-header,
  .mobile-overlay {
    display: none !important;
  }

  .page-content {
    padding: 18px 22px 96px;
  }

  .app-footer {
    left: var(--sidebar-width);
  }
}

@media (max-width: 1023px) {
  .page-content {
    padding-top: 14px;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 14px;
  }

  .auth-brand,
  .auth-card {
    padding: 18px;
  }

  .auth-card-layout {
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .notice {
    top: 12px;
    right: 12px;
    width: min(340px, calc(100vw - 24px));
  }

  .notyf__toast {
    max-width: min(340px, calc(100vw - 24px));
  }

  .page-title {
    font-size: 1.35rem;
  }

  .card,
  .subtle-card {
    padding: 13px;
  }

  input,
  select,
  textarea {
    width: 100%;
  }

  .row,
  .spread {
    flex-direction: column;
    align-items: stretch;
  }

  .row .btn {
    align-self: flex-start;
    width: auto;
  }

  .form-row {
    align-items: stretch;
  }

  .form-row .btn {
    width: 100%;
  }

  .table-wrap {
    border-radius: 12px;
  }

  th,
  td {
    padding: 10px 12px;
  }

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

  .bundle-btn {
    min-height: 62px;
    padding: 8px 6px;
  }

  .bundle-main {
    font-size: 12px;
  }

  .bundle-sub {
    font-size: 10px;
  }

  .app-footer {
    left: 0;
  }

  .app-footer__inner {
    flex-direction: column;
    align-items: center;
    padding: 12px 14px;
  }
}
