:root {
  --bg: #f4f1ea;
  --bg-soft: #faf7f1;
  --surface: #ffffff;
  --surface-alt: #edf3f7;
  --surface-strong: #0e1b2d;
  --navy: #0e1b2d;
  --navy-strong: #132840;
  --teal: #198c9e;
  --gold: #b78c4a;
  --gold-soft: rgba(183, 140, 74, 0.16);
  --ink: #111827;
  --muted: #5f6b7a;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(
      circle at top left,
      rgba(25, 140, 158, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at top right,
      rgba(183, 140, 74, 0.12),
      transparent 28%
    ),
    linear-gradient(180deg, var(--bg) 0%, #fbf9f4 48%, #f1ece3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.hero-visual img,
.split-media img,
.trust-media img,
.page-hero-visual img,
.hero-floating-card img,
.dashboard-panel img,
.bitcoin-hero-copy img,
.bitcoin-wallet-card img,
.bitcoin-panel img,
.feature-item img,
.service-card img,
.auth-panel img,
.admin-panel img,
.callout-panel img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

svg,
video,
canvas,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.08;
}

.page-shell,
.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.page-shell {
  padding: 0 0 32px;
}

.page-shell,
.container,
.dashboard-shell {
  min-width: 0;
}

.site-header {
  position: relative;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-actions-desktop {
  justify-content: flex-end;
}

.brand,
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  transition: transform 180ms ease;
}

.brand-lockup {
  justify-content: flex-start;
}

.brand-logo-image {
  display: block;
  width: clamp(200px, 25vw, 320px);
  height: auto;
}

/* Mobile auth toggle (desktop buttons hidden on small screens) */
.nav-actions-mobile {
  display: none;
  align-items: center;
}

.auth-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--surface);
  color: var(--navy);
  font-size: 1.05rem;
}

.auth-menu {
  position: absolute;
  right: 12px;
  top: 64px;
  min-width: 160px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 8px;
  display: none;
  z-index: 1200;
}

.auth-menu.is-open {
  display: block;
}
.auth-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--navy);
  border-radius: 8px;
}
.auth-menu a:hover,
.auth-menu a:focus {
  background: var(--bg-soft);
}

.brand:hover,
.brand:focus-visible,
.brand-link:hover,
.brand-link:focus-visible {
  transform: translateY(-1px);
}

.brand-mark-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--surface);
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: var(--shadow-soft);
}

.brand-wordmark {
  display: grid;
  gap: 2px;
}

.brand-name {
  color: var(--navy);
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0 8px;
}

.site-nav-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 4px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.84;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  transform: translateY(-1px);
  background: transparent;
  box-shadow: none;
  opacity: 1;
}

.site-nav a.is-active {
  box-shadow: inset 0 -2px 0 var(--teal);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.service-card a:hover,
.service-card a:focus-visible {
  transform: translateY(-1px);
}

.button-small {
  padding: 11px 16px;
}

.button-primary {
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navy-strong) 55%,
    var(--teal) 180%
  );
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(14, 27, 45, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(14, 27, 45, 0.28);
}

