:root {
  --green-50: #eafff8;
  --green-100: #c7ffee;
  --green-300: #63f4c8;
  --green-500: #00d897;
  --green-600: #00b982;
  --green-700: #007d61;
  --green-900: #0b1214;
  --ink: #101819;
  --muted: #667778;
  --line: #dce8e4;
  --panel: #ffffff;
  --panel-soft: #f6fbf9;
  --danger: #d92d20;
  --warning: #00d897;
  --blue: #2563eb;
  --shadow: 0 24px 60px rgba(0, 20, 16, 0.24);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #eef4f2;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

.auth-page,
.client-shell,
.owner-shell {
  min-height: 100vh;
}

.pattern-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(0, 216, 151, 0.08), rgba(6, 16, 17, 0.28)),
    var(--green-900);
}

.pattern-bg::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg width='240' height='240' viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2320c65a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' opacity='.32'%3E%3Cpath d='M28 50h36v48H28zM36 50c0-14 20-14 20 0M86 36h42l10 26H96zM97 77h44M162 42h42v28h-42zM172 52h22M38 142h74l-8 34H48zM48 142l-10-24M84 142v34M174 126c22 0 34 16 34 33 0 19-15 32-34 32s-34-13-34-32c0-17 12-33 34-33zM164 118c5-8 15-8 20 0M32 208h28M48 194v28M124 202h40v18h-40zM144 184v18M200 204h18M212 192v24M20 20h4M220 24h4M206 90h5M20 126h5M136 122h6M122 28l20 2M16 86c12 2 22 7 30 16M112 106l28 24M150 74l32 28'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.28;
  pointer-events: none;
}

.screen-content {
  position: relative;
  z-index: 1;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(100%, 960px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-hero {
  min-height: 640px;
  padding: 42px;
  color: white;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo,
.header-logo,
.owner-logo {
  display: block;
  object-fit: cover;
  border: 1px solid rgba(0, 216, 151, 0.32);
  border-radius: var(--radius);
  background: #0b1214;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 42px rgba(0, 0, 0, 0.28);
}

.brand-logo-large {
  width: 100%;
  max-width: 330px;
  aspect-ratio: 620 / 330;
  margin: 0 auto;
}

.header-logo {
  width: 150px;
  height: 72px;
  margin: 0 auto;
}

.owner-logo {
  width: 190px;
  aspect-ratio: 620 / 330;
}

.barcode {
  display: block;
  width: 128px;
  height: 14px;
  margin-top: -4px;
  background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px);
  opacity: 0.9;
}

.auth-hero-copy {
  margin-top: 110px;
}

.auth-hero h1 {
  max-width: 460px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
}

.auth-hero p {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.5;
}

.auth-form {
  padding: 42px;
  align-self: center;
}

.auth-tabs,
.role-switch,
.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.auth-tabs button,
.role-switch button,
.segmented button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.auth-tabs button.active,
.role-switch button.active,
.segmented button.active {
  color: var(--green-900);
  background: white;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

.auth-form h2 {
  margin: 28px 0 10px;
  font-size: 32px;
  letter-spacing: 0;
}

.auth-form p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.5;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.input,
.select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  outline: none;
}

.input:focus,
.select:focus,
textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(32, 198, 90, 0.14);
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--green-500);
  color: white;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(32, 198, 90, 0.28);
}

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

.btn.secondary {
  color: var(--green-900);
  background: var(--green-50);
}

.btn.ghost {
  color: var(--green-900);
  background: transparent;
  border: 1px solid var(--line);
}

.btn.dark {
  background: var(--green-900);
}

.btn.danger {
  background: var(--danger);
}

.btn.full {
  width: 100%;
}

.tiny-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.client-shell {
  max-width: 480px;
  margin: 0 auto;
  background: #0b1214;
  box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.08);
}

.client-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 116px;
  padding: calc(env(safe-area-inset-top) + 18px) 22px 20px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(15, 24, 26, 0.98), rgba(8, 13, 15, 0.98)),
    #0b1214;
  color: white;
  border-bottom: 1px solid rgba(0, 216, 151, 0.36);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.header-title {
  text-align: center;
}

