@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:ital,wght@0,400..700;1,400..600&display=swap");

:root {
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --brand: #2563eb;
  --brand-2: #3b82f6;
  --brand-dark: #1d4ed8;
  --brand-soft: rgba(37, 99, 235, 0.1);
  --accent-sky: #38bdf8;
  --surface: #f4f6fb;
  --surface-2: #eef2f9;
  --surface-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --radius: 0.75rem;
  --radius-lg: 1.125rem;
  --radius-xl: 1.5rem;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.09);
  --shadow-sm: 0 4px 18px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 20px 60px rgba(37, 99, 235, 0.12);
  --focus: 0 0 0 3px rgba(37, 99, 235, 0.28);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card-product,
  .hero-spotlight-card,
  .cs-fab,
  .cs-send,
  .cs-pill,
  .cs-panel__close,
  .site-navbar .btn,
  .hero-gradient .btn-lg,
  .hero-gradient .btn-brand,
  .site-navbar .nav-link {
    transition: none !important;
  }
}

body {
  font-family: var(--font-sans);
  background: var(--surface);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(37, 99, 235, 0.06), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(56, 189, 248, 0.04), transparent 45%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-body .page-main {
  flex: 1;
}

.text-muted-custom {
  color: var(--text-muted) !important;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 2000;
  padding: 0.5rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.skip-link:focus {
  left: 0.5rem;
  outline: none;
  box-shadow: var(--focus);
}

.site-topbar {
  background: linear-gradient(105deg, #0f172a 0%, #1e293b 42%, #172554 100%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-topbar a {
  color: rgba(255, 255, 255, 0.88);
}
.site-topbar a:hover {
  color: #fff;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #0f172a 0%, #1e40af 52%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.site-navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, var(--shadow-sm);
  min-height: 4rem;
}

.site-navbar .nav-link {
  border-radius: 0.5rem;
  padding: 0.45rem 0.85rem !important;
  color: #475569 !important;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-navbar .nav-link:hover {
  color: var(--brand-dark) !important;
  background: var(--brand-soft);
}

.site-navbar .nav-link.active {
  color: var(--brand-dark) !important;
  background: var(--brand-soft);
}

.site-navbar .dropdown-menu {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
}

.site-navbar .form-control {
  border-radius: 999px;
  border-color: var(--border);
  min-width: 10rem;
  padding-inline: 1rem;
}

.site-navbar .form-control:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: var(--focus);
}

.site-navbar .btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.42rem 1.05rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.site-navbar .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.45);
}

.site-navbar .btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.site-navbar .btn-outline-secondary {
  --bs-btn-color: #475569;
  --bs-btn-border-color: rgba(15, 23, 42, 0.12);
  --bs-btn-hover-bg: rgba(125, 211, 252, 0.18);
  --bs-btn-hover-border-color: rgba(56, 189, 248, 0.45);
  --bs-btn-hover-color: #0f172a;
}

.site-navbar .btn-outline-primary {
  --bs-btn-hover-bg: rgba(37, 99, 235, 0.08);
  --bs-btn-hover-border-color: var(--brand);
}

.site-navbar .btn-primary {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.site-navbar .btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  font-weight: 600;
  border-radius: 0.5rem;
  padding-inline: 1rem;
}

.btn-brand-soft {
  --bs-btn-color: var(--brand-dark);
  --bs-btn-bg: var(--brand-soft);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: rgba(37, 99, 235, 0.18);
  --bs-btn-hover-border-color: transparent;
  font-weight: 600;
  border-radius: 0.5rem;
}

.lang-toggle .btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.hero-gradient {
  position: relative;
  background: linear-gradient(125deg, #0f172a 0%, #1e3a5f 38%, var(--brand) 88%, #60a5fa 100%);
  overflow: hidden;
}

.hero-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(96, 165, 250, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.hero-gradient > .container {
  position: relative;
  z-index: 1;
}

.hero-gradient h1.display-5,
.hero-gradient .display-5 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}

.hero-gradient .lead {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 34rem;
}

.hero-spotlight-card {
  border-radius: var(--radius-xl) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow: var(--shadow-glow), 0 4px 0 rgba(255, 255, 255, 0.5) inset !important;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.15), 0 4px 0 rgba(255, 255, 255, 0.6) inset !important;
}

.hero-spotlight-card .card-body {
  padding: 1.5rem !important;
}