.button-secondary,
.button-outline {
  border-color: rgba(14, 27, 45, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-outline:hover,
.button-outline:focus-visible {
  border-color: rgba(25, 140, 158, 0.36);
  background: var(--surface-alt);
}

.hero-section,
.split-section,
.section-surface,
.page-hero,
.callout-panel,
.auth-panel,
.admin-panel,
.dashboard-panel,
.welcome-panel,
.balance-card,
.feature-item,
.service-card,
.info-card,
.value-card,
.step-card,
.metric,
.bitcoin-hero-copy,
.bitcoin-wallet-card,
.bitcoin-panel,
.sidebar-card,
.crypto-modal-panel,
.site-footer {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: clamp(24px, 5vw, 56px);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(rgba(9, 15, 27, 0.56), rgba(9, 15, 27, 0.56)),
    url("assets/hero-boardroom.jpg") center center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-copy,
.hero-text {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 38px);
  border-radius: calc(var(--radius-xl) + 10px);
  background: rgba(9, 15, 27, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(9, 15, 27, 0.25);
}

.hero-copy h1,
.hero-text h1,
.section-heading h2,
.split-copy h2,
.page-hero h1,
.callout-panel h2,
.auth-panel h1,
.admin-panel h1,
.admin-panel h2,
.topbar-copy h1,
.welcome-copy h2,
.panel-heading h2 {
  margin: 0;
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero-copy h1,
.hero-text h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.02;
  color: #ffffff;
}

.hero-lead,
.section-copy,
.split-copy p,
.page-hero p,
.callout-panel p,
.auth-panel > p,
.admin-panel p,
.hero-copy p,
.hero-text p,
.card-copy,
.panel-copy,
.topbar-copy p,
.welcome-copy p,
.transaction-copy span,
.transaction-copy small,
.bitcoin-hero-copy p,
.wallet-hint,
.bitcoin-steps p,
.bitcoin-submission-item p,
.bitcoin-submission-item small,
.site-footer p {
  color: var(--muted);
}

.hero-copy .hero-lead,
.hero-text .hero-lead,
.hero-copy p,
.hero-text p {
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.cta-actions,
.wallet-actions,
.auth-actions,
.balance-form-actions,
.crypto-actions-row,
.crypto-admin-summary,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.metric {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
}

.metric-value {
  display: block;
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.metric-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-visual,
.split-media,
.trust-media,
.page-hero-visual {
  position: relative;
  height: auto;
  max-height: none;
  border-radius: calc(var(--radius-xl) + 10px);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  align-self: stretch;
}

.hero-floating-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 320px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

.hero-floating-card p {
  margin: 0;
}

.section-surface,
.split-section,
.page-hero,
.callout-panel {
  padding: 78px;
  border-radius: calc(var(--radius-xl) + 8px);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 800;
}

.card-grid,
.feature-grid,
.value-grid,
.step-grid,
.crypto-admin-grid,
.crypto-modal-grid,
.crypto-trade-layout,
.dashboard-grid-secondary,
.balance-grid,
.account-details-grid,
.bitcoin-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-section,
.page-hero {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: 1fr minmax(240px, 45%);
  align-items: start;
}

.split-section > *,
.page-hero > * {
  min-width: 0;
}

/* Mobile-first: stack sections on small screens; on larger screens place text left and image right */
@media (min-width: 768px) {
  .split-section,
  .page-hero {
    grid-template-columns: 1fr minmax(320px, 50%);
  }

  .page-hero-layout {
    grid-template-columns: 1fr minmax(320px, 50%);
  }

  .split-copy,
  .page-hero-copy,
  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .split-media,
  .page-hero-visual,
  .hero-visual,
  .trust-media {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    max-width: 100%;
    overflow: hidden;
    height: clamp(320px, 40vh, 75vh);
    border-radius: calc(var(--radius-xl) + 6px);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
  }

  /* Make the image fill its container like a hero visual (cover) for a bolder look */
  .split-media img,
  .page-hero-visual img,
  .hero-visual img,
  .trust-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .split-section,
  .page-hero {
    grid-template-columns: 1fr;
  }
  .split-media,
  .page-hero-visual,
  .hero-visual,
  .trust-media {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-height: none;
    height: auto;
    justify-self: stretch;
  }
  .split-copy,
  .page-hero-copy,
  .hero-copy {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
  }
}

/* Final media/text alignment: keep media in right column and text left, no stacking */
.split-media,
.page-hero-visual,
.hero-visual,
.trust-media {
  justify-self: end;
  align-self: start;
  padding-left: 12px;
  z-index: auto;
}

.split-copy,
.page-hero-copy {
  z-index: auto;
  align-self: start;
}

.page-hero-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr minmax(220px, 45%);
  align-items: start;
  grid-auto-rows: auto;
}

.page-hero-copy,
.split-copy,
.hero-copy,
.hero-text {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--navy);
  font-weight: 700;
}

.service-card,
.feature-item,
.value-card,
.step-card,
.info-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: calc(var(--radius-xl) + 2px);
  align-content: start;
}

.service-card {
  min-height: 220px;
}

.service-card h3,
.feature-item h3,
.value-card h3,
.step-card h3,
.info-card h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 800;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(25, 140, 158, 0.14),
    rgba(183, 140, 74, 0.14)
  );
  color: var(--navy);
  font-weight: 800;
}