.header-title strong {
  display: block;
  font-size: 31px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.header-title .barcode {
  width: 118px;
  height: 10px;
  margin: 3px auto 0;
}

.icon-btn {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(0, 216, 151, 0.12);
  font-size: 28px;
  line-height: 1;
}

.icon-btn:empty {
  visibility: hidden;
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: white;
  background:
    linear-gradient(135deg, rgba(0, 216, 151, 0.35), rgba(6, 36, 20, 0.05)),
    #102324;
  font-size: 17px;
  font-weight: 900;
}

.client-main {
  min-height: calc(100vh - 116px);
  color: white;
}

.welcome-screen {
  position: relative;
  min-height: calc(100svh - 116px);
  padding: 46px 22px 136px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  overflow: hidden;
}

.welcome-screen::before,
.welcome-screen::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.welcome-screen::before {
  background: url("./assets/boxmarket-store.jpg") center / cover;
  opacity: 0.38;
}

.welcome-screen::after {
  background:
    linear-gradient(180deg, rgba(11, 18, 20, 0.14), rgba(11, 18, 20, 0.78) 58%, rgba(11, 18, 20, 0.96)),
    radial-gradient(circle at 50% 44%, rgba(0, 216, 151, 0.22), transparent 42%);
}

.welcome-copy,
.bottom-action {
  position: relative;
  z-index: 1;
}

.welcome-copy {
  margin-top: 22vh;
  text-align: center;
}

.welcome-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 11vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.welcome-copy p {
  margin: 0 auto;
  max-width: 380px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 23px;
  line-height: 1.35;
}

.down-cue {
  margin-top: 28vh;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-size: 22px;
}

.bottom-action {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: min(480px, 100%);
  padding: 18px 18px max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(6, 36, 20, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.scan-button {
  width: 100%;
  min-height: 80px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-500), #06f5b4);
  color: white;
  box-shadow: 0 0 0 10px rgba(0, 216, 151, 0.14), 0 18px 36px rgba(0, 0, 0, 0.24);
  font-size: clamp(19px, 6vw, 28px);
  font-weight: 950;
}

.qr-dot {
  width: 28px;
  height: 28px;
  display: inline-block;
  background:
    linear-gradient(90deg, currentColor 6px, transparent 6px 11px, currentColor 11px 17px, transparent 17px),
    linear-gradient(currentColor 6px, transparent 6px 11px, currentColor 11px 17px, transparent 17px);
  background-size: 17px 17px;
  color: currentColor;
  vertical-align: -4px;
}

.barcode-icon {
  width: 38px;
  height: 28px;
  display: inline-block;
  background:
    linear-gradient(
      90deg,
      currentColor 0 3px,
      transparent 3px 6px,
      currentColor 6px 8px,
      transparent 8px 12px,
      currentColor 12px 16px,
      transparent 16px 19px,
      currentColor 19px 21px,
      transparent 21px 25px,
      currentColor 25px 31px,
      transparent 31px 34px,
      currentColor 34px 38px
    );
  color: currentColor;
  vertical-align: -5px;
}

.client-page {
  min-height: calc(100vh - 116px);
  padding: 22px;
}

.panel-card,
.product-card,
.menu-profile,
.cart-bar,
.scanner-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.scanner-card {
  padding: 16px;
}

.camera-box {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
}

.camera-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-frame {
  position: absolute;
  inset: 20%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
}

.barcode-scanner .scan-frame {
  inset: 38% 7%;
  border-radius: 4px;
}

.scan-help {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-size: 14px;
}

.manual-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.manual-row .input {
  min-height: 48px;
  color: var(--ink);
}

.compact-input {
  min-width: 132px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
}

.section-title h2 {
  margin: 0;
  color: inherit;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-title p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.store-status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: var(--green-900);
  background: var(--green-50);
}

.status-pill {
  align-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-900);
  background: white;
  font-size: 12px;
  font-weight: 900;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.action-tile {
  min-height: 94px;
  padding: 14px;
  border-radius: var(--radius);
  color: white;
  background: rgba(255, 255, 255, 0.12);
  text-align: left;
}

.action-tile strong {
  display: block;
  margin-top: 12px;
  font-size: 17px;
}

.catalog-grid {
  display: grid;
  gap: 12px;
  padding-bottom: 116px;
}

.product-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
}

.product-visual {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
  font-weight: 900;
}

.product-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.product-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.price {
  font-weight: 950;
}

.promo {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 11px;
  font-weight: 900;
}

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 20;
  width: min(444px, calc(100% - 28px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  color: var(--green-900);
  background: white;
  box-shadow: var(--shadow);
}

.cart-bar span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.cart-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.qty-controls {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--green-900);
  background: white;
  font-weight: 900;
}

.checkout-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}

