:root {
  color-scheme: dark;
  --page: #071018;
  --sidebar: #0b151e;
  --surface: #101c27;
  --surface-2: #132330;
  --surface-3: #08131d;
  --line: rgba(155, 190, 210, 0.16);
  --line-strong: rgba(155, 190, 210, 0.26);
  --ink: #f4f7f8;
  --muted: #8ea1ae;
  --blue: #58b6e8;
  --green: #34d3a3;
  --amber: #e3ae60;
  --violet: #a58be8;
  --danger: #ef7979;
  --login-bg: #071018;
  --glass: rgba(16, 28, 39, 0.88);
  --glass-line: rgba(155, 190, 210, 0.22);
  --soft-hover: rgba(255, 255, 255, 0.035);
  --soft-control: rgba(255, 255, 255, 0.03);
  --popover: #13212c;
  --dialog: #0f1b25;
  --backdrop: rgba(2, 7, 12, 0.76);
  --mobile-header: rgba(8, 16, 24, 0.92);
  --mobile-dock: rgba(8, 18, 27, 0.9);
  --bar-track: rgba(255, 255, 255, 0.06);
  --deep-shadow: rgba(0, 0, 0, 0.46);
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #edf3f6;
  --sidebar: #f8fafb;
  --surface: #ffffff;
  --surface-2: #f3f7f9;
  --surface-3: #eaf1f5;
  --line: rgba(62, 91, 108, 0.14);
  --line-strong: rgba(62, 91, 108, 0.24);
  --ink: #14212a;
  --muted: #657986;
  --blue: #2479a7;
  --green: #13866d;
  --amber: #a46d25;
  --violet: #7359bd;
  --danger: #c94c56;
  --login-bg: #e8f0f4;
  --glass: rgba(255, 255, 255, 0.86);
  --glass-line: rgba(62, 91, 108, 0.2);
  --soft-hover: rgba(36, 121, 167, 0.065);
  --soft-control: rgba(36, 121, 167, 0.045);
  --popover: #ffffff;
  --dialog: #ffffff;
  --backdrop: rgba(30, 45, 55, 0.42);
  --mobile-header: rgba(248, 250, 251, 0.92);
  --mobile-dock: rgba(251, 253, 254, 0.92);
  --bar-track: rgba(36, 76, 96, 0.1);
  --deep-shadow: rgba(37, 64, 78, 0.18);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 180ms ease, color 180ms ease;
}
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; }
[hidden] { display: none !important; }

.login-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  overflow: hidden;
  padding: clamp(24px, 6vw, 88px);
  background: var(--login-bg);
  box-shadow: inset 0 0 140px color-mix(in srgb, var(--deep-shadow) 82%, transparent);
}
.login-shell::before {
  position: fixed;
  z-index: -1;
  top: 50%;
  right: max(-190px, -10vw);
  width: min(56vw, 680px);
  min-width: 480px;
  aspect-ratio: 1;
  background: url("/assets/icone.png") center / contain no-repeat;
  content: "";
  filter: grayscale(1);
  opacity: 0.045;
  transform: translateY(-50%) rotate(-7deg);
}
.login-shell::after {
  position: fixed;
  z-index: -1;
  inset: 22px;
  border: 1px solid rgba(142, 161, 174, 0.1);
  border-radius: 14px;
  content: "";
  pointer-events: none;
}
.auth-panel, .state-panel {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-width: 0;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: var(--glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 28px 80px var(--deep-shadow);
  padding: 30px;
  backdrop-filter: blur(24px) saturate(125%);
}
.auth-panel > img {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  padding: 6px;
}
.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.auth-panel .eyebrow { margin-top: 22px; }
.auth-panel h1, .state-panel h1 { margin: 6px 0 0; font-size: 26px; line-height: 1.15; }
.state-panel p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-panel form { display: grid; gap: 10px; margin-top: 22px; }
.auth-panel form { min-width: 0; }
.auth-panel label, .filters label, .profile-form label, .reset-dialog label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.auth-panel input,
.filters select,
.profile-form input,
.profile-form select,
.profile-form textarea,
.reset-dialog input {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--surface-3);
  padding: 0 12px;
}
.profile-form textarea { min-height: 88px; padding-block: 10px; resize: vertical; }
.auth-panel input:focus,
.filters select:focus,
.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus,
.reset-dialog input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(88, 182, 232, 0.12);
}
.auth-panel input[readonly] { color: var(--muted); cursor: default; }
.primary-button, .primary-command {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: #2476a4;
  color: white;
  padding: 0 16px;
  font-weight: 850;
}
.primary-button:disabled, .primary-command:disabled { cursor: wait; opacity: 0.62; }
.quiet-button, .quiet-command {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-control);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 750;
}
.form-message { min-height: 18px; margin: 12px 0 0; color: var(--green); font-size: 11px; }
.state-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: rgba(227, 174, 96, 0.12);
  color: var(--amber);
  font-weight: 900;
}