.service-card a {
  color: var(--teal);
  font-weight: 700;
}

.feature-label {
  display: block;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 0 0 32px;
}

.dashboard-sidebar {
  position: static;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px;
  border-radius: calc(var(--radius-xl) + 4px);
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

.sidebar-brand {
  display: grid;
  gap: 4px;
}

.sidebar-brand p {
  margin: 0;
  color: var(--muted);
}

.dashboard-nav {
  display: grid;
  gap: 8px;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-alt);
  color: var(--navy);
  font-weight: 700;
}

.dashboard-nav a.is-active,
.dashboard-nav a:hover,
.dashboard-nav a:focus-visible {
  background: var(--navy);
  color: #ffffff;
}

.dashboard-main {
  display: grid;
  gap: 22px;
}

.dashboard-topbar,
.welcome-panel,
.dashboard-panel,
.balance-card {
  padding: 24px;
  border-radius: calc(var(--radius-xl) + 4px);
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.topbar-copy,
.welcome-copy,
.panel-heading,
.section-heading {
  display: grid;
  gap: 10px;
}

.dashboard-overview,
.dashboard-grid {
  display: grid;
  gap: 18px;
}

.welcome-panel {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
}

.welcome-meta {
  display: grid;
  gap: 12px;
  align-content: start;
}

.welcome-meta > div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-alt);
}

.welcome-meta-label {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.balance-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.dashboard-grid-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.balance-card {
  display: grid;
  gap: 12px;
}

.balance-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.balance-card-value-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.balance-card h2 {
  margin: 0;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.balance-card-head p,
.account-detail-card p {
  margin: 0 0 8px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.balance-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 46px;
  height: 46px;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
}

.balance-toggle:hover,
.balance-toggle:focus-visible {
  border-color: rgba(25, 140, 158, 0.28);
  background: var(--surface-alt);
}

.balance-toggle-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.balance-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.balance-value.masked,
.transaction-amount.masked {
  letter-spacing: 0.2em;
  color: var(--navy);
}

.account-detail-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: calc(var(--radius-xl) + 2px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.account-detail-card h2 {
  margin: 0;
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--navy);
  word-break: break-word;
}

.transaction-list {
  display: grid;
  gap: 12px;
}

.transaction-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface-alt);
}

.transaction-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(25, 140, 158, 0.12);
  color: var(--teal);
}

.transaction-icon.negative {
  background: rgba(183, 140, 74, 0.12);
  color: var(--gold);
}

.transaction-copy {
  display: grid;
  gap: 2px;
}

.transaction-copy strong,
.dashboard-panel h2,
.panel-heading h2 {
  color: var(--navy);
}

.transaction-amount.positive {
  color: var(--teal);
}

.transaction-amount.negative {
  color: var(--gold);
}

body.activity-drawer-open {
  overflow: hidden;
}

.dashboard-activity-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.dashboard-activity-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dashboard-activity-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 17, 28, 0.56);
  backdrop-filter: blur(6px);
}

.dashboard-activity-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(100%, 760px);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 22px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  transform: translateY(18px);
  transition: transform 180ms ease;
}

.dashboard-activity-drawer.is-open .dashboard-activity-panel {
  transform: translateY(0);
}

.dashboard-activity-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-activity-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
}

.dashboard-activity-close:hover,
.dashboard-activity-close:focus-visible {
  background: var(--surface-alt);
}

.dashboard-activity-list {
  margin-top: 4px;
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 18px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  background: var(--surface);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.action-tile {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 12px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface);
  color: var(--navy);
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.action-tile i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(25, 140, 158, 0.12),
    rgba(183, 140, 74, 0.12)
  );
  color: var(--navy);
}

.bitcoin-shell {
  display: grid;
  gap: 18px;
  padding-bottom: 4px;
}

.bitcoin-hero,
.bitcoin-grid {
  display: grid;
  gap: 18px;
}

.bitcoin-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: stretch;
}

.bitcoin-hero-copy,
.bitcoin-wallet-card,
.bitcoin-panel {
  padding: 28px;
  border-radius: calc(var(--radius-xl) + 4px);
}

.bitcoin-hero-copy {
  display: grid;
  gap: 16px;
}