.hero-gradient .btn-lg {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.65rem;
  min-height: 3rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hero-gradient .btn-lg:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.hero-gradient .btn-light {
  color: #0f172a;
  border: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.hero-gradient .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  background: #fff !important;
}

.hero-gradient .btn-outline-light {
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.hero-gradient .btn-outline-light:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.hero-gradient .btn-brand {
  border-radius: 999px;
  padding-inline: 1.35rem;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-gradient .btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.38);
}

.page-main .btn.btn-brand:not(.btn-sm) {
  border-radius: 999px;
  padding-inline: 1.35rem;
}

.btn-sm.btn-outline-primary {
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.btn-sm.btn-outline-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.page-section {
  padding-block: 2.5rem;
}

.page-section--tight {
  padding-block: 1.75rem;
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-section--tight .section-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.headline-serif {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.icon-tile {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(56, 189, 248, 0.08));
  color: var(--brand-dark);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.card-elevated {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-elevated:hover {
  border-color: rgba(37, 99, 235, 0.12);
  box-shadow: var(--shadow-md);
}

.card-product {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  background: #fff;
}

.card-product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.badge-soft {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.35em 0.75em;
}

.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.site-footer .footer-brand {
  color: #f8fafc;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.table-hover-rows tbody tr {
  transition: background 0.12s ease;
}
.table-hover-rows tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.breadcrumb {
  --bs-breadcrumb-divider-color: #94a3b8;
}

.admin-app {
  min-height: 100vh;
  background: linear-gradient(165deg, #f0f4fc 0%, #e8eef8 45%, #f8fafc 100%);
}

.admin-app__shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  flex: 0 0 auto;
  width: 16.5rem;
  max-width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #0c1222 0%, #050816 55%, #02050f 100%);
  border-right: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
  position: relative;
}

.admin-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 40% at 0% 0%, rgba(56, 189, 248, 0.12), transparent 55%);
  pointer-events: none;
}

.admin-sidebar__brand {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-sidebar__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #f8fafc;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.admin-sidebar__tag {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.75);
  margin-top: 0.35rem;
}

.admin-sidebar nav {
  position: relative;
  z-index: 1;
  padding: 1rem 0.85rem 2rem;
}

.admin-sidebar .nav-link {
  color: rgba(248, 250, 252, 0.78);
  border-radius: 0.65rem;
  padding: 0.6rem 0.95rem;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(125, 211, 252, 0.15);
}

.admin-sidebar .nav-link.active {
  color: #0f172a;
  background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.admin-sidebar .nav-link i {
  opacity: 0.9;
}

.admin-sidebar hr {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.admin-topbar__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0;
}

.admin-topbar__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
  max-width: 28rem;
}

.admin-content {
  flex: 1;
  padding: 1.25rem 1.5rem 2.5rem;
}

.admin-stat {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 1.15rem 1.25rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-stat::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5rem;
  height: 5rem;
  background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 70%);
  pointer-events: none;
}

.admin-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.admin-stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.admin-stat__value {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}

.admin-stat__hint {
  font-size: 0.8rem;
  margin-top: 0.35rem;
  color: var(--text-muted);
}

.admin-stat__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.1));
  color: var(--brand-dark);
}

.admin-chart {
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #fafbff 0%, #f1f5f9 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 0.35rem;
  padding: 1.25rem 1rem 1rem;
}

.admin-chart__bar {
  flex: 1;
  max-width: 3rem;
  border-radius: 0.35rem 0.35rem 0 0;
  background: linear-gradient(180deg, var(--brand-2), var(--brand-dark));
  opacity: 0.85;
  min-height: 2rem;
  transition: opacity 0.2s ease;
}

.admin-chart__bar:hover {
  opacity: 1;
}

.admin-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-hero {
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(56, 189, 248, 0.15), transparent 45%),
    radial-gradient(120% 160% at 100% 100%, rgba(37, 99, 235, 0.12), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-hero__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.admin-hero__title {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.admin-hero__sub {
  color: #475569;
  max-width: 44rem;
}

.admin-hero__quick {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.admin-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.admin-channel-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.8rem;
  padding: 0.6rem 0.75rem;
  background: #fff;
}

.admin-channel-card__label {
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}

.admin-channel-card__value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.15rem;
}

.admin-product-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-product-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.admin-product-item__index {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e40af;
  background: rgba(37, 99, 235, 0.12);
}

.admin-product-item__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.admin-product-item__meta {
  font-size: 0.74rem;
  color: #64748b;
}

.admin-ops-feed {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.admin-ops-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  padding: 0.5rem 0.6rem;
  background: #fff;
}

.admin-ops-item__icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
}

