:root {
  --ink: #15213b;
  --muted: #69748a;
  --line: #e5e9f2;
  --soft: #f5f7fb;
  --white: #fff;
  --primary: #5b5ce2;
  --primary-dark: #4445c7;
  --navy: #101a33;
  --success: #13a673;
  --danger: #e2495b;
  --warning: #e69919;
  --info: #3478f6;
  --shadow: 0 18px 55px rgba(31, 39, 76, 0.09);
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--soft);
  font-size: 14px;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.brand,
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(91, 92, 226, 0.28);
}
.brand span:last-child,
.auth-brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand strong,
.auth-brand strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}
.brand small,
.auth-brand small {
  font-size: 10px;
  color: #8892a8;
  margin-top: 4px;
  letter-spacing: 0.03em;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 700;
  transition: 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 22px rgba(91, 92, 226, 0.24);
}
.btn-primary:hover {
  background: var(--primary-dark);
  filter: brightness(0.92);
}
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-soft {
  background: #efefff;
  color: var(--primary-dark);
}
.btn-danger {
  background: #fff0f2;
  color: var(--danger);
  border-color: #ffd9de;
}
.btn-success {
  background: #eafaf5;
  color: #087b55;
  border-color: #c9f1e3;
}
.btn-sm {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 12px;
}
.btn-block {
  width: 100%;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  color: #58647a;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(91, 92, 226, 0.11);
}
.muted {
  color: var(--muted);
}
.text-success {
  color: var(--success);
}
.text-danger {
  color: var(--danger);
}
.text-warning {
  color: var(--warning);
}
.text-right {
  text-align: right;
}
.alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
}
.alert button {
  border: 0;
  background: none;
  color: inherit;
  font-size: 19px;
  line-height: 1;
}
.alert-success {
  color: #087653;
  background: #ebfaf5;
  border-color: #c4eedf;
}
.alert-error {
  color: #a9283b;
  background: #fff0f2;
  border-color: #ffd2d9;
}
.alert-info {
  color: #2459ad;
  background: #eef5ff;
  border-color: #cfdef9;
}
.alert-warning {
  color: #81530d;
  background: #fff8e8;
  border-color: #f5dfad;
}
/* Public landing */
.public-body {
  background: #fff;
}
.public-header {
  height: 78px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 233, 242, 0.8);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.public-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 650;
}
.public-nav > a:not(.btn) {
  color: #536078;
}
.public-nav > a:not(.btn):hover {
  color: var(--primary);
}
.nav-toggle {
  display: none;
  border: 0;
  background: #f0f2f7;
  border-radius: 9px;
  width: 38px;
  height: 38px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 84px;
  background: linear-gradient(180deg, #fafaff, #fff);
}
.hero:before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  right: -260px;
  top: -280px;
  background: radial-gradient(circle, #dedefe 0, rgba(222, 222, 254, 0) 68%);
}
.hero:after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -250px;
  bottom: -310px;
  border-radius: 50%;
  background: #f0efff;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 80px;
}
.hero h1 {
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 24px 0;
  color: #111b34;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.hero-copy > p {
  font-size: 17px;
  line-height: 1.75;
  max-width: 650px;
  color: #637087;
  margin: 0 0 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  color: #657087;
  font-size: 12px;
}
.proof-avatars {
  display: flex;
}
.proof-avatars span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef0ff;
  color: #4b4ccf;
  border: 2px solid #fff;
  margin-left: -7px;
  font-weight: 800;
}
.proof-avatars span:first-child {
  margin-left: 0;
}
.hero-panel {
  position: relative;
  border: 1px solid #e1e3fb;
  border-radius: 26px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 35px 90px rgba(54, 56, 134, 0.17);
  backdrop-filter: blur(8px);
}
.hero-panel:before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px dashed rgba(91, 92, 226, 0.25);
  border-radius: 33px;
  z-index: -1;
}
.hero-window {
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(34, 42, 82, 0.08);
}
.window-bar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
}
.window-bar i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffbf52;
}
.window-bar i:first-child {
  background: #ff6b71;
}
.window-bar i:last-child {
  background: #61cc82;
}
.window-content {
  display: grid;
  grid-template-columns: 95px 1fr;
  min-height: 340px;
}
.mock-sidebar {
  background: #151e39;
  padding: 22px 13px;
}
.mock-logo {
  height: 28px;
  width: 28px;
  border-radius: 9px;
  background: linear-gradient(145deg, #7778ff, #4b4ccf);
  margin-bottom: 28px;
}
.mock-line {
  height: 7px;
  border-radius: 5px;
  background: #303b59;
  margin-bottom: 15px;
}
.mock-line.active {
  height: 27px;
  background: #5b5ce2;
  margin-inline: -5px;
}
.mock-main {
  padding: 24px;
}
.mock-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}
.mock-title {
  width: 38%;
  height: 13px;
  border-radius: 6px;
  background: #19233d;
}
.mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #e7e8ff;
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mock-stat {
  height: 70px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
}
.mock-stat:before,
.mock-stat:after {
  content: "";
  display: block;
  border-radius: 5px;
  background: #e9ebf2;
}
.mock-stat:before {
  height: 6px;
  width: 65%;
  margin-bottom: 12px;
}
.mock-stat:after {
  height: 15px;
  width: 42%;
  background: #5b5ce2;
}
.mock-chart {
  height: 116px;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-top: 12px;
  padding: 16px;
  display: flex;
  align-items: end;
  gap: 8px;
}
.mock-chart i {
  flex: 1;
  background: linear-gradient(#6d6eea, #dadafb);
  border-radius: 5px 5px 2px 2px;
}
.mock-table {
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-top: 12px;
  padding: 10px;
}
.mock-row {
  height: 9px;
  margin: 8px;
  border-radius: 5px;
  background: #eef0f5;
}
.stats-strip {
  border-block: 1px solid var(--line);
  background: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-proof {
  padding: 27px 30px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-proof:last-child {
  border: 0;
}
.stat-proof strong {
  display: block;
  font-size: 25px;
  letter-spacing: -0.03em;
}
.stat-proof span {
  font-size: 12px;
  color: var(--muted);
}
.section {
  padding: 90px 0;
}
.section-soft {
  background: #f7f8fc;
}
.section-head {
  max-width: 690px;
  margin-bottom: 44px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 15px 0 13px;
}
.section-head p {
  color: var(--muted);
  font-size: 15px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  transition: 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d7d8f8;
}
.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eeeeff;
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
}
.feature-card h3 {
  font-size: 18px;
  margin: 22px 0 8px;
}
.feature-card p {
  color: var(--muted);
  margin: 0;
}
.product-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.landing-product {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  transition: 0.2s;
}
.landing-product:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.landing-product-img {
  aspect-ratio: 1.55;
  background: linear-gradient(145deg, #f0f1ff, #fafaff);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.landing-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-placeholder {
  font-size: 29px;
  color: #6a6be4;
  font-weight: 900;
}
.landing-product-body {
  padding: 18px;
}
.landing-product h3 {
  font-size: 15px;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.landing-product p {
  font-size: 12px;
  color: var(--muted);
  height: 38px;
  overflow: hidden;
  margin: 0 0 14px;
}
.cost-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.cost-badge {
  font-weight: 800;
  color: var(--primary);
  background: #f0f0ff;
  padding: 5px 9px;
  border-radius: 8px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  counter-reset: steps;
}
.how-step {
  position: relative;
  counter-increment: steps;
}
.how-step:before {
  content: "0" counter(steps);
  font-size: 44px;
  font-weight: 900;
  color: #e2e3fa;
  letter-spacing: -0.05em;
}
.how-step:not(:last-child):after {
  content: "";
  position: absolute;
  top: 29px;
  right: -35px;
  width: 26px;
  border-top: 1px dashed #bfc3d5;
}
.how-step h3 {
  font-size: 18px;
  margin: 4px 0 8px;
}
.how-step p {
  color: var(--muted);
  margin: 0;
}
.cta-box {
  background: linear-gradient(135deg, #151e3b, #252d5e);
  border-radius: 26px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-box:after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(110, 111, 235, 0.22);
  right: -90px;
  top: -170px;
}
.cta-box h2 {
  font-size: 34px;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}
.cta-box p {
  color: #b8c0d8;
  margin: 0;
}
.cta-box .btn {
  position: relative;
  z-index: 1;
  flex: none;
}
.public-footer {
  padding: 60px 0 22px;
  background: #0e162b;
  color: #b7bfd2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
}
.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-grid p {
  max-width: 420px;
  font-size: 13px;
}
.footer-grid h4 {
  color: #fff;
  margin: 0 0 8px;
}
.footer-grid a:hover {
  color: #fff;
}
.footer-brand strong {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #242e47;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.empty-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 40px;
}
.error-code {
  font-size: 80px;
  font-weight: 900;
  color: #dedffd;
}
.empty-page h1 {
  margin: 0;
}
.empty-page p {
  color: var(--muted);
}
/* Auth + installer */
.auth-body,
.install-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, #eeeeff 0, transparent 33%),
    radial-gradient(circle at 90% 90%, #e9f4ff 0, transparent 30%), #f7f8fc;
  display: grid;
  place-items: center;
  padding: 32px;
}
.auth-shell,
.install-shell {
  width: min(440px, 100%);
}
.auth-shell.auth-shell-wide {
  width: min(760px, 100%);
}
.install-shell {
  width: min(650px, 100%);
}
.auth-brand {
  margin: 0 auto 24px;
  display: flex;
  justify-content: center;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: 27px;
  letter-spacing: -0.035em;
  margin: 10px 0 5px;
}
.auth-card > .muted {
  margin: 0 0 24px;
}
.auth-switch {
  text-align: center;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-switch a {
  color: var(--primary);
  font-weight: 700;
}
.auth-foot {
  text-align: center;
  color: #8d96a8;
  font-size: 11px;
  margin: 18px;
}
.install-card {
  padding: 38px;
}
.form-grid {
  display: grid;
  gap: 17px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
label {
  display: block;
  color: #3a465c;
  font-size: 12px;
  font-weight: 700;
}
label input,
label select,
label textarea,
.input {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #dce1eb;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  transition: 0.2s;
}
label input:focus,
label select:focus,
label textarea:focus,
.input:focus {
  border-color: #8d8eec;
  box-shadow: 0 0 0 3px rgba(91, 92, 226, 0.1);
}
label textarea {
  resize: vertical;
  min-height: 90px;
}
label small {
  display: block;
  color: #9099aa;
  font-weight: 500;
  margin-top: 5px;
}
.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.field-row a {
  font-size: 11px;
  color: var(--primary);
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 46px;
}
.password-toggle {
  position: absolute;
  right: 7px;
  top: 31px;
  border: 0;
  background: #f0f2f7;
  border-radius: 7px;
  width: 32px;
  height: 29px;
  color: #6d778a;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #98a0af;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 6px 0;
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.auth-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  width: 100%;
  margin: 3px 0;
}
/* Dashboard shell */
.dashboard-body {
  background: #f4f6fa;
  overflow-x: hidden;
}
.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: #111a31;
  color: #bdc5d8;
  padding: 21px 15px;
  display: flex;
  flex-direction: column;
  z-index: 50;
}
.sidebar-brand {
  padding: 0 10px 22px;
  border-bottom: 1px solid #263048;
  color: #fff;
}
.sidebar-brand small {
  color: #7e8ba6;
}
.side-nav {
  padding-top: 17px;
  overflow-y: auto;
}
.side-nav::-webkit-scrollbar {
  width: 0;
}
.nav-label {
  display: block;
  color: #65728e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 13px 7px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 3px 0;
  font-size: 12px;
  font-weight: 650;
  transition: 0.18s;
}
.side-nav a i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #202a44;
  color: #9da8c1;
  font-style: normal;
  font-size: 13px;
}
.side-nav a:hover {
  color: #fff;
  background: #19243e;
}
.side-nav a.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 9px 22px rgba(68, 69, 199, 0.25);
}
.side-nav a.active i {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}
.sidebar-note {
  margin-top: auto;
  background: #19243d;
  border: 1px solid #293653;
  border-radius: 13px;
  padding: 13px;
}
.sidebar-note span,
.sidebar-note small {
  display: block;
  font-size: 9px;
  color: #7e8ba6;
}
.sidebar-note strong {
  display: block;
  font-size: 12px;
  color: #fff;
  margin: 4px 0;
}
.sidebar-support-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #cfd4ff;
  font-size: 10px;
  font-weight: 800;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #2b3857;
}
.sidebar-support-link:hover {
  color: #fff;
}
.main-area {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.topbar-context {
  display: flex;
  flex-direction: column;
}
.topbar-context small {
  font-size: 9px;
  color: #8c95a7;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.topbar-context strong {
  font-size: 14px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.credit-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f0ff;
  color: #5152c8;
  padding: 7px 10px 7px 13px;
  border-radius: 10px;
}
.credit-pill span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}
.credit-pill strong {
  background: #fff;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 12px;
}
.user-menu {
  position: relative;
}
.user-menu > button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  padding: 0;
}
.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #171f39;
  color: #fff;
  font-weight: 800;
}
.user-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.3;
}
.user-copy strong {
  font-size: 12px;
}
.user-copy small {
  font-size: 9px;
  color: #8993a5;
}
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 7px;
  z-index: 30;
}
.user-dropdown.show {
  display: block;
}
.user-dropdown a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 11px;
}
.user-dropdown a:hover {
  background: var(--soft);
}
.danger-link {
  color: var(--danger) !important;
}
.page-content {
  padding: 28px 30px 55px;
  max-width: 1600px;
  margin-inline: auto;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-head h1 {
  font-size: 26px;
  letter-spacing: -0.035em;
  margin: 0;
}
.page-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.page-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 16px rgba(31, 39, 76, 0.025);
}
.card-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.card-head h2,
.card-head h3 {
  font-size: 14px;
  margin: 0;
}
.card-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.card-body {
  padding: 20px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.metric-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.metric-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eeeeff;
  color: #5758d2;
  font-size: 18px;
  font-weight: 800;
}
.metric-icon.green {
  background: #eafaf5;
  color: #0a9367;
}
.metric-icon.orange {
  background: #fff5e4;
  color: #ce8210;
}
.metric-icon.blue {
  background: #eaf3ff;
  color: #3478f6;
}
.metric-copy span {
  display: block;
  font-size: 9px;
  color: #8b94a6;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}
.metric-copy strong {
  display: block;
  font-size: 21px;
  letter-spacing: -0.03em;
  margin-top: 3px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: 18px;
  margin-bottom: 20px;
}
.mini-chart {
  height: 225px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 22px;
}
.bar-wrap {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.bar {
  width: min(28px, 75%);
  min-height: 3px;
  background: linear-gradient(180deg, #7b7cef, #5455d5);
  border-radius: 6px 6px 2px 2px;
  position: relative;
}
.bar:hover:after {
  content: attr(data-value);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: #17203a;
  color: #fff;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 9px;
}
.bar-wrap small {
  font-size: 8px;
  color: #98a0ae;
  white-space: nowrap;
}
.activity-list {
  display: grid;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.activity-item:last-child {
  border: 0;
}
.activity-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5b5ce2;
  box-shadow: 0 0 0 5px #efefff;
}
.activity-copy {
  min-width: 0;
  flex: 1;
}
.activity-copy strong,
.activity-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-copy strong {
  font-size: 11px;
}
.activity-copy span {
  font-size: 9px;
  color: var(--muted);
}
.activity-item time {
  font-size: 9px;
  color: #929aaa;
}
.table-card {
  overflow: hidden;
}
.table-scroll {
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.data-table th {
  background: #fafbfc;
  color: #7f899d;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 13px 15px;
  border-bottom: 1px solid #edf0f5;
  font-size: 11px;
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fcfcff;
}
.cell-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cell-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f0f0ff;
  color: #5657d1;
  display: grid;
  place-items: center;
  font-weight: 900;
  overflow: hidden;
  flex: none;
}
.cell-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cell-title div {
  min-width: 0;
}
.cell-title strong,
.cell-title small {
  display: block;
}
.cell-title small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.license-code {
  font:
    600 10px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: #3b4660;
  background: #f4f6fa;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid #e7eaf0;
}
.copy-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  padding: 3px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 20px;
  text-transform: capitalize;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-active,
.status-completed,
.status-processed,
.status-published {
  color: #09845d;
  background: #e9f9f3;
}
.status-suspended,
.status-pending,
.status-review,
.status-partially_refunded,
.status-processing {
  color: #ae7010;
  background: #fff5e3;
}
.status-revoked,
.status-failed,
.status-rejected,
.status-disputed,
.status-inactive {
  color: #c8374d;
  background: #ffedf0;
}
.status-refunded,
.status-ignored {
  color: #5f687b;
  background: #eef1f5;
}
.table-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.table-actions form {
  display: inline-flex;
}
.empty-state {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
}
.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 4px;
}
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  margin-bottom: 17px;
}
.filter-bar label {
  min-width: 150px;
  flex: 1;
}
.filter-bar label input,
.filter-bar label select {
  margin-top: 0;
  min-height: 38px;
  padding: 8px 10px;
}
.filter-bar .btn {
  min-height: 38px;
}
.pagination {
  display: flex;
  gap: 5px;
  padding: 17px;
  justify-content: center;
}
.page-link {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: #fff;
}
.page-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.key-reveal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #161f3a, #293363);
  color: #fff;
  border-radius: 15px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.key-reveal small {
  display: block;
  color: #aeb7d1;
  font-size: 9px;
}
.key-reveal code {
  display: block;
  font-size: 14px;
  margin-top: 4px;
  word-break: break-all;
}
.key-reveal .btn {
  flex: none;
}
.notice-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #dfe0fb;
  background: #f6f6ff;
  border-radius: 12px;
  color: #4e50bd;
  font-size: 11px;
}
.notice-strip strong {
  display: block;
}
.notice-strip p {
  margin: 2px 0 0;
}
.review-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.review-detail-grid > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafbfc;
}
.review-detail-grid span,
.review-detail-grid strong {
  display: block;
}
.review-detail-grid span {
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 3px;
}
.review-detail-grid strong {
  overflow-wrap: anywhere;
  font-size: 11px;
}
.review-detail-wide {
  grid-column: 1 / -1;
}
.approval-state-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px;
  margin-bottom: 18px;
  border-color: #dfe0fb;
  background: linear-gradient(135deg, #fff, #f6f6ff);
}
.approval-state-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  color: var(--primary);
  background: #e9e9ff;
  font-size: 25px;
  font-weight: 900;
}
.approval-state-card h2 {
  margin: 8px 0 4px;
}
.approval-state-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}
.alert-stack {
  display: grid;
  gap: 10px;
}
.system-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 12px;
  background: #fff;
}
.system-alert-critical {
  border-left-color: var(--danger);
  background: #fff9fa;
}
.system-alert-warning {
  border-left-color: var(--warning);
  background: #fffdf8;
}
.system-alert-info {
  border-left-color: var(--info);
}
.system-alert span,
.system-alert strong,
.system-alert small {
  display: block;
}
.system-alert span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.system-alert p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 11px;
}
.compact-catalogue {
  display: grid;
  gap: 10px;
}
.compact-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(31, 39, 76, 0.04);
}
.compact-product-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.compact-product-icon,
.product-initials {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #efefff;
  color: #5657d1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.compact-product-copy {
  min-width: 0;
}
.compact-product-copy h3 {
  margin: 0 0 3px;
  overflow: hidden;
  color: #1b2740;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact-product-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #7b8598;
  font-size: 10px;
}
.compact-product-meta i {
  color: #c0c5d0;
  font-style: normal;
}
.compact-product-actions {
  display: flex;
  align-items: center;
  flex: none;
  gap: 8px;
}
.landing-catalogue {
  max-width: 920px;
  margin-inline: auto;
}
.product-manager-table .product-initials,
.release-manager-table .product-initials {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.modal-compact {
  width: min(500px, 100%);
}
.product-admin-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.admin-product-card,
.catalog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.admin-product-image,
.catalog-image {
  aspect-ratio: 1.75;
  background: linear-gradient(145deg, #f1f1ff, #fafaff);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.admin-product-image img,
.catalog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-letter {
  font-size: 32px;
  font-weight: 900;
  color: #6566db;
}
.admin-product-image .status {
  position: absolute;
  top: 10px;
  right: 10px;
}
.admin-product-body,
.catalog-body {
  padding: 16px;
}
.admin-product-body h3,
.catalog-body h3 {
  font-size: 14px;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-product-body p,
.catalog-body p {
  height: 36px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  margin: 0 0 13px;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-block: 1px solid var(--line);
  font-size: 10px;
}
.product-meta strong {
  display: block;
  font-size: 12px;
}
.product-meta span {
  color: var(--muted);
}
.product-card-actions {
  display: flex;
  gap: 7px;
  padding-top: 12px;
}
.product-card-actions .btn {
  flex: 1;
}
.catalog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.credit-cost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5051c7;
  background: #efefff;
  border-radius: 8px;
  padding: 5px 8px;
  font-weight: 800;
  font-size: 10px;
}
.catalog-generate {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.catalog-generate form {
  display: grid;
  gap: 8px;
}
.catalog-generate input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
  font-size: 10px;
}
.catalog-generate .btn {
  width: 100%;
  min-height: 38px;
}
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}
.settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}
.settings-nav a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
}
.settings-nav a:hover {
  border-color: #aaaaf0;
  color: var(--primary);
}
.form-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-child {
  border: 0;
}
.form-section-head {
  margin-bottom: 16px;
}
.form-section-head h3 {
  font-size: 14px;
  margin: 0;
}
.form-section-head p {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 18px 20px;
  background: #fafbfc;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
}
.wallet-page-head .eyebrow,
.wallet-buy-head .eyebrow,
.wallet-history-head .eyebrow {
  font-size: 9px;
}
.wallet-security-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #087e5a;
  background: #eaf9f3;
  border: 1px solid #d4f1e6;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 800;
}
.wallet-security-pill i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
}
.wallet-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}
.wallet-stat-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px;
  box-shadow: 0 5px 18px rgba(31, 39, 76, 0.035);
}
.wallet-stat-card > div {
  min-width: 0;
}
.wallet-stat-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  color: #5557d7;
  background: #eeeeff;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 900;
}
.wallet-stat-icon-green {
  color: #05845d;
  background: #e7f8f1;
}
.wallet-stat-icon-orange {
  color: #b76d00;
  background: #fff3df;
}
.wallet-stat-icon-blue {
  color: #2b6ee6;
  background: #eaf3ff;
}
.wallet-stat-card small,
.wallet-stat-card strong,
.wallet-stat-card p {
  display: block;
}
.wallet-stat-card small {
  color: #7d879a;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wallet-stat-card strong {
  color: #17213a;
  font-size: 21px;
  line-height: 1.1;
  margin-top: 3px;
}
.wallet-stat-card p {
  color: #9aa2b1;
  font-size: 8px;
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wallet-main-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(480px, 1.18fr);
  gap: 18px;
  margin-bottom: 18px;
}
.wallet-balance-card {
  min-height: 360px;
  color: #fff;
  background:
    radial-gradient(circle at 94% 6%, rgba(132, 135, 255, 0.42) 0, rgba(132, 135, 255, 0.14) 28%, transparent 29%),
    linear-gradient(145deg, #131d38 0%, #222d59 57%, #333d7c 100%);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 42px rgba(25, 35, 78, 0.19);
}
.wallet-balance-card:after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  left: -100px;
  bottom: -125px;
  border-radius: 50%;
  border: 35px solid rgba(255, 255, 255, 0.035);
}
.wallet-balance-head,
.wallet-balance-footer {
  position: relative;
  z-index: 1;
}
.wallet-balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wallet-balance-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 20px;
  font-weight: 900;
}
.wallet-live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  color: #cdd4ea;
  background: rgba(12, 20, 43, 0.3);
  padding: 6px 9px;
  border-radius: 999px;
}
.wallet-live-status i {
  width: 6px;
  height: 6px;
  background: #44dfa8;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(68, 223, 168, 0.12);
}
.wallet-balance-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
}
.wallet-balance-copy > span {
  color: #aeb9d8;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.wallet-balance-copy > strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 48px;
  line-height: 1;
  margin: 11px 0 13px;
  letter-spacing: -0.045em;
}
.wallet-balance-copy > strong small {
  color: #d2d8e9;
  font-size: 12px;
  letter-spacing: 0;
}
.wallet-balance-copy p {
  color: #acb7d4;
  font-size: 10px;
  max-width: 330px;
  margin: 0;
}
.wallet-balance-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  padding-top: 16px;
}
.wallet-balance-footer div span,
.wallet-balance-footer div strong {
  display: block;
}
.wallet-balance-footer div span {
  color: #8f9ab9;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.wallet-balance-footer div strong {
  font-size: 10px;
  margin-top: 3px;
}
.wallet-balance-footer a {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
}
.wallet-balance-footer a:hover {
  background: rgba(255, 255, 255, 0.13);
}
.wallet-buy-card {
  overflow: hidden;
}
.wallet-buy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 22px 17px;
  border-bottom: 1px solid var(--line);
}
.wallet-buy-head h2,
.wallet-history-head h2 {
  font-size: 17px;
  margin: 5px 0 2px;
}
.wallet-buy-head p,
.wallet-history-head p {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}
.wallet-currency-switch {
  flex: none;
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: #f1f3f7;
  border: 1px solid #e6e9f0;
  border-radius: 10px;
}
.wallet-currency-switch button {
  min-width: 57px;
  height: 31px;
  border: 0;
  border-radius: 7px;
  color: #7a8498;
  background: transparent;
  font-size: 9px;
  font-weight: 800;
}
.wallet-currency-switch button.active {
  color: #4e50cb;
  background: #fff;
  box-shadow: 0 3px 10px rgba(35, 43, 78, 0.1);
}
.wallet-purchase-form {
  padding: 18px 22px 20px;
}
.credit-preset-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.credit-preset-label span,
.wallet-credit-field > span {
  color: #29344e;
  font-size: 10px;
  font-weight: 800;
}
.credit-preset-label small {
  color: #929bad;
  font-size: 8px;
}
.credit-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.credit-presets button {
  height: 38px;
  border: 1px solid #e1e5ee;
  border-radius: 9px;
  color: #59647a;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  transition: 0.18s ease;
}
.credit-presets button:hover,
.credit-presets button.active {
  color: #4d4fce;
  border-color: #bfc0fa;
  background: #f1f1ff;
}
.wallet-credit-field {
  display: block;
  margin-top: 13px;
}
.wallet-credit-field > div {
  display: flex;
  align-items: center;
  height: 43px;
  border: 1px solid #dfe4ed;
  border-radius: 10px;
  margin-top: 6px;
  padding-right: 13px;
  transition: 0.18s ease;
}
.wallet-credit-field > div:focus-within {
  border-color: #aeb0f3;
  box-shadow: 0 0 0 3px #eeeeff;
}
.wallet-credit-field input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
}
.wallet-credit-field div small {
  color: #929bad;
  font-size: 9px;
}
.wallet-payable-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
  padding: 13px 14px;
  border: 1px solid #e7e8fb;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7f7ff, #f2f4fa);
}
.wallet-payable-card > div span,
.wallet-payable-card > div strong,
.wallet-payable-card > div small {
  display: block;
}
.wallet-payable-card > div span {
  color: #737e92;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.wallet-payable-card > div strong {
  color: #4d4fce;
  font-size: 21px;
  line-height: 1.2;
  margin: 2px 0;
}
.wallet-payable-card > div small {
  color: #8c96a8;
  font-size: 8px;
}
.wallet-rate-badge {
  flex: none;
  color: #616b80;
  background: #fff;
  border: 1px solid #e3e6ed;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 8px;
  font-weight: 800;
}
.wallet-pay-button {
  width: 100%;
  min-height: 54px;
  margin-top: 13px;
  padding: 8px 13px;
  justify-content: flex-start;
  text-align: left;
}
.wallet-pay-button > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.wallet-pay-button strong,
.wallet-pay-button small {
  display: block;
}
.wallet-pay-button strong {
  font-size: 11px;
}
.wallet-pay-button small {
  color: #d9d9ff;
  font-size: 8px;
  font-weight: 500;
}
.wallet-pay-shield {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9px;
}
.wallet-pay-button > b {
  font-size: 15px;
}
.wallet-payment-note {
  color: #8a94a6;
  font-size: 8px;
  text-align: center;
  margin: 8px 0 0;
}
.wallet-history-card {
  overflow: hidden;
}
.wallet-history-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 0;
  border-bottom: 1px solid var(--line);
}
.wallet-history-tabs {
  display: flex;
  gap: 17px;
}
.wallet-history-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 43px;
  color: #7a8498;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 2px;
  font-size: 10px;
  font-weight: 800;
}
.wallet-history-tabs button span {
  color: #8b94a7;
  background: #f0f2f6;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 8px;
}
.wallet-history-tabs button.active {
  color: var(--primary);
  border-color: var(--primary);
}
.wallet-history-tabs button.active span {
  color: #5153cf;
  background: #eeeeff;
}
.wallet-history-panel {
  min-height: 215px;
}
.wallet-history-table td {
  height: 62px;
}
.wallet-activity-type,
.wallet-order {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wallet-activity-type > span,
.wallet-order > span {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
}
.wallet-activity-type.is-credit > span {
  color: #07865f;
  background: #e6f8f1;
}
.wallet-activity-type.is-debit > span {
  color: #b86d00;
  background: #fff2df;
}
.wallet-order > span {
  color: #5254ce;
  background: #eeeeff;
  font-size: 11px;
}
.wallet-activity-type strong,
.wallet-activity-type small,
.wallet-order strong,
.wallet-order small,
.wallet-date,
.wallet-date small {
  display: block;
}
.wallet-activity-type strong,
.wallet-order strong {
  font-size: 10px;
}
.wallet-activity-type small,
.wallet-order small,
.wallet-date small,
.wallet-currency-label {
  color: #939cad;
  font-size: 8px;
  margin-top: 2px;
}
.wallet-amount {
  display: inline-block;
  min-width: 50px;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 10px;
  text-align: center;
}
.wallet-amount.is-credit {
  color: #07865f;
  background: #eaf9f3;
}
.wallet-amount.is-debit {
  color: #c56f00;
  background: #fff5e6;
}
.wallet-description {
  display: block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wallet-date {
  font-size: 9px;
}
.wallet-empty-state {
  display: grid;
  justify-items: center;
  padding: 34px 20px;
  text-align: center;
}
.wallet-empty-state > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #5759d2;
  background: #eeeeff;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 9px;
}
.wallet-empty-state strong {
  font-size: 12px;
}
.wallet-empty-state p {
  color: var(--muted);
  font-size: 9px;
  margin: 3px 0 0;
}
.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: #171f3a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 13px;
}
.profile-side {
  padding: 22px;
}
.profile-side h3 {
  margin: 0;
}
.profile-side p {
  color: var(--muted);
  font-size: 10px;
}
.profile-facts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.profile-facts div {
  padding: 10px;
  border-radius: 10px;
  background: var(--soft);
}
.profile-facts span,
.profile-facts strong {
  display: block;
}
.profile-facts span {
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
}
.profile-facts strong {
  font-size: 11px;
  margin-top: 3px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 33, 0.58);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
  z-index: 100;
}
.modal-backdrop.show {
  display: flex;
}
.modal {
  width: min(610px, 100%);
  max-height: calc(100vh - 50px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.22);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 21px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 16px;
  margin: 0;
}
.modal-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: var(--soft);
  font-size: 18px;
}
.modal-body {
  padding: 21px;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 15px 21px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 27, 0.55);
  z-index: 45;
}
@media (max-width: 1200px) {
  .metric-grid.five {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-admin-grid,
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-grid {
    gap: 45px;
  }
}
@media (max-width: 980px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
  .main-area {
    grid-column: 1;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: 0.25s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.show {
    display: block;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .topbar-context {
    display: none;
  }
  .page-content {
    padding: 22px;
  }
  .metric-grid,
  .metric-grid.five {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
  .product-admin-grid,
  .catalog-grid,
  .product-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy > p {
    margin-inline: auto;
  }
  .hero-actions,
  .hero-proof {
    justify-content: center;
  }
  .hero-panel {
    max-width: 600px;
    margin-inline: auto;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .public-nav {
    position: absolute;
    display: none;
    top: 69px;
    left: 20px;
    right: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  .public-nav.show {
    display: flex;
  }
  .public-nav a {
    padding: 9px;
  }
  .nav-toggle {
    display: block;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-proof:nth-child(2) {
    border-right: 0;
  }
  .stat-proof:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .how-grid {
    gap: 20px;
  }
  .how-step:not(:last-child):after {
    display: none;
  }
}
@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1180px);
  }
  .hero {
    padding: 65px 0;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-grid {
    gap: 42px;
  }
  .window-content {
    min-height: 270px;
  }
  .section {
    padding: 65px 0;
  }
  .section-head h2 {
    font-size: 31px;
  }
  .product-showcase,
  .product-admin-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .cta-box {
    padding: 35px 25px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .auth-body,
  .install-body {
    padding: 18px;
  }
  .auth-card,
  .install-card {
    padding: 24px;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .page-content {
    padding: 18px 14px 45px;
  }
  .topbar {
    padding: 0 14px;
  }
  .user-copy,
  .user-menu > button > span:last-child,
  .credit-pill span {
    display: none;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .metric-grid,
  .metric-grid.five {
    grid-template-columns: 1fr;
  }
  .metric-card {
    padding: 14px;
  }
  .page-actions {
    width: 100%;
  }
  .page-actions .btn {
    flex: 1;
  }
  .card-head {
    align-items: flex-start;
  }
  .key-reveal {
    align-items: flex-start;
    flex-direction: column;
  }
  .key-reveal .btn {
    width: 100%;
  }
  .filter-bar {
    align-items: stretch;
  }
  .filter-bar label {
    min-width: 100%;
    width: 100%;
  }
  .filter-bar .btn {
    flex: 1;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal {
    max-height: calc(100vh - 20px);
    border-radius: 15px;
  }
  .top-actions {
    gap: 7px;
  }
  .review-detail-grid {
    grid-template-columns: 1fr;
  }
  .review-detail-wide {
    grid-column: auto;
  }
  .approval-state-card,
  .system-alert {
    align-items: flex-start;
    flex-direction: column;
  }
  .compact-product-row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .compact-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .compact-product-actions .btn {
    width: 100%;
  }
}

@media (max-width: 1150px) {
  .wallet-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wallet-main-grid {
    grid-template-columns: 1fr;
  }
  .wallet-balance-card {
    min-height: 300px;
  }
}

@media (max-width: 680px) {
  .wallet-security-pill {
    align-self: flex-start;
  }
  .wallet-stat-grid {
    gap: 9px;
  }
  .wallet-stat-card {
    padding: 12px;
  }
  .wallet-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .wallet-stat-card strong {
    font-size: 18px;
  }
  .wallet-stat-card p {
    display: none;
  }
  .wallet-balance-card {
    min-height: 320px;
    padding: 20px;
  }
  .wallet-balance-copy > strong {
    font-size: 42px;
  }
  .wallet-buy-head,
  .wallet-history-head {
    align-items: stretch;
    flex-direction: column;
  }
  .wallet-currency-switch {
    width: 100%;
  }
  .wallet-currency-switch button {
    flex: 1;
  }
  .wallet-purchase-form {
    padding: 16px;
  }
  .credit-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wallet-payable-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .wallet-history-head {
    padding: 18px 16px 0;
  }
  .wallet-history-tabs {
    width: 100%;
    gap: 8px;
  }
  .wallet-history-tabs button {
    flex: 1;
    justify-content: center;
  }
  .wallet-description {
    max-width: 220px;
  }
}

@media (max-width: 430px) {
  .wallet-stat-grid {
    grid-template-columns: 1fr;
  }
  .wallet-balance-footer {
    grid-template-columns: 1fr;
  }
  .wallet-balance-footer a {
    grid-column: auto;
  }
  .credit-preset-label {
    align-items: flex-start;
    flex-direction: column;
  }
  .credit-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wallet-pay-button small {
    display: none;
  }
}

/* WooCommerce reseller integration */
.integration-page-head .eyebrow,
.credential-reveal-card .eyebrow {
  color: #5b5ce2;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.integration-head-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.connector-release-card {
  align-items: center;
  background: linear-gradient(135deg,#111a3b 0%,#25336e 70%,#414da1 100%);
  border: 1px solid rgba(128,142,255,.38);
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(20,30,70,.16);
  color: #fff;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0,1fr) auto;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 20px 22px;
  position: relative;
}
.connector-release-card::after { background: rgba(112,119,238,.2); border-radius: 50%; content: ""; height: 190px; position: absolute; right: -65px; top: -105px; width: 190px; }
.connector-release-icon { align-items: center; background: linear-gradient(135deg,#696af0,#8384ff); border-radius: 14px; box-shadow: 0 9px 24px rgba(9,15,48,.3); display: flex; flex: 0 0 48px; font-size: 11px; font-weight: 900; height: 48px; justify-content: center; width: 48px; }
.connector-release-copy { min-width: 0; position: relative; z-index: 1; }
.connector-release-copy .eyebrow { color: #aeb8ff; font-size: 9px; margin-bottom: 4px; }
.connector-release-copy h2 { color: #fff; font-size: 16px; margin: 0 0 4px; }
.connector-release-copy p { color: #c3cbed; font-size: 10px; line-height: 1.55; margin: 0; }
.connector-release-meta { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.13); border-radius: 13px; min-width: 160px; padding: 11px 13px; position: relative; text-align: right; z-index: 1; }
.connector-release-meta small,.connector-release-meta strong,.connector-release-meta a { display: block; }
.connector-release-meta small { color: #aeb8dc; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.connector-release-meta strong { color: #fff; font-size: 15px; margin: 3px 0; }
.connector-release-meta a { color: #dce0ff; font-size: 9px; font-weight: 750; }
.credential-reveal-card {
  align-items: flex-start;
  background: linear-gradient(135deg, #111a3b 0%, #29366f 100%);
  border: 1px solid rgba(130, 145, 255, 0.35);
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(20, 30, 70, 0.18);
  color: #fff;
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  padding: 26px;
}
.credential-reveal-icon {
  align-items: center;
  background: #37d39a;
  border-radius: 15px;
  color: #10223a;
  display: flex;
  flex: 0 0 48px;
  font-size: 24px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
}
.credential-reveal-copy { min-width: 0; width: 100%; }
.credential-reveal-copy h2 { color: #fff; margin: 0 0 7px; }
.credential-reveal-copy > p { color: #bec9ef; margin: 0 0 18px; }
.credential-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.credential-grid > div {
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  padding: 13px;
}
.credential-grid small { color: #9ba9d8; grid-column: 1/-1; }
.credential-grid code { color: #fff; font-size: 12px; overflow-wrap: anywhere; }
.credential-grid .credential-secret { background: rgba(91,92,226,.28); }
.integration-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin-bottom: 22px;
}
.integration-guide-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e3e7f2;
  border-radius: 18px;
  display: flex;
  gap: 13px;
  padding: 18px;
}
.integration-guide-card > span {
  align-items: center;
  background: #eef0ff;
  border-radius: 12px;
  color: #5b5ce2;
  display: flex;
  flex: 0 0 42px;
  font-weight: 850;
  height: 42px;
  justify-content: center;
}
.integration-guide-card strong,.integration-guide-card small { display: block; }
.integration-guide-card small { color: #74809d; line-height: 1.45; margin-top: 3px; }
.cell-sub { color: #8490a9; display: block; font-size: 12px; margin-top: 4px; }
.masked-api-key { background: #f2f4fa; border-radius: 8px; color: #47516c; padding: 7px 9px; }
.integration-card { overflow: hidden; }
.integration-card + .integration-card { margin-top: 20px; }
.integration-count {
  background: #eff0ff;
  border: 1px solid #dcdeff;
  border-radius: 999px;
  color: #5153cf;
  flex: none;
  font-size: 10px;
  font-weight: 800;
  padding: 7px 11px;
}
.connected-store-list { display: grid; gap: 14px; padding: 18px; }
.connected-store-item {
  background: #fff;
  border: 1px solid #e1e6f0;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(23,32,67,.045);
  overflow: hidden;
}
.connected-store-head {
  align-items: center;
  background: linear-gradient(180deg,#fff,#fbfcff);
  border-bottom: 1px solid #e9edf4;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 15px 17px;
}
.store-identity { align-items: center; display: flex; gap: 12px; min-width: 0; }
.store-mark {
  align-items: center;
  background: linear-gradient(135deg,#5b5ce2,#7475ef);
  border-radius: 11px;
  box-shadow: 0 7px 17px rgba(91,92,226,.2);
  color: #fff;
  display: flex;
  flex: 0 0 40px;
  font-size: 10px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
}
.store-identity h3 { font-size: 13px; line-height: 1.3; margin: 0 0 3px; }
.store-identity a { color: #77839b; font-size: 10px; }
.store-identity a:hover { color: var(--primary); }
.connected-store-body {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(270px,.7fr) minmax(0,1.3fr);
  padding: 16px 17px;
}
.store-api-key {
  align-items: center;
  background: #111a34;
  border-radius: 13px;
  color: #fff;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-width: 0;
  padding: 13px 14px;
}
.store-api-key div { min-width: 0; }
.store-api-key small { color: #9ca8cf; display: block; font-size: 8px; font-weight: 800; letter-spacing: .08em; margin-bottom: 5px; text-transform: uppercase; }
.store-api-key code { background: transparent; color: #fff; display: block; font-size: 11px; overflow-wrap: anywhere; padding: 0; }
.store-api-key > span { background: rgba(104,107,239,.24); border: 1px solid rgba(141,143,255,.23); border-radius: 999px; color: #ccd0ff; flex: none; font-size: 8px; font-weight: 800; padding: 6px 8px; text-transform: uppercase; }
.store-metrics { display: grid; gap: 9px; grid-template-columns: .55fr .65fr 1.15fr 1.35fr; }
.store-metrics > div { background: #f7f8fc; border: 1px solid #edf0f5; border-radius: 12px; min-width: 0; padding: 11px 12px; }
.store-metrics span,.store-metrics strong,.store-metrics small { display: block; }
.store-metrics span { color: #8690a5; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.store-metrics strong { font-size: 11px; line-height: 1.4; margin-top: 4px; overflow-wrap: anywhere; }
.store-metrics small { color: #8c96a8; font-size: 9px; margin-top: 2px; }
.connector-version-state.is-current { color: #09845d; font-weight: 800; }
.connector-version-state.needs-update { color: #c47212; font-weight: 800; }
.connected-store-actions {
  align-items: center;
  background: #fafbfc;
  border-top: 1px solid #e9edf4;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 17px;
}
.connected-store-actions > p { color: #7d879a; font-size: 9px; line-height: 1.45; margin: 0; max-width: 570px; }
.connected-store-actions .table-actions { flex: none; }
.integration-empty { align-items: center; display: flex; flex-direction: column; padding: 42px 20px; text-align: center; }
.integration-empty > span { align-items: center; background: #eff0ff; border-radius: 13px; color: #5557d8; display: flex; font-size: 18px; font-weight: 900; height: 46px; justify-content: center; margin-bottom: 12px; width: 46px; }
.integration-empty strong { font-size: 14px; }
.integration-empty p { color: var(--muted); font-size: 10px; margin: 4px 0 14px; max-width: 440px; }
.integration-empty.compact { padding: 36px 20px; }
.integration-empty.compact p { margin-bottom: 0; }
.integration-delivery-table { min-width: 820px; }
.status.active { background: #e9f9f3; color: #09845d; }
.status.pending { background: #fff5e3; color: #ae7010; }
.status.revoked { background: #fff0f1; color: #d43b4e; }
.status.blocked { background: #2a3147; color: #fff; }
.btn-danger-soft { background: #fff0f1; border-color: #ffd7dc; color: #d43b4e; }
.table-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; }
.integration-connect-modal { width: min(560px,100%); }
.integration-connect-modal .modal-head { padding: 21px 23px; }
.integration-connect-modal .modal-head h2 { font-size: 17px; }
.integration-connect-modal .modal-head small { display: block; margin-top: 3px; }
.integration-connect-modal .modal-body { gap: 19px; padding: 23px; }
.integration-connect-modal label { font-size: 12px; width: 100%; }
.integration-connect-modal label input { border-radius: 11px; min-height: 48px; padding: 12px 14px; width: 100%; }
.integration-connect-modal label small { line-height: 1.45; }
.integration-connect-modal .notice-strip { align-items: flex-start; padding: 14px; }
.integration-connect-modal .notice-strip > span { align-items: center; background: #5b5ce2; border-radius: 50%; color: #fff; display: flex; flex: 0 0 25px; height: 25px; justify-content: center; }
.integration-connect-modal .modal-foot { padding: 15px 23px; }

@media (max-width: 980px) {
  .integration-summary-grid { grid-template-columns: 1fr; }
  .credential-grid { grid-template-columns: 1fr; }
  .connected-store-body { grid-template-columns: 1fr; }
  .store-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .credential-reveal-card { padding: 18px; }
  .credential-reveal-icon { display: none; }
  .credential-grid > div { grid-template-columns: 1fr; }
  .credential-grid .btn { width: 100%; }
  .integration-page-head { align-items: stretch; flex-direction: column; }
  .integration-page-head .btn { width: 100%; }
  .integration-head-actions { display: grid; grid-template-columns: 1fr; }
  .connector-release-card { align-items: flex-start; grid-template-columns: auto minmax(0,1fr); padding: 17px; }
  .connector-release-meta { grid-column: 1/-1; text-align: left; width: 100%; }
  .connected-store-list { padding: 12px; }
  .connected-store-head,.connected-store-actions { align-items: flex-start; }
  .connected-store-actions { flex-direction: column; }
  .connected-store-actions .table-actions,.connected-store-actions .table-actions form,.connected-store-actions .btn { width: 100%; }
  .store-api-key { align-items: flex-start; flex-direction: column; }
  .store-metrics { grid-template-columns: 1fr 1fr; }
  .integration-connect-modal .modal-foot { display: grid; grid-template-columns: 1fr 1fr; }
}

/* Admin WooCommerce store connections */
.admin-integration-head { margin-bottom: 18px; }
.admin-integration-metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 13px;
  margin-bottom: 18px;
}
.admin-integration-metrics article {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e7f0;
  border-radius: 15px;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 15px;
}
.admin-metric-icon {
  align-items: center;
  background: #eeefff;
  border-radius: 11px;
  color: #5557d8;
  display: flex;
  flex: 0 0 39px;
  font-size: 16px;
  font-weight: 900;
  height: 39px;
  justify-content: center;
}
.admin-metric-icon.active { background: #e8f9f2; color: #09845d; }
.admin-metric-icon.delivery { background: #eaf3ff; color: #3478f6; }
.admin-metric-icon.review { background: #fff5e4; color: #c67a0a; }
.admin-integration-metrics article > div { min-width: 0; }
.admin-integration-metrics small,.admin-integration-metrics strong,.admin-integration-metrics p { display: block; }
.admin-integration-metrics small { color: #8791a5; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.admin-integration-metrics strong { color: #17213b; font-size: 20px; line-height: 1.15; margin-top: 2px; }
.admin-integration-metrics p { color: #8a94a7; font-size: 8px; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-connections-card { overflow: hidden; }
.admin-connection-count {
  background: #eff0ff;
  border: 1px solid #dcdeff;
  border-radius: 999px;
  color: #5153cf;
  flex: none;
  font-size: 9px;
  font-weight: 800;
  padding: 7px 10px;
}
.admin-store-list { display: grid; gap: 14px; padding: 17px; }
.admin-store-item {
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 15px;
  box-shadow: 0 7px 24px rgba(25,35,70,.045);
  overflow: hidden;
}
.admin-store-head {
  align-items: center;
  background: linear-gradient(180deg,#fff,#fbfcff);
  border-bottom: 1px solid #e9edf4;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px,1.1fr) minmax(210px,.9fr) auto;
  padding: 14px 16px;
}
.admin-reseller-identity { align-items: center; display: flex; gap: 11px; min-width: 0; }
.admin-reseller-avatar {
  align-items: center;
  background: linear-gradient(135deg,#5b5ce2,#7475ef);
  border-radius: 11px;
  box-shadow: 0 7px 16px rgba(91,92,226,.18);
  color: #fff;
  display: flex;
  flex: 0 0 40px;
  font-size: 14px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
}
.admin-reseller-identity > div,.admin-store-identity { min-width: 0; }
.admin-reseller-identity small,.admin-store-identity small { color: #8a94a8; display: block; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.admin-reseller-identity h3 { font-size: 12px; line-height: 1.3; margin: 2px 0 1px; }
.admin-reseller-identity a,.admin-store-identity a { color: #78849b; display: block; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-reseller-identity a:hover,.admin-store-identity a:hover { color: var(--primary); }
.admin-store-identity strong { display: block; font-size: 11px; line-height: 1.35; margin: 2px 0 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-store-head > .status { justify-self: end; }
.admin-store-body {
  display: grid;
  gap: 13px;
  grid-template-columns: minmax(270px,.75fr) minmax(0,1.25fr);
  padding: 15px 16px;
}
.admin-store-key {
  align-items: center;
  background: #111a34;
  border-radius: 12px;
  color: #fff;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding: 12px 13px;
}
.admin-store-key > div { min-width: 0; }
.admin-store-key small { color: #9ea9cc; display: block; font-size: 8px; font-weight: 800; letter-spacing: .07em; margin-bottom: 4px; text-transform: uppercase; }
.admin-store-key code { background: transparent; color: #fff; display: block; font-size: 10px; overflow-wrap: anywhere; padding: 0; }
.admin-store-key > span { background: rgba(103,106,239,.24); border: 1px solid rgba(140,143,255,.22); border-radius: 999px; color: #ccd0ff; flex: none; font-size: 7px; font-weight: 800; padding: 5px 7px; text-transform: uppercase; }
.admin-store-stats { display: grid; gap: 8px; grid-template-columns: .55fr .65fr 1.1fr 1.35fr; }
.admin-store-stats > div { background: #f7f8fc; border: 1px solid #edf0f5; border-radius: 11px; min-width: 0; padding: 10px 11px; }
.admin-store-stats small,.admin-store-stats strong,.admin-store-stats span { display: block; }
.admin-store-stats small { color: #8993a6; font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.admin-store-stats strong { color: #17213b; font-size: 10px; line-height: 1.4; margin-top: 3px; overflow-wrap: anywhere; }
.admin-store-stats span { color: #8c96a8; font-size: 8px; margin-top: 2px; }
.admin-store-actions {
  align-items: center;
  background: #fafbfc;
  border-top: 1px solid #e9edf4;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 11px 16px;
}
.admin-store-actions p { margin: 0; min-width: 0; }
.admin-store-actions p strong,.admin-store-actions p span { display: block; }
.admin-store-actions p strong { color: #33405a; font-size: 9px; }
.admin-store-actions p span { color: #7d879a; font-size: 8px; margin-top: 1px; }
.admin-store-actions form,.admin-store-actions .btn { flex: none; }
.admin-integration-empty { align-items: center; display: flex; flex-direction: column; padding: 44px 20px; text-align: center; }
.admin-integration-empty > span { align-items: center; background: #eff0ff; border-radius: 12px; color: #5557d8; display: flex; font-size: 17px; font-weight: 900; height: 44px; justify-content: center; margin-bottom: 11px; width: 44px; }
.admin-integration-empty strong { font-size: 13px; }
.admin-integration-empty p { color: var(--muted); font-size: 9px; margin: 4px 0 0; max-width: 450px; }

@media (max-width: 1180px) {
  .admin-integration-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-store-head { grid-template-columns: minmax(220px,1fr) minmax(190px,1fr) auto; }
  .admin-store-body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .admin-store-head { align-items: flex-start; grid-template-columns: 1fr auto; }
  .admin-store-identity { grid-column: 1/-1; grid-row: 2; padding-left: 51px; }
  .admin-store-stats { grid-template-columns: 1fr 1fr; }
  .admin-store-actions { align-items: stretch; flex-direction: column; }
  .admin-store-actions form,.admin-store-actions .btn { width: 100%; }
}
@media (max-width: 520px) {
  .admin-integration-metrics { grid-template-columns: 1fr; }
  .admin-connections-card .card-head { align-items: flex-start; flex-direction: column; }
  .admin-store-list { padding: 11px; }
  .admin-store-head { display: flex; flex-wrap: wrap; }
  .admin-reseller-identity { width: calc(100% - 70px); }
  .admin-store-head > .status { margin-left: auto; }
  .admin-store-identity { order: 3; padding: 5px 0 0 51px; width: 100%; }
  .admin-store-key { align-items: flex-start; flex-direction: column; }
}
.page-eyebrow { display:block; margin-bottom:7px; color:var(--primary); font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.table-subtext { display:block; margin-top:4px; color:var(--muted); font-size:11px; }

/* Support ticket centre */
.nav-badge {
  background: #ff596d;
  border: 2px solid #111a31;
  border-radius: 999px;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  margin-left: auto;
  min-width: 20px;
  padding: 4px 5px;
  text-align: center;
}
.side-nav a.active .nav-badge { background: #fff; border-color: transparent; color: var(--primary); }
.support-page-head code { background: #eff1f7; border-radius: 6px; color: #536078; font-size: 10px; padding: 3px 6px; }
.support-metrics { display: grid; gap: 13px; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 18px; }
.support-metrics > a {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e6ef;
  border-radius: 15px;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  transition: .18s ease;
}
.support-metrics > a:hover { border-color: #cacdf8; box-shadow: 0 10px 28px rgba(35,43,85,.07); transform: translateY(-2px); }
.support-metric-icon { align-items: center; border-radius: 11px; display: flex; flex: 0 0 40px; font-size: 17px; font-weight: 900; height: 40px; justify-content: center; }
.support-metric-icon.purple { background: #eeefff; color: #5557d8; }
.support-metric-icon.orange { background: #fff4e3; color: #c67808; }
.support-metric-icon.blue { background: #eaf3ff; color: #3478f6; }
.support-metric-icon.green { background: #e8f9f2; color: #09845d; }
.support-metrics div { min-width: 0; }
.support-metrics small,.support-metrics strong,.support-metrics p { display: block; }
.support-metrics small { color: #8791a5; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.support-metrics strong { color: #17213b; font-size: 20px; line-height: 1.1; margin-top: 2px; }
.support-metrics p { color: #8b95a8; font-size: 8px; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-filter label:first-child { flex: 1.4; }
.support-filter label span { color: #66728a; display: block; font-size: 9px; font-weight: 750; margin: 0 0 5px 2px; }
.support-list-card { overflow: hidden; }
.support-unread-summary { background: #fff1e5; border: 1px solid #ffe0be; border-radius: 999px; color: #b96f0d; font-size: 9px; font-weight: 850; padding: 7px 10px; }
.support-empty { align-items: center; display: flex; flex-direction: column; padding: 58px 20px; text-align: center; }
.support-empty > span { align-items: center; background: #eff0ff; border-radius: 14px; color: #5658d8; display: flex; font-size: 20px; font-weight: 900; height: 52px; justify-content: center; margin-bottom: 13px; width: 52px; }
.support-empty strong { font-size: 15px; }
.support-empty p { color: var(--muted); font-size: 10px; margin: 5px 0 17px; max-width: 470px; }
.support-ticket-list { display: grid; }
.support-ticket-row { align-items: center; border-bottom: 1px solid #edf0f5; display: grid; gap: 14px; grid-template-columns: auto minmax(0,1fr) auto; padding: 15px 18px; position: relative; transition: .16s ease; }
.support-ticket-row:last-child { border-bottom: 0; }
.support-ticket-row:hover { background: #fafaff; }
.support-ticket-row.is-unread { background: linear-gradient(90deg,#f4f4ff,#fff 46%); }
.support-ticket-row.is-unread:before { background: var(--primary); border-radius: 0 4px 4px 0; content: ""; inset: 9px auto 9px 0; position: absolute; width: 3px; }
.support-ticket-mark { align-items: center; background: #eef0ff; border-radius: 11px; color: #5658d8; display: flex; font-size: 12px; font-weight: 900; height: 39px; justify-content: center; width: 39px; }
.is-unread .support-ticket-mark { background: var(--primary); color: #fff; box-shadow: 0 7px 17px rgba(91,92,226,.21); }
.support-ticket-main { min-width: 0; }
.support-ticket-title { align-items: center; display: flex; gap: 8px; }
.support-ticket-title strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket-title > span,.admin-ticket-subject > div > span { background: #ffedf0; border-radius: 999px; color: #c8374d; flex: none; font-size: 7px; font-weight: 900; padding: 4px 6px; text-transform: uppercase; }
.support-ticket-main > p { color: #7e889c; font-size: 9px; margin: 4px 0 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket-meta { align-items: center; color: #8b95a8; display: flex; flex-wrap: wrap; font-size: 8px; gap: 7px; }
.support-ticket-meta code { background: #f1f3f7; border-radius: 5px; color: #5f6a80; padding: 3px 5px; }
.support-ticket-meta span + span:before { content: "·"; margin-right: 7px; }
.support-ticket-state { align-items: flex-end; display: flex; flex-direction: column; gap: 6px; }
.support-ticket-state time,.admin-ticket-status time { color: #9099aa; font-size: 8px; white-space: nowrap; }
.ticket-status { align-items: center; border-radius: 999px; display: inline-flex; font-size: 8px; font-weight: 850; gap: 5px; padding: 6px 8px; white-space: nowrap; }
.ticket-status:before { background: currentColor; border-radius: 50%; content: ""; height: 5px; width: 5px; }
.ticket-status-awaiting_gitc_team { background: #fff4e2; color: #b87009; }
.ticket-status-awaiting_reseller { background: #eaf3ff; color: #2e70df; }
.ticket-status-resolved { background: #e8f9f2; color: #09845d; }
.ticket-status-closed { background: #edf0f5; color: #616b7e; }

.support-compose-grid { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(0,1.45fr) minmax(280px,.55fr); }
.support-compose-card { overflow: hidden; }
.support-compose-head { align-items: center; background: linear-gradient(135deg,#192343,#29356d); color: #fff; display: flex; gap: 13px; padding: 19px 21px; }
.support-compose-head > span { align-items: center; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; display: flex; flex: 0 0 40px; font-size: 17px; font-weight: 900; height: 40px; justify-content: center; }
.support-compose-head h2 { font-size: 15px; margin: 0; }
.support-compose-head p { color: #b9c2dd; font-size: 9px; margin: 3px 0 0; }
.support-compose-body { gap: 17px; padding: 21px; }
.support-compose-body label { font-size: 11px; }
.support-compose-body input,.support-compose-body select,.support-compose-body textarea { border-radius: 11px; }
.support-compose-body textarea { line-height: 1.65; resize: vertical; }
.support-no-upload { align-items: flex-start; background: #f0faf6; border: 1px solid #d2eee3; border-radius: 12px; display: flex; gap: 10px; padding: 13px; }
.support-no-upload > span { align-items: center; background: #16ae7d; border-radius: 50%; color: #fff; display: flex; flex: 0 0 24px; font-size: 10px; font-weight: 900; height: 24px; justify-content: center; }
.support-no-upload strong { color: #17644f; display: block; font-size: 10px; }
.support-no-upload p { color: #5c8679; font-size: 9px; margin: 2px 0 0; }
.support-compose-foot { align-items: center; background: #fafbfc; border-top: 1px solid #e7eaf0; display: flex; gap: 9px; justify-content: flex-end; padding: 15px 21px; }
.support-guide-card { background: linear-gradient(155deg,#131d38,#25305f); border-radius: var(--radius); box-shadow: 0 18px 48px rgba(23,31,69,.15); color: #fff; overflow: hidden; padding: 24px; position: sticky; top: 95px; }
.support-guide-card:after { background: rgba(104,105,233,.25); border-radius: 50%; content: ""; height: 190px; position: absolute; right: -85px; top: -100px; width: 190px; }
.support-guide-icon { align-items: center; background: #6566e9; border-radius: 12px; display: flex; font-size: 17px; font-weight: 900; height: 42px; justify-content: center; margin-bottom: 18px; position: relative; width: 42px; z-index: 1; }
.support-guide-card .page-eyebrow { color: #9fa9ff; position: relative; z-index: 1; }
.support-guide-card > h2 { font-size: 19px; margin: 0 0 7px; position: relative; z-index: 1; }
.support-guide-card > p { color: #aeb8d3; font-size: 10px; line-height: 1.6; margin: 0 0 20px; position: relative; z-index: 1; }
.support-guide-card ol { display: grid; gap: 13px; list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.support-guide-card li { align-items: flex-start; border-bottom: 1px solid rgba(255,255,255,.09); display: flex; gap: 10px; padding-bottom: 13px; }
.support-guide-card li > span { color: #8e99c3; font-size: 8px; font-weight: 900; padding-top: 2px; }
.support-guide-card li strong,.support-guide-card li small { display: block; }
.support-guide-card li strong { font-size: 10px; }
.support-guide-card li small { color: #9da8c8; font-size: 8px; line-height: 1.45; margin-top: 2px; }
.support-response-note { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; margin-top: 18px; padding: 13px; position: relative; z-index: 1; }
.support-response-note strong,.support-response-note span { display: block; }
.support-response-note strong { color: #aeb8d6; font-size: 8px; text-transform: uppercase; }
.support-response-note span { color: #ffd892; font-size: 11px; font-weight: 850; margin-top: 3px; }
.support-response-note p { color: #aeb8d3; font-size: 8px; margin: 3px 0 0; }

.support-thread-grid { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(0,1.45fr) minmax(275px,.55fr); }
.support-thread-card { overflow: hidden; }
.support-thread-head { align-items: center; background: #fafbfc; border-bottom: 1px solid #e7eaf0; display: flex; justify-content: space-between; padding: 14px 18px; }
.support-thread-head > div { align-items: center; display: flex; gap: 9px; }
.support-thread-head strong { font-size: 9px; }
.support-thread-head > small { color: #8993a6; font-size: 8px; }
.support-thread { background: linear-gradient(180deg,#fff,#fbfcfe); display: grid; gap: 18px; padding: 22px; }
.support-message { align-items: flex-start; display: flex; gap: 10px; max-width: 88%; }
.support-message.from-team { margin-right: auto; }
.support-message.from-reseller { flex-direction: row-reverse; margin-left: auto; }
.support-message-avatar { align-items: center; background: #151f3e; border-radius: 10px; color: #fff; display: flex; flex: 0 0 34px; font-size: 12px; font-weight: 900; height: 34px; justify-content: center; }
.from-reseller .support-message-avatar { background: #6566e8; }
.support-message-content { background: #f3f5f9; border: 1px solid #e5e9f0; border-radius: 5px 14px 14px 14px; min-width: 0; padding: 12px 14px; }
.from-reseller .support-message-content { background: #eeefff; border-color: #dfe0ff; border-radius: 14px 5px 14px 14px; }
.support-message-content header { align-items: center; display: flex; gap: 15px; justify-content: space-between; margin-bottom: 7px; }
.support-message-content header > div { align-items: center; display: flex; gap: 6px; }
.support-message-content header strong { font-size: 10px; }
.support-message-content header span { background: #fff; border-radius: 999px; color: #69748a; font-size: 7px; font-weight: 800; padding: 3px 5px; text-transform: uppercase; }
.support-message-content time { color: #8e98aa; font-size: 7px; white-space: nowrap; }
.support-message-content p { color: #39455d; font-size: 10px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.support-reply-box { background: #fafbfc; border-top: 1px solid #e7eaf0; padding: 18px; }
.support-reply-box label { font-size: 10px; }
.support-reply-box textarea { border-radius: 11px; line-height: 1.6; margin-top: 7px; resize: vertical; }
.support-reply-box > div { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-top: 11px; }
.support-reply-box > div > span { color: #818b9e; font-size: 8px; }
.support-closed-note { align-items: center; background: #f1faf6; border-top: 1px solid #d9eee5; display: grid; gap: 12px; grid-template-columns: auto 1fr auto; padding: 17px 19px; }
.support-closed-note > span { align-items: center; background: #17ad7c; border-radius: 50%; color: #fff; display: flex; height: 29px; justify-content: center; width: 29px; }
.support-closed-note strong { display: block; font-size: 10px; }
.support-closed-note p { color: #6e8c82; font-size: 8px; margin: 2px 0 0; }
.support-context-stack { display: grid; gap: 14px; }
.support-context-card { overflow: hidden; }
.support-context-card > header { align-items: center; background: #192342; color: #fff; display: flex; justify-content: space-between; padding: 14px 16px; }
.support-context-card > header span { color: #a9b3d1; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.support-context-card > header strong { font-size: 9px; }
.support-context-card dl,.admin-reseller-context dl { margin: 0; }
.support-context-card dl > div,.admin-reseller-context dl > div { align-items: flex-start; border-bottom: 1px solid #edf0f4; display: flex; gap: 12px; justify-content: space-between; padding: 12px 15px; }
.support-context-card dl > div:last-child,.admin-reseller-context dl > div:last-child { border-bottom: 0; }
.support-context-card dt,.admin-reseller-context dt { color: #8993a6; font-size: 8px; }
.support-context-card dd,.admin-reseller-context dd { font-size: 9px; font-weight: 750; margin: 0; max-width: 65%; overflow-wrap: anywhere; text-align: right; }
.support-context-card code { background: #f0f2f6; border-radius: 5px; color: #536078; font-size: 8px; padding: 3px 5px; }
.support-help-card { background: linear-gradient(145deg,#efefff,#f8f8ff); border: 1px solid #dfe0fb; border-radius: var(--radius); padding: 17px; }
.support-help-card span { color: #6365dc; display: block; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.support-help-card strong { display: block; font-size: 11px; margin: 4px 0; }
.support-help-card p { color: #6f7991; font-size: 8px; line-height: 1.55; margin: 0; }

.admin-ticket-list { display: grid; }
.admin-ticket-row { align-items: center; border-bottom: 1px solid #edf0f5; display: grid; gap: 12px; grid-template-columns: auto minmax(145px,.5fr) minmax(250px,1.2fr) auto auto; padding: 14px 17px; position: relative; }
.admin-ticket-row:last-child { border-bottom: 0; }
.admin-ticket-row:hover { background: #fafaff; }
.admin-ticket-row.is-unread { background: linear-gradient(90deg,#f3f3ff,#fff 45%); }
.admin-ticket-row.is-unread:before { background: var(--primary); border-radius: 0 4px 4px 0; content: ""; inset: 8px auto 8px 0; position: absolute; width: 3px; }
.admin-ticket-avatar { align-items: center; background: linear-gradient(135deg,#5b5ce2,#7475ef); border-radius: 10px; color: #fff; display: flex; flex: 0 0 37px; font-size: 12px; font-weight: 900; height: 37px; justify-content: center; width: 37px; }
.admin-ticket-avatar.large { border-radius: 12px; flex-basis: 43px; font-size: 14px; height: 43px; width: 43px; }
.admin-ticket-reseller,.admin-ticket-subject { min-width: 0; }
.admin-ticket-reseller small,.admin-ticket-reseller strong,.admin-ticket-reseller span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-ticket-reseller small { color: #8d96a8; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.admin-ticket-reseller strong { font-size: 10px; margin-top: 2px; }
.admin-ticket-reseller span { color: #8993a6; font-size: 8px; margin-top: 1px; }
.admin-ticket-subject > div { align-items: center; display: flex; gap: 7px; }
.admin-ticket-subject strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-ticket-subject p { color: #8993a6; font-size: 8px; margin: 5px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-ticket-subject code { background: #f0f2f6; border-radius: 5px; color: #5d687e; padding: 3px 5px; }
.admin-ticket-status { align-items: flex-end; display: flex; flex-direction: column; gap: 5px; }
.admin-ticket-arrow { align-items: center; background: #f0f1ff; border-radius: 8px; color: #5759d7; display: flex; font-size: 11px; font-weight: 900; height: 29px; justify-content: center; width: 29px; }
.admin-reply-actions { align-items: end !important; }
.admin-reply-actions label { flex: 1; max-width: 230px; }
.admin-reply-actions select { border-radius: 9px; margin-top: 5px; min-height: 38px; }
.admin-reseller-context { overflow: hidden; }
.admin-reseller-context > header { align-items: center; background: linear-gradient(135deg,#182241,#29366c); color: #fff; display: flex; gap: 11px; padding: 15px; }
.admin-reseller-context header > div { min-width: 0; }
.admin-reseller-context header small,.admin-reseller-context header strong,.admin-reseller-context header a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-reseller-context header small { color: #9da8ca; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.admin-reseller-context header strong { font-size: 11px; margin-top: 2px; }
.admin-reseller-context header a { color: #b9c2de; font-size: 8px; margin-top: 1px; }
.admin-ticket-status-card { padding: 15px; }
.admin-ticket-status-card label { font-size: 9px; }
.admin-ticket-status-card select { border-radius: 9px; margin: 6px 0 10px; }
.dashboard-support-card { overflow: hidden; }
.dashboard-ticket-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.dashboard-ticket-item { align-items: center; border-bottom: 1px solid #edf0f5; display: grid; gap: 10px; grid-template-columns: auto minmax(0,1fr) auto; padding: 13px 16px; }
.dashboard-ticket-item:nth-child(odd) { border-right: 1px solid #edf0f5; }
.dashboard-ticket-item:hover { background: #fafaff; }
.dashboard-ticket-item.is-unread { background: #f5f5ff; }
.dashboard-ticket-item > span { align-items: center; background: #eef0ff; border-radius: 9px; color: #5658d8; display: flex; font-size: 9px; font-weight: 900; height: 31px; justify-content: center; width: 31px; }
.dashboard-ticket-item.is-unread > span { background: var(--primary); color: #fff; }
.dashboard-ticket-item > div { min-width: 0; }
.dashboard-ticket-item strong,.dashboard-ticket-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-ticket-item strong { font-size: 10px; }
.dashboard-ticket-item small { color: #8791a5; font-size: 8px; margin-top: 2px; }
.dashboard-ticket-item time { color: #919aaa; font-size: 8px; white-space: nowrap; }
.dashboard-ticket-empty { align-items: center; display: flex; gap: 11px; grid-column: 1/-1; padding: 19px; }
.dashboard-ticket-empty > span { align-items: center; background: #eef0ff; border-radius: 10px; color: #5658d8; display: flex; flex: 0 0 36px; font-weight: 900; height: 36px; justify-content: center; }
.dashboard-ticket-empty > div { flex: 1; }
.dashboard-ticket-empty strong { display: block; font-size: 10px; }
.dashboard-ticket-empty p { color: #8791a5; font-size: 8px; margin: 2px 0 0; }
.support-domain-note > div { flex: 1; }
.support-domain-note > .btn { flex: none; }

@media (max-width: 1120px) {
  .support-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .support-compose-grid,.support-thread-grid { grid-template-columns: minmax(0,1fr) 280px; }
  .admin-ticket-row { grid-template-columns: auto minmax(120px,.45fr) minmax(220px,1fr) auto; }
  .admin-ticket-arrow { display: none; }
}
@media (max-width: 860px) {
  .support-compose-grid,.support-thread-grid { grid-template-columns: 1fr; }
  .support-guide-card { position: relative; top: auto; }
  .support-context-stack { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .support-context-stack > :last-child:nth-child(odd) { grid-column: 1/-1; }
  .admin-ticket-row { grid-template-columns: auto minmax(0,1fr) auto; }
  .admin-ticket-reseller { grid-column: 2; }
  .admin-ticket-subject { grid-column: 2; }
  .admin-ticket-status { grid-column: 3; grid-row: 1/3; }
  .dashboard-ticket-list { grid-template-columns: 1fr; }
  .dashboard-ticket-item:nth-child(odd) { border-right: 0; }
}
@media (max-width: 620px) {
  .support-metrics { grid-template-columns: 1fr 1fr; }
  .support-ticket-row { align-items: start; grid-template-columns: auto minmax(0,1fr); padding: 14px; }
  .support-ticket-state { align-items: flex-start; grid-column: 2; }
  .support-compose-head,.support-compose-body,.support-thread { padding-left: 15px; padding-right: 15px; }
  .support-compose-foot { display: grid; grid-template-columns: 1fr 1fr; padding: 13px 15px; }
  .support-compose-foot .btn { width: 100%; }
  .support-message { max-width: 96%; }
  .support-message-content header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .support-reply-box > div { align-items: stretch; flex-direction: column; }
  .support-reply-box .btn { width: 100%; }
  .support-context-stack { grid-template-columns: 1fr; }
  .support-context-stack > :last-child:nth-child(odd) { grid-column: auto; }
  .support-closed-note { grid-template-columns: auto 1fr; }
  .support-closed-note .btn { grid-column: 1/-1; width: 100%; }
  .admin-ticket-row { grid-template-columns: auto minmax(0,1fr); }
  .admin-ticket-status { align-items: flex-start; grid-column: 2; grid-row: auto; }
  .admin-reply-actions { align-items: stretch !important; flex-direction: column; }
  .admin-reply-actions label { max-width: none; width: 100%; }
  .admin-reply-actions .btn { width: 100%; }
  .support-domain-note { align-items: flex-start; flex-wrap: wrap; }
  .support-domain-note > div { min-width: calc(100% - 52px); }
  .support-domain-note > .btn { margin-left: 48px; width: calc(100% - 48px); }
}
@media (max-width: 430px) {
  .support-metrics { grid-template-columns: 1fr; }
  .support-compose-foot { grid-template-columns: 1fr; }
  .support-thread-head { align-items: flex-start; flex-direction: column; gap: 6px; }
}
