:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --ink: #151718;
  --muted: #66706c;
  --line: #dbe3df;
  --teal: #00ad9f;
  --teal-strong: #008a80;
  --blue: #2b6fe0;
  --red: #c43d4b;
  --amber: #b56a00;
  --shadow: 0 20px 45px rgba(15, 33, 33, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(0, 173, 159, 0.09), rgba(255, 255, 255, 0) 260px),
    var(--bg);
}

body.auth-locked {
  overflow: hidden;
}

body.auth-locked .app-shell {
  display: none;
}

body:not(.auth-locked) .auth-screen {
  display: none;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 520px);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(24px, 6vw, 72px);
  background:
    linear-gradient(135deg, rgba(0, 173, 159, 0.16), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, #f8fbfa, #edf4f2);
}

.auth-visual {
  display: grid;
  align-content: center;
  min-height: min(640px, 72vh);
  border: 1px solid rgba(0, 173, 159, 0.18);
  border-radius: 18px;
  padding: clamp(28px, 5vw, 64px);
  color: #071c1a;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 248, 246, 0.74)),
    repeating-linear-gradient(90deg, rgba(0, 173, 159, 0.08) 0 1px, transparent 1px 44px);
  box-shadow: var(--shadow);
}

.auth-mark {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 16px;
  color: #00211f;
  background: linear-gradient(135deg, #20e2cf, #9af2d0);
  font-size: 26px;
  font-weight: 900;
}

.auth-visual h1 {
  margin-top: 28px;
  max-width: 680px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
}

.auth-visual p {
  margin-top: 18px;
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
}

.auth-card {
  display: grid;
  gap: 18px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(17, 40, 38, 0.16);
}

.auth-card-heading {
  display: grid;
  gap: 7px;
  margin-bottom: 4px;
}

.auth-card-heading span {
  color: var(--teal-strong);
  font-size: 13px;
  font-weight: 800;
}

.auth-card-heading strong {
  font-size: 30px;
  line-height: 1.1;
}

.auth-message {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

.auth-message.error {
  color: var(--red);
}

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

button {
  border: 0;
  cursor: pointer;
}

a.secondary,
a.primary {
  text-decoration: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: #031918;
  background: linear-gradient(135deg, #20e2cf, #95f0c7);
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.hint,
.quiet,
.metric span,
.panel-heading span,
.empty-state p,
.meta {
  color: var(--muted);
}

.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-weight: 650;
  white-space: nowrap;
}

.primary {
  color: #001d1b;
  background: var(--teal);
}

.primary:hover {
  background: #18c6b8;
}

.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
}

.secondary:hover {
  border-color: #b8c5c0;
}

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

.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.full {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.icon-btn:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.side-section {
  display: grid;
  gap: 10px;
}

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

.side-actions .secondary {
  width: 100%;
  min-width: 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.account-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: inherit;
  text-align: left;
  background: transparent;
}

.account-item:hover,
.account-item.active {
  border-color: var(--line);
  background: var(--surface);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aa4a0;
}

.status-dot.ok {
  background: var(--teal-strong);
}

.status-dot.error {
  background: var(--red);
}

.status-dot.loading {
  background: var(--amber);
}

.account-name,
.site-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.account-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  line-height: 1.1;
}

h2 {
  font-size: 18px;
}

.topbar p {
  margin-top: 8px;
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}

.metric {
  display: grid;
  gap: 7px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(24, 38, 35, 0.04);
}

.metric strong {
  font-size: 28px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 160px;
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

textarea {
  padding: 12px;
  resize: vertical;
}

.file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px;
  background: var(--surface);
}

.file-label,
#deployFileLabel {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal-strong);
  box-shadow: 0 0 0 3px rgba(0, 173, 159, 0.18);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.deploy-records-panel {
  overflow: hidden;
}

.record-table {
  min-width: 860px;
}

.record-site {
  display: grid;
  gap: 4px;
}

.record-site a {
  width: fit-content;
}

.panel,
.detail-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

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

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

th,
td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

tr.selectable {
  cursor: pointer;
}

tr.selectable:hover td,
tr.selected td {
  background: #f1f8f6;
}

.site-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.domain-line {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #21403d;
  background: #dff6f1;
  font-size: 12px;
  font-weight: 800;
}

.pill.error {
  color: #7e1e29;
  background: #ffe1e5;
}

.pill.warn {
  color: #6d4100;
  background: #ffefd4;
}

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

.detail-panel {
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 20px;
}

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

.detail-title {
  display: grid;
  gap: 4px;
}

.detail-title h2 {
  overflow-wrap: anywhere;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-content: center;
  gap: 8px;
  text-align: center;
}

.dialog {
  width: min(520px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dialog.wide {
  width: min(760px, calc(100vw - 28px));
}

.dialog::backdrop {
  background: rgba(9, 20, 19, 0.42);
}

.dialog form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

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

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

menu {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.console-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
}

.form-section-title {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.link-row input {
  min-width: 0;
}

.order-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.order-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #f8fbfa;
}

.order-item a {
  color: inherit;
  text-decoration: none;
}

.order-money {
  font-weight: 800;
  white-space: nowrap;
}

.card-code-form-row {
  grid-template-columns: minmax(0, 1fr) 150px;
}

.card-code-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.card-code-list {
  max-height: 260px;
}

.card-code-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  border: 1px solid #d8dde8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbfa;
}

.card-code-item code {
  overflow: hidden;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-code-item strong {
  color: #355efc;
  font-size: 14px;
  white-space: nowrap;
}

.card-code-item small {
  grid-column: 1 / -1;
  color: #6c757d;
  line-height: 1.45;
}

.card-code-item.is-used {
  opacity: 0.72;
  background: #f2f4f7;
}

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

.console-output {
  min-height: 170px;
  max-height: 360px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: #d7fff8;
  background: #10201f;
  white-space: pre-wrap;
}

.progress-box {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--muted);
  background: #f8fbfa;
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(440px, calc(100vw - 40px));
  padding: 13px 15px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 160ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.is-shaking {
  animation: frontShakeX 0.42s ease;
}

.front-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 173, 159, 0.12), rgba(255, 255, 255, 0) 320px),
    #f6f7f4;
}

.front-login {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 460px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: 100vh;
  padding: clamp(24px, 6vw, 76px);
}

.front-hero {
  display: grid;
  align-content: center;
  min-height: min(620px, 72vh);
  border-radius: 18px;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(229, 246, 242, 0.72)),
    repeating-linear-gradient(90deg, rgba(0, 173, 159, 0.08) 0 1px, transparent 1px 46px);
  box-shadow: var(--shadow);
}

.front-hero h1 {
  margin-top: 26px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}

.front-hero p {
  margin-top: 16px;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

.front-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 70px rgba(17, 40, 38, 0.14);
}

.front-card p {
  color: var(--muted);
}

.front-login-btn {
  min-height: 46px;
}

.front-dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.front-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.front-record-section {
  display: grid;
  gap: 10px;
}

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

.front-record-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
}

.front-record-item:hover {
  border-color: var(--teal-strong);
  background: #f1f8f6;
}

.front-main {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 30px;
}

.front-profile-panel {
  overflow: hidden;
}

.front-template-panel {
  overflow: hidden;
}

.front-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.template-choice {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--ink);
  text-align: left;
  background: var(--surface);
}

.template-choice:hover {
  border-color: var(--teal-strong);
  background: #f1f8f6;
}

.template-choice strong,
.template-choice span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-choice span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.front-deploy-result {
  margin: 0 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #f8fbfa;
  overflow-wrap: anywhere;
}

.front-profile {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  align-items: start;
}