.admin-ops-item__title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
}

.admin-ops-item__meta {
  font-size: 0.74rem;
  color: #64748b;
}

.admin-ops-item__time {
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
}

.admin-muted-card {
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: 0.75rem;
  padding: 0.75rem;
  color: #64748b;
  font-size: 0.82rem;
  background: #fafcff;
}

.admin-table-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 1199.98px) {
  .admin-channel-grid {
    grid-template-columns: 1fr;
  }
}

.admin-table-wrap .table td,
.admin-table-wrap .table th {
  white-space: nowrap;
}

.admin-table-wrap .table td:nth-child(2),
.admin-table-wrap .table th:nth-child(2) {
  white-space: normal;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

#cs-widget-root {
  --cs-accent: #7dd3fc;
  --cs-accent-2: #bae6fd;
  --cs-accent-dim: rgba(125, 211, 252, 0.35);
  --cs-bg: #0a0f18;
  --cs-bg-elev: #111827;
  --cs-text: #e2e8f0;
  --cs-text-muted: #94a3b8;
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1080;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cs-fab {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cs-accent);
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  color: var(--cs-accent-2);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.25), 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.cs-fab:hover {
  transform: scale(1.05);
  color: #fff;
  box-shadow: 0 0 0 2px var(--cs-accent-dim), 0 14px 36px rgba(56, 189, 248, 0.25);
}

.cs-fab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.45);
}

.cs-panel {
  position: absolute;
  right: 0;
  bottom: 4.25rem;
  width: min(24rem, calc(100vw - 2rem));
  max-height: min(34rem, 78vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--cs-bg);
  border: 1px solid var(--cs-accent-dim);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.12), 0 24px 48px rgba(0, 0, 0, 0.45);
}

.cs-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
}

.cs-panel__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cs-text);
  letter-spacing: -0.02em;
}

.cs-panel__sub {
  font-size: 0.75rem;
  color: var(--cs-text-muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.cs-panel__close {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cs-text);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--cs-accent-dim);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cs-panel__close:hover {
  border-color: var(--cs-accent);
  color: #fff;
  background: rgba(30, 41, 59, 0.85);
}

.cs-panel__faq {
  padding: 0.75rem 1rem 0.5rem;
}

.cs-panel__faq-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-text-muted);
  margin-bottom: 0.5rem;
}

.cs-panel__faq-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cs-pill {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cs-text);
  background: transparent;
  border: 1px solid var(--cs-accent-dim);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cs-pill:hover {
  border-color: var(--cs-accent);
  background: rgba(125, 211, 252, 0.08);
  color: #fff;
}

.cs-messages {
  flex: 1;
  overflow: auto;
  min-height: 10rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #070b12 0%, #0a0f18 55%, #0c1220 100%);
  display: flex;
  flex-direction: column;
}

.cs-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.25rem;
}

.cs-empty p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--cs-text-muted);
  max-width: 16rem;
}

.cs-panel__footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem 0.85rem;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  background: rgba(10, 15, 24, 0.98);
}

.cs-attach {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-accent);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--cs-accent-dim);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cs-attach:hover {
  border-color: var(--cs-accent);
  color: #fff;
  background: rgba(30, 41, 59, 0.9);
}

.cs-input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  color: var(--cs-text);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--cs-accent-dim);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cs-input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.cs-input:focus {
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.2);
}

.cs-send {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  border: none;
  background: linear-gradient(135deg, var(--cs-accent-2) 0%, var(--cs-accent) 100%);
  box-shadow: 0 4px 16px rgba(125, 211, 252, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.cs-send:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(125, 211, 252, 0.45);
}

.cs-send:active {
  transform: translateY(0);
}

.cs-bubble {
  max-width: 92%;
  padding: 0.55rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.cs-bubble-bot {
  align-self: flex-start;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid var(--cs-accent-dim);
  color: var(--cs-text);
}

.cs-bubble-user {
  align-self: flex-end;
  margin-left: auto;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  border: 1px solid rgba(125, 211, 252, 0.45);
  color: #f8fafc;
}

.account-shell {
  min-height: 100vh;
  background: var(--surface);
}

.account-shell--lux {
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(37, 99, 235, 0.09), transparent 55%),
    radial-gradient(900px 480px at 88% 0%, rgba(99, 102, 241, 0.08), transparent 50%),
    linear-gradient(180deg, #eef2ff 0%, #f1f5f9 38%, #f8fafc 100%);
}

.account-shell--lux .site-navbar {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.account-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 42%, #1d4ed8 100%);
  color: #fff;
}

.account-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 120%, rgba(96, 165, 250, 0.35), transparent 55%);
  pointer-events: none;
}