.portal-shell { min-height: 100vh; min-height: 100dvh; }
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 232px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  padding: 18px 14px;
  overflow: hidden;
  transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1), padding 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sidebar-header {
  display: flex;
  min-width: 203px;
  align-items: center;
}
.sidebar-brand, .mobile-brand {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  padding: 5px;
  color: var(--ink);
  text-align: left;
}
.sidebar-brand {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.sidebar-brand img, .mobile-brand img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
  padding: 4px;
}
.sidebar-brand span, .mobile-brand span { min-width: 0; }
.sidebar-brand span,
.nav-item span {
  overflow: hidden;
  opacity: 1;
  white-space: nowrap;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.sidebar-brand strong, .sidebar-brand small,
.mobile-brand strong, .mobile-brand small { display: block; }
.sidebar-brand strong, .mobile-brand strong { font-size: 13px; }
.sidebar-brand small, .mobile-brand small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.sidebar-nav { display: grid; gap: 4px; margin-top: 34px; }
.nav-item {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  padding: 0 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}
.nav-item svg { width: 17px; height: 17px; }
.nav-item:hover { background: var(--soft-hover); color: var(--ink); }
.nav-item.is-active {
  border-color: rgba(88, 182, 232, 0.16);
  background: rgba(88, 182, 232, 0.1);
  color: var(--blue);
}
.sidebar-footer { display: grid; gap: 4px; margin-top: auto; }
.sidebar-logout { margin-top: 0; }
.mobile-header, .mobile-nav { display: none; }
.mobile-header-actions { display: flex; align-items: center; gap: 7px; }
.mobile-cart-button { display: none; }

.theme-icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft-control);
  color: var(--muted);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}
.theme-icon-button:hover {
  border-color: var(--line-strong);
  background: var(--soft-hover);
  color: var(--blue);
}
.theme-icon-button:active { transform: scale(0.94); }
.theme-icon-button svg { width: 18px; height: 18px; }
.login-theme-toggle {
  position: absolute;
  z-index: 2;
  top: 34px;
  right: 34px;
}