.bitcoin-wallet-card,
.bitcoin-panel {
  display: grid;
  gap: 16px;
}

.wallet-card-label,
.bitcoin-form-row label,
.bitcoin-steps strong,
.bitcoin-mini-card span,
.bitcoin-submission-item strong {
  color: var(--navy);
  font-weight: 700;
}

.wallet-card-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal);
}

.wallet-address {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--surface-alt);
  word-break: break-all;
}

.auth-shell,
.admin-shell {
  padding: 24px 0 40px;
}

.admin-login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 180px);
}

.auth-panel,
.admin-panel {
  padding: 32px;
  border-radius: calc(var(--radius-xl) + 6px);
}

.auth-panel {
  max-width: 760px;
  margin: clamp(28px, 6vw, 72px) auto;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 18px;
  border-radius: calc(var(--radius-xl) + 8px);
}

.admin-login-card {
  width: min(100%, 560px);
}

.auth-grid,
.balance-form,
.bitcoin-form {
  display: grid;
  gap: 16px;
}

.auth-row,
.balance-form-row,
.bitcoin-form-row {
  display: grid;
  gap: 8px;
}

.auth-row label,
.balance-form-row label,
.bitcoin-form-row label {
  font-weight: 700;
  color: var(--navy);
}

.auth-row input,
.auth-row select,
.balance-form-row input,
.balance-form-row textarea,
.balance-form-row input[type="file"],
.bitcoin-form-row input[type="file"],
.bitcoin-form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
}

.auth-row input:focus,
.auth-row select:focus,
.balance-form-row input:focus,
.balance-form-row textarea:focus,
.balance-form-row input[type="file"]:focus,
.bitcoin-form-row input[type="file"]:focus,
.bitcoin-form-row textarea:focus {
  outline: 2px solid rgba(25, 140, 158, 0.32);
  outline-offset: 2px;
}

.balance-form-row textarea,
.bitcoin-form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.balance-form-row input[type="file"],
.bitcoin-form-row input[type="file"] {
  padding: 12px 14px;
}

.site-footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 28px 22px;
  border-radius: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-links a,
.site-footer .social-links a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--navy);
}

.site-footer .social-links a {
  margin-left: 8px;
}