.account-hero .container-fluid {
  position: relative;
  z-index: 1;
}

/* Centered content column — aligns hero, nav, and main */
.account-page-frame {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

/* Account: lock to one viewport height (desktop); no page scroll */
html:has(.account-shell--viewport-lock) {
  height: 100%;
  overflow: hidden;
}

.account-shell--viewport-lock {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.account-shell--viewport-lock .site-navbar--account {
  position: relative !important;
  flex-shrink: 0;
}

.account-topbar--compact {
  flex-shrink: 0;
}

.account-hero--compact {
  flex-shrink: 0;
}

.account-hero-compact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.account-hero-compact-main {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-width: 0;
  flex: 1 1 14rem;
}

.account-avatar--compact {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  font-size: 1.1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.account-hero-kicker--compact {
  margin-bottom: 0.12rem;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}

.account-hero-compact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
  margin-bottom: 0.12rem;
}

.account-hero-breadcrumb .breadcrumb {
  font-size: 0.7rem;
  padding: 0;
  margin: 0;
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.42);
}

.account-hero-title--compact {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.account-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  flex: 0 1 auto;
}

.account-stat-tile--compact {
  min-width: 5.25rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.7rem;
}

.account-stat-tile--compact .account-stat-tile__value {
  font-size: 1rem;
}

.account-stat-tile--compact .account-stat-tile__label {
  font-size: 0.58rem;
  margin-top: 0.15rem;
  letter-spacing: 0.03em;
}

.account-main-zone {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 0.6rem !important;
  padding-bottom: 0.6rem !important;
}

.account-page-frame--fill {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.account-layout-row {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.account-layout-row > [class*="col-"] {
  min-height: 0;
}

.account-shell--viewport-lock .account-rail {
  position: relative;
  top: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
}

.account-rail__inner--compact {
  padding: 0.8rem 0.85rem 0.7rem !important;
}

.account-shell--viewport-lock .account-rail .nav-link {
  padding: 0.48rem 0.72rem 0.48rem 1.1rem;
  margin-bottom: 0.32rem;
  font-size: 0.8rem;
  border-radius: 12px;
}

.account-shell--viewport-lock .account-rail .nav-link i {
  font-size: 0.95rem;
}

.account-shell--viewport-lock .account-rail__label {
  padding: 0 0.55rem 0.4rem;
  font-size: 0.6rem;
}

.account-shell--viewport-lock .account-canvas {
  min-height: 0 !important;
  flex: 1 1 auto;
  overflow: hidden;
}

.account-canvas-body {
  min-height: 0;
  overflow: hidden;
  padding: 0.95rem 1.1rem !important;
}

@media (min-width: 992px) {
  .account-canvas-body {
    padding: 1rem 1.25rem !important;
  }
}

.account-shell--viewport-lock #acct-tab-content {
  min-height: 0;
}

.account-shell--viewport-lock #acct-tab-content > .tab-pane {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.account-shell--viewport-lock #acct-tab-content > .tab-pane:not(.show) {
  display: none !important;
}

.account-shell--viewport-lock #acct-tab-content > .tab-pane.active.show {
  display: flex !important;
  flex-direction: column;
}