.payment-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.payment-options {
  display: grid;
  gap: 8px;
}

.payment-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.payment-option:has(input:checked) {
  border-color: var(--green-500);
  background: var(--green-50);
}

.checkout-total {
  display: grid;
  gap: 0;
  padding: 8px 0 0;
}

.cart-warning {
  display: block;
  margin-top: 5px;
  color: #fff2d6;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.cart-warning.block {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #7a4100;
  background: #fff2d6;
}

.menu-screen {
  min-height: calc(100vh - 116px);
  padding: 24px 20px 40px;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 216, 151, 0.18), transparent 32%),
    linear-gradient(180deg, #111a1c, #071011);
}

.menu-profile {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 216, 151, 0.24);
}

.menu-profile .avatar {
  width: 72px;
  height: 72px;
  font-size: 24px;
}

.menu-profile h2 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.05;
}

.menu-profile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  word-break: break-word;
}

.menu-group {
  margin: 28px 0 0;
}

.menu-group-title {
  margin: 0 0 12px;
  color: rgba(0, 216, 151, 0.78);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-list {
  display: grid;
  gap: 4px;
}

.menu-item {
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  color: white;
  background: transparent;
  text-align: left;
  font-size: 22px;
  font-weight: 850;
}

.menu-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 950;
}

.profile-grid {
  display: grid;
  gap: 14px;
}

.white-card {
  padding: 16px;
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}

.white-card h3 {
  margin: 0 0 12px;
}

.data-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.data-row:first-of-type {
  border-top: 0;
}

.data-row span {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 12px;
  font-weight: 900;
}

.badge.warn {
  color: #7a4100;
  background: #fff2d6;
}

.badge.danger {
  color: #7a180f;
  background: #fee4e2;
}

.history-list {
  display: grid;
  gap: 9px;
}

.history-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.history-item strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.receipt-lines {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.receipt-lines div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.adult-card {
  display: grid;
  gap: 14px;
}

.kyc-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kyc-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
}

.kyc-steps b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-500);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(380px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--green-900);
  color: white;
  box-shadow: var(--shadow);
  font-weight: 750;
}

.owner-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  background: #eef5f0;
}

.owner-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  color: white;
  background:
    linear-gradient(180deg, rgba(11, 18, 20, 0.94), rgba(5, 9, 10, 0.98)),
    url("./assets/boxmarket-store.jpg") center / cover;
  border-right: 1px solid rgba(0, 216, 151, 0.24);
}

.owner-brand {
  margin-bottom: 28px;
}

.owner-nav {
  display: grid;
  gap: 7px;
}

.owner-nav button {
  min-height: 46px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.owner-nav button.active,
.owner-nav button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.owner-main {
  min-width: 0;
  padding: 28px;
}

.owner-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.owner-topbar h1 {
  margin: 0 0 5px;
  font-size: 32px;
  letter-spacing: 0;
}

.owner-topbar p {
  margin: 0;
  color: var(--muted);
}

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

.compact-metrics {
  margin-top: 18px;
}

.metric-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 9px;
  font-size: 30px;
}

.owner-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.admin-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

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

.table-wrap {
  overflow: auto;
}

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

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td .input {
  width: 110px;
  min-height: 36px;
}

.stock-low {
  color: var(--danger);
  font-weight: 900;
}

.chart {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 9px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.chart-bar {
  min-height: 18px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--green-500), var(--green-700));
}

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

.log-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.log-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.mobile-owner-link {
  display: none;
}

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

  .auth-hero {
    min-height: 380px;
  }

  .auth-hero-copy {
    margin-top: 76px;
  }

  .auth-form {
    padding: 28px;
  }

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

  .owner-sidebar {
    position: static;
    height: auto;
  }

  .owner-nav {
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .owner-nav button {
    white-space: nowrap;
  }

  .owner-main {
    padding: 18px;
  }

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

  .metric-grid,
  .owner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .auth-page {
    display: block;
    padding: 0;
    background: white;
  }

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

  .auth-hero {
    min-height: 300px;
    padding: calc(env(safe-area-inset-top) + 28px) 26px 26px;
  }

  .auth-hero h1 {
    font-size: 42px;
  }

  .auth-hero p {
    font-size: 17px;
  }

  .auth-form {
    padding: 26px;
  }

  .manual-row {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .mobile-owner-link {
    display: inline-flex;
  }

  .toast {
    bottom: 116px;
  }
}

.quick-auth-page {
  min-height: 100svh;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(5, 8, 9, 0.58), rgba(5, 8, 9, 0.92)),
    url("./assets/boxmarket-store.jpg") center / cover fixed;
  color: white;
}