.img-rounded {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.crypto-modal-content {
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.crypto-modal-header,
.crypto-modal-body {
  padding: 24px;
}

.crypto-modal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crypto-modal-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
}

.crypto-modal-panel--deposit[hidden] {
  display: none !important;
}

.crypto-market-stats {
  display: grid;
  gap: 12px;
}

.crypto-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.crypto-wallet-address {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crypto-copy-button {
  width: auto;
}

.crypto-modal-feedback {
  min-height: 1.5rem;
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--muted);
}

.crypto-modal-feedback.text-success {
  color: #2b8a5a !important;
}

.crypto-modal-feedback.text-danger {
  color: #c73f3f !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1200px) {
  .page-shell,
  .container,
  .dashboard-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .dashboard-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .card-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .split-section,
  .page-hero {
    grid-template-columns: 1fr minmax(320px, 55%);
  }

  .hero-visual,
  .split-media,
  .page-hero-visual {
    height: clamp(280px, 26vw, 420px);
  }
}

@media (max-width: 1024px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .page-hero-layout,
  .split-section,
  .bitcoin-hero,
  .crypto-trade-layout {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero,
  .split-section {
    gap: 24px;
  }

  .hero-visual,
  .split-media,
  .split-media,
  .page-hero-visual,
  .hero-visual,
  .trust-media {
    justify-self: end;
    align-self: start;
    padding-left: 12px;
    z-index: auto;
  }
  .split-copy,
  .page-hero-copy {
    z-index: auto;
    align-self: start;
  }
  .header-actions {
    margin-left: 0;
    justify-self: end;
  }
}

@media (max-width: 560px) {
  .brand-logo-image {
    width: clamp(180px, 68vw, 260px);
  }
  .brand-subtitle {
    letter-spacing: 0.14em;
  }
  .site-header {
    padding: 10px 0;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
  }

  .brand,
  .brand-link {
    flex: 0 0 auto;
  }

  .header-actions {
    margin-left: auto;
    width: auto;
    justify-self: end;
    justify-content: flex-end;
    order: 2;
  }

  .nav-actions {
    width: auto;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .nav-actions a {
    white-space: nowrap;
  }

  .site-nav {
    flex: 1 0 100%;
    width: 100%;
    justify-content: flex-start;
    padding: 0;
    order: 3;
  }

  .site-nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 10px;
  }

  .site-header {
    grid-template-columns: none;
  }

  .hamburger-toggle,
  .nav-toggle {
    display: none !important;
  }

  .site-nav a {
    padding: 8px 0;
    min-height: 34px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-shell,
  .dashboard-main {
    gap: 14px;
  }

  .dashboard-sidebar {
    position: static;
    padding: 18px 14px;
  }

  .dashboard-topbar {
    flex-direction: column;
    gap: 12px;
    padding: 18px 14px;
  }

  .topbar-copy h1 {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }

  .topbar-copy p {
    font-size: 0.95rem;
  }

  .dashboard-nav a {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .dashboard-nav a span {
    white-space: nowrap;
  }

  .dashboard-topbar,
  .welcome-panel,
  .dashboard-panel,
  .balance-card {
    padding: 16px 14px;
  }

  .balance-card h2 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .balance-toggle {
    min-width: 40px;
    height: 40px;
    padding: 0;
  }

  .dashboard-grid,
  .dashboard-grid-secondary,
  .balance-grid,
  .account-details-grid,
  .crypto-modal-grid,
  .crypto-admin-grid,
  .crypto-trade-layout,
  .welcome-panel {
    gap: 12px;
  }

  .balance-card,
  .dashboard-panel,
  .welcome-panel {
    border-radius: 18px;
  }

  .welcome-panel,
  .dashboard-grid,
  .dashboard-grid-secondary,
  .balance-grid,
  .account-details-grid,
  .action-grid,
  .bitcoin-hero,
  .bitcoin-grid,
  .crypto-modal-grid,
  .crypto-admin-grid,
  .crypto-trade-layout,
  .page-hero-layout,
  .split-section,
  .card-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding: 24px;
  }

  .hero-visual,
  .split-media,
  .trust-media,
  .page-hero-visual {
    height: clamp(180px, 52vw, 240px);
  }

  .hero-copy,
  .hero-text {
    width: 100%;
    padding: 24px;
  }

  .hero-copy h1,
  .hero-text h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section-surface,
  .split-section,
  .page-hero,
  .callout-panel,
  .dashboard-topbar,
  .dashboard-panel,
  .welcome-panel,
  .balance-card,
  .site-footer,
  .auth-panel,
  .admin-panel {
    padding: 20px 16px;
  }

  .footer-links,
  .hero-actions,
  .cta-actions,
  .wallet-actions,
  .auth-actions,
  .balance-form-actions,
  .crypto-actions-row {
    gap: 10px;
  }
}

/* Mobile dashboard: compact pages dropdown for phones and Android */
@media (max-width: 768px) {
  .dashboard-shell {
    grid-template-columns: 1fr !important;
    width: min(calc(100% - 20px), var(--max-width)) !important;
    gap: 12px !important;
    overflow-x: hidden;
  }

  .dashboard-main {
    gap: 12px !important;
  }

  .sidebar-drawer {
    display: none !important;
  }

  .dashboard-sidebar {
    display: none !important;
  }

  /* Header adjustments */
  .site-nav {
    display: none;
  }
  .brand-logo-image {
    width: 140px;
  }
  .nav-actions-desktop {
    display: none;
  }
  .nav-actions-mobile {
    display: flex;
  }
  .auth-menu {
    right: 8px;
    top: 56px;
  }

  .sidebar-brand,
  .sidebar-card,
  .sidebar-backdrop,
  .hamburger-toggle {
    display: none !important;
  }

  .dashboard-mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: sticky;
    top: 10px;
    z-index: 20;
    margin: 0 0 2px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: calc(var(--radius-xl) - 10px);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
  }

  .dashboard-page-menu {
    display: block;
    position: relative;
    margin-left: auto;
  }

  .dashboard-page-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--navy);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
  }

  .dashboard-page-menu-toggle::-webkit-details-marker {
    display: none;
  }

  .dashboard-page-menu[open] .dashboard-page-menu-toggle {
    background: var(--surface-alt);
  }

  .dashboard-page-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 30;
    display: none;
    gap: 6px;
    width: min(320px, calc(100vw - 24px));
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .dashboard-page-menu[open] .dashboard-page-menu-panel {
    display: grid;
  }

  .dashboard-page-menu-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 14px;
    background: var(--surface-alt);
    color: var(--navy);
    font-weight: 700;
  }

  .dashboard-page-menu-panel a.is-active,
  .dashboard-page-menu-panel a:hover,
  .dashboard-page-menu-panel a:focus-visible {
    background: var(--navy);
    color: #ffffff;
  }

  .dashboard-mobile-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .dashboard-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(
      135deg,
      rgba(25, 140, 158, 0.18),
      rgba(183, 140, 74, 0.2)
    );
    color: var(--navy);
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .dashboard-mobile-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .dashboard-mobile-greeting {
    margin: 0;
    color: var(--navy);
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .dashboard-mobile-subtitle {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
  }

  .dashboard-mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .dashboard-mobile-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--navy);
  }

  .dashboard-mobile-icon-button:hover,
  .dashboard-mobile-icon-button:focus-visible {
    background: var(--surface-alt);
  }

  .dashboard-main {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .dashboard-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: min(calc(100% - 14px), 480px);
    padding: 10px 10px 12px;
    transform: translateX(-50%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
  }

  .dashboard-bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 10px 4px 8px;
    border-radius: 18px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
  }

  .dashboard-bottom-nav a i {
    font-size: 1rem;
  }

  .dashboard-bottom-nav a.is-active,
  .dashboard-bottom-nav a:hover,
  .dashboard-bottom-nav a:focus-visible {
    background: rgba(25, 140, 158, 0.1);
    color: var(--navy);
  }

  .dashboard-topbar,
  .dashboard-grid-secondary,
  .welcome-panel,
  .balance-grid,
  .dashboard-grid,
  .account-details-grid,
  .crypto-modal-grid,
  .crypto-admin-grid,
  .crypto-trade-layout {
    grid-template-columns: 1fr !important;
  }

  .dashboard-topbar,
  .welcome-panel,
  .dashboard-panel,
  .balance-card {
    padding: 18px 16px !important;
    border-radius: 24px !important;
  }

  .dashboard-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.94)
    );
  }

  .topbar-copy h1 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .topbar-copy p {
    font-size: 0.95rem;
  }

  .balance-card-head {
    align-items: flex-start;
  }

  .balance-toggle {
    min-width: 40px;
    height: 40px;
    padding: 0;
  }

  .balance-card,
  .dashboard-panel {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(15, 23, 42, 0.06) !important;
  }

  .balance-card h2 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .balance-card-head p,
  .account-detail-card p {
    letter-spacing: 0.14em;
  }

  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .action-tile {
    padding: 16px 10px;
    border-radius: 18px;
  }

  .transaction-item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .transaction-copy {
    gap: 4px;
  }

  .transaction-amount {
    margin-top: 4px;
  }

  .transaction-amount {
    grid-column: 2;
    justify-self: start;
  }

  .dashboard-grid-secondary .dashboard-panel {
    min-height: 0;
  }
}
/* ============================= */
/* ADMIN CLEAN COMPACT FIX */
/* ============================= */

.admin-panel {
  padding: 18px !important;
}

.dashboard-topbar,
.balance-card,
.dashboard-panel,
.welcome-panel {
  padding: 16px !important;
}

.section-surface,
.split-section,
.page-hero,
.callout-panel {
  padding: 24px !important;
}

/* Make headings smaller in admin */
.admin-panel h1 {
  font-size: 22px !important;
}

.admin-panel h2 {
  font-size: 18px !important;
}

.admin-panel h3 {
  font-size: 15px !important;
}

/* Reduce spacing */
.dashboard-main,
.dashboard-grid,
.dashboard-grid-secondary {
  gap: 12px !important;
}

/* Make cards tighter */
.service-card,
.feature-item,
.value-card,
.step-card,
.info-card {
  padding: 14px !important;
}

/* Tables look tighter */
table {
  font-size: 13px !important;
}

th, td {
  padding: 6px 8px !important;
}