:root {
  --v2-bg: #f3f6fb;
  --v2-surface: #ffffff;
  --v2-surface-soft: #f8fafc;
  --v2-sidebar: #101828;
  --v2-sidebar-soft: #1d2939;
  --v2-text: #101828;
  --v2-text-secondary: #475467;
  --v2-text-muted: #98a2b3;
  --v2-border: #e4e7ec;
  --v2-primary: #465fff;
  --v2-primary-dark: #3641f5;
  --v2-primary-soft: #eef0ff;
  --v2-success: #039855;
  --v2-success-soft: #ecfdf3;
  --v2-danger: #d92d20;
  --v2-danger-soft: #fef3f2;
  --v2-warning: #dc6803;
  --v2-warning-soft: #fffaeb;
  --v2-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --v2-shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
  --v2-shadow-lg: 0 20px 48px rgba(16, 24, 40, .16);
  --v2-radius-sm: 8px;
  --v2-radius: 12px;
  --v2-radius-lg: 16px;
  --bg: var(--v2-bg);
  --card: var(--v2-surface);
  --ink: var(--v2-text);
  --ink-mid: var(--v2-text-secondary);
  --ink-faint: var(--v2-text-muted);
  --line: var(--v2-border);
  --accent: var(--v2-primary);
  --acc: var(--v2-primary);
  --emerald: var(--v2-success);
  --red: var(--v2-danger);
  --amber: var(--v2-warning);
}

html {
  background: var(--v2-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 92% -10%, rgba(70, 95, 255, .08), transparent 32rem),
    var(--v2-bg);
  color: var(--v2-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: var(--v2-primary);
}

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

/* Login */
.login-wrap {
  position: relative;
  min-height: 100vh;
  padding: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(109, 94, 252, .22), transparent 24rem),
    radial-gradient(circle at 88% 86%, rgba(0, 178, 169, .16), transparent 26rem),
    linear-gradient(135deg, #101828 0%, #182230 52%, #2536a9 100%);
}

.login-wrap::before,
.login-wrap::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}

.login-wrap::before {
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
}

.login-wrap::after {
  bottom: -260px;
  left: -150px;
  width: 620px;
  height: 620px;
}

.login-box {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

.v2-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.v2-login-mark,
.v2-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #6172f3, #3538cd);
  box-shadow: 0 8px 20px rgba(70, 95, 255, .28);
}

.v2-login-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
}

.v2-login-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.v2-login-brand span {
  display: block;
  margin-top: 2px;
  color: var(--v2-text-muted);
  font-size: 12px;
}

.login-box h2 {
  margin-bottom: 8px;
  text-align: left;
  font-size: 25px;
  letter-spacing: -.02em;
}

.login-box h2::after {
  display: block;
  margin: 8px 0 26px;
  color: var(--v2-text-muted);
  content: "请输入账号信息进入商户工作台";
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.login-box .form-group {
  margin-bottom: 18px;
}

.login-box .btn {
  min-height: 46px;
  margin-top: 6px;
  border-radius: 10px;
  font-size: 15px;
}

/* Shell */
.layout {
  min-height: 100vh;
}

.sidebar {
  z-index: 900;
  width: 256px;
  padding-bottom: 24px;
  border-right: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(circle at 20% 0, rgba(99, 102, 241, .2), transparent 16rem),
    var(--v2-sidebar);
  box-shadow: 8px 0 30px rgba(16, 24, 40, .05);
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 78px;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: inherit;
}

.v2-brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 17px;
}

.v2-brand-copy strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}

.v2-brand-copy small {
  display: block;
  margin-top: 3px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}

.v2-version-chip {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #d0d5dd;
  background: rgba(255, 255, 255, .06);
  font-size: 9px;
  font-weight: 700;
}

.v2-complaint-shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  margin: 12px 14px 4px;
  padding: 11px 12px;
  border: 1px solid rgba(96, 165, 250, .38);
  border-left: 3px solid #60a5fa;
  border-radius: 11px;
  color: #fff;
  background: rgba(59, 130, 246, .16);
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}

.v2-complaint-shortcut:hover {
  border-color: rgba(147, 197, 253, .58);
  color: #fff;
  background: rgba(59, 130, 246, .28);
  transform: translateY(-1px);
}

.v2-complaint-shortcut-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: rgba(96, 165, 250, .18);
  font-size: 16px;
}

.v2-complaint-shortcut-copy {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
}