.portal-main {
  min-height: 100vh;
  margin-left: 232px;
  padding: 34px clamp(24px, 4vw, 54px) 54px;
  transition: margin-left 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.portal-shell[data-sidebar-collapsed="true"] .sidebar {
  width: 76px;
  padding-right: 10px;
  padding-left: 10px;
}
.portal-shell[data-sidebar-collapsed="true"] .sidebar-header {
  min-width: 55px;
}
.portal-shell[data-sidebar-collapsed="true"] .sidebar-brand {
  width: 44px;
  flex: 0 0 44px;
  justify-content: center;
  padding: 2px;
}
.portal-shell[data-sidebar-collapsed="true"] .sidebar-brand span,
.portal-shell[data-sidebar-collapsed="true"] .nav-item span {
  width: 0;
  opacity: 0;
  visibility: hidden;
}
.portal-shell[data-sidebar-collapsed="true"] .sidebar-nav { margin-top: 24px; }
.portal-shell[data-sidebar-collapsed="true"] .nav-item {
  justify-content: center;
  gap: 0;
  padding-right: 0;
  padding-left: 0;
}
.portal-shell[data-sidebar-collapsed="true"] .nav-item svg {
  width: 19px;
  height: 19px;
}
.portal-shell[data-sidebar-collapsed="true"] .portal-main { margin-left: 76px; }
.portal-view { width: min(100%, 1180px); margin: 0 auto; }
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.page-heading h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.15; }
.page-heading > div > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.home-actions {
  display: grid;
  width: min(100%, 820px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}
.home-action {
  position: relative;
  display: flex;
  min-width: 0;
  aspect-ratio: 1.12;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px 7px;
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.home-action:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.home-action-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
}
.home-action-icon svg { width: 20px; height: 20px; }
.home-action-blue { background: rgba(88, 182, 232, 0.12); color: var(--blue); }
.home-action-green { background: rgba(52, 211, 163, 0.11); color: var(--green); }
.home-action-amber { background: rgba(227, 174, 96, 0.12); color: var(--amber); }
.home-action-violet { background: rgba(165, 139, 232, 0.12); color: var(--violet); }
.home-action-copy { text-align: center; }
.home-action-copy strong { display: block; font-size: 12px; line-height: 1.25; }
.home-action-copy small, .home-action-arrow { display: none; }

.dashboard-controls { display: flex; align-items: end; gap: 8px; }
.filters { display: flex; align-items: end; gap: 8px; }
.filters label { display: grid; gap: 5px; }
.filters select { min-width: 112px; }
.filters label:first-child select { min-width: 150px; }
.icon-command {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-control);
  color: var(--muted);
}
.icon-command:hover { border-color: var(--line-strong); color: var(--ink); }
.icon-command:disabled svg { animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dashboard-menu { position: relative; }
.dashboard-menu summary {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-control);
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.dashboard-menu summary::-webkit-details-marker { display: none; }
.dashboard-menu summary:hover, .dashboard-menu[open] summary { border-color: var(--line-strong); color: var(--ink); }
.dashboard-menu-popover {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--popover);
  box-shadow: 0 18px 48px var(--deep-shadow);
  padding: 5px;
}
.dashboard-menu-popover button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 10px;
  color: var(--ink);
  text-align: left;
}
.dashboard-menu-popover button:hover { background: rgba(239, 121, 121, 0.09); }
.dashboard-menu-popover strong, .dashboard-menu-popover small { display: block; }
.dashboard-menu-popover strong { color: var(--danger); font-size: 11px; }
.dashboard-menu-popover small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.kpi, .panel { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.kpi { min-height: 122px; padding: 17px; }
.kpi span, .kpi small { color: var(--muted); }
.kpi span { font-size: 9px; font-weight: 850; text-transform: uppercase; }
.kpi strong { display: block; margin-top: 12px; font-size: 28px; }
.kpi small { display: block; margin-top: 5px; font-size: 10px; }
.insights-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 10px; margin-top: 10px; }
.panel { padding: 17px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 16px; }
.action-bars, .event-list { display: grid; gap: 10px; margin-top: 20px; }
.bar-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 34px; align-items: center; gap: 10px; font-size: 11px; }
.bar-track { height: 7px; overflow: hidden; border-radius: 4px; background: var(--bar-track); }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--green)); }
.bar-value { color: var(--muted); text-align: right; }
.event-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border-bottom: 1px solid var(--line); padding: 2px 0 10px; }
.event-item:last-child { border-bottom: 0; }
.event-item strong, .event-item small { display: block; }
.event-item strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.event-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.event-count { color: var(--blue); font-size: 13px; font-weight: 850; }
.recent-panel { margin-top: 10px; }
.updated-at { color: var(--muted); font-size: 10px; }
.table-wrap { margin-top: 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.action-tag { display: inline-flex; border-radius: 5px; background: rgba(88, 182, 232, 0.1); color: var(--blue); padding: 4px 7px; font-weight: 800; }
.empty-state { margin-top: 10px; border: 1px dashed var(--line); border-radius: 8px; padding: 30px; text-align: center; }
.empty-state strong, .empty-state span { display: block; }
.empty-state span { margin-top: 5px; color: var(--muted); font-size: 12px; }

.profiles-summary { display: flex; gap: 22px; margin-top: 24px; }
.profiles-summary div { display: flex; align-items: baseline; gap: 6px; }
.profiles-summary strong { font-size: 20px; }
.profiles-summary span { color: var(--muted); font-size: 10px; }
.profiles-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  margin-top: 14px;
}
.profile-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 90px auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}
.profile-list-row:last-child { border-bottom: 0; }
.profile-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
.profile-identity img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}
.profile-identity strong, .profile-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-identity strong { font-size: 12px; }
.profile-identity small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.profile-path { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { display: inline-flex; width: fit-content; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.status-badge::before { width: 7px; height: 7px; border-radius: 50%; background: #64717a; content: ""; }
.status-badge.is-active::before { background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 163, 0.08); }
.profile-row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.row-icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}
.row-icon-button:hover { border-color: var(--line-strong); color: var(--ink); }
.row-icon-danger:hover {
  border-color: rgba(239, 121, 121, 0.35);
  background: rgba(239, 121, 121, 0.08);
  color: var(--danger);
}
.row-icon-button svg { width: 15px; height: 15px; }

.domain-guide {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  margin-top: 24px;
  padding: 16px;
}
.domain-guide-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: rgba(88, 182, 232, 0.11);
  color: var(--blue);
}
.domain-guide strong, .domain-guide p { display: block; margin: 0; }
.domain-guide strong { font-size: 14px; }
.domain-guide p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.domains-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.domain-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 15px;
}
.domain-identity, .dns-setup { min-width: 0; }
.domain-identity strong, .domain-identity small,
.dns-setup strong, .dns-setup small { display: block; }
.domain-identity strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.domain-identity small, .dns-setup small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.domain-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 850;
}
.domain-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 10%, transparent);
  content: "";
}
.domain-status.is-active { color: var(--green); }
.domain-status.is-error { color: var(--danger); }
.domain-error {
  max-width: 520px;
  color: var(--danger) !important;
  line-height: 1.45;
}
.dns-setup { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 15px; }
.dns-setup-heading strong { font-size: 14px; }
.dns-record-grid { display: grid; grid-template-columns: 90px minmax(120px, 0.7fr) minmax(220px, 1.4fr) 90px; gap: 8px; margin-top: 12px; }
.dns-record-grid > div { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--soft-hover); padding: 9px 10px; }
.dns-record-grid small { margin: 0 0 6px; color: var(--blue); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.dns-record-grid code { overflow: hidden; display: block; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dns-copy-value { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 7px; }
.dns-copy-value code { min-width: 0; }
.dns-provider-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.copy-command {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft-control);
  color: var(--muted);
}
.copy-command:hover { border-color: var(--line-strong); color: var(--ink); }
.copy-command svg { width: 14px; height: 14px; }
.domain-actions { display: flex; align-items: center; gap: 6px; }
.domain-verify-command { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; border: 1px solid rgba(88, 182, 232, 0.3); border-radius: 7px; background: rgba(88, 182, 232, 0.08); color: var(--blue); padding: 0 12px; font-size: 10px; font-weight: 900; }
.domain-verify-command:hover { border-color: var(--blue); }
.domain-verify-command svg { width: 14px; height: 14px; }
.domain-actions [data-domain-verify]:disabled svg {
  animation: domain-spin 800ms linear infinite;
}
@keyframes domain-spin { to { transform: rotate(360deg); } }
.field-help { color: var(--muted); font-size: 9px; font-weight: 650; }
.subscription-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  margin-top: 24px; padding: 24px;
}
.subscription-panel h2 { margin: 8px 0 0; font-size: 24px; }
.subscription-panel p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.subscription-status { color: var(--green); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.subscription-price { text-align: right; }
.subscription-price strong { font-size: 24px; }
.subscription-price span { color: var(--muted); font-size: 11px; }
.subscription-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.subscription-details div { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 16px; }
.subscription-details span, .subscription-details strong { display: block; }
.subscription-details span { color: var(--muted); font-size: 9px; }
.subscription-details strong { margin-top: 7px; font-size: 13px; }

dialog {
  color: var(--ink);
}
.profile-dialog, .reset-dialog {
  width: min(calc(100% - 28px), 760px);
  max-height: min(90vh, 840px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--dialog);
  padding: 0;
  box-shadow: 0 30px 90px var(--deep-shadow);
}
.reset-dialog { width: min(calc(100% - 28px), 430px); }
.profile-dialog::backdrop, .reset-dialog::backdrop {
  background: var(--backdrop);
  backdrop-filter: blur(5px);
}
.profile-form, .reset-dialog-card { display: grid; gap: 18px; padding: 24px; }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.dialog-header h2, .reset-dialog h2 { margin: 5px 0 0; font-size: 22px; }
.dialog-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}
.asset-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.photo-field { display: flex; min-width: 0; align-items: center; gap: 14px; }
.photo-field > div:last-child { min-width: 0; }
.photo-field > div > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 10px;
}
.photo-preview {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid rgba(88, 182, 232, 0.55);
  border-radius: 50%;
  background: #fff;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.logo-preview {
  border-width: 1px;
  border-radius: 10px;
}
.logo-preview img {
  object-fit: contain;
  padding: 7px;
}
.upload-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft-control);
  padding: 0 12px;
  color: var(--ink) !important;
  cursor: pointer;
}
.upload-button svg { width: 15px; height: 15px; }
.photo-field small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.profile-form label { display: grid; gap: 6px; }
.profile-form input[type="color"] {
  padding: 5px;
  cursor: pointer;
}
.field-wide { grid-column: 1 / -1; }
.slug-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
}
.slug-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(88, 182, 232, 0.12); }
.slug-field > span { padding-left: 12px; color: var(--muted); font-size: 10px; }
.slug-field input { border: 0; box-shadow: none !important; padding-left: 3px; }
.slug-field input:disabled { color: var(--muted); cursor: not-allowed; }
.status-toggle {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.status-toggle input { width: 18px; min-height: 18px; accent-color: var(--green); }
.status-toggle span strong, .status-toggle span small { display: block; }
.status-toggle span strong { color: var(--ink); font-size: 11px; }
.status-toggle span small { margin-top: 3px; font-size: 9px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.profile-message { margin: 0; }
.reset-dialog-card { gap: 12px; }
.reset-dialog p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.reset-dialog strong { color: var(--ink); }
.delete-profile-path {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}
.reset-dialog .delete-note {
  margin: 0;
  border: 1px solid rgba(227, 174, 96, 0.18);
  border-radius: 8px;
  background: rgba(227, 174, 96, 0.06);
  color: var(--amber);
  padding: 10px 12px;
  font-size: 10px;
}
.reset-message { color: var(--danger); }
.danger-confirm-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: #b3424b;
  color: white;
  padding: 0 14px;
  font-weight: 800;
}
.danger-confirm-button:disabled { cursor: not-allowed; opacity: 0.42; }
code { color: var(--blue); }

.trial-account-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(88, 182, 232, 0.16);
  background: rgba(88, 182, 232, 0.055);
  margin: -10px 0 28px;
  padding: 12px 16px;
}
.trial-account-banner[hidden] { display: none; }
.trial-account-banner > span { display: flex; align-items: center; gap: 9px; }
.trial-account-banner svg { color: var(--blue); }
.trial-account-banner strong { font-size: 11px; }
.trial-account-banner small { color: var(--muted); font-size: 9px; }
.trial-account-banner button, .store-access-note button {
  display: inline-flex; min-height: 34px; align-items: center; gap: 7px; border: 0; border-radius: 7px; background: var(--blue); color: #06131b; padding: 0 12px; font-size: 9px; font-weight: 900;
}
.access-view { min-height: calc(100vh - 120px); place-items: center; }
.access-view:not([hidden]) { display: grid; }
.access-panel { width: min(520px, 100%); text-align: center; }
.access-panel > img { width: 58px; height: 58px; border-radius: 8px; background: white; margin: 0 auto 22px; padding: 6px; }
.access-panel h1 { margin: 8px 0 0; font-size: 34px; }
.access-panel > p:not(.eyebrow, .form-message) { color: var(--muted); line-height: 1.7; }
.access-panel .primary-command { margin: 22px auto 0; }
.access-panel .quiet-command { margin: 12px auto 0; }