.quick-login-card {
  position: relative;
  width: min(100%, 440px);
  min-height: min(860px, calc(100svh - 48px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + 28px) 18px calc(env(safe-area-inset-bottom) + 24px);
  border: 1px solid rgba(0, 216, 151, 0.28);
  border-radius: var(--radius);
  background: rgba(8, 13, 15, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.language-chip {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(8, 13, 15, 0.42);
  font-size: 30px;
  font-weight: 900;
}

.quick-login-brand {
  text-align: center;
}

.quick-login-copy {
  margin: 34px 0 24px;
  text-align: center;
}

.quick-login-copy h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.05;
}

.quick-login-copy p {
  max-width: 390px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
  line-height: 1.28;
}

.social-stack {
  display: grid;
  gap: 12px;
}

.social-btn {
  min-height: 58px;
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  text-align: left;
  border: 1px solid rgba(0, 216, 151, 0.18);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.28);
}

.social-btn strong {
  padding: 0 18px;
  font-size: 18px;
  font-weight: 750;
  white-space: normal;
}

.social-btn.apple,
.social-btn.quick {
  color: white;
  background: #050809;
}

.social-btn.google {
  color: #344446;
  background: white;
}

.social-icon {
  height: 58px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 950;
}

.google-mark {
  color: #4285f4;
  background: white;
  font-size: 28px;
}

.quick-mark {
  color: white;
  background: #050809;
}

.quick-auth-form {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(0, 216, 151, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.quick-auth-form h2 {
  margin: 18px 0 8px;
  color: white;
  font-size: 22px;
}

.quick-auth-form p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
}

.quick-auth-form .auth-tabs {
  width: 100%;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.quick-auth-form .auth-tabs button {
  color: rgba(255, 255, 255, 0.74);
}

.quick-auth-form .auth-tabs button.active {
  color: var(--green-900);
}

.quick-auth-form .field span {
  color: rgba(255, 255, 255, 0.78);
}

.quick-auth-form .btn.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
}

.quick-auth-form .tiny-note {
  color: rgba(255, 255, 255, 0.64);
}

.profile-actions {
  display: grid;
  gap: 10px;
}

.kyc-card {
  gap: 16px;
}

.kyc-head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.kyc-head h3,
.kyc-head p {
  margin: 0;
}

.kyc-head p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.42;
}

.kyc-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: white;
  background: var(--green-900);
  font-weight: 950;
}

.kyc-capture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kyc-capture {
  min-height: 138px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel-soft);
  text-align: left;
}

.kyc-capture.done {
  border-color: var(--green-500);
  background: var(--green-50);
}

.kyc-capture-icon {
  width: 42px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 6px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 950;
}

.kyc-capture strong {
  font-size: 17px;
}

.kyc-capture small {
  color: var(--muted);
}

.kyc-capture em {
  align-self: end;
  color: var(--green-700);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.kyc-approved {
  display: grid;
  gap: 4px;
}

.kyc-progress {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.kyc-progress strong,
.kyc-progress p {
  margin: 0;
}

.kyc-progress p {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.42;
}

.status-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(16, 185, 129, 0.18);
  border-top-color: var(--green-600);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

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

.kyc-actions {
  display: grid;
  gap: 10px;
}

@media (max-width: 520px) {
  .quick-auth-page {
    display: grid;
    padding: 0 24px;
    background:
      linear-gradient(180deg, rgba(5, 8, 9, 0.55), rgba(5, 8, 9, 0.94)),
      url("./assets/boxmarket-store.jpg") center / cover;
  }

  .quick-login-card {
    min-height: 100svh;
    padding-top: calc(env(safe-area-inset-top) + 42px);
  }

  .quick-login-copy {
    margin: 28px 0 24px;
  }

  .quick-login-copy p {
    font-size: 20px;
  }

  .quick-auth-form {
    padding: 16px;
  }

  .social-btn {
    grid-template-columns: 70px 1fr;
  }

  .social-btn strong {
    padding: 0 14px;
    font-size: 17px;
  }

  .kyc-capture-grid {
    grid-template-columns: 1fr;
  }
}