.v2-complaint-shortcut-copy small {
  display: block;
  margin-top: 3px;
  color: #93c5fd;
  font-size: 10px;
  font-weight: 500;
}

.v2-complaint-shortcut-arrow {
  color: #93c5fd;
  font-size: 14px;
  transition: transform .2s;
}

.v2-complaint-shortcut:hover .v2-complaint-shortcut-arrow {
  transform: translateX(2px);
}

.sidebar .nav {
  padding: 10px 12px;
}

.v2-nav-group {
  padding: 18px 10px 7px;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.sidebar .nav a {
  gap: 12px;
  min-height: 44px;
  margin: 3px 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #98a2b3;
  font-size: 13px;
  font-weight: 550;
}

.sidebar .nav a:hover {
  border-color: rgba(255, 255, 255, .08);
  color: #f2f4f7;
  background: rgba(255, 255, 255, .06);
}

.sidebar .nav a.active {
  border-color: rgba(129, 140, 248, .25);
  color: #fff;
  background: linear-gradient(90deg, rgba(70, 95, 255, .95), rgba(99, 102, 241, .78));
  box-shadow: 0 8px 20px rgba(53, 56, 205, .22);
}

.v2-nav-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 15px;
  filter: grayscale(.15);
}

.v2-nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main {
  width: calc(100% - 256px);
  max-width: none;
  margin-left: 256px;
  padding: 0 32px 40px;
}

.main > [id^="page-"] {
  width: min(100%, 1560px);
  margin-right: auto;
  margin-left: auto;
  animation: v2-page-in .2s ease both;
}

@keyframes v2-page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 700;
  width: calc(100% + 64px);
  min-height: 78px;
  margin: 0 -32px 28px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(228, 231, 236, .88);
  background: rgba(243, 246, 251, .88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .75);
  backdrop-filter: blur(16px);
}

.v2-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.v2-title-copy {
  min-width: 0;
}

.topbar h2 {
  overflow: hidden;
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-page-desc {
  margin-top: 3px;
  color: var(--v2-text-muted);
  font-size: 11px;
}

.v2-preview-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  color: #3538cd;
  background: #eef4ff;
  font-size: 10px;
  font-weight: 700;
}

.topbar .user {
  gap: 10px !important;
  padding: 7px 9px 7px 12px;
  border: 1px solid var(--v2-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--v2-shadow-sm);
}

.topbar .user::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #6172f3, #3538cd);
  content: "商";
  font-size: 11px;
  font-weight: 700;
}

.topbar .user a {
  margin-left: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--v2-danger);
  background: var(--v2-danger-soft);
  font-size: 11px;
}

.v2-mobile-menu,
.v2-sidebar-mask {
  display: none;
}

/* Surfaces */
.card,
.preview-section,
.info-card,
.stat-card,
.comp-card,
.app-card,
.sm-detail,
.complaint-actions,
.result-box {
  border-color: var(--v2-border);
  box-shadow: var(--v2-shadow-sm);
}

.card {
  padding: 24px;
  border-radius: var(--v2-radius-lg);
  background: rgba(255, 255, 255, .98);
}

.card h3 {
  color: var(--v2-text);
  font-size: 16px;
  letter-spacing: -.01em;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  position: relative;
  min-height: 126px;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--v2-radius);
  background: linear-gradient(145deg, #fff, #fbfcff);
}

.stat-card::after {
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(70, 95, 255, .045);
  content: "";
}

.stat-card:hover {
  border-color: #c7d7fe;
  box-shadow: var(--v2-shadow-md);
  transform: translateY(-2px);
}

.stat-card .label {
  color: var(--v2-text-secondary);
  font-size: 11px;
  letter-spacing: .04em;
}

.stat-card .value {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.stat-card .value.blue { color: var(--v2-primary); }
.stat-card .value.green { color: var(--v2-success); }

.dash-tx-row {
  min-height: 52px;
  padding: 11px 4px;
}

.empty {
  min-height: 110px;
  padding: 42px 20px;
  border-radius: var(--v2-radius);
  color: var(--v2-text-muted);
  background: var(--v2-surface-soft);
  font-size: 13px;
}

.step-tip {
  position: relative;
  padding: 13px 16px;
  border-color: #c7d7fe;
  border-radius: 10px;
  color: #3538cd;
  background: #f5f8ff;
  line-height: 1.65;
}

.info-card {
  border-radius: var(--v2-radius);
  background: var(--v2-surface-soft);
}

.section-title {
  margin-top: 24px;
  padding-bottom: 10px;
  font-size: 14px;
}

/* Forms and actions */
label {
  margin-bottom: 6px;
  color: var(--v2-text-secondary);
  font-size: 12px;
  font-weight: 650;
}

input,
select,
textarea {
  min-height: 42px;
  padding: 9px 12px;
  border-color: #d0d5dd;
  border-radius: var(--v2-radius-sm);
  color: var(--v2-text);
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}

textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #98a2b3;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--v2-primary);
  box-shadow: 0 0 0 3px rgba(70, 95, 255, .12);
}