.store-access-note { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(227, 174, 96, 0.24); border-radius: 8px; background: rgba(227, 174, 96, 0.06); margin: 20px 0; padding: 13px; }
.store-access-note[hidden] { display: none; }
.store-access-note > svg { color: var(--amber); }
.store-access-note strong, .store-access-note span { display: block; }
.store-access-note strong { font-size: 11px; }
.store-access-note span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.portal-store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 20px; margin-top: 24px; }
.portal-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal-product-card { display: grid; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.portal-product-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.portal-product-card > div { padding: 14px 14px 10px; }
.portal-product-card > div > span { color: var(--blue); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.portal-product-card h3 { margin: 5px 0 0; font-size: 16px; }
.portal-product-card p { min-height: 42px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.portal-product-card footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: auto; padding: 11px 14px; }
.portal-product-card footer > strong { font-size: 14px; }
.product-buy-control { display: flex; align-items: end; gap: 6px; }
.product-buy-control label span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.product-buy-control input { width: 48px; height: 32px; text-align: center; }
.product-buy-control button { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 7px; background: var(--green); color: #061813; }
.product-buy-control button:disabled { cursor: not-allowed; opacity: 0.28; }
.portal-cart { position: sticky; top: 24px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.portal-cart > header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 14px; }
.portal-cart h2 { margin: 3px 0 0; font-size: 15px; }
.portal-cart > header > span { color: var(--muted); font-size: 10px; }
.portal-cart-items { display: grid; max-height: 360px; overflow-y: auto; }
.portal-cart-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 25px; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); padding: 10px 12px; }
.portal-cart-row img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.portal-cart-row strong, .portal-cart-row small, .portal-cart-row span { display: block; }
.portal-cart-row strong { font-size: 12px; }
.portal-cart-row small, .portal-cart-row span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.portal-cart-row > button { display: grid; width: 25px; height: 25px; place-items: center; border: 0; background: transparent; color: var(--danger); }
.portal-cart-empty { display: grid; min-height: 160px; place-items: center; align-content: center; gap: 10px; color: var(--muted); padding: 20px; text-align: center; }
.portal-cart-empty svg { width: 24px; height: 24px; }
.portal-cart-empty span { max-width: 190px; font-size: 11px; line-height: 1.5; }
.portal-cart > footer { border-top: 1px solid var(--line); padding: 14px; }
.portal-cart > footer > span { display: flex; justify-content: space-between; font-size: 11px; }
.portal-cart > footer > span strong { font-size: 14px; }
.portal-cart > footer button { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 7px; background: var(--green); margin-top: 12px; color: #061813; font-size: 11px; font-weight: 900; }
.portal-cart > footer button:disabled { opacity: 0.3; }
.store-checkout-form { width: min(670px, calc(100vw - 30px)); }
.store-checkout-form .form-grid { margin-top: 18px; }
.store-checkout-form textarea, .order-message-form textarea { width: 100%; resize: vertical; }
.checkout-order-summary { display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: 7px; background: var(--soft-hover); margin-top: 18px; padding: 12px; font-size: 12px; }

.orders-list { display: grid; gap: 8px; margin-top: 24px; }
.order-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto 18px; align-items: center; gap: 14px; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 13px; text-align: left; }
.order-row:hover { border-color: var(--line-strong); background: var(--soft-hover); }
.order-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 7px; background: rgba(88, 182, 232, 0.08); color: var(--blue); }
.order-row > span:nth-child(2) small, .order-row > span:nth-child(2) strong, .order-row > span:nth-child(2) em { display: block; }
.order-row > span:nth-child(2) small { color: var(--blue); font-size: 10px; font-weight: 900; }
.order-row > span:nth-child(2) strong { overflow: hidden; margin-top: 3px; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.order-row > span:nth-child(2) em { margin-top: 3px; color: var(--muted); font-size: 11px; font-style: normal; }
.order-status { border-radius: 5px; background: rgba(88, 182, 232, 0.08); color: var(--blue); padding: 6px 8px; font-size: 10px; font-weight: 900; }
.status-entregue, .status-pago { background: rgba(52, 211, 163, 0.09); color: var(--green); }
.order-row > b { font-size: 12px; }
.order-dialog-card { width: min(760px, calc(100vw - 30px)); max-width: 100%; min-width: 0; max-height: 90vh; overflow-y: auto; }
.order-dialog-card > *, .order-message-form, .order-message-form label { min-width: 0; }
.order-dialog-card .dialog-header > div { min-width: 0; }
.order-message-form textarea { display: block; max-width: 100%; min-width: 0; }
.order-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 18px 0; }
.order-progress span { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--muted); text-align: center; }
.order-progress span::after { position: absolute; z-index: -1; top: 8px; left: 50%; width: 100%; height: 1px; background: var(--line-strong); content: ""; }
.order-progress span:last-child::after { display: none; }
.order-progress svg { width: 17px; height: 17px; fill: var(--surface); background: var(--surface); }
.order-progress small { font-size: 10px; line-height: 1.3; }
.order-progress .is-complete { color: var(--green); }
.order-progress .is-complete::after { background: var(--green); }
.order-detail-items { border: 1px solid var(--line); border-radius: 7px; }
.order-detail-items > div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 11px 12px; font-size: 12px; }
.order-detail-items > div:last-child { border-bottom: 0; }
.order-total { background: var(--soft-hover); font-size: 11px !important; }
.shipping-box { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 7px; margin-top: 12px; padding: 12px; }
.shipping-box > svg { color: var(--blue); }
.shipping-box strong, .shipping-box span { display: block; }
.shipping-box strong { font-size: 12px; }
.shipping-box span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.order-messages { margin-top: 20px; }
.order-messages h3 { font-size: 14px; }
.order-messages > span { color: var(--muted); font-size: 11px; }
.order-messages article { max-width: 80%; border-radius: 7px; background: var(--soft-hover); margin-top: 8px; padding: 9px 11px; }
.order-messages .message-cliente { margin-left: auto; background: rgba(88, 182, 232, 0.08); }
.order-messages article strong, .order-messages article small { font-size: 10px; }
.order-messages article p { margin: 4px 0; font-size: 11px; line-height: 1.5; }
.order-messages article small { color: var(--muted); }
.order-message-form { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.order-message-form .primary-button { margin-left: auto; }
.subscription-actions { display: flex; align-items: center; gap: 9px; margin-top: 18px; }
.subscription-actions .primary-command, .subscription-actions .quiet-command { margin: 0; }
.subscription-cancel { color: var(--danger); }
.form-divider { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.form-divider span { font-size: 10px; font-weight: 900; }
.form-divider small { color: var(--muted); font-size: 10px; }
.billing-form-grid { margin-top: 10px !important; }
[data-billing-field].has-error input { border-color: var(--danger); box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 12%, transparent); }
.inline-field-error { display: block; min-height: 0; margin-top: 5px; color: var(--danger) !important; font-size: 10px !important; font-weight: 800; line-height: 1.45; }
.subscription-dialog { width: min(calc(100% - 28px), 760px); }
.subscription-form, .store-checkout-form, .confirmation-card { width: 100%; }
.confirmation-dialog { width: min(calc(100% - 28px), 560px); }
.subscription-plan-options { display: grid; gap: 8px; margin-top: 18px; }
.subscription-plan-option { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 12px; cursor: pointer; }
.subscription-plan-option:has(input:checked) { border-color: var(--blue); background: rgba(88, 182, 232, 0.07); }
.subscription-plan-option input[type="radio"] {
  appearance: none;
  display: block;
  width: 16px;
  height: 16px;
  min-height: 16px !important;
  max-height: 16px;
  min-width: 16px;
  max-width: 16px;
  align-self: center;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.subscription-plan-option input[type="radio"]:checked { border: 4px solid var(--blue); }
.subscription-plan-option input[type="radio"]:focus-visible { outline: 2px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 3px; }
.subscription-plan-option span strong, .subscription-plan-option span small, .subscription-plan-option > b small { display: block; }
.subscription-plan-option span strong { font-size: 11px; }
.subscription-plan-option span small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.subscription-plan-option > b { font-size: 12px; text-align: right; }
.subscription-plan-option > b small { color: var(--muted); font-size: 7px; font-weight: 650; }
.embedded-card-payment { display: grid; grid-template-columns: minmax(250px, 0.95fr) minmax(0, 1.05fr); align-items: center; gap: 18px; margin-top: 14px; }
.payment-card-scene { width: 100%; aspect-ratio: 1.586 / 1; perspective: 900px; }
.payment-card-preview { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1); }
.payment-card-preview.is-flipped { transform: rotateY(180deg); }
.payment-card-face { position: absolute; display: flex; inset: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 8px; background: #111d28; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22); color: #f5f8fa; padding: 20px; backface-visibility: hidden; }
.payment-card-front { flex-direction: column; justify-content: space-between; }
.payment-card-back { flex-direction: column; justify-content: center; gap: 14px; transform: rotateY(180deg); }
.payment-card-back > div { border-radius: 5px; background: #eef3f5; color: #14212b; padding: 9px 12px; text-align: right; }
.payment-card-back > div small, .payment-card-back > div strong { display: block; }
.payment-card-back > div small { color: #5e6b73; font-size: 7px; text-transform: uppercase; }
.payment-card-back > div strong { margin-top: 3px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; letter-spacing: 2px; }
.payment-card-back > b { color: #80d9ff; font-size: 9px; text-align: right; }
.payment-card-stripe { position: absolute; top: 25px; right: 0; left: 0; height: 34px; background: #020609; }
.payment-card-top, .payment-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.payment-card-top > strong { color: #80d9ff; font-size: 10px; letter-spacing: 0; text-transform: uppercase; }
.payment-card-chip { display: block; width: 38px; height: 28px; border: 1px solid #cfb566; border-radius: 6px; background: #ddc77e; box-shadow: inset 0 0 0 5px rgba(104, 83, 29, 0.1); }
.payment-card-front > b { overflow: hidden; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 17px; font-weight: 650; letter-spacing: 0; white-space: nowrap; }
.payment-card-meta > span { min-width: 0; }
.payment-card-meta > span:first-child { flex: 1; }
.payment-card-front small, .payment-card-meta strong { display: block; }
.payment-card-preview small { color: rgba(245, 248, 250, 0.55); font-size: 7px; text-transform: uppercase; }
.payment-card-meta strong { overflow: hidden; margin-top: 3px; font-size: 9px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.card-fields { gap: 10px; }
.payment-security { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; color: var(--muted); font-size: 8px; }
.payment-security svg { width: 14px; color: var(--green); }

.confirmation-card > label { display: grid; gap: 7px; margin-top: 18px; }
.confirmation-card > label span { font-size: 9px; font-weight: 850; }
.danger-button { min-height: 42px; border: 1px solid color-mix(in srgb, var(--danger) 55%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); padding: 0 16px; font-weight: 850; }

@media (max-width: 980px) {
  .sidebar { width: 204px; }
  .portal-main { margin-left: 204px; padding-inline: 24px; }
  .home-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics-heading { align-items: stretch; flex-direction: column; }
  .dashboard-controls { justify-content: space-between; }
  .filters { flex: 1; }
  .filters label { flex: 1; }
  .filters select { min-width: 0 !important; }
  .portal-store-layout { grid-template-columns: 1fr; }
  .portal-cart { position: static; }
}

@media (max-width: 760px) {
  .sidebar { display: none; }
  .mobile-header {
    position: sticky;
    z-index: 15;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: var(--mobile-header);
    padding: 10px 14px;
    backdrop-filter: blur(18px);
  }
  .mobile-cart-button {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft-control);
    color: var(--ink);
  }
  .mobile-cart-button[hidden] { display: none; }
  .mobile-cart-button span { position: absolute; top: -5px; right: -5px; display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 9px; background: var(--green); color: #061813; padding: 0 4px; font-size: 9px; font-weight: 900; }
  .mobile-cart-button.is-pulsing { animation: cart-pulse 480ms cubic-bezier(0.22, 1, 0.36, 1); }
  .mobile-brand { width: auto; padding: 0; }
  .mobile-brand img { width: 38px; height: 38px; }
  .portal-main {
    min-height: 0;
    margin-left: 0;
    padding: 24px 14px calc(100px + env(safe-area-inset-bottom));
  }
  .portal-shell[data-sidebar-collapsed="true"] .portal-main { margin-left: 0; }
  .mobile-nav {
    position: fixed;
    z-index: 30;
    right: 10px;
    bottom: max(9px, env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    width: auto;
    max-width: 500px;
    min-height: 74px;
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border: 1px solid var(--line-strong);
    border-radius: 27px;
    background: var(--mobile-dock);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.035),
      0 18px 46px var(--deep-shadow);
    padding: 6px 7px;
    backdrop-filter: blur(24px) saturate(135%);
    animation: mobile-nav-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .mobile-nav a, .mobile-nav button {
    display: flex;
    min-width: 0;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 17px;
    background: transparent;
    color: var(--muted);
    padding: 4px;
    font-size: 8px;
    font-weight: 800;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  }
  .mobile-nav a:hover, .mobile-nav button:hover {
    background: rgba(88, 182, 232, 0.07);
    color: var(--ink);
  }
  .mobile-nav a:active, .mobile-nav button:active { transform: scale(0.94); }
  .mobile-nav svg {
    width: 20px;
    height: 20px;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-nav button.is-active {
    background: rgba(88, 182, 232, 0.11);
    color: var(--blue);
    box-shadow: inset 0 0 0 1px rgba(88, 182, 232, 0.08);
  }
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-heading h1 { font-size: 24px; }
  .home-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; gap: 7px; }
  .home-action {
    aspect-ratio: 1.12;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 5px;
  }
  .home-action-icon { width: 38px; height: 38px; }
  .home-action-icon svg { width: 18px; height: 18px; }
  .home-action-copy strong { font-size: 10px; line-height: 1.25; }
  .subscription-actions { align-items: stretch; flex-direction: column; }
  .embedded-card-payment { grid-template-columns: 1fr; }
  .payment-card-scene { width: min(310px, 100%); margin-inline: auto; }
  .dashboard-controls { align-items: end; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters label:first-child { grid-column: 1 / -1; }
  .filters select { width: 100%; min-width: 0; }
  .icon-command { width: 100%; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { min-height: 108px; padding: 14px; }
  .kpi strong { font-size: 24px; }
  .insights-grid { grid-template-columns: 1fr; }
  .profiles-heading .primary-command { width: 100%; }
  .profile-list-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .profile-path { grid-column: 1 / -1; grid-row: 2; }
  .status-badge { display: none; }
  .profile-row-actions { grid-column: 2; grid-row: 1; }
  .domain-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .domain-actions { grid-column: 2; grid-row: 1; }
  .domain-verify-command span { display: none; }
  .domain-verify-command { width: 36px; padding: 0; justify-content: center; }
  .dns-record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subscription-panel { align-items: flex-start; flex-direction: column; padding: 18px; }
  .subscription-price { text-align: left; }
  .subscription-details { grid-template-columns: 1fr; }
  .form-divider { align-items: flex-start; flex-direction: column; gap: 4px; }
  .trial-account-banner { align-items: stretch; flex-direction: column; }
  .trial-account-banner > span { align-items: flex-start; flex-wrap: wrap; }
  .trial-account-banner small { width: 100%; padding-left: 26px; }
  .store-access-note { grid-template-columns: 30px minmax(0, 1fr); }
  .store-access-note button { grid-column: 1 / -1; }
  .portal-products { grid-template-columns: 1fr; }
  .portal-cart { scroll-margin-top: 76px; }
  .order-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; }
  .order-icon { width: 36px; height: 36px; }
  .order-status { grid-column: 2; }
  .order-row > b { grid-column: 3; grid-row: 1; }
  .order-row > svg { grid-column: 3; grid-row: 2; }
  .order-dialog-card { padding: 19px; }
  .order-dialog-card .dialog-header h2 { font-size: 19px; }
  .order-progress { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .order-progress small { max-width: 62px; font-size: 9px; line-height: 1.3; }
  .order-message-form .primary-button { width: 100%; justify-content: center; }
  .profile-form { padding: 19px; }
  .asset-fields { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .slug-field { grid-template-columns: 1fr; }
  .slug-field > span { padding: 9px 12px 0; }
  .slug-field input { padding-left: 12px; }
}

@keyframes mobile-nav-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cart-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); box-shadow: 0 0 0 7px color-mix(in srgb, var(--green) 18%, transparent); }
  100% { transform: scale(1); }
}

@media (max-width: 420px) {
  .login-shell {
    justify-items: center;
    padding: 14px;
  }
  .login-shell::before {
    right: -235px;
    width: 470px;
    min-width: 0;
    opacity: 0.032;
  }
  .login-shell::after {
    inset: 8px;
    border-radius: 10px;
  }
  .auth-panel, .state-panel { padding: 22px; }
  .home-action-icon { width: 40px; height: 40px; }
  .photo-field { align-items: flex-start; }
  .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .dns-record-grid { grid-template-columns: 1fr; }
  .subscription-plan-option { grid-template-columns: 18px minmax(0, 1fr); }
  .subscription-plan-option > b { grid-column: 2; text-align: left; }
}