.account-tab-stack {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.account-tab-stack--scroll {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.account-section-head--compact {
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  flex-shrink: 0;
}

.account-section-head--compact .account-section-title {
  font-size: 1.1rem;
}

.account-section-head--compact .account-section-lead {
  font-size: 0.78rem;
  line-height: 1.45;
}

.account-tab-fill {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.account-deposit-split {
  flex: 1 1 auto;
  min-height: 0;
}

.account-shell--viewport-lock .account-ledger {
  min-height: 0 !important;
  max-height: 100%;
}

.account-shell--viewport-lock .account-ledger__head {
  padding: 0.75rem 1rem 0.65rem;
}

.account-shell--viewport-lock .account-ledger__title {
  font-size: 1rem;
}

.account-shell--viewport-lock .account-ledger__slogan {
  display: none;
}

.account-shell--viewport-lock .account-ledger__icon {
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1.05rem;
  border-radius: 0.75rem;
}

.account-ledger__body--fill {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.account-panel__body--fill {
  min-height: 0;
  overflow: auto;
}

.account-panel__head--compact {
  padding: 0.6rem 0.95rem;
  font-size: 0.85rem;
}

.account-ledger-table--compact thead th,
.account-ledger-table--compact tbody td {
  padding: 0.38rem 0.5rem;
  font-size: 0.76rem;
}

.account-steps--compact {
  counter-reset: acctstep;
}

.account-steps--compact .account-step--compact {
  padding-left: 0;
  margin-bottom: 0.45rem;
}

.account-steps--compact .account-step--compact::before {
  display: none;
}

.account-step--compact .account-step__title {
  font-size: 0.68rem;
  margin-bottom: 0.2rem;
}

.account-settings-grid--compact {
  gap: 0.65rem;
}

.account-settings-grid--compact .account-settings-card {
  padding: 0.8rem 0.95rem;
}

.account-settings-grid--compact .account-settings-card h3 {
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}

.account-settings-grid--compact .account-settings-card .mb-3 {
  margin-bottom: 0.45rem !important;
}

.account-shell--viewport-lock .account-table-wrap--orders thead th,
.account-shell--viewport-lock .account-table-wrap--orders tbody td {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 0.82rem;
}

.account-shell--viewport-lock .account-table-wrap--orders {
  padding: 0.35rem 0.45rem 0.5rem;
}

.account-shell--viewport-lock .account-table-wrap--orders .account-orders-table {
  border-spacing: 0 0.35rem;
}

.account-shell--viewport-lock .account-card-visual {
  min-height: 9rem;
  max-height: 100%;
  padding: 1rem;
}

.account-shell--viewport-lock .account-card-visual__num {
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

@media (max-width: 991.98px) {
  html:has(.account-shell--viewport-lock) {
    height: auto;
    overflow: auto;
  }

  .account-shell--viewport-lock {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .account-shell--viewport-lock .account-rail {
    max-height: none;
  }

  .account-shell--viewport-lock #acct-tab-content > .tab-pane.active.show {
    display: block !important;
    height: auto;
    overflow: visible;
  }

  .account-tab-stack,
  .account-tab-fill,
  .account-ledger__body--fill,
  .account-panel__body--fill {
    overflow: visible;
    flex: none;
    min-height: auto;
  }
}

.account-avatar {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.account-hero-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
}

.account-hero-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.account-hero .text-white-50 {
  color: rgba(255, 255, 255, 0.72) !important;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

/* Hero sits in a 50% column — keep three metrics but tighten slightly */
@media (min-width: 992px) {
  .account-stat-grid--hero {
    gap: 0.6rem;
  }

  .account-hero .account-stat-grid--hero .account-stat-tile {
    padding: 0.8rem 0.65rem;
  }

  .account-hero .account-stat-grid--hero .account-stat-tile__value {
    font-size: 1.2rem;
  }

  .account-hero .account-stat-grid--hero .account-stat-tile__label {
    font-size: 0.66rem;
    line-height: 1.35;
  }
}

@media (max-width: 767.98px) {
  .account-stat-grid {
    grid-template-columns: 1fr;
  }
}

.account-stat-tile {
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.account-stat-tile__value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.account-stat-tile__label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
}

.account-rail {
  position: sticky;
  top: 5.75rem;
  border-radius: 1.75rem !important;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.04) !important;
}

.account-rail__inner {
  padding: 1.35rem 1.1rem 1.25rem;
}

.account-rail__label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0 0.65rem 0.85rem;
}

.account-rail #acct-tabs {
  margin-bottom: 0.35rem;
}

/* Account rail: card-style nav buttons (default) */
.account-rail .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem 0.8rem 1.35rem;
  margin-bottom: 0.5rem;
  border-radius: 15px;
  border: 1px solid #dbe4ff;
  background: #f5f8ff;
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-rail .nav-link:last-of-type {
  margin-bottom: 0;
}

.account-rail .nav-link::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.35rem;
  border-radius: 4px;
  background: #c8d4f8;
  transition: background 0.18s ease, height 0.18s ease, box-shadow 0.18s ease;
}

.account-rail .nav-link i {
  font-size: 1.15rem;
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.account-rail .nav-link:hover {
  background: #eef2ff;
  border-color: #cdd9f7;
  color: #1e40af;
}

.account-rail .nav-link:hover i {
  color: #3b82f6;
}

.account-rail .nav-link:hover::before {
  background: #93b4ff;
}

/* Account rail: active state */
.account-rail .nav-link.active {
  background: #f0f3ff;
  border-color: #b8c9f5;
  color: #2b58e6;
  box-shadow: 0 4px 16px rgba(43, 88, 230, 0.12);
}

.account-rail .nav-link.active i {
  color: #2b58e6;
}

.account-rail .nav-link.active::before {
  background: #2563eb;
  height: 1.55rem;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.account-rail .nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
}

/* Account rail: bottom CTA capsule */
.account-rail__cta {
  margin-top: 0.35rem;
  border-radius: 999px !important;
  border: 1px solid #94a3b8 !important;
  color: #334155 !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1rem !important;
  background: #fff !important;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.account-rail__cta:hover {
  border-color: #64748b !important;
  color: #0f172a !important;
  background: #f8fafc !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.account-canvas {
  border-radius: 1.25rem !important;
  box-shadow: var(--shadow-md) !important;
  background: #fff;
  min-height: 28rem;
}

.account-section-head {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.account-section-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.account-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.account-section-lead {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 42rem;
  margin-bottom: 0;
}

.account-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fafbff;
  height: 100%;
}

.account-panel--dark {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.account-panel--dark .text-muted-custom {
  color: rgba(226, 232, 240, 0.65) !important;
}

.account-panel__head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.95rem;
}

.account-panel--dark .account-panel__head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.account-panel--dark table tbody tr + tr td {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.account-panel__body {
  padding: 1.25rem;
}

.account-steps {
  counter-reset: acctstep;
}

.account-step {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.35rem;
}

.account-step::before {
  counter-increment: acctstep;
  content: counter(acctstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.account-step:last-child {
  margin-bottom: 0;
}

.account-step__title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

/* Deposit / withdraw ledger dark cards */
.account-ledger {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  min-height: 20rem;
}

.account-ledger--deposit {
  background: linear-gradient(165deg, #0c1222 0%, #111b2e 38%, #152238 100%);
}

.account-ledger--withdraw {
  background: linear-gradient(165deg, #0a0f1c 0%, #121a2e 40%, #1a1635 100%);
}

.account-ledger--deposit::before,
.account-ledger--withdraw::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 420px at 100% -20%, rgba(59, 130, 246, 0.12), transparent 55%);
  pointer-events: none;
}

.account-ledger--withdraw::before {
  background: radial-gradient(800px 400px at 0% -10%, rgba(167, 139, 250, 0.14), transparent 50%);
}

.account-ledger__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-ledger__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.45);
  margin-bottom: 0.4rem;
}

.account-ledger__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.account-ledger__slogan {
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.78);
  max-width: 22rem;
}

.account-ledger__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-ledger__body {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 1.1rem 1.25rem 1.35rem;
}

.account-ledger-responsive {
  overflow-x: auto;
}

.account-ledger-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 0.65rem;
  --bs-table-bg: transparent;
  --bs-table-border-color: transparent;
}

.account-ledger-table thead th {
  padding: 0.65rem 0.85rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.55);
  border: none;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.account-ledger-table thead th:first-child {
  border-top-left-radius: 10px;
}

.account-ledger-table thead th:last-child {
  border-top-right-radius: 10px;
}

.account-ledger-table tbody td {
  padding: 0.95rem 0.9rem;
  font-size: 0.875rem;
  color: #e2e8f0;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.account-ledger-table tbody tr {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.28));
}

.account-ledger--deposit .account-ledger-table tbody td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  box-shadow: inset 3px 0 0 0 #38bdf8;
}

.account-ledger--withdraw .account-ledger-table tbody td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  box-shadow: inset 3px 0 0 0 #a78bfa;
}