input[readonly] {
  background: #f2f4f7;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  gap: 16px;
}

.btn {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: var(--v2-radius-sm);
  box-shadow: var(--v2-shadow-sm);
  font-size: 13px;
  font-weight: 650;
  transition: transform .12s, box-shadow .12s, background-color .12s, border-color .12s;
}

.btn:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(16, 24, 40, .12);
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  box-shadow: var(--v2-shadow-sm);
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid rgba(70, 95, 255, .2);
  outline-offset: 2px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .56;
}

.btn-sm {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--v2-primary-dark);
}

.btn-emerald,
.btn-success {
  color: #fff;
  background: var(--v2-success);
}

.btn-gray,
.btn-outline {
  border-color: #d0d5dd;
  color: #344054;
  background: #fff;
}

.btn-gray:hover:not(:disabled),
.btn-outline:hover:not(:disabled) {
  background: #f9fafb;
}

.btn-red {
  color: #fff;
  background: var(--v2-danger);
}

/* Lists */
.app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 16px 18px;
  border-radius: var(--v2-radius);
  background: #fff;
}

.app-card:hover {
  border-color: #a4bcfd;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .07);
  transform: translateY(-1px);
}

.app-card .info {
  min-width: 0;
}

.app-card .info .name {
  overflow: hidden;
  color: var(--v2-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-card .info .meta {
  margin-top: 6px;
  color: var(--v2-text-muted);
  line-height: 1.6;
}

.comp-card {
  position: relative;
  padding: 18px 20px;
  overflow: hidden;
  border-left-width: 4px;
  border-radius: var(--v2-radius);
}

.comp-card:hover {
  border-color: #a4bcfd;
  box-shadow: var(--v2-shadow-md);
  transform: translateY(-1px);
}

.comp-card .comp-name {
  font-size: 16px;
}

.comp-card .comp-meta {
  margin-top: 7px;
  line-height: 1.7;
}

.comp-card.disabled {
  filter: saturate(.72);
  opacity: .72;
}

.sm-detail {
  padding: 17px 18px;
  border-radius: var(--v2-radius);
  background: #fbfcfe;
}

.sm-detail .sm-mid {
  color: var(--v2-primary);
  font-size: 19px;
  letter-spacing: .02em;
}

.sm-detail .sm-meta {
  margin-top: 7px;
  line-height: 1.7;
}

.toggle {
  width: 42px;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #d0d5dd;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .04);
}

.toggle::after {
  width: 18px;
  height: 18px;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .24);
}

.toggle.on {
  background: var(--v2-primary);
}

.toggle.on::after {
  transform: translateX(18px);
}

/* Tables */
.v2-table-scroll,
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #d0d5dd transparent;
}