.front-profile img {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--surface-2);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .front-login,
  .front-dashboard {
    grid-template-columns: 1fr;
  }

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

  .auth-screen {
    grid-template-columns: 1fr;
    align-content: center;
    overflow-y: auto;
  }

  .auth-visual {
    min-height: auto;
    padding: 24px;
  }

  .auth-visual h1 {
    font-size: 38px;
  }

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

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

  .workspace {
    padding: 20px;
  }

  .topbar {
    display: grid;
  }

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

  .metrics,
  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .search-wrap {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .front-login,
  .front-main,
  .front-nav {
    padding: 16px;
  }

  .front-hero {
    display: none;
  }

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

  .auth-screen {
    padding: 16px;
  }

  .auth-visual {
    display: none;
  }

  .workspace,
  .sidebar {
    padding: 16px;
  }

  h1 {
    font-size: 25px;
  }

  .metrics,
  .toolbar,
  .template-file-grid,
  .front-template-grid,
  .console-row,
  .link-row {
    grid-template-columns: 1fr;
  }

  menu {
    width: 100%;
  }

  menu button {
    flex: 1;
  }

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

/* Snacked 1:1 dashboard layer. Keep this at the end so it wins over the old UI. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.snacked-admin,
body.snacked-front {
  background: #f7f8fa !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.auth-locked .manager-wrapper {
  display: none !important;
}

.snacked-auth {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100dvh;
  overflow-y: auto;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(53, 94, 252, 0.16), transparent 32rem),
    linear-gradient(135deg, #f7f8fa 0%, #eef3ff 100%);
}

.snacked-auth .auth-card {
  display: block;
  width: min(460px, 100%);
  border: 0;
  padding: 0;
  background: #fff;
}

.front-login.snacked-auth.front-landing {
  position: relative;
  inset: auto;
  display: block;
  width: 100vw;
  max-width: 100vw;
  min-height: 100dvh;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  background: #f3f7ff;
}

.front-landing-header {
  position: relative;
  z-index: 3;
  display: grid;
  width: 100vw;
  max-width: 100vw;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 76px;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  border-bottom: 1px solid #dbe7f6;
  padding: 0 clamp(22px, 6vw, 120px);
  background: #fff;
}

.front-landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: #172033;
  text-decoration: none;
}

.front-landing-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.front-landing-brand strong {
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

.front-landing-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
}

.front-landing-nav a {
  color: #172033;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.front-landing-login {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 92px;
  min-height: 42px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #3567ff, #2850d7);
  box-shadow: 0 12px 30px rgba(53, 94, 252, 0.24);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.front-landing-hero {
  position: relative;
  display: grid;
  width: 100vw;
  max-width: 100vw;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 70px;
  min-height: 588px;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  border-bottom: 1px solid #dbe7f6;
  padding: 78px clamp(24px, 8vw, 150px) 84px;
  background:
    linear-gradient(132deg, #f8fbff 0 48%, rgba(248, 251, 255, 0) 48.2%),
    linear-gradient(90deg, #f9fbff 0 55%, #e3f2ff 55% 100%);
}

.front-landing-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.front-landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #243858;
  font-size: 13px;
  font-weight: 900;
}

.front-landing-eyebrow i {
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3465ff, #24c7be);
}

.front-landing-copy h1 {
  margin: 0;
  color: #07111f;
  font-size: 58px;
  font-weight: 950;
  line-height: 1.02;
}

.front-landing-copy p {
  margin: 22px 0 0;
  color: #243858;
  font-size: 24px;
  font-weight: 500;
}

.front-landing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.front-landing-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #243858;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.front-landing-tags i {
  color: #1f3d74;
  font-size: 18px;
}

.front-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.front-landing-secondary,
.front-landing-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 126px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.front-landing-secondary {
  border: 1px solid rgba(53, 94, 252, 0.35);
  color: #315fff;
  background: rgba(255, 255, 255, 0.72);
}

.front-landing-primary {
  min-width: 172px;
  min-height: 54px;
  padding: 0 34px;
  color: #fff;
  background: linear-gradient(135deg, #3567ff, #1f43c9);
  box-shadow: 0 14px 34px rgba(53, 94, 252, 0.26);
  font-size: 15px;
}

.front-landing-login.is-disabled,
.front-landing-secondary.is-disabled,
.front-landing-primary.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.front-landing-status {
  min-height: 20px;
  margin: 14px 0 0 !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

.front-landing-status:empty {
  display: none;
}

.front-landing-status.is-alert {
  color: #b42318 !important;
}

.front-landing-art {
  position: relative;
  min-height: 360px;
  width: 100%;
}

.front-landing-art::before {
  content: "";
  position: absolute;
  inset: 18px 44px 20px 68px;
  border-radius: 40% 60% 48% 52%;
  background: rgba(114, 183, 244, 0.26);
}

.landing-browser {
  position: absolute;
  top: 48px;
  right: 48px;
  width: min(360px, 78%);
  min-height: 180px;
  overflow: hidden;
  border: 3px solid #2f5bdc;
  border-radius: 10px;
  background: #fff;
  box-shadow: 18px 28px 0 rgba(53, 94, 252, 0.16);
}

.landing-browser-bar {
  display: flex;
  gap: 9px;
  height: 30px;
  align-items: center;
  padding: 0 14px;
  background: #315bdc;
}

.landing-browser-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.landing-browser-bar span:nth-child(1) { background: #ff7476; }
.landing-browser-bar span:nth-child(2) { background: #ffd65a; }
.landing-browser-bar span:nth-child(3) { background: #ffca1a; }

.landing-browser-body {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 26px;
  padding: 22px 28px;
}

.landing-browser-body > b {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #35cfc4;
}

.landing-browser-body > b:first-child {
  grid-column: 1 / -1;
  width: 45%;
}

.landing-browser-body div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px 12px;
  min-height: 66px;
  border: 1px solid #9aaec9;
  border-radius: 8px;
  padding: 12px;
}

.landing-browser-body div span:first-child {
  grid-row: span 3;
  width: 34px;
  height: 34px;
  border: 1px solid #299d99;
  border-radius: 8px;
  background: #42cec5;
}

.landing-browser-body div span:not(:first-child),
.landing-browser-body p {
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: #8ea0bd;
}

.landing-pencil {
  position: absolute;
  top: 78px;
  left: 56px;
  width: 96px;
  height: 18px;
  border: 2px solid #1a7f83;
  border-radius: 999px;
  background: #41cfc7;
  transform: rotate(45deg);
}

.landing-pencil::after {
  content: "";
  position: absolute;
  right: -17px;
  top: 1px;
  border-left: 18px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.landing-code {
  position: absolute;
  top: 84px;
  right: 2px;
  display: grid;
  width: 104px;
  height: 58px;
  place-items: center;
  border: 2px solid #2751c5;
  border-radius: 8px;
  color: #fff;
  background: #315bdc;
  font-size: 42px;
  font-weight: 300;
  box-shadow: 0 15px 28px rgba(53, 94, 252, 0.18);
}

.landing-code::after {
  content: "";
  position: absolute;
  right: 22px;
  width: 62px;
  height: 2px;
  background: #fff;
}

.landing-stats {
  position: absolute;
  left: 106px;
  bottom: 56px;
  display: flex;
  align-items: end;
  gap: 12px;
  width: 142px;
  height: 78px;
  border: 2px solid #2854d4;
  border-radius: 10px;
  padding: 16px 18px;
  background: #315bdc;
  box-shadow: 0 16px 26px rgba(53, 94, 252, 0.18);
}

.landing-stats span {
  width: 6px;
  border-radius: 999px;
  background: #49d8cf;
}

.landing-stats span:nth-child(1) { height: 34px; }
.landing-stats span:nth-child(2) { height: 50px; background: #fff; }
.landing-stats span:nth-child(3) { height: 38px; }
.landing-stats span:nth-child(4) { height: 56px; background: #fff; }
.landing-stats span:nth-child(5) { height: 40px; }

.landing-chart {
  position: absolute;
  right: 94px;
  bottom: 74px;
  width: 64px;
  height: 64px;
  border: 1px solid #176d82;
  border-radius: 999px;
  background: conic-gradient(#315bdc 0 25%, #42cec5 25% 100%);
}

.landing-line {
  position: absolute;
  right: 10px;
  bottom: 42px;
  width: 410px;
  max-width: 80%;
  height: 2px;
  background: #8190a9;
}

.front-landing-section {
  display: grid;
  width: 100vw;
  max-width: 100vw;
  gap: 34px;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  border-bottom: 1px solid #dbe7f6;
  padding: 76px clamp(24px, 8vw, 150px) 78px;
  background: #f3f7ff;
}

.front-landing-section h2 {
  margin: 0;
  color: #243858;
  font-size: 34px;
  font-weight: 950;
  text-align: center;
}

.front-landing-section h2 span {
  color: #b5c5d9;
}

.front-landing-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 20px;
}

.front-landing-card-grid article,
.front-landing-guide-grid article {
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31, 56, 92, 0.08);
}

.front-landing-card-grid article div {
  display: grid;
  min-height: 122px;
  place-items: center;
  color: #fff;
  background: #e4f1ff;
}

.front-landing-card-grid article div span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #3567ff, #21c6bf);
  box-shadow: 0 14px 34px rgba(53, 94, 252, 0.22);
  font-size: 28px;
  font-weight: 950;
  text-shadow: 0 10px 24px rgba(53, 94, 252, 0.22);
}

.front-landing-card-grid h3,
.front-landing-guide-grid h3 {
  margin: 22px 22px 12px;
  color: #102033;
  font-size: 18px;
  font-weight: 950;
}

.front-landing-card-grid p,
.front-landing-guide-grid p {
  margin: 0 22px 26px;
  color: #29415f;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.9;
}

.front-landing-guide {
  padding-top: 78px;
  padding-bottom: 86px;
}

.front-landing-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 24px;
}

.front-landing-guide-grid article {
  padding: 8px 8px 18px;
}

.front-landing-guide-grid article:first-child h3 {
  color: #26b85b;
  text-align: center;
}

.front-landing-guide-grid article:last-child h3 {
  color: #f03b26;
  text-align: center;
}

.front-landing-top {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 10;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #315bdc;
  box-shadow: 0 14px 28px rgba(53, 94, 252, 0.22);
  text-decoration: none;
}

@media (max-width: 980px) {
  .front-landing-header {
    grid-template-columns: 1fr auto;
    padding: 0 clamp(16px, 5vw, 34px);
  }

  .front-landing-nav {
    display: none;
  }

  .front-landing-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
    padding: 56px clamp(16px, 5vw, 34px) 64px;
    background: linear-gradient(180deg, #f9fbff 0%, #e7f4ff 100%);
  }

  .front-landing-art {
    min-height: 320px;
    max-width: 620px;
    margin: 0 auto;
  }

  .front-landing-section {
    padding-right: clamp(16px, 5vw, 34px);
    padding-left: clamp(16px, 5vw, 34px);
  }

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

  .front-landing-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .front-login.snacked-auth.front-landing {
    padding: 0;
  }

  .front-landing-header {
    min-height: 66px;
    gap: 12px;
    padding: 0 16px;
  }

  .front-landing-brand img {
    width: 34px;
    height: 34px;
  }

  .front-landing-brand strong {
    font-size: 16px;
  }

  .front-landing-login {
    min-width: 76px;
    min-height: 38px;
  }

  .front-landing-hero {
    padding: 42px 18px 52px;
    background: linear-gradient(180deg, #f9fbff 0%, #e7f4ff 100%);
  }

  .front-landing-copy h1 {
    font-size: 42px;
  }

  .front-landing-copy p {
    font-size: 20px;
  }

  .front-landing-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .front-landing-secondary,
  .front-landing-primary {
    width: 100%;
  }

  .front-landing-art {
    min-height: 270px;
    max-width: 100%;
  }

  .landing-browser {
    right: 8px;
    width: 82%;
  }

  .landing-pencil {
    left: 4px;
  }

  .landing-code {
    right: 0;
    width: 82px;
    height: 48px;
  }

  .landing-stats {
    left: 20px;
    bottom: 46px;
  }

  .landing-chart {
    right: 34px;
  }

  .front-landing-section {
    padding: 56px 18px;
  }

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

  .front-landing-section h2 {
    font-size: 27px;
  }

  .front-landing-section h2 span {
    display: block;
    margin-top: 4px;
  }
}

.logo-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #355efc, #5b41d9);
  font-weight: 800;
}

.front-sidebar-avatar {
  overflow: hidden;
}

.front-sidebar-avatar.has-avatar {
  border-radius: 999px;
  background: transparent;
}

.front-sidebar-avatar img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.front-sidebar-avatar.has-avatar img {
  display: block;
}

.front-sidebar-avatar.has-avatar span {
  display: none;
}

.front-sidebar-profile {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 40px;
  margin-left: 8px;
}

.front-sidebar-profile span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(20, 184, 132, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  color: #147a5f;
  background: rgba(20, 184, 132, 0.08);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.front-sidebar-profile span i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #14b884;
  box-shadow: 0 0 0 3px rgba(20, 184, 132, 0.12);
}

.top-header .navbar .user-img,
.front-menu-avatar {
  object-fit: cover;
}

.manager-wrapper.wrapper {
  background: #f7f8fa;
}

.top-header {
  border-bottom: 1px solid #e7eaf0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(35, 45, 62, 0.06);
}

.top-header .navbar {
  min-height: 68px;
}

.top-header .searchbar .form-control {
  width: min(480px, 48vw);
  height: 38px;
  border-radius: 999px;
  background: #f8f9fb;
}

.top-header .navbar .nav-link {
  display: grid;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  border-radius: 10px;
}

.sidebar-wrapper {
  border-right: 1px solid #e7eaf0;
  background: #fff !important;
}

.sidebar-wrapper .sidebar-header {
  height: 68px;
  border-bottom: 1px solid #e7eaf0;
}

.sidebar-wrapper .logo-text {
  color: #355efc;
  font-size: 24px;
  font-weight: 500;
}

.sidebar-wrapper .metismenu a {
  min-height: 44px;
  border-radius: 4px;
  color: #666f7b;
}

.sidebar-wrapper .metismenu li.mm-active > a,
.sidebar-wrapper .metismenu a:hover {
  color: #355efc;
  background: #e9edff;
}

.sidebar-wrapper .menu-label {
  margin: 16px 0 8px;
  color: #b0b5bf;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}

.sidebar-panel {
  min-width: 0;
}

.sidebar-wrapper .account-list,
.front-record-list {
  display: grid;
  gap: 8px;
}

.sidebar-wrapper .account-list .empty-state {
  min-height: auto;
  place-content: stretch;
  border: 1px dashed #d8dde8;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  background: #f8f9fb;
}

.sidebar-wrapper .account-list .empty-state p {
  margin: 0;
  color: #6c757d;
  font-size: 12px;
  line-height: 1.55;
}

.sidebar-wrapper .account-list .storage-warning {
  border-color: #ffd8a8;
  background: #fff8ef;
}

.sidebar-wrapper .account-item,
.front-record-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  border: 1px solid #e7eaf0;
  border-radius: 8px;
  padding: 10px;
  color: #2f3640;
  text-align: left;
  text-decoration: none;
  background: #fff;
}

.sidebar-wrapper .account-item:hover,
.sidebar-wrapper .account-item.active,
.front-record-item:hover {
  border-color: #355efc;
  box-shadow: 0 6px 18px rgba(53, 94, 252, 0.10);
}

.front-record-title {
  text-decoration: none;
}

.front-record-title:hover {
  color: #355efc !important;
}

.front-record-item .bx {
  color: #8a94a6;
  font-size: 18px;
}

.front-page-view {
  --front-section-gap: 24px;
  display: grid;
  gap: var(--front-section-gap);
}

.front-record-page {
  overflow: hidden;
}

.front-record-page-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.front-record-table {
  width: 100%;
  min-width: 860px;
  table-layout: auto;
}

.front-record-table-wrap {
  overflow-x: auto;
}

.front-record-table .record-site {
  min-width: 520px;
}

.front-record-table .record-site a {
  display: inline;
  max-width: none;
  overflow: visible;
  color: #005cff;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  word-break: break-all;
}

.front-record-table .btn {
  white-space: nowrap;
}

.front-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.front-record-actions button {
  min-width: 64px;
  border: 0;
  border-radius: 6px;
  padding: 7px 14px;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.front-record-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.front-record-copy {
  background: #355efc;
}

.front-record-delete {
  background: #dc3545;
}

.front-record-empty {
  padding: 34px 18px;
  color: #6c757d;
  text-align: center;
}

.front-record-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid rgba(216, 221, 232, 0.9);
  padding: 14px 18px;
  color: #536071;
  font-size: 13px;
  font-weight: 750;
}

.front-page-btn {
  min-width: 74px;
  border: 1px solid rgba(53, 94, 252, 0.24);
  border-radius: 8px;
  padding: 7px 12px;
  color: #355efc;
  background: rgba(53, 94, 252, 0.07);
  font-weight: 800;
}

.front-page-btn:hover {
  border-color: #355efc;
  color: #fff;
  background: #355efc;
}

.front-page-btn:disabled {
  color: #9aa4b2;
  background: #f3f5f9;
  cursor: not-allowed;
}

.account-name,
.site-name,
.template-choice strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-meta,
.domain-line,
.template-choice span {
  display: block;
  overflow: hidden;
  color: #6c757d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #adb5bd;
}

.status-dot.ok {
  background: #198754;
}

.status-dot.loading {
  background: #ffc107;
}

.status-dot.error {
  background: #dc3545;
}

.page-content {
  min-height: 100dvh;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.front-dashboard.wrapper {
  display: block;
  min-height: 100dvh;
}

.snacked-metrics {
  display: flex;
  flex-wrap: nowrap !important;
  gap: 0;
  overflow-x: visible;
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 0;
}

.snacked-metrics > .col {
  flex: 1 1 0 !important;
  width: 0 !important;
  max-width: none !important;
}

.snacked-split-card.metric,
.snacked-split-card {
  display: block;
  min-height: auto;
  gap: 0;
  border: 0 !important;
  border-radius: 10px;
  padding: 0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(35, 45, 62, 0.08);
}

.snacked-split-card .card-body {
  padding: 8px !important;
}

.snacked-split-card .snacked-split-soft {
  min-height: 100px;
  background: #dfe5ff;
}

.snacked-split-card .snacked-split-blue {
  min-height: 100px;
  background: #355efc;
}

.snacked-split-card p {
  margin: 0 0 14px;
  color: #293445;
  font-size: 14px;
}

.snacked-split-card h4 {
  margin: 0;
  color: #355efc;
  font-size: 24px;
  font-weight: 500;
}

.snacked-split-card svg {
  display: block;
  width: 100%;
  height: 42px;
}

.snacked-split-card svg path {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
}

.snacked-toolbar {
  display: block;
}

.snacked-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
  align-items: start;
}

.snacked-content-grid > .col-12,
.snacked-content-grid > .col-xxl-8,
.snacked-content-grid > .col-xxl-4 {
  width: auto !important;
  max-width: none !important;
  flex: initial !important;
}

.snacked-content-grid .detail-panel {
  width: 100%;
}

.card.panel,
.detail-panel {
  min-width: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(35, 45, 62, 0.08);
}

.detail-panel {
  position: sticky;
  top: 82px;
}

.detail-view {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e7eaf0;
}

.detail-list dt {
  color: #6c757d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid rgba(216, 221, 232, 0.9);
  padding: 12px 16px;
  color: #536071;
  font-size: 13px;
  font-weight: 750;
}

.admin-pagination[hidden] {
  display: none;
}

.admin-page-btn {
  min-width: 72px;
  border: 1px solid rgba(53, 94, 252, 0.24);
  border-radius: 8px;
  padding: 7px 12px;
  color: #355efc;
  background: rgba(53, 94, 252, 0.07);
  font-weight: 800;
}

.admin-page-btn:hover:not(:disabled) {
  border-color: #355efc;
  color: #fff;
  background: #355efc;
}

.admin-page-btn:disabled {
  color: #9aa4b2;
  background: #f3f5f9;
  cursor: not-allowed;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  min-width: 760px;
}

.record-table {
  min-width: 860px !important;
}

.admin-page-view[hidden] {
  display: none !important;
}

.income-page {
  display: grid;
  gap: 1rem;
}

.income-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 16px;
}

.income-stat-card {
  display: grid;
  align-content: space-between;
  min-height: 118px;
  border: 1px solid rgba(216, 221, 232, 0.9);
  border-radius: 10px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(35, 45, 62, 0.08);
}

.income-stat-card-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #355efc 0%, #14b884 100%);
}

.income-stat-card span,
.income-stat-card small {
  color: #6c757d;
  font-size: 13px;
  font-weight: 700;
}

.income-stat-card-primary span,
.income-stat-card-primary small {
  color: rgba(255, 255, 255, 0.82);
}

.income-stat-card strong {
  margin: 10px 0;
  color: #1f2937;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.income-stat-card-primary strong {
  color: #fff;
}

.income-content-grid {
  align-items: stretch;
}

.income-content-grid > .col-12 {
  display: flex;
}

.income-content-grid .panel {
  width: 100%;
}

.income-table {
  min-width: 520px !important;
}

.income-status-table {
  min-width: 420px !important;
}

.income-orders-panel {
  margin-top: 0;
}

.income-bar-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.income-bar {
  display: inline-block;
  width: 40%;
  max-width: 120px;
  min-width: 6px;
  height: 8px;
  border-radius: 999px;
  background: #14b884;
}

.user-bar-new {
  background: #355efc;
}

.user-bar-login {
  background: #14b884;
}

.compact-empty {
  min-height: auto;
  padding: 16px;
  text-align: left;
}

tr.selectable {
  cursor: pointer;
}

tr.selectable:hover td,
tr.selected td {
  background: rgba(53, 94, 252, 0.06);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  color: #2742b8;
  background: #e2e7ff;
  font-size: 12px;
  font-weight: 700;
}

.pill.error {
  color: #842029;
  background: #f8d7da;
}

.pill.warn {
  color: #664d03;
  background: #fff3cd;
}

.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 6px;
  padding: 0 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.primary {
  color: #fff;
  background: #355efc;
}

.secondary {
  color: #293445;
  border: 1px solid #d8dde8;
  background: #fff;
}

.danger {
  color: #fff;
  background: #dc3545;
}

.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.icon-btn {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #6c757d;
  background: transparent;
  font-size: 22px;
  line-height: 1;
}

.dialog {
  width: min(540px, calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  border: 0;
  border-radius: 12px;
  padding: 0;
  color: #293445;
  background: #fff;
  box-shadow: 0 18px 55px rgba(35, 45, 62, 0.22);
}

.dialog.wide {
  width: min(780px, calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
}

#easyPayDialog.dialog.wide {
  width: min(1180px, calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.dialog form {
  display: grid;
  max-height: inherit;
  gap: 16px;
  overflow: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

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

.dialog-heading h2 {
  margin: 0;
  font-size: 18px;
}

.dialog label {
  display: grid;
  gap: 7px;
  color: #6c757d;
  font-size: 13px;
  font-weight: 700;
}

.dialog input,
.dialog select,
.dialog textarea,
.link-row input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d8dde8;
  border-radius: 6px;
  padding: 0 12px;
  color: #293445;
  background: #fff;
  outline: none;
}

.dialog textarea {
  padding: 12px;
  resize: vertical;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: #293445 !important;
}

.check-row input {
  width: 18px !important;
  min-height: 18px !important;
}

.hint,
.quiet,
.meta {
  color: #6c757d;
}

.file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid #d8dde8;
  border-radius: 6px;
  padding: 7px;
  background: #fff;
}

#deployFileLabel {
  min-width: 0;
  overflow: hidden;
  color: #6c757d;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
}

.console-row.card-code-form-row {
  grid-template-columns: minmax(0, 1fr) 150px;
}

.template-file-grid,
.front-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.template-choice {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 104px;
  border: 1px solid #d8dde8;
  border-radius: 8px;
  padding: 14px;
  color: #293445;
  text-align: left;
  background: #fff;
}

.template-choice:hover {
  border-color: #355efc;
  box-shadow: 0 8px 24px rgba(53, 94, 252, 0.10);
}

.template-choice.is-disabled,
.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

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

.template-file-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid #d8dde8;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.template-file-card.is-empty {
  background: #f8f9fb;
}

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

.template-file-head strong {
  color: #293445;
  font-size: 14px;
}

.template-file-state {
  min-width: 0;
  overflow: hidden;
  border-radius: 999px;
  padding: 3px 8px;
  color: #355efc;
  background: #eef4ff;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-file-card.is-empty .template-file-state {
  color: #6c757d;
  background: #eef1f5;
}

.template-file-input {
  gap: 6px !important;
}

.template-file-input input {
  min-width: 0;
  padding: 7px;
  font-size: 12px;
}

.template-file-meta {
  min-height: 18px;
  margin: 0;
  overflow: hidden;
  color: #6c757d;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-delete-btn {
  min-height: 34px;
  border: 1px solid rgba(196, 61, 75, 0.28);
  border-radius: 6px;
  color: #c43d4b;
  background: #fff;
  font-weight: 800;
}

.template-delete-btn:hover:not(:disabled) {
  color: #fff;
  background: #c43d4b;
}

.template-delete-btn:disabled {
  color: #9aa3af;
  border-color: #d8dde8;
  background: #f3f5f8;
  cursor: not-allowed;
}

.front-deploy-result {
  margin: 0 18px 18px;
  border: 1px solid #d8dde8;
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fb;
  overflow-wrap: anywhere;
}

.front-profile {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.front-profile img {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  object-fit: cover;
  background: #f1f3f5;
}

.form-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #d8dde8;
  color: #6c757d;
  font-size: 13px;
  font-weight: 800;
}

.link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.order-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.order-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #d8dde8;
  border-radius: 8px;
  padding: 10px;
  background: #f8f9fb;
}

.order-money {
  font-weight: 800;
  white-space: nowrap;
}

.console-output,
.progress-box {
  min-height: 120px;
  border: 1px solid #d8dde8;
  border-radius: 8px;
  padding: 12px;
  white-space: pre-wrap;
}

.console-output {
  max-height: 360px;
  overflow: auto;
  color: #d8f7ff;
  background: #17202a;
}

.progress-box {
  color: #6c757d;
  background: #f8f9fb;
}

.simple-pay-form {
  gap: 18px;
}

.simple-pay-form menu {
  justify-content: flex-start;
}

.pay-inline-field {
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0 !important;
  align-items: stretch;
  color: #293445 !important;
}

.pay-inline-field > span {
  display: flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid #d8dde8;
  border-right: 0;
  border-radius: 6px 0 0 6px;
  padding: 0 12px;
  background: #f3f5f8;
}

.pay-inline-field > select {
  border-radius: 0 6px 6px 0;
}

.progress-box.compact {
  min-height: auto;
}

.toast {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 2000;
  max-width: min(440px, calc(100vw - 40px));
  border-radius: 10px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1199.98px) {
  .snacked-content-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-panel {
    position: static;
  }
}

@media (max-width: 991.98px) {
  .page-content {
    padding: 1rem;
  }

  .top-header .navbar {
    padding-left: calc(0.75rem + env(safe-area-inset-left));
    padding-right: calc(0.75rem + env(safe-area-inset-right));
  }

  .top-header .searchbar .form-control {
    width: min(420px, 72vw);
  }

  .template-file-grid,
  .front-template-grid {
    grid-template-columns: 1fr;
  }

  .snacked-metrics {
    flex-wrap: wrap !important;
    overflow-x: visible;
    padding-bottom: 4px;
  }

  .snacked-metrics > .col {
    flex: 0 0 50% !important;
    width: 50% !important;
  }

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

@media (max-width: 575.98px) {
  .snacked-auth {
    align-items: start;
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .snacked-auth .auth-card {
    margin-top: 10dvh;
  }

  .page-content h1 {
    font-size: 24px;
  }

  .snacked-metrics > .col {
    flex: 0 0 100% !important;
    width: 100% !important;
  }

  .income-stat-grid {
    grid-template-columns: 1fr;
  }

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

  .top-header .searchbar .form-control {
    width: calc(100vw - 92px);
  }

  .console-row,
  .link-row,
  .front-profile {
    grid-template-columns: 1fr;
  }

  .file-picker {
    align-items: stretch;
    flex-direction: column;
  }

  #deployFileLabel {
    white-space: normal;
  }

  menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  menu button {
    width: 100%;
  }

  .dialog form {
    padding: 16px;
  }

  .order-item {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .order-money {
    grid-column: 2;
  }
}

.front-profile-compact {
  margin-bottom: 1rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(53, 94, 252, 0.08), rgba(255, 255, 255, 0) 52%),
    #fff;
}

.front-profile-compact .card-body {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
}

.front-profile-compact .front-profile-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.front-profile-compact .front-profile-row img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef2ff;
  box-shadow: 0 8px 22px rgba(53, 94, 252, 0.16);
}

.front-profile-main {
  min-width: 0;
}

.front-profile-kicker {
  display: block;
  margin-bottom: 2px;
  color: #6c757d;
  font-size: 12px;
  font-weight: 700;
}

.front-profile-main h2 {
  margin: 0;
  overflow: hidden;
  color: #202938;
  font-size: 18px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front-profile-main p {
  margin: 4px 0 0;
  color: #6c757d;
  font-size: 13px;
}

.front-profile-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  color: #198754;
  background: #eaf7ef;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.front-profile-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}

.front-profile-meta div {
  min-width: 0;
  border: 1px solid #e7eaf0;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.front-profile-meta span {
  display: block;
  margin-bottom: 4px;
  color: #6c757d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.front-profile-meta strong {
  display: block;
  overflow: hidden;
  color: #202938;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front-profile-modern {
  display: grid;
  gap: 18px;
  overflow: visible;
}

.front-profile-metrics {
  margin-bottom: 0;
}

.front-profile-metrics .snacked-split-card h4 {
  overflow: hidden;
  max-width: 100%;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front-profile-hero,
.front-profile-link-card,
.front-redeem-card,
.front-invite-card {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(30, 41, 59, 0.07);
}

.front-profile-hero {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 28px 30px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 28%),
    linear-gradient(135deg, #3b82f6, #4f46e5 48%, #31c7bd);
}

.front-profile-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 34%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 18px);
  opacity: 0.72;
  pointer-events: none;
}

.front-profile-hero-user {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.front-profile-hero-user img {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.front-profile-hero-main {
  min-width: 0;
}

.front-profile-hero-main h2 {
  margin: 0 0 8px;
  overflow: hidden;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front-profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.front-profile-pills span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.front-profile-link-head p {
  color: #64748b;
}

.front-profile-link-card {
  overflow: hidden;
  background: #fff;
}

.front-redeem-card {
  overflow: hidden;
  background: #fff;
}

.front-profile-link-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e7eaf0;
  padding: 18px 20px;
}

.front-profile-link-head h3 {
  margin: 0;
  color: #172033;
  font-size: 18px;
  font-weight: 900;
}

.front-profile-link-head p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.65;
}

.front-profile-link-head > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 12px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.front-profile-link-head > span.text-danger {
  color: #b42318;
  background: #fff1f0;
}

.front-profile-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 20px;
}

.front-profile-link-row strong {
  display: flex;
  align-items: center;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid #dbe3f2;
  border-radius: 8px;
  padding: 0 16px;
  color: #172033;
  background: #f8fbff;
  font-size: 17px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front-profile-link-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2450e6);
  box-shadow: 0 14px 28px rgba(53, 94, 252, 0.24);
  font-weight: 900;
  white-space: nowrap;
}

.front-redeem-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 20px;
}

.front-redeem-row input {
  min-height: 48px;
  border: 1px solid #dbe3f2;
  border-radius: 8px;
  padding: 0 16px;
  color: #172033;
  background: #f8fbff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  outline: none;
  text-transform: uppercase;
}

.front-redeem-row input:focus {
  border-color: #355efc;
  box-shadow: 0 0 0 3px rgba(53, 94, 252, 0.14);
}

.front-redeem-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #14b884);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
  font-weight: 900;
  white-space: nowrap;
}

.front-redeem-row button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.front-invite-card {
  overflow: hidden;
  background: #fff;
}

.front-invite-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #e7eaf0;
  padding: 18px 20px;
}

.front-invite-head h3 {
  margin: 0;
  color: #172033;
  font-size: 18px;
  font-weight: 900;
}

.front-invite-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.front-invite-head > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 12px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.front-invite-table {
  min-width: 760px !important;
}

.front-invite-table .pill {
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .front-profile-modern {
    gap: 14px;
  }

  .front-profile-hero,
  .front-profile-link-head,
  .front-profile-link-row,
  .front-redeem-row {
    padding: 16px;
  }

  .front-profile-hero-user {
    align-items: flex-start;
    gap: 12px;
  }

  .front-profile-hero-user img {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }

  .front-profile-hero-main h2 {
    font-size: 20px;
  }

  .front-profile-pills span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .front-profile-link-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .front-invite-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .front-profile-link-row,
  .front-redeem-row {
    grid-template-columns: 1fr;
  }

  .front-profile-link-row strong {
    font-size: 14px;
  }

  .front-profile-link-row button,
  .front-redeem-row button {
    width: 100%;
  }
}

.front-template-status {
  width: fit-content;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.front-template-status.is-alert {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 999px;
  padding: 5px 14px 5px 11px;
  color: #b42318 !important;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 241, 242, 0.96) 58%, rgba(255, 255, 255, 0.96)),
    #fff7ed;
  box-shadow:
    0 10px 26px rgba(251, 146, 60, 0.16),
    0 0 0 4px rgba(251, 146, 60, 0.07);
  font-weight: 850;
  letter-spacing: 0.02em;
  animation: frontStatusPulse 1.8s ease-in-out infinite;
}

.front-template-status.is-alert::before {
  content: "";
  position: relative;
  z-index: 1;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.12), 0 0 16px rgba(239, 68, 68, 0.42);
}

.front-template-status.is-alert::after {
  content: "";
  position: absolute;
  inset: -24px auto -24px -36%;
  width: 34%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.66), transparent);
  animation: frontStatusShine 2.4s ease-in-out infinite;
}

@keyframes frontStatusPulse {
  0%,
  100% {
    box-shadow:
      0 10px 26px rgba(251, 146, 60, 0.16),
      0 0 0 4px rgba(251, 146, 60, 0.07);
  }
  50% {
    box-shadow:
      0 14px 32px rgba(251, 146, 60, 0.24),
      0 0 0 5px rgba(251, 146, 60, 0.10);
  }
}

@keyframes frontStatusShine {
  0% {
    left: -36%;
  }
  46%,
  100% {
    left: 108%;
  }
}

.front-line-panel {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 18px;
  align-items: center;
  margin: 24px 0 8px;
  border: 1px solid rgba(53, 94, 252, 0.12);
  border-radius: 12px;
  padding: 16px 18px 14px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.07), rgba(255, 255, 255, 0.96) 58%, rgba(219, 234, 254, 0.58)),
    #fff;
  box-shadow: 0 14px 34px rgba(32, 41, 56, 0.06);
}

.front-line-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.front-line-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 8px;
  color: #2563eb;
  background: #eef5ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.10);
}

.front-line-icon svg,
.front-auth-domain-icon svg,
.front-purchase-icon svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.front-line-head h2 {
  color: #202938;
  font-weight: 850;
}

.front-line-head span:not(.front-line-icon) {
  display: block;
  color: #536071;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.front-line-grid {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 11px;
}

.front-line-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 34px;
  border: 1px solid #dbe3f2;
  border-radius: 999px;
  padding: 0 18px;
  color: #4b5565;
  background: #fff;
  box-shadow: 0 6px 16px rgba(32, 41, 56, 0.05);
  white-space: nowrap;
}

.front-line-choice:hover {
  border-color: rgba(53, 94, 252, 0.48);
  color: #355efc;
  box-shadow: 0 10px 22px rgba(53, 94, 252, 0.10);
}

.front-line-badge {
  position: absolute;
  left: 50%;
  top: -13px;
  min-width: 76px;
  max-width: 116px;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 999px;
  padding: 2px 10px;
  color: #fff;
  background: linear-gradient(135deg, #ff5c5c, #f43f5e);
  box-shadow: 0 7px 14px rgba(244, 63, 94, 0.18);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.front-line-number {
  overflow: hidden;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
}

.front-line-choice::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 8px;
  height: 13px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-55%) rotate(45deg) scale(0.78);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.front-line-choice.is-selected {
  min-width: 98px;
  border-color: transparent;
  padding-right: 32px;
  color: #fff;
  background: linear-gradient(135deg, #355efc, #4f46e5);
  box-shadow: 0 12px 28px rgba(53, 94, 252, 0.24);
}

.front-line-choice.is-selected::after {
  opacity: 1;
  transform: translateY(-55%) rotate(45deg) scale(1);
}

.front-line-choice.is-selected .front-line-badge {
  background: linear-gradient(135deg, #ef4444, #fb7185);
}

.front-line-choice.is-disabled {
  opacity: 0.54;
  pointer-events: none;
}

.front-line-choice.is-disabled .front-line-badge {
  color: #8a94a6;
  background: #eef2f7;
  box-shadow: none;
}

.front-line-choice.is-full {
  border-color: rgba(239, 68, 68, 0.22);
}

.front-line-choice.is-full .front-line-badge {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97373);
  box-shadow: 0 7px 14px rgba(239, 68, 68, 0.18);
}

@media (max-width: 991.98px) {
  .front-line-panel {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .front-line-panel {
    margin-top: 18px;
    padding: 14px 12px;
  }

  .front-line-grid {
    flex-wrap: wrap;
    row-gap: 18px;
  }
}

.front-auth-domain-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1.28fr);
  gap: 18px;
  align-items: center;
  margin: 32px 0 0;
  border: 1px solid rgba(53, 94, 252, 0.16);
  border-radius: 12px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(219, 234, 254, 0.64) 44%, rgba(255, 255, 255, 0.94)),
    #fff;
  box-shadow:
    0 18px 42px rgba(32, 41, 56, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.84) inset;
}

.front-auth-domain-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.front-auth-domain-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 9px;
  color: #2563eb;
  background: #eef5ff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.10);
}

.front-auth-domain-icon svg,
.front-purchase-icon svg {
  width: 25px;
  height: 25px;
}

.front-auth-domain-head h2 {
  color: #202938;
  font-weight: 800;
}

.front-auth-domain-head span:not(.front-auth-domain-icon) {
  display: block;
  color: #6c757d;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.front-auth-domain-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid rgba(53, 94, 252, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 14px 30px rgba(53, 94, 252, 0.08),
    0 0 0 4px rgba(53, 94, 252, 0.035);
}

.front-auth-domain-control:focus-within {
  border-color: rgba(53, 94, 252, 0.66);
  box-shadow:
    0 18px 36px rgba(53, 94, 252, 0.13),
    0 0 0 4px rgba(53, 94, 252, 0.10);
}

.front-auth-domain-lock {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  color: #355efc;
  background: rgba(53, 94, 252, 0.07);
  font-size: 13px;
  font-weight: 800;
}

.front-auth-domain-lock {
  justify-content: center;
  width: 54px;
  border-left: 1px solid rgba(53, 94, 252, 0.12);
}

.front-auth-domain-lock i {
  font-size: 20px;
}

.front-auth-domain-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: #202938;
  background: transparent;
  font-size: 17px;
  font-weight: 750;
}

.front-auth-domain-control input::placeholder {
  color: #9aa4b2;
  font-weight: 650;
}

.front-purchase-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) auto minmax(240px, 0.64fr);
  gap: 18px;
  align-items: center;
  margin: 28px 0 0;
  border: 1px solid rgba(53, 94, 252, 0.18);
  border-radius: 12px;
  padding: 16px 18px;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.09), rgba(219, 234, 254, 0.64) 48%, rgba(255, 255, 255, 0.95)),
    #fff;
  box-shadow:
    0 22px 48px rgba(32, 41, 56, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.front-purchase-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.front-purchase-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 9px;
  color: #2563eb;
  background: #eef5ff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.10);
}

.front-purchase-summary h2 {
  color: #202938;
  font-weight: 850;
}

.front-purchase-summary span:not(.front-purchase-icon) {
  display: block;
  overflow: hidden;
  color: #536071;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front-purchase-summary span.is-alert {
  color: #ef4444;
}

.front-purchase-summary span.is-success {
  color: #0f9f6e;
}

.front-purchase-price {
  display: grid;
  gap: 2px;
  min-width: 118px;
  border-left: 1px solid rgba(53, 94, 252, 0.14);
  padding-left: 18px;
}

.front-purchase-price span {
  color: #718096;
  font-size: 12px;
  font-weight: 750;
}

.front-purchase-price strong {
  color: #1d4ed8;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.front-purchase-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  overflow: hidden;
  border-radius: 14px;
  padding: 0 28px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 28%),
    linear-gradient(135deg, #3b82f6, #244fe6);
  box-shadow:
    0 18px 36px rgba(53, 94, 252, 0.30),
    0 1px 0 rgba(255, 255, 255, 0.24) inset;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.front-purchase-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transition: transform 0.62s ease;
}

.front-purchase-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow:
    0 22px 44px rgba(53, 94, 252, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.24) inset;
}

.front-purchase-btn:hover::before {
  transform: translateX(120%);
}

.front-purchase-btn i,
.front-purchase-btn span {
  position: relative;
  z-index: 1;
}

.front-purchase-btn i {
  font-size: 21px;
}

.front-purchase-btn:disabled {
  transform: none;
  color: #dbe5ff;
  background: linear-gradient(135deg, #8ba4f4, #6075d9);
  box-shadow: 0 12px 24px rgba(53, 94, 252, 0.16);
}

.front-payment-dialog {
  position: fixed;
  inset: 0;
  z-index: 20500;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 45%, rgba(53, 94, 252, 0.10), transparent 34rem),
    rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(12px);
}

.front-payment-dialog.is-hidden {
  display: none;
}

.front-payment-card {
  width: min(94vw, 548px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), #fff 44%),
    #fff;
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.front-payment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  padding: 22px 24px 16px;
}

.front-payment-head strong {
  display: block;
  color: #152033;
  font-size: 20px;
  font-weight: 900;
}

.front-payment-head span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.front-payment-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid rgba(53, 94, 252, 0.18);
  border-radius: 10px;
  color: #355efc;
  background: rgba(246, 248, 255, 0.86);
  font-size: 20px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.front-payment-close:hover {
  border-color: rgba(53, 94, 252, 0.38);
  background: #eef4ff;
  transform: translateY(-1px);
}

.front-payment-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 0;
}

.front-payment-total span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.front-payment-total strong {
  color: #1d4ed8;
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.front-payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
  margin: 18px 24px 24px;
  border-radius: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.24), transparent 15rem),
    linear-gradient(135deg, #58b7ff, #3b9ef2 58%, #67c5ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.front-payment-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 76px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #111827;
  text-align: center;
  background: #fff;
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.front-payment-option::before {
  content: none;
}

.front-payment-option:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow:
    0 22px 42px rgba(15, 23, 42, 0.20),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.front-payment-option:hover::before {
  opacity: 0;
}

.front-payment-option i {
  position: relative;
  z-index: 1;
  display: inline-grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #0987e8;
  font-size: 30px;
  box-shadow: none;
}

.front-payment-option .front-alipay-mark {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-style: normal;
  font-weight: 950;
  font-size: 28px;
  line-height: 1;
}

.front-payment-option:nth-child(2) i {
  width: auto;
  height: auto;
  color: #0788df;
  background: transparent;
  font-size: 38px;
}

.front-payment-option span {
  position: relative;
  z-index: 1;
  color: #111827;
  font-size: 23px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.front-payment-option small {
  display: none;
}

.front-payment-option small strong {
  color: #1d4ed8;
  font-weight: 900;
}

.front-payment-option:disabled,
.front-payment-option.is-disabled {
  transform: none;
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 575.98px) {
  .front-profile-compact .card-body {
    padding: 14px;
  }

  .front-profile-compact .front-profile-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .front-profile-compact .front-profile-row img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .front-profile-state {
    grid-column: 1 / -1;
    width: fit-content;
  }

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

  .front-auth-domain-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
    padding: 14px;
  }

  .front-auth-domain-control {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .front-auth-domain-control input {
    font-size: 15px;
    padding-left: 14px;
  }

  .front-purchase-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
    padding: 14px;
  }

  .front-purchase-summary span:not(.front-purchase-icon) {
    white-space: normal;
  }

  .front-purchase-price {
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: baseline;
    border-left: 0;
    border-top: 1px solid rgba(53, 94, 252, 0.12);
    padding: 12px 0 0;
  }

  .front-purchase-btn {
    width: 100%;
  }

  .front-payment-options {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .front-payment-total {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.front-loader-open {
  overflow: hidden;
}

body.front-generation-open {
  overflow: hidden;
}

.front-generation-overlay {
  position: fixed;
  inset: 0;
  z-index: 21000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(246, 248, 252, 0.78);
  backdrop-filter: blur(10px);
}

.front-generation-overlay.is-hidden {
  display: none;
}

html.front-payment-return-boot .front-login {
  visibility: hidden;
}

html.front-payment-return-boot .front-generation-overlay.is-hidden {
  display: grid;
}

.front-generation-card {
  width: min(94vw, 460px);
  border: 1px solid rgba(53, 94, 252, 0.16);
  border-radius: 14px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(53, 94, 252, 0.08), rgba(20, 184, 132, 0.06) 46%, rgba(255, 255, 255, 0.96)),
    #fff;
  box-shadow:
    0 28px 72px rgba(32, 41, 56, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.front-generation-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, #355efc, #14b884);
  box-shadow: 0 16px 32px rgba(53, 94, 252, 0.24);
}

.front-generation-icon i {
  font-size: 27px;
}

.front-generation-card h2 {
  margin: 18px 0 8px;
  color: #152033;
  font-size: 22px;
  font-weight: 900;
}

.front-generation-card p {
  margin: 0;
  color: #536071;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.front-generation-track {
  height: 12px;
  overflow: hidden;
  margin-top: 24px;
  border-radius: 999px;
  background: rgba(53, 94, 252, 0.10);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.front-generation-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 34%),
    linear-gradient(90deg, #355efc, #14b884);
  box-shadow: 0 8px 18px rgba(53, 94, 252, 0.26);
  transition: width 0.42s ease;
}

.front-generation-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 750;
}

.front-generation-foot strong {
  flex: 0 0 auto;
  color: #355efc;
  font-size: 13px;
}

.front-generation-overlay.is-error .front-generation-icon,
.front-generation-overlay.is-error .front-generation-track span {
  background: linear-gradient(135deg, #f43f5e, #f97316);
}

.front-generation-overlay.is-error .front-generation-foot strong {
  color: #f43f5e;
}

.front-loader-preview {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(71, 85, 105, 0.42), rgba(2, 6, 23, 0.78) 58%),
    rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(5px);
}

.front-loader-preview.is-hidden {
  display: none;
}

.front-loader-shell {
  position: relative;
  width: min(82vw, 372px, calc((100dvh - 48px) * 0.49));
  aspect-ratio: 9 / 18.35;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 42px;
  background:
    linear-gradient(145deg, #202938, #07111f 42%, #111827),
    #0f172a;
  box-shadow:
    0 34px 82px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 0 7px rgba(15, 23, 42, 0.32);
}

.front-loader-shell::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  width: 120px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: #07111f;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.front-loader-shell::after {
  content: "";
  position: absolute;
  top: 23%;
  right: -5px;
  width: 4px;
  height: 62px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, #1f2937, #0b1220);
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.08) inset;
}

.front-loader-head {
  position: absolute;
  inset: auto -6px calc(100% + 14px) auto;
  z-index: 4;
  display: block;
}

.front-loader-head > div {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.front-loader-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.64);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.front-loader-close:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(37, 99, 235, 0.78);
}

.front-loader-close i {
  font-size: 20px;
  line-height: 1;
}

.front-loader-screen {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 0 0 1px rgba(15, 23, 42, 0.10) inset;
}

.front-loader-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.template-choice.is-loading {
  border-color: rgba(53, 94, 252, 0.34);
  box-shadow:
    0 14px 28px rgba(53, 94, 252, 0.12),
    0 0 0 4px rgba(53, 94, 252, 0.06);
}

.front-template-panel {
  margin-top: 24px;
  border: 1px solid rgba(53, 94, 252, 0.10) !important;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), #fff 42%),
    #fff;
  box-shadow:
    0 16px 36px rgba(32, 41, 56, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.front-template-panel > .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 0;
  padding: 16px 18px 8px;
}

.front-template-panel > .card-header h2 {
  color: #182235;
  font-weight: 850;
}

.front-template-status:not(.is-alert) {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(53, 94, 252, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  color: #657286 !important;
  background: rgba(244, 247, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.front-template-grid {
  gap: 12px;
  padding: 14px 18px 18px;
}

.template-choice {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  align-items: start;
  gap: 14px;
  overflow: hidden;
  min-height: 124px;
  border-color: rgba(135, 149, 174, 0.24);
  border-radius: 8px;
  padding: 16px 52px 14px 16px;
  color: #1d2737;
  background:
    linear-gradient(145deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: 0 8px 20px rgba(32, 41, 56, 0.045);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.template-choice:hover {
  border-color: rgba(53, 94, 252, 0.36);
  background:
    linear-gradient(145deg, rgba(244, 248, 255, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: 0 14px 30px rgba(32, 41, 56, 0.08);
  transform: translateY(-1px);
}

.template-choice::before,
.template-choice::after {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.template-choice::before {
  content: "";
  top: 15px;
  right: 15px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #2f63f6;
  box-shadow: 0 9px 18px rgba(53, 94, 252, 0.22);
  transform: scale(0.78);
}

.template-choice::after {
  content: "";
  top: 20px;
  right: 24px;
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0.78);
  transform-origin: center;
}

.template-choice.is-selected {
  border-color: rgba(53, 94, 252, 0.62);
  background:
    linear-gradient(145deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow:
    0 16px 34px rgba(53, 94, 252, 0.12),
    0 0 0 3px rgba(53, 94, 252, 0.06);
}

.template-choice.is-selected::before,
.template-choice.is-selected::after {
  opacity: 1;
  transform: scale(1);
}

.template-choice.is-selected::after {
  transform: rotate(45deg) scale(1);
}

.template-choice-copy {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.template-choice .template-choice-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(53, 94, 252, 0.16);
  border-radius: 8px;
  color: #315fec;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(238, 245, 255, 0.96)),
    #f4f7ff;
  box-shadow: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.template-choice:hover .template-choice-icon,
.template-choice.is-selected .template-choice-icon {
  border-color: rgba(53, 94, 252, 0.28);
  color: #2453e7;
  background: #eef4ff;
}

.template-choice .template-choice-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.template-choice .template-choice-icon svg * {
  fill: none;
  stroke: currentColor;
}

.template-choice-copy strong {
  color: #152033;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.template-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: start;
  min-height: 30px;
  border: 1px solid rgba(53, 94, 252, 0.16);
  border-radius: 999px;
  padding: 0 12px;
  color: #42506a;
  background: rgba(244, 247, 255, 0.86);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.template-preview-btn i {
  font-size: 16px;
  color: #355efc;
}

.template-preview-btn span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.template-preview-btn:hover {
  border-color: #355efc;
  color: #fff;
  background: #355efc;
  transform: translateY(-1px);
}

.template-preview-btn:hover i {
  color: #fff;
}

.template-preview-btn:disabled {
  color: #8b95a7;
  background: #f3f5f9;
  transform: none;
}

@media (max-width: 991.98px) {
  .front-template-panel > .card-header {
    display: block;
  }

  .front-template-status:not(.is-alert) {
    margin-top: 4px;
  }
}

@media (max-width: 767.98px) {
  .front-template-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .template-choice {
    min-height: 108px;
  }
}

.front-page-view > .snacked-metrics {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.front-page-view > .front-line-panel,
.front-page-view > .front-template-panel,
.front-page-view > .front-auth-domain-panel,
.front-page-view > .front-purchase-panel {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.front-config-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), #fff 118px),
    #fff;
  box-shadow:
    0 18px 44px rgba(30, 41, 59, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.front-config-card::before {
  content: "";
  height: 3px;
  background: linear-gradient(90deg, #355efc, #14b884);
}

.front-config-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  padding: 0 22px;
  background: linear-gradient(90deg, rgba(53, 94, 252, 0.055), rgba(20, 184, 132, 0.035));
}

.front-config-card-head h2 {
  color: #111827;
  font-size: 16px;
  font-weight: 950;
}

.front-config-card > .front-line-panel,
.front-config-card > .front-template-panel,
.front-config-card > .front-auth-domain-panel,
.front-config-card > .front-purchase-panel {
  position: relative;
  display: grid;
  gap: 18px;
  align-items: center;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0;
  padding: 20px 22px;
  background: transparent;
  box-shadow: none;
}

.front-config-card > .front-line-panel,
.front-config-card > .front-template-panel,
.front-config-card > .front-auth-domain-panel {
  grid-template-columns: 48px minmax(150px, 205px) minmax(0, 1fr);
}

.front-config-card > .front-purchase-panel {
  grid-template-columns: 48px minmax(150px, 205px) minmax(128px, auto) minmax(220px, 0.56fr);
}

.front-config-card > .front-line-panel + .front-template-panel,
.front-config-card > .front-template-panel + .front-auth-domain-panel,
.front-config-card > .front-auth-domain-panel + .front-purchase-panel {
  border-top: 1px solid rgba(226, 232, 240, 0.86) !important;
}

.front-config-card > .front-line-panel::before,
.front-config-card > .front-template-panel::before,
.front-config-card > .front-auth-domain-panel::before,
.front-config-card > .front-purchase-panel::before {
  content: attr(data-step);
  position: relative;
  z-index: 1;
  display: grid;
  align-self: center;
  justify-self: center;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(53, 94, 252, 0.26);
  border-radius: 999px;
  color: #2450e6;
  background: #fff;
  box-shadow:
    0 0 0 6px rgba(53, 94, 252, 0.055),
    0 10px 20px rgba(53, 94, 252, 0.10);
  font-size: 13px;
  font-weight: 950;
}

.front-config-card > .front-line-panel::after,
.front-config-card > .front-template-panel::after,
.front-config-card > .front-auth-domain-panel::after {
  content: "";
  position: absolute;
  left: 46px;
  top: calc(50% + 22px);
  bottom: -22px;
  width: 1px;
  background: linear-gradient(180deg, rgba(53, 94, 252, 0.26), rgba(20, 184, 132, 0.14));
}

.front-config-card .front-line-head,
.front-config-card .front-auth-domain-head,
.front-config-card .front-purchase-summary,
.front-config-card .front-template-panel > .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 0;
  padding: 0;
}

.front-config-card .front-template-panel > .card-header {
  display: block;
  align-self: center;
  background: transparent !important;
}

.front-config-card .front-line-icon,
.front-config-card .front-auth-domain-icon,
.front-config-card .front-purchase-icon,
.front-config-card .template-choice .template-choice-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(53, 94, 252, 0.16);
  border-radius: 8px;
  color: #315fec;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.96)),
    #f4f7ff;
  box-shadow: none;
}

.front-config-card .front-line-icon svg,
.front-config-card .front-auth-domain-icon svg,
.front-config-card .front-purchase-icon svg,
.front-config-card .template-choice .template-choice-icon svg {
  width: 21px;
  height: 21px;
}

.front-config-card .front-line-head h2,
.front-config-card .front-auth-domain-head h2,
.front-config-card .front-purchase-summary h2,
.front-config-card .front-template-panel > .card-header h2 {
  margin: 0 !important;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.front-config-card .front-template-status:not(.is-alert) {
  margin-top: 8px;
  min-height: 24px;
  border-color: rgba(53, 94, 252, 0.14);
  padding: 3px 9px;
  color: #59667a !important;
  background: rgba(244, 247, 255, 0.76);
  font-size: 12px;
}

.front-config-card .front-line-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(124px, 148px));
  justify-content: start;
  gap: 10px;
  padding-top: 0;
}

.front-config-card .front-line-choice {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  flex-direction: column;
  gap: 4px;
  border-color: rgba(148, 163, 184, 0.30);
  border-radius: 8px;
  padding: 7px 28px 7px 12px;
  color: #334155;
  background: #fff;
  overflow: visible;
  box-shadow: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.front-config-card .front-line-choice:hover {
  border-color: rgba(53, 94, 252, 0.48);
  color: #2450e6;
  background: #f8fbff;
  transform: translateY(-1px);
  box-shadow: none;
}

.front-config-card .front-line-choice.is-selected {
  min-width: 0;
  color: #fff;
  background: linear-gradient(135deg, #355efc, #2450e6);
  box-shadow: 0 12px 24px rgba(53, 94, 252, 0.22);
}

.front-config-card .front-line-badge {
  position: static;
  min-width: max-content;
  max-width: none;
  transform: none;
  overflow: visible;
  padding: 2px 7px;
  color: #475569;
  background: #eef3fb;
  box-shadow: none;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: clip;
  white-space: nowrap;
}

.front-config-card .front-line-choice.is-selected .front-line-badge {
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.92);
}

.front-config-card .front-line-choice.is-full .front-line-badge {
  color: #fff;
  background: #ef4444;
}

.front-config-card .front-line-number {
  max-width: 100%;
  color: inherit;
  line-height: 1.2;
}

.front-config-card .front-template-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}

.front-config-card .template-choice {
  min-height: 92px;
  border-color: rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  padding: 14px 48px 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.front-config-card .template-choice:hover {
  border-color: rgba(53, 94, 252, 0.36);
  background: #fff;
  box-shadow: 0 12px 24px rgba(53, 94, 252, 0.08);
}

.front-config-card .template-choice.is-selected {
  border-color: rgba(53, 94, 252, 0.72);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(53, 94, 252, 0.07);
}

.front-config-card .template-choice::before {
  top: 13px;
  right: 13px;
  width: 24px;
  height: 24px;
}

.front-config-card .template-choice::after {
  top: 17px;
  right: 21px;
  width: 7px;
  height: 12px;
}

.front-config-card .template-choice-copy {
  gap: 12px;
}

.front-config-card .template-preview-btn {
  min-height: 28px;
  border-radius: 8px;
}

.front-config-card .front-deploy-result {
  grid-column: 3;
  margin: 0;
}

.front-config-card .front-auth-domain-control {
  min-height: 52px;
  border-color: rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.front-config-card .front-auth-domain-control:focus-within {
  border-color: rgba(53, 94, 252, 0.62);
  box-shadow: 0 0 0 4px rgba(53, 94, 252, 0.08);
}

.front-config-card .front-auth-domain-control.is-alert {
  border-color: rgba(239, 68, 68, 0.72);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
}

.front-config-card .front-auth-domain-control.is-alert input::placeholder {
  color: #ef4444;
  opacity: 1;
}

.front-config-card .front-auth-domain-control.is-shaking {
  animation: frontShakeX 0.42s ease;
}

@keyframes frontShakeX {
  0%,
  100% {
    transform: translateX(0);
  }
  18% {
    transform: translateX(-8px);
  }
  36% {
    transform: translateX(7px);
  }
  54% {
    transform: translateX(-5px);
  }
  72% {
    transform: translateX(4px);
  }
}

.front-config-card .front-auth-domain-lock {
  min-height: 52px;
  background: #f4f7ff;
}

.front-config-card .front-auth-domain-control input {
  font-size: 16px;
}

.front-config-card .front-purchase-price {
  display: grid;
  gap: 2px;
  min-width: 128px;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: #f8fafc;
}

.front-config-card .front-purchase-price strong {
  color: #2450e6;
  font-size: 24px;
}

.front-config-card .front-purchase-btn {
  width: 100%;
  max-width: 330px;
  min-height: 52px;
  justify-self: end;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(53, 94, 252, 0.24);
}

@media (max-width: 1199.98px) {
  .front-config-card > .front-line-panel,
  .front-config-card > .front-template-panel,
  .front-config-card > .front-auth-domain-panel {
    grid-template-columns: 44px minmax(128px, 172px) minmax(0, 1fr);
  }

  .front-config-card > .front-purchase-panel {
    grid-template-columns: 44px minmax(128px, 172px) minmax(116px, auto) minmax(180px, 0.72fr);
  }

  .front-config-card > .front-line-panel::after,
  .front-config-card > .front-template-panel::after,
  .front-config-card > .front-auth-domain-panel::after {
    left: 44px;
  }
}

@media (max-width: 991.98px) {
  .front-config-card > .front-line-panel,
  .front-config-card > .front-template-panel,
  .front-config-card > .front-auth-domain-panel,
  .front-config-card > .front-purchase-panel {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 18px;
  }

  .front-config-card > .front-line-panel::after,
  .front-config-card > .front-template-panel::after,
  .front-config-card > .front-auth-domain-panel::after {
    left: 38px;
    top: 50px;
    bottom: -18px;
  }

  .front-config-card .front-line-grid,
  .front-config-card .front-template-grid,
  .front-config-card .front-auth-domain-control,
  .front-config-card .front-purchase-price,
  .front-config-card .front-purchase-btn,
  .front-config-card .front-deploy-result {
    grid-column: 2;
  }

  .front-config-card .front-line-grid {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  }

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

  .front-config-card .front-purchase-price {
    width: min(100%, 220px);
  }

  .front-config-card .front-purchase-btn {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 767.98px) {
  .front-config-card {
    border-radius: 10px;
  }

  .front-config-card-head {
    min-height: 52px;
    padding: 0 16px;
  }

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

  .front-config-card .template-choice {
    min-height: 84px;
  }
}

@media (max-width: 575.98px) {
  .front-config-card > .front-line-panel,
  .front-config-card > .front-template-panel,
  .front-config-card > .front-auth-domain-panel,
  .front-config-card > .front-purchase-panel {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 15px 14px;
  }

  .front-config-card > .front-line-panel::before,
  .front-config-card > .front-template-panel::before,
  .front-config-card > .front-auth-domain-panel::before,
  .front-config-card > .front-purchase-panel::before {
    width: 28px;
    height: 28px;
    box-shadow:
      0 0 0 4px rgba(53, 94, 252, 0.055),
      0 8px 16px rgba(53, 94, 252, 0.08);
    font-size: 12px;
  }

  .front-config-card > .front-line-panel::after,
  .front-config-card > .front-template-panel::after,
  .front-config-card > .front-auth-domain-panel::after {
    left: 30px;
  }

  .front-config-card .front-line-head,
  .front-config-card .front-auth-domain-head,
  .front-config-card .front-purchase-summary {
    gap: 10px;
  }

  .front-config-card .front-line-icon,
  .front-config-card .front-auth-domain-icon,
  .front-config-card .front-purchase-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .front-config-card .front-line-grid {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 8px;
  }

  .front-config-card .front-line-choice {
    min-height: 54px;
    padding: 7px 26px 7px 10px;
  }

  .front-config-card .front-purchase-price {
    width: 100%;
  }
}

.front-replenish-page {
  overflow: hidden;
}

.front-replenish-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(360px, 1fr);
  gap: 18px;
  padding: 18px;
}

.front-replenish-form,
.front-replenish-list {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.front-replenish-form {
  border: 1px solid rgba(53, 94, 252, 0.14);
  border-radius: 10px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(244, 248, 255, 0.92), rgba(255, 255, 255, 0.98)),
    #fff;
}

.front-replenish-form label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #1d2737;
  font-size: 13px;
  font-weight: 850;
}

.front-replenish-form select,
.front-replenish-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(135, 149, 174, 0.32);
  border-radius: 8px;
  outline: 0;
  color: #202938;
  background: #fff;
  font-size: 14px;
  font-weight: 650;
}

.front-replenish-form select {
  min-height: 42px;
  padding: 0 12px;
  text-overflow: ellipsis;
}

.front-replenish-form textarea {
  resize: vertical;
  min-height: 132px;
  padding: 12px;
  line-height: 1.55;
}

.front-replenish-form select:focus,
.front-replenish-form textarea:focus {
  border-color: rgba(53, 94, 252, 0.62);
  box-shadow: 0 0 0 4px rgba(53, 94, 252, 0.09);
}

.front-replenish-selected {
  overflow-wrap: anywhere;
  border: 1px solid rgba(135, 149, 174, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.front-replenish-selected.is-empty {
  color: #8a94a6;
  font-weight: 650;
}

.front-replenish-mobile-options {
  display: none;
}

.front-replenish-mobile-select {
  display: none;
}

.front-replenish-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #3567ff, #2850d7);
  box-shadow: 0 12px 28px rgba(53, 94, 252, 0.18);
  font-weight: 850;
}

.front-replenish-submit:disabled {
  opacity: 0.56;
  box-shadow: none;
}

.front-replenish-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.front-replenish-list-head h3 {
  margin: 0;
  color: #182235;
  font-size: 16px;
  font-weight: 850;
}

.front-replenish-list-head span {
  border: 1px solid rgba(53, 94, 252, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  color: #657286;
  background: rgba(244, 247, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.front-replenish-items {
  display: grid;
  gap: 12px;
}

.front-replenish-item {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(135, 149, 174, 0.22);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(32, 41, 56, 0.045);
}

.front-replenish-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.front-replenish-item-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.front-replenish-item-head strong,
.front-replenish-item-head a {
  overflow-wrap: anywhere;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.front-replenish-item-head span {
  color: #718096;
  font-size: 12px;
  font-weight: 650;
}

.front-replenish-item-head em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.front-replenish-item-head em.is-pending {
  color: #9a5b00;
  background: #fff7df;
}

.front-replenish-item-head em.is-approved {
  color: #047857;
  background: #dcfce7;
}

.front-replenish-item-head em.is-rejected {
  color: #be123c;
  background: #ffe4e6;
}

.front-replenish-item dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.front-replenish-item dl div {
  display: grid;
  gap: 3px;
}

.front-replenish-item dt {
  color: #718096;
  font-size: 12px;
  font-weight: 800;
}

.front-replenish-item dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #263244;
  font-size: 13px;
  line-height: 1.55;
}

.replenish-admin-table {
  min-width: 1120px;
}

.replenish-reason-cell {
  display: grid;
  gap: 6px;
  min-width: 220px;
  max-width: 340px;
}

.replenish-reason-cell strong,
.replenish-reason-cell span {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.replenish-reason-cell strong {
  color: #263244;
  font-size: 13px;
  font-weight: 750;
}

.replenish-reason-cell span {
  color: #657286;
  font-size: 12px;
}

.replenish-admin-actions {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.replenish-admin-actions textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid rgba(135, 149, 174, 0.32);
  border-radius: 8px;
  padding: 9px 10px;
  color: #202938;
  background: #fff;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
}

.replenish-admin-actions textarea:focus {
  border-color: rgba(53, 94, 252, 0.62);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(53, 94, 252, 0.09);
}

.replenish-admin-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 575.98px) {
  .front-page-view {
    --front-section-gap: 18px;
  }
}

@media (max-width: 767.98px) {
  .front-replenish-layout {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .front-replenish-form .front-replenish-select-label {
    display: none;
  }

  .front-replenish-mobile-select {
    position: relative;
    display: grid;
    gap: 4px;
    align-content: center;
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(135, 149, 174, 0.32);
    border-radius: 8px;
    padding: 9px 38px 9px 12px;
    color: #202938;
    text-align: left;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(53, 94, 252, 0.06);
  }

  .front-replenish-mobile-select::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: translateY(-70%) rotate(45deg);
  }

  .front-replenish-mobile-select.is-open::after {
    transform: translateY(-20%) rotate(225deg);
  }

  .front-replenish-mobile-select span {
    color: #355efc;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
  }

  .front-replenish-mobile-select span:only-child {
    align-self: center;
    font-size: 14px;
    line-height: 1;
  }

  .front-replenish-mobile-select strong {
    overflow-wrap: anywhere;
    color: #182235;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.3;
  }

  .front-replenish-mobile-options {
    display: none;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid rgba(53, 94, 252, 0.20);
    border-radius: 10px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(32, 41, 56, 0.14);
  }

  .front-replenish-mobile-options.is-open {
    display: grid;
  }

  .front-replenish-mobile-empty,
  .front-replenish-mobile-option {
    width: 100%;
    border: 1px solid rgba(135, 149, 174, 0.24);
    border-radius: 8px;
    padding: 10px 12px;
    text-align: left;
    background: #fff;
  }

  .front-replenish-mobile-empty {
    color: #8a94a6;
    font-size: 13px;
    font-weight: 650;
  }

  .front-replenish-mobile-option {
    display: grid;
    gap: 4px;
    color: #202938;
  }

  .front-replenish-mobile-option span {
    color: #355efc;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
  }

  .front-replenish-mobile-option strong {
    overflow-wrap: anywhere;
    color: #182235;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.3;
  }

  .front-replenish-mobile-option.is-selected {
    border-color: rgba(53, 94, 252, 0.72);
    background: #eef4ff;
    box-shadow: 0 0 0 3px rgba(53, 94, 252, 0.08);
  }

  .front-replenish-item-head {
    display: grid;
  }
}

@media (max-width: 575.98px) {
  .front-loader-preview {
    align-items: center;
    justify-items: center;
    padding:
      calc(max(14px, env(safe-area-inset-top)) + 46px)
      max(10px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .front-loader-shell {
    width: min(
      88vw,
      calc((100dvh - 104px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 0.49)
    );
    border-radius: 38px;
    padding: 12px;
  }

  .front-loader-shell::before {
    top: 12px;
    width: 104px;
    height: 22px;
  }

  .front-loader-screen {
    border-radius: 27px;
  }

  .front-loader-head {
    position: fixed;
    inset:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      auto
      auto;
    z-index: 6;
  }

  .front-loader-close {
    width: 42px;
    height: 42px;
  }
}