.account-ledger-table tbody td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.account-ledger-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.055);
}

.account-ledger-mono {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.8125rem;
  color: rgba(226, 232, 240, 0.72) !important;
}

.account-ledger-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-ledger-status--ok {
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: linear-gradient(165deg, rgba(22, 163, 74, 0.35) 0%, rgba(15, 23, 42, 0.55) 100%);
  box-shadow:
    0 2px 10px rgba(34, 197, 94, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.account-table-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.account-table-wrap table {
  margin-bottom: 0;
}

.account-table-wrap thead th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.account-table-wrap tbody td {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  vertical-align: middle;
}

/* Orders table: card-style rows */
.account-table-wrap--orders {
  padding: 0.5rem 0.65rem 1rem;
  background: linear-gradient(165deg, #eef2ff 0%, #f8fafc 42%, #f1f5f9 100%);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 1.1rem;
  box-shadow:
    0 12px 40px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: visible;
}

.account-table-wrap--orders .account-orders-responsive {
  overflow-x: auto;
  overflow-y: visible;
}

@media (min-width: 992px) {
  .account-table-wrap--orders .account-orders-responsive {
    overflow: visible;
  }
}

.account-table-wrap--orders .account-orders-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0 0.65rem;
  --bs-table-border-color: transparent;
  --bs-table-bg: transparent;
  --bs-table-hover-bg: transparent;
  --bs-table-hover-color: inherit;
}

.account-table-wrap--orders thead th {
  padding: 0.85rem 1.15rem 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(148, 163, 184, 0.35);
  vertical-align: bottom;
}

.account-table-wrap--orders tbody td {
  padding: 1.05rem 1.15rem;
  background: #fff;
  border: none;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  vertical-align: middle;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.account-table-wrap--orders tbody td:first-child {
  border-left: 1px solid rgba(226, 232, 240, 0.95);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  box-shadow: inset 4px 0 0 0 #3b82f6;
}

.account-table-wrap--orders tbody td:last-child {
  border-right: 1px solid rgba(226, 232, 240, 0.95);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.account-table-wrap--orders tbody tr {
  filter: drop-shadow(0 4px 14px rgba(15, 23, 42, 0.06));
}

.account-table-wrap--orders tbody tr:hover td {
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 55%);
}

.account-table-wrap--orders tbody tr:hover td:first-child {
  box-shadow: inset 4px 0 0 0 #2563eb;
}

.account-card-visual {
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: 14rem;
  background: linear-gradient(125deg, #1e293b 0%, #312e81 48%, #4338ca 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.account-card-visual::after {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -30%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 65%);
}

.account-card-visual__chip {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.account-card-visual__num {
  margin-top: 2rem;
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  font-family: ui-monospace, monospace;
  opacity: 0.92;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.account-settings-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: #fafbff;
  height: 100%;
}

.account-settings-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.deposit-channel-card {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.deposit-channel-card:hover {
  border-color: rgba(37, 99, 235, 0.35) !important;
}

input[name="payMethod"]:focus + .deposit-channel-card,
.deposit-channel-card--active {
  border-color: var(--brand) !important;
  background: rgba(37, 99, 235, 0.04);
}

.account-shell .account-aside-inner {
  position: sticky;
  top: 5.5rem;
}

.account-nav .nav-link {
  border-radius: 0.65rem;
  color: #334155;
  font-weight: 500;
  border: 1px solid transparent;
}

.account-nav .nav-link:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--brand-dark);
}

.account-nav .nav-link.active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.cursor-pointer {
  cursor: pointer;
}

.table-darkish {
  --bs-table-bg: #0f172a;
  --bs-table-color: #e2e8f0;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.04);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.auth-visual {
  display: none;
  flex: 1;
  background: linear-gradient(145deg, #0a0f1a 0%, #1e3a8a 48%, #2563eb 78%, #38bdf8 100%);
  color: #fff;
  padding: 3rem;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 20% 20%, rgba(255, 255, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(56, 189, 248, 0.2), transparent 50%);
  pointer-events: none;
}

.auth-visual .h3,
.auth-visual a.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

@media (min-width: 992px) {
  .auth-visual {
    display: flex;
  }
}

.auth-panel {
  flex: 0 0 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--surface);
}

@media (min-width: 992px) {
  .auth-panel {
    flex: 0 0 480px;
    max-width: 480px;
    background: #fff;
    box-shadow: -20px 0 60px rgba(15, 23, 42, 0.06);
  }
}

.auth-card {
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: var(--focus);
}

.min-w-0 {
  min-width: 0;
}

.tracking-wide {
  letter-spacing: 0.06em;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