.v2-table-scroll table,
.table-wrap table {
  min-width: 880px;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  height: 44px;
  padding: 11px 14px;
  border-bottom-color: var(--v2-border);
  color: #667085;
  background: #f9fafb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

td {
  padding: 13px 14px;
  border-bottom-color: #eaecf0;
  color: #344054;
  font-size: 12px;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #f8f9ff;
}

.tag {
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.45;
}

.tag-green { border-color: #abefc6; color: #067647; background: var(--v2-success-soft); }
.tag-red { border-color: #fecdca; color: #b42318; background: var(--v2-danger-soft); }
.tag-yellow { border-color: #fedf89; color: #b54708; background: var(--v2-warning-soft); }
.tag-blue { border-color: #b2ccff; color: #3538cd; background: #eef4ff; }
.tag-gray { border-color: #eaecf0; color: #475467; background: #f9fafb; }

/* Wizard and previews */
.stepper {
  padding: 12px 16px;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius-lg);
  background: #fff;
  box-shadow: var(--v2-shadow-sm);
}

.step {
  padding-top: 9px;
  padding-bottom: 9px;
}

.step .circle {
  width: 30px;
  height: 30px;
  color: #667085;
  background: #f2f4f7;
}

.step.active .circle,
.step.done .circle {
  background: var(--v2-primary);
}

.step.active .title {
  color: var(--v2-primary);
}

.step.done:not(:last-child)::after {
  background: var(--v2-primary);
}

.preview-hero {
  border-color: #c7d7fe;
  border-radius: var(--v2-radius-lg);
  background: linear-gradient(135deg, #eef4ff, #f0fdf9);
  box-shadow: var(--v2-shadow-sm);
}

.preview-section {
  border-radius: var(--v2-radius-lg);
}

.preview-field .k {
  color: #667085;
  background: #f9fafb;
}

.preview-image {
  border-radius: var(--v2-radius);
}

/* Modals */
.modal-overlay,
.modal {
  padding: 24px;
  background: rgba(16, 24, 40, .64) !important;
  backdrop-filter: blur(5px);
}

.modal-box,
.modal > .card {
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  box-shadow: var(--v2-shadow-lg);
}

.modal-box {
  width: min(440px, 94vw);
  padding: 28px;
}

.modal-box.modal-large {
  width: min(1040px, 96vw);
}

.complaint-detail-grid {
  overflow: hidden;
  border-top: 0;
  border-left: 0;
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
}

.complaint-detail-grid .item {
  border-color: var(--v2-border);
}

.complaint-actions {
  padding: 16px;
  border-radius: var(--v2-radius);
  background: #f9fafb;
}

.result-box {
  border-radius: var(--v2-radius);
  line-height: 1.65;
}

.result-box pre {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--v2-border);
  border-radius: 8px;
  background: #fff;
}

/* Mobile */
@media (max-width: 1100px) {
  .sidebar {
    width: 236px;
    transform: translateX(-102%);
    transition: transform .22s ease;
  }

  body.v2-sidebar-open {
    overflow: hidden;
  }

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

  .v2-sidebar-mask {
    position: fixed;
    inset: 0;
    z-index: 850;
    display: block;
    visibility: hidden;
    background: rgba(16, 24, 40, .46);
    opacity: 0;
    transition: opacity .2s, visibility .2s;
  }

  body.v2-sidebar-open .v2-sidebar-mask {
    visibility: visible;
    opacity: 1;
  }

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

  .v2-mobile-menu {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--v2-border);
    border-radius: 9px;
    color: #344054;
    background: #fff;
    box-shadow: var(--v2-shadow-sm);
    cursor: pointer;
  }
}

@media (max-width: 760px) {
  .main {
    padding: 0 14px 28px;
  }

  .topbar {
    width: calc(100% + 28px);
    min-height: 68px;
    margin-right: -14px;
    margin-bottom: 18px;
    margin-left: -14px;
    padding: 10px 14px;
  }

  .topbar h2 {
    font-size: 17px;
  }

  .v2-page-desc,
  .v2-preview-badge,
  .topbar .user #clock,
  .topbar .user::before {
    display: none;
  }

  .topbar .user {
    gap: 5px !important;
    padding: 5px 6px 5px 9px;
    max-width: 44%;
    overflow: hidden;
    font-size: 0;
  }

  .topbar .user #merchantName {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar .user a {
    flex: 0 0 auto;
  }

  .card {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 14px;
  }

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

  .stat-card {
    min-height: 112px;
    padding: 15px;
  }

  .stat-card .value {
    font-size: 24px;
  }

  .form-row,
  .preview-grid,
  .complaint-detail-grid {
    grid-template-columns: 1fr;
  }

  .app-card,
  .comp-card .comp-top,
  .sm-detail .sm-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-card .actions,
  .comp-card .comp-badge,
  .sm-detail .sm-top > div:last-child {
    width: 100%;
    justify-content: flex-start;
  }

  .preview-field {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .stepper {
    margin-bottom: 16px;
    padding: 8px;
  }

  .step {
    min-width: 68px;
  }

  .modal-overlay,
  .modal {
    align-items: flex-end !important;
    padding: 10px;
  }

  .modal-box,
  .modal > .card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    margin: 0;
    border-radius: 18px 18px 12px 12px;
  }

  .login-wrap {
    padding: 18px;
  }

  .login-box {
    padding: 28px 22px;
    border-radius: 20px;
  }
}

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

  .stat-card {
    min-height: 98px;
  }

  .preview-field {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
