:root {
  --bg: #f7f9fd;
  --bg-soft: #eef4ff;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.82);
  --text: #162033;
  --muted: #6f7b92;
  --line: #dce6f5;
  --brand: #2457f5;
  --brand-soft: #eef3ff;
  --accent: #17b26a;
  --accent-soft: #e8fff4;
  --orange: #ff8b3d;
  --shadow: 0 24px 52px rgba(32, 75, 145, 0.1);
  --drawer-surface: rgba(255, 255, 255, 0.98);
  --drawer-text: #162033;
  --drawer-muted: #6f7b92;
  --drawer-line: rgba(22, 32, 51, 0.08);
  --drawer-shadow: -18px 0 44px rgba(53, 79, 128, 0.16);
}

body.light-theme {
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.92);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(36, 87, 245, 0.08),
      transparent 18%
    ),
    linear-gradient(180deg, #f8fbff 0%, #f7f9fd 40%, #f3f7fd 100%);
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border: 1px solid rgba(220, 230, 245, 0.9);
  border-radius: 22px;
  background: var(--panel-soft);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 22px rgba(91, 129, 214, 0.08);
  position: sticky;
  top: 14px;
  z-index: 20;
}

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

.brand-mark,
.app-logo {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #5b83ff);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.brand-copy,
.logo-text,
.nav-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong,
.hero h1,
.feature-copy h2,
.cards-copy h2,
.section-heading h2,
.app-copy h2,
.logo-text strong {
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy small,
.nav,
.hero-text,
.feature-copy p,
.feature-card p,
.cards-copy p,
.benefit-card p,
.country-card span,
.app-copy p,
.nav-copy small,
.footer-links,
.site-footer p,
.download-label,
.trade-topline span,
.trade-box label,
.asset-list,
.trade-updated,
.cookie-copy p {
  color: var(--muted);
}

.nav {
  display: inline-flex;
  gap: 18px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--brand);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.button,
.cta-button,
.store-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible,
.cta-button:hover,
.cta-button:focus-visible,
.store-pill:hover,
.store-pill:focus-visible,
.menu-trigger:hover,
.menu-trigger:focus-visible,
.close-button:hover,
.close-button:focus-visible {
  transform: translateY(-1px);
}

.button-primary,
.cta-button {
  background: linear-gradient(135deg, var(--brand), #5b83ff);
  color: #fff;
  box-shadow: 0 12px 24px rgba(36, 87, 245, 0.2);
}

.button-secondary,
.button-ghost,
.store-pill {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.theme-toggle {
  color: var(--brand);
}

.menu-trigger {
  width: 50px;
  height: 50px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.menu-trigger span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
  padding: 72px 0 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.download-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-panel,
.trade-card,
.feature-card,
.glass-card,
.benefit-card,
.country-card,
.phone-mock,
.site-footer,
.feature-split,
.cards-section,
.country-section,
.app-section {
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
}

.trade-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border-radius: 999px;
  background: var(--bg-soft);
}

.tab-button {
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.tab-button.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 18px rgba(91, 129, 214, 0.12);
}

.trade-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.trade-topline,
.trade-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trade-topline {
  margin-bottom: 10px;
}

.trade-status-row {
  margin-bottom: 16px;
}

.trade-topline strong {
  color: var(--brand);
  font-size: 0.95rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.trade-updated {
  font-size: 0.78rem;
  text-align: right;
}

.trade-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfdff;
}

.trade-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.trade-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
}

.asset-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  min-width: 64px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}

.coin-chip {
  background: #fff3e8;
  color: var(--orange);
}

.asset-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.82rem;
}

.asset-list span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0f5ff;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.asset-list span:hover,
.asset-list span:focus-visible {
  transform: translateY(-1px);
}

.asset-list .is-active {
  background: var(--brand);
  color: #fff;
}

.trade-swap {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 14px auto;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 800;
}

.trade-action {
  width: 100%;
  margin-top: 18px;
}

.trade-result-message {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f0f7ff;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 700;
}

.trade-result-message[hidden] {
  display: none;
}

.currency-marquee {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 64px;
}

.currency-popup-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(36, 87, 245, 0.12), rgba(91, 131, 255, 0.06)),
    #fff;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(32, 75, 145, 0.08);
}

.currency-marquee span {
  display: inline-flex;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.currency-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: rgba(10, 20, 40, 0.48);
  opacity: 0;
  transition: opacity 260ms ease;
}

.currency-popup {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.currency-popup-card {
  position: relative;
  width: min(100%, 420px);
  min-height: 640px;
  padding: 26px 22px 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(180deg, rgba(8, 14, 34, 0.12), rgba(8, 14, 34, 0.76)),
    linear-gradient(160deg, #5a89ff 0%, #2457f5 38%, #13254d 100%);
  box-shadow: 0 28px 60px rgba(9, 18, 38, 0.32);
  overflow: hidden;
}

.currency-popup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 24%),
    radial-gradient(
      circle at 50% 28%,
      rgba(255, 255, 255, 0.24),
      transparent 18%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 139, 61, 0.34),
      transparent 22%
    );
  pointer-events: none;
}

.currency-popup-close,
.currency-popup-copy,
.currency-popup-list {
  position: relative;
  z-index: 1;
}

.currency-popup-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.currency-popup-copy {
  margin-top: 42px;
}

.currency-popup-copy .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.currency-popup-copy h2 {
  margin: 0;
  max-width: 11ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 8vw, 3.2rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.currency-popup-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.currency-popup-list span {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.auth-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: start;
  padding: 54px 0 34px;
}

.auth-showcase,
.auth-panel,
.auth-status-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.auth-showcase {
  position: sticky;
  top: 120px;
  padding: 34px;
  color: #fff;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.2),
      transparent 20%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 139, 61, 0.32),
      transparent 20%
    ),
    linear-gradient(155deg, #0f1f44 0%, #2457f5 52%, #68b0ff 100%);
}

.auth-showcase .eyebrow,
.auth-showcase .hero-text,
.auth-benefit-card span,
.auth-showcase-alt .hero-text {
  color: rgba(255, 255, 255, 0.82);
}

.auth-showcase h1 {
  margin: 0;
  max-width: 11ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.auth-benefit-stack {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.auth-benefit-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.auth-showcase-alt {
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.24),
      transparent 18%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(23, 178, 106, 0.26),
      transparent 20%
    ),
    linear-gradient(160deg, #122246 0%, #18356f 42%, #1b8f71 100%);
}

.auth-panel {
  padding: 30px;
  background: rgba(255, 255, 255, 0.96);
}

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

.auth-panel-head h2,
.auth-success-card h3,
.auth-status-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.auth-switch-link {
  color: var(--brand);
  font-weight: 700;
}

.auth-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.auth-progress span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-progress .is-active {
  background: var(--brand);
  color: #fff;
}

.auth-progress .is-complete {
  background: var(--accent-soft);
  color: var(--accent);
}

.auth-form {
  margin-top: 24px;
}

.auth-step {
  display: grid;
  gap: 18px;
}

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

.auth-field,
.auth-choice-group {
  display: grid;
  gap: 10px;
}

.auth-field span,
.auth-choice-group span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.auth-field input,
.auth-field select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  background: #fbfdff;
  color: var(--text);
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: rgba(36, 87, 245, 0.52);
  box-shadow: 0 0 0 4px rgba(36, 87, 245, 0.08);
}

.auth-choice-group {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfdff;
}

.auth-choice-group label,
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-choice-group input,
.auth-check input {
  margin-top: 2px;
}

.auth-success-card,
.auth-status-card {
  padding: 24px;
  background:
    radial-gradient(
      circle at top right,
      rgba(36, 87, 245, 0.08),
      transparent 18%
    ),
    linear-gradient(180deg, #fbfdff, #f5f8ff);
}

.auth-summary {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.auth-summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.auth-summary strong {
  color: var(--text);
}

.auth-summary span {
  color: var(--muted);
  text-align: right;
}

.auth-message {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 700;
}

.auth-message.is-error {
  background: #fff1f1;
  color: #c13e3e;
}

.auth-message.is-success {
  background: #edfdf4;
  color: #118b54;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.auth-actions .button {
  min-width: 140px;
}

.auth-status-card {
  margin-top: 18px;
}

body[data-auth-default] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body[data-auth-default] .site-shell {
  padding-bottom: 26px;
}

.auth-switch-shell {
  padding: 44px 0 28px;
}

.auth-switch-wrap {
  display: flex;
  justify-content: center;
}

.auth-switch-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  min-height: 550px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.auth-switch-forms-container {
  position: absolute;
  inset: 0;
}

.auth-switch-signin-signup {
  position: absolute;
  top: 50%;
  left: 75%;
  width: 50%;
  display: grid;
  grid-template-columns: 1fr;
  transform: translate(-50%, -50%);
  transition: 1s 0.7s ease-in-out;
  z-index: 5;
}

.auth-switch-form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 5rem;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  transition: all 0.2s 0.7s;
}

.auth-switch-sign-up-form {
  opacity: 0;
  z-index: 1;
}

.auth-switch-sign-in-form {
  z-index: 2;
}

.auth-switch-title {
  margin: 0 0 10px;
  font-size: 2.2rem;
  font-weight: 700;
  color: #444;
}

.auth-switch-input-field {
  display: grid;
  grid-template-columns: 15% 85%;
  align-items: center;
  width: 100%;
  max-width: 380px;
  height: 55px;
  margin: 10px 0;
  padding: 0 0.4rem;
  border-radius: 55px;
  background: #f0f0f0;
  transition: 0.3s;
}

.auth-switch-input-field:focus-within {
  background: #e8e8e8;
  box-shadow: 0 0 0 2px #667eea;
}

.auth-switch-input-field i {
  font-style: normal;
  text-align: center;
  line-height: 55px;
}

.auth-switch-input-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
}

.auth-switch-input-field input::placeholder {
  color: #aaa;
}

.auth-switch-btn {
  width: 150px;
  height: 49px;
  margin: 10px 0;
  border: 0;
  border-radius: 49px;
  background: #667eea;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.5s;
}

.auth-switch-btn:hover,
.auth-switch-btn:focus-visible {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.auth-switch-panels-container {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.auth-switch-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-end;
  text-align: center;
  z-index: 6;
}

.auth-switch-left-panel {
  padding: 3rem 17% 2rem 12%;
}

.auth-switch-right-panel {
  padding: 3rem 12% 2rem 17%;
  pointer-events: none;
}

.auth-switch-panel-content {
  color: #fff;
  transition: transform 0.9s ease-in-out;
  transition-delay: 0.6s;
}

.auth-switch-panel-content h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.auth-switch-panel-content p {
  margin: 0;
  padding: 0.7rem 0;
  font-size: 0.95rem;
}

.auth-switch-transparent {
  width: 130px;
  height: 41px;
  margin: 0;
  border: 2px solid #fff;
  background: transparent;
  font-size: 0.8rem;
}

.auth-switch-transparent:hover,
.auth-switch-transparent:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.auth-switch-right-panel .auth-switch-panel-content {
  transform: translateX(800px);
}

.auth-switch-container::before {
  content: "";
  position: absolute;
  top: -10%;
  right: 48%;
  width: 2000px;
  height: 2000px;
  border-radius: 50%;
  background: linear-gradient(-45deg, #667eea 0%, #764ba2 100%);
  transform: translateY(-50%);
  transition: 1.8s ease-in-out;
  z-index: 6;
}

.auth-switch-container.sign-up-mode::before {
  right: 52%;
  transform: translate(100%, -50%);
}

.auth-switch-container.sign-up-mode .auth-switch-signin-signup {
  left: 25%;
}

.auth-switch-container.sign-up-mode .auth-switch-sign-up-form {
  opacity: 1;
  z-index: 2;
}

.auth-switch-container.sign-up-mode .auth-switch-sign-in-form {
  opacity: 0;
  z-index: 1;
}

.auth-switch-container.sign-up-mode .auth-switch-left-panel {
  pointer-events: none;
}

.auth-switch-container.sign-up-mode .auth-switch-right-panel {
  pointer-events: all;
}

.auth-switch-container.sign-up-mode
  .auth-switch-left-panel
  .auth-switch-panel-content {
  transform: translateX(-800px);
}

.auth-switch-container.sign-up-mode
  .auth-switch-right-panel
  .auth-switch-panel-content {
  transform: translateX(0);
}

.auth-switch-social-text {
  margin: 0;
  padding: 0.7rem 0;
  color: #666;
  font-size: 1rem;
}

.auth-switch-social-media {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.auth-switch-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid #ddd;
  border-radius: 50%;
  transition: 0.3s;
}

.auth-switch-social-icon:hover,
.auth-switch-social-icon:focus-visible {
  border-color: #764ba2;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.auth-switch-message {
  max-width: 380px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 700;
  text-align: center;
}

.auth-switch-message.is-error {
  background: #fff1f1;
  color: #c13e3e;
}

.auth-switch-message.is-success {
  background: #edfdf4;
  color: #118b54;
}

.dashboard-body {
  background:
    radial-gradient(
      circle at top left,
      rgba(36, 87, 245, 0.14),
      transparent 18%
    ),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 48%, #f7f9fd 100%);
}

.dashboard-main {
  padding: 42px 0 32px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-hero-card,
.dashboard-stat-card,
.dashboard-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dashboard-hero-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(
      circle at top right,
      rgba(91, 131, 255, 0.2),
      transparent 22%
    ),
    linear-gradient(135deg, #16346f, #2457f5 54%, #67a5ff);
  color: #fff;
}

.dashboard-hero-label,
.dashboard-hero-card small {
  color: rgba(255, 255, 255, 0.8);
}

.dashboard-hero-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-stat-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
}

.dashboard-stat-card span {
  color: var(--muted);
}

.dashboard-stat-card strong,
.dashboard-panel-head h2,
.dashboard-asset-row strong:first-child,
.dashboard-fiat-row strong,
.dashboard-activity-row strong {
  font-family: "Space Grotesk", sans-serif;
}

.dashboard-stat-card strong {
  font-size: 1.45rem;
  line-height: 1.1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.dashboard-panel {
  padding: 24px;
  border-radius: 28px;
}

.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-live-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-trade-grid {
  display: grid;
  gap: 14px;
}

.dashboard-choice-list {
  row-gap: 8px;
}

.dashboard-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.dashboard-rate-row strong {
  color: var(--brand);
}

.dashboard-rate-row small,
.dashboard-asset-row small,
.dashboard-activity-row small,
.dashboard-empty-state {
  color: var(--muted);
}

.dashboard-holdings-list,
.dashboard-fiat-list,
.dashboard-activity-list {
  display: grid;
  gap: 12px;
}

.dashboard-asset-row,
.dashboard-fiat-row,
.dashboard-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfdff;
}

.dashboard-asset-row div,
.dashboard-activity-row div {
  display: grid;
  gap: 4px;
}

.dashboard-asset-row div:last-child,
.dashboard-activity-row div:last-child {
  text-align: right;
}

.dashboard-fiat-row span {
  font-weight: 700;
}

.dashboard-empty-state {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  background: #fbfdff;
}

.dashboard-chart-panel {
  grid-column: 1 / -1;
}

.market-chart-shell {
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  color: #fff;
}

.market-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1f2937;
}

.market-chart-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.market-chart-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  animation: marketPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.market-chart-title-wrap h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.market-chart-title-wrap h3 span {
  margin-left: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #9ca3af;
}

.market-chart-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.market-chart-price-row strong {
  font-size: 1.25rem;
}

.market-chart-change {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.market-chart-change.is-up {
  background: rgba(20, 83, 45, 0.9);
  color: #86efac;
}

.market-chart-change.is-down {
  background: rgba(127, 29, 29, 0.9);
  color: #fca5a5;
}

.market-chart-timeframe,
.market-chart-typebar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-chart-timeframe {
  justify-content: flex-end;
}

.market-chart-timeframe button,
.market-chart-typebar button {
  padding: 8px 12px;
  border-radius: 10px;
  border: 0;
  color: #d1d5db;
  background: #374151;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.market-chart-timeframe button:hover,
.market-chart-typebar button:hover,
.market-chart-timeframe button:focus-visible,
.market-chart-typebar button:focus-visible {
  transform: translateY(-1px);
}

.market-chart-timeframe .is-active {
  background: #2563eb;
  color: #fff;
}

.market-chart-typebar {
  padding: 0 24px 18px;
  background: #1f2937;
}

.market-chart-typebar .is-active {
  color: #fff;
  background: #374151;
  box-shadow: inset 0 -2px 0 #3b82f6;
}

.market-chart-canvas-wrap {
  position: relative;
  height: 400px;
  padding: 16px;
}

.market-chart-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.market-chart-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.market-chart-loading span {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(59, 130, 246, 0.25);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: marketSpin 1s linear infinite;
}

.market-chart-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 220px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(31, 41, 55, 0.95);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 0.82rem;
  pointer-events: none;
}

.market-chart-tooltip strong {
  display: block;
  margin-bottom: 8px;
}

.market-chart-tooltip-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 14px;
}

.market-chart-tooltip-grid span:nth-child(odd) {
  color: #9ca3af;
}

.market-chart-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 24px 24px;
  background: #1f2937;
}

.market-chart-stats article {
  padding: 16px;
  border-radius: 14px;
  background: #111827;
}

.market-chart-stats span {
  color: #9ca3af;
  font-size: 0.82rem;
}

.market-chart-stats strong {
  display: block;
  margin-top: 8px;
  color: #fff;
}

.market-chart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #111827;
}

.market-action {
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.market-action:hover,
.market-action:focus-visible {
  transform: translateY(-2px);
}

.market-action.buy {
  background: #16a34a;
}
.market-action.sell {
  background: #dc2626;
}
.market-action.trade {
  background: #2563eb;
}
.market-action.watch {
  background: #374151;
}

.admin-login-shell {
  display: flex;
  justify-content: center;
  padding: 54px 0 28px;
}

.admin-login-card,
.admin-user-card,
.admin-empty-state,
.admin-selected-user {
  border: 1px solid var(--line);
}

.admin-login-card {
  width: min(100%, 560px);
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-login-form,
.admin-wallet-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.admin-dashboard {
  display: block;
}

.admin-dashboard-grid {
  margin-bottom: 18px;
}

.admin-user-list {
  display: grid;
  gap: 12px;
}

.admin-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: #fbfdff;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.admin-user-card:hover,
.admin-user-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(36, 87, 245, 0.34);
  box-shadow: 0 14px 24px rgba(36, 87, 245, 0.08);
}

.admin-user-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.admin-user-card small,
.admin-user-meta span,
.admin-selected-user span,
.admin-empty-state {
  color: var(--muted);
}

.admin-user-meta {
  display: grid;
  gap: 6px;
  text-align: right;
  font-size: 0.88rem;
}

.admin-empty-state,
.admin-selected-user {
  padding: 18px;
  border-radius: 18px;
  background: #fbfdff;
}

.admin-selected-user strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.admin-quick-actions,
.admin-trade-feed,
.admin-new-users {
  display: grid;
  gap: 12px;
}

.admin-quick-actions {
  margin-bottom: 18px;
}

.admin-quick-actions article,
.admin-feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}

.admin-quick-actions article {
  align-items: flex-start;
  flex-direction: column;
}

.admin-quick-actions strong,
.admin-feed-row strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.admin-quick-actions span,
.admin-feed-row small {
  color: var(--muted);
}

.admin-feed-row div {
  display: grid;
  gap: 4px;
}

.admin-feed-row div:last-child {
  text-align: right;
}

.admin-wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-danger {
  color: #c13e3e;
  border-color: rgba(193, 62, 62, 0.22);
}

@keyframes marketPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

@keyframes marketSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.feature-split,
.cards-section,
.country-section,
.app-section {
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 32px;
  margin-bottom: 28px;
}

.feature-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: start;
}

.feature-copy h2,
.cards-copy h2,
.section-heading h2,
.app-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.feature-copy p:last-child,
.cards-copy p,
.app-copy p {
  margin: 18px 0 0;
  line-height: 1.8;
}

.feature-grid,
.card-benefits,
.country-grid {
  display: grid;
  gap: 16px;
}

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

.feature-card,
.benefit-card,
.country-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.feature-card h3,
.benefit-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.cards-stage {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
  margin-top: 26px;
}

.main-card-visual {
  padding: 26px;
  min-height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.18),
      transparent 24%
    ),
    linear-gradient(135deg, #1b2a4d, #2457f5 58%, #59a0ff);
  color: #fff;
}

.card-brand-row,
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-number {
  margin: 54px 0 34px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}

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

.country-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.app-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: center;
}

.phone-stack {
  position: relative;
  min-height: 420px;
}

.phone-mock {
  position: absolute;
  width: 240px;
  height: 400px;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 14px;
}

.primary-phone {
  left: 30px;
  top: 0;
  z-index: 2;
}

.secondary-phone {
  right: 10px;
  bottom: 0;
  z-index: 1;
  transform: rotate(8deg);
}

.phone-notch {
  width: 96px;
  height: 18px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #dfe7f4;
}

.phone-screen {
  display: grid;
  align-content: start;
  height: calc(100% - 34px);
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f0f5ff, #ffffff);
}

.alt-screen {
  background: linear-gradient(180deg, #eefbf5, #ffffff);
}

.mini-eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
}

.phone-screen strong {
  margin-top: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
  margin-top: 36px;
  height: 140px;
}

.mini-chart span {
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(180deg, #7cb3ff, #2457f5);
}

.mini-chart span:nth-child(1) {
  height: 52px;
}
.mini-chart span:nth-child(2) {
  height: 74px;
}
.mini-chart span:nth-child(3) {
  height: 96px;
}
.mini-chart span:nth-child(4) {
  height: 82px;
}
.mini-chart span:nth-child(5) {
  height: 122px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.footer-column {
  max-width: 480px;
}

.footer-column strong {
  display: block;
  margin-bottom: 8px;
}

.footer-column p {
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
}

.footer-links-inline {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(17, 28, 51, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 340ms ease;
}

.side-drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: min(92vw, 360px);
  display: flex;
  flex-direction: column;
  background: var(--drawer-surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px 34px 34px 28px;
  box-shadow: var(--drawer-shadow);
  transform: translateX(108%);
  opacity: 0;
  transition:
    transform 420ms cubic-bezier(0.2, 0.9, 0.24, 1.08),
    opacity 240ms ease;
  overflow: hidden;
}

.drawer-header {
  position: relative;
  padding: 26px 22px 24px;
  background:
    linear-gradient(150deg, rgba(91, 131, 255, 0.98), rgba(36, 87, 245, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.drawer-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.02)
  );
  pointer-events: none;
}

.close-button,
.logo-wrap,
.drawer-nav,
.drawer-footer {
  position: relative;
  z-index: 1;
}

.close-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.16);
}

.logo-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-top: 16px;
}

.app-logo {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  font-size: 1.85rem;
}

.logo-text {
  align-items: center;
  gap: 4px;
  text-align: center;
  color: #fff;
}

.logo-text span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.84);
}

.drawer-nav {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 16px 8px;
  background: linear-gradient(
    180deg,
    rgba(245, 249, 255, 0.92),
    rgba(255, 255, 255, 0.98)
  );
}

.nav-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 20px;
  color: var(--drawer-text);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  background: rgba(36, 87, 245, 0.06);
  transform: translateX(-2px);
}

.nav-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-copy {
  gap: 5px;
  padding-top: 2px;
}

.nav-copy strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--drawer-text);
}

.nav-copy small {
  line-height: 1.45;
  font-size: 0.82rem;
  color: var(--drawer-muted);
}

.drawer-footer {
  padding: 18px 18px 24px;
  background: #fff;
  border-top: 1px solid var(--drawer-line);
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(32, 75, 145, 0.14);
  backdrop-filter: blur(14px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-copy {
  max-width: 760px;
}

.cookie-copy strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.cookie-copy p {
  margin: 0;
  line-height: 1.6;
}

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

.cookie-button {
  min-width: 110px;
}

body.drawer-open .drawer-overlay {
  opacity: 1;
}

body.drawer-open .side-drawer {
  transform: translateX(0);
  opacity: 1;
}

body.currency-popup-open .currency-popup-overlay,
body.currency-popup-open .currency-popup {
  opacity: 1;
}

body.currency-popup-open .currency-popup {
  pointer-events: auto;
}

body.drawer-locked {
  overflow: hidden;
}

@media (min-width: 981px) {
  .menu-trigger {
    display: none;
  }
}

@media (max-width: 1100px) {
  .hero,
  .feature-split,
  .cards-stage,
  .app-section,
  .auth-layout,
  .dashboard-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .currency-marquee {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .phone-stack {
    min-height: 520px;
  }

  .auth-showcase {
    position: static;
  }

  .auth-switch-form {
    padding: 0 2.5rem;
  }
}

@media (max-width: 980px) {
  .desktop-nav,
  .desktop-only {
    display: none;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .topbar,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-grid,
  .country-grid,
  .currency-marquee,
  .dashboard-stats,
  .market-chart-stats,
  .admin-wallet-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links-inline {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 18px, 1180px);
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .feature-split,
  .cards-section,
  .country-section,
  .app-section,
  .auth-showcase,
  .auth-panel,
  .auth-status-card,
  .hero-panel,
  .site-footer {
    border-radius: 22px;
    padding: 22px;
  }

  .feature-grid,
  .country-grid,
  .currency-marquee,
  .dashboard-stats,
  .market-chart-stats,
  .admin-wallet-grid {
    grid-template-columns: 1fr;
  }

  .currency-popup-trigger {
    display: inline-flex;
  }

  .currency-marquee span {
    display: none;
  }

  .phone-stack {
    min-height: 640px;
  }

  .primary-phone,
  .secondary-phone {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 0 auto 18px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-button {
    flex: 1 1 0;
  }

  .side-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(90vw, 340px);
    border-radius: 0 0 0 28px;
  }

  .currency-popup {
    padding: 16px;
  }

  .currency-popup-card {
    min-height: 78vh;
    padding: 22px 18px 24px;
    border-radius: 28px;
  }

  .currency-popup-copy {
    margin-top: 28px;
  }

  .auth-panel-head,
  .auth-actions,
  .auth-summary div {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-grid,
  .auth-progress {
    grid-template-columns: 1fr;
  }

  .auth-actions .button {
    width: 100%;
  }

  .dashboard-rate-row,
  .dashboard-asset-row,
  .dashboard-fiat-row,
  .dashboard-activity-row,
  .market-chart-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-asset-row div:last-child,
  .dashboard-activity-row div:last-child {
    text-align: left;
  }

  .admin-user-card,
  .admin-action-row,
  .admin-feed-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-user-meta {
    text-align: left;
  }

  .admin-feed-row div:last-child {
    text-align: left;
  }

  .market-chart-timeframe {
    justify-content: flex-start;
  }

  .market-chart-canvas-wrap {
    height: 320px;
  }

  .auth-switch-container {
    min-height: 800px;
    height: 100vh;
  }

  .auth-switch-signin-signup {
    top: 95%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -100%);
    transition: 1s 0.8s ease-in-out;
  }

  .auth-switch-container.sign-up-mode .auth-switch-signin-signup {
    top: 5%;
    left: 50%;
    transform: translate(-50%, 0);
  }

  .auth-switch-panels-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 2fr 1fr;
  }

  .auth-switch-panel {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 2.5rem 8%;
    grid-column: 1 / 2;
  }

  .auth-switch-left-panel {
    grid-row: 1 / 2;
  }

  .auth-switch-right-panel {
    grid-row: 3 / 4;
  }

  .auth-switch-panel-content {
    padding-right: 15%;
    transition-delay: 0.8s;
  }

  .auth-switch-panel-content h3 {
    font-size: 1.2rem;
  }

  .auth-switch-panel-content p {
    font-size: 0.7rem;
    padding: 0.5rem 0;
  }

  .auth-switch-transparent {
    width: 110px;
    height: 35px;
    font-size: 0.7rem;
  }

  .auth-switch-container::before {
    left: 30%;
    right: auto;
    top: auto;
    bottom: 68%;
    width: 1500px;
    height: 1500px;
    transform: translateX(-50%);
    transition: 2s ease-in-out;
  }

  .auth-switch-container.sign-up-mode::before {
    right: auto;
    bottom: 32%;
    transform: translate(-50%, 100%);
  }

  .auth-switch-right-panel .auth-switch-panel-content {
    transform: translateY(300px);
  }

  .auth-switch-container.sign-up-mode
    .auth-switch-left-panel
    .auth-switch-panel-content {
    transform: translateY(-300px);
  }

  .auth-switch-container.sign-up-mode
    .auth-switch-right-panel
    .auth-switch-panel-content {
    transform: translateY(0);
  }

  .auth-switch-form {
    padding: 0 1.5rem;
  }
}

/* Admin Dashboard Specific Styles */
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-panel {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.admin-panel-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--card-bg);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  text-align: center;
}

.admin-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0.5rem 0;
}

.admin-stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  color: var(--text-muted);
}

.admin-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-table tr:hover {
  background: var(--hover-bg);
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-action-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.admin-action-btn:hover {
  background: var(--hover-bg);
}

.admin-action-btn.danger {
  color: #dc2626;
  border-color: #dc2626;
}

.admin-action-btn.danger:hover {
  background: #fef2f2;
}

.admin-action-btn.primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.admin-action-btn.primary:hover {
  opacity: 0.9;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-form-label {
  font-weight: 500;
  font-size: 0.875rem;
}

.admin-form-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--input-bg);
  font-size: 0.875rem;
}

.admin-form-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

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

.admin-modal-content {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.admin-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.admin-tab.active {
  color: var(--primary-color);
}

.admin-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-search {
  margin-bottom: 1.5rem;
}

.admin-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  background: var(--input-bg);
  font-size: 0.875rem;
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.admin-empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.admin-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.admin-page-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  border-radius: 0.5rem;
  cursor: pointer;
}

.admin-page-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.admin-page-btn:hover:not(.active) {
  background: var(--hover-bg);
}

.admin-chart-container {
  height: 300px;
  margin-top: 1rem;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.admin-status.active {
  background: #d1fae5;
  color: #065f46;
}

.admin-status.inactive {
  background: #fef3c7;
  color: #92400e;
}

.admin-status.suspended {
  background: #fee2e2;
  color: #991b1b;
}

.admin-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.admin-status.active .admin-status-dot {
  background: #10b981;
}

.admin-status.inactive .admin-status-dot {
  background: #f59e0b;
}

.admin-status.suspended .admin-status-dot {
  background: #ef4444;
}

/* CSS Variables for Admin Dashboard */
:root {
  --card-bg: rgba(255, 255, 255, 0.96);
  --border-color: var(--line);
  --text-muted: var(--muted);
  --primary-color: var(--brand);
  --hover-bg: rgba(36, 87, 245, 0.06);
  --input-bg: #fbfdff;
}

/* Enhanced Dashboard Styles */
.dashboard-nav {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  margin-bottom: 24px;
}

.nav-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.nav-tab {
  background: none;
  border: none;
  padding: 16px 24px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--brand);
}

.nav-tab.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Portfolio Overview Enhancements */
.portfolio-change {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.change-indicator {
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.change-up {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.change-down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.change-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.stat-change {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Market List */
.market-list {
  display: grid;
  gap: 12px;
}

.market-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.market-info strong {
  display: block;
  font-weight: 600;
}

.market-info small {
  color: var(--muted);
  font-size: 0.8rem;
}

.market-price {
  text-align: right;
}

.market-price strong {
  display: block;
  font-weight: 600;
}

/* Trading Layout */
.trading-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  height: calc(100vh - 200px);
}

.trading-chart-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-symbol h2 {
  margin: 0;
  font-size: 1.5rem;
}

.price-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.timeframe-buttons {
  display: flex;
  gap: 4px;
}

.timeframe-btn {
  background: none;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.timeframe-btn.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.chart-container {
  height: 400px;
  position: relative;
}

#tradingChart {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Trading Panels */
.trading-panels {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.order-book-panel,
.trading-form-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.order-book-panel h3,
.trading-form-panel h3 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
}

/* Order Book */
.order-book {
  font-size: 0.85rem;
}

.section-header {
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.section-header.asks {
  color: #ef4444;
}

.section-header.bids {
  color: #10b981;
}

.order-list {
  max-height: 120px;
  overflow-y: auto;
}

.order-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 4px 0;
  font-family: "Courier New", monospace;
}

.spread-info {
  text-align: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.05);
  margin: 8px 0;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Trading Form */
.trading-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.trading-tab {
  flex: 1;
  background: none;
  border: 1px solid var(--line);
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
}

.trading-tab.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.buy-sell-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 16px;
}

.buy-tab,
.sell-tab {
  padding: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 4px;
}

.buy-tab {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.buy-tab.active {
  background: #10b981;
  color: white;
}

.sell-tab {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.sell-tab.active {
  background: #ef4444;
  color: white;
}

.percentage-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 12px 0;
}

.percent-btn {
  background: none;
  border: 1px solid var(--line);
  padding: 6px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.8rem;
}

.percent-btn:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.full-width {
  width: 100%;
}

/* Portfolio Tab */
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.portfolio-actions {
  display: flex;
  gap: 12px;
}

.portfolio-overview {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.portfolio-chart {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.portfolio-stats-grid {
  display: grid;
  gap: 16px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Tables */
.table-container {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.portfolio-table,
.markets-table,
.history-table {
  width: 100%;
  border-collapse: collapse;
}

.portfolio-table th,
.markets-table th,
.history-table th {
  background: rgba(0, 0, 0, 0.05);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.portfolio-table td,
.markets-table td,
.history-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-table tr:hover,
.markets-table tr:hover,
.history-table tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.asset-info strong {
  display: block;
  font-weight: 600;
}

.asset-info small {
  color: var(--muted);
  font-size: 0.8rem;
}

.mini-chart {
  width: 80px;
  height: 30px;
}

/* Markets Tab */
.markets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.market-filters {
  display: flex;
  gap: 8px;
}

.filter-btn {
  background: none;
  border: 1px solid var(--line);
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
}

.filter-btn.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* History Tab */
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

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

.form-select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
}

.loading-row {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

/* Staking Tab */
.staking-header {
  margin-bottom: 32px;
}

.staking-header h2 {
  margin-bottom: 8px;
}

.staking-overview {
  margin-bottom: 32px;
}

.staking-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.staking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.staking-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.staking-asset strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.staking-asset small {
  color: var(--muted);
}

.staking-apy {
  margin: 16px 0;
}

.apy-rate {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand);
}

.apy-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.staking-info {
  margin: 16px 0;
}

.staking-info p {
  margin: 4px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Analytics Tab */
.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.analytics-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.analytics-panel h3 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
}

.trading-stats,
.risk-metrics {
  display: grid;
  gap: 12px;
}

.stat-row,
.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-row:last-child,
.metric-item:last-child {
  border-bottom: none;
}

.metric-label {
  color: var(--muted);
}

.metric-value {
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .trading-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 400px 1fr;
  }

  .portfolio-overview {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-tabs {
    padding: 0 12px;
  }

  .nav-tab {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .staking-stats {
    grid-template-columns: 1fr;
  }

  .portfolio-header,
  .markets-header,
  .history-header,
  .analytics-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .history-filters {
    flex-wrap: wrap;
  }
}
/* Additional Dashboard Styles */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge.buy {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.badge.sell {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.badge.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.badge.failed {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Enhanced button styles */
.button-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.button-small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.button.is-active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* Form enhancements */
.form-grid {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.form-input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-message {
  padding: 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-top: 12px;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Loading states */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hover effects */
.dashboard-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.market-item:hover,
.dashboard-asset-row:hover,
.dashboard-activity-row:hover {
  background: rgba(59, 130, 246, 0.05);
  transition: background 0.2s ease;
}

/* Scrollbar styling */
.order-list::-webkit-scrollbar,
.table-container::-webkit-scrollbar {
  width: 6px;
}

.order-list::-webkit-scrollbar-track,
.table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.order-list::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.order-list::-webkit-scrollbar-thumb:hover,
.table-container::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Animation for tab switching */
.tab-content {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .dashboard-nav {
    padding: 0 12px;
  }

  .nav-tabs {
    gap: 0;
    justify-content: space-between;
  }

  .nav-tab {
    padding: 12px 8px;
    font-size: 0.8rem;
    min-width: 0;
    flex: 1;
    text-align: center;
  }

  .trading-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .trading-panels {
    grid-template-rows: auto auto;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .button-group {
    justify-content: center;
  }

  .form-grid {
    gap: 12px;
  }

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

  .portfolio-table,
  .markets-table,
  .history-table {
    min-width: 600px;
  }
}
/* Redesigned Overview Page Styles */

/* Hero Section */
.overview-hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.portfolio-summary-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 32px;
  color: white;
  position: relative;
  overflow: hidden;
}

.portfolio-summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.portfolio-header {
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

.portfolio-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.portfolio-title h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.9;
}

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

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.portfolio-main-value {
  margin-bottom: 24px;
}

.main-balance {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 8px;
}

.balance-change {
  display: flex;
  align-items: center;
  gap: 8px;
}

.change-indicator {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.change-period {
  opacity: 0.7;
  font-size: 0.85rem;
}

.portfolio-chart-container {
  position: relative;
  height: 120px;
  margin-top: 20px;
}

#overviewPortfolioChart {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.chart-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
}

.chart-period-selector {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 8px;
}

.period-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.period-btn.active,
.period-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Quick Stats Grid */
.quick-stats-grid {
  display: grid;
  gap: 16px;
}

.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.available-balance .stat-icon {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.total-assets .stat-icon {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
}

.total-trades .stat-icon {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
}

.profit-loss .stat-icon {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  color: white;
}

.stat-content {
  flex: 1;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.stat-change {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Market Overview Section */
.market-overview-section {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.market-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.live {
  background: #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.market-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.market-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s ease;
}

.market-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.market-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

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

.crypto-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
}

.btc-icon {
  background: linear-gradient(135deg, #f7931e, #ff6b35);
}

.eth-icon {
  background: linear-gradient(135deg, #627eea, #4f46e5);
}

.crypto-details {
  display: flex;
  flex-direction: column;
}

.crypto-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.crypto-symbol {
  font-size: 0.8rem;
  color: var(--muted);
}

.trade-btn {
  background: var(--brand);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trade-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.market-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.current-price {
  font-size: 1.3rem;
  font-weight: 700;
}

.price-change {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.price-change.positive {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.price-change.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.mini-chart-container {
  width: 120px;
  height: 40px;
}

.mini-price-chart {
  width: 100%;
  height: 100%;
}

/* Trending Card */
.trending-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.trending-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.trending-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.view-all {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  text-decoration: underline;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.trending-name {
  font-weight: 600;
}

.trending-change {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* Portfolio Breakdown Section */
.portfolio-breakdown-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.portfolio-assets-panel,
.quick-trade-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Assets List */
.assets-list {
  margin-bottom: 24px;
  max-height: 200px;
  overflow-y: auto;
}

.asset-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.asset-item:last-child {
  border-bottom: none;
}

.asset-item.loading {
  justify-content: center;
  padding: 40px 0;
}

.asset-loading {
  color: var(--muted);
  font-style: italic;
}

/* Allocation Chart */
.allocation-chart-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

#allocationMiniChart {
  width: 120px;
  height: 120px;
}

.allocation-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* Quick Trade Panel */
.trade-mode-toggle {
  display: flex;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 4px;
}

.mode-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: white;
  color: var(--brand);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-trade-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.asset-selector-row label {
  display: block;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}

.asset-buttons {
  display: flex;
  gap: 8px;
}

.asset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: white;
  border: 2px solid var(--line);
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.asset-btn.active {
  border-color: var(--brand);
  background: rgba(59, 130, 246, 0.05);
}

.asset-btn:hover {
  border-color: var(--brand);
}

.asset-icon {
  font-size: 1.2rem;
  font-weight: bold;
}

.asset-name {
  font-size: 0.8rem;
  font-weight: 500;
}

.amount-input-section .input-group {
  margin-bottom: 12px;
}

.input-wrapper {
  position: relative;
}

.amount-input {
  width: 100%;
  padding: 12px 50px 12px 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: border-color 0.2s ease;
}

.amount-input:focus {
  outline: none;
  border-color: var(--brand);
}

.input-currency {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 500;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-amount-btn {
  background: #f8f9fa;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-amount-btn:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.trade-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.summary-row:last-child {
  margin-bottom: 0;
  font-weight: 600;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.execute-trade-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.execute-trade-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.balance-info {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Activity & News Section */
.activity-news-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.recent-activity-panel,
.market-news-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.activity-list,
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.activity-item,
.news-item {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.activity-item:hover,
.news-item:hover {
  background: #f1f5f9;
}

.activity-item.loading,
.news-item.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}

.activity-loading {
  color: var(--muted);
  font-style: italic;
}

.news-content h4 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.news-content p {
  margin: 0 0 8px 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.news-time {
  font-size: 0.75rem;
  color: var(--muted);
}

.news-refresh {
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
}

.news-refresh:hover {
  color: var(--brand);
}

/* Responsive Design for Overview */
@media (max-width: 1200px) {
  .overview-hero {
    grid-template-columns: 1fr;
  }

  .market-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-breakdown-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .portfolio-summary-card {
    padding: 24px;
  }

  .main-balance {
    font-size: 2.5rem;
  }

  .quick-stats-grid {
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .market-cards-grid {
    grid-template-columns: 1fr;
  }

  .activity-news-section {
    grid-template-columns: 1fr;
  }

  .asset-buttons {
    flex-direction: column;
  }

  .quick-amounts {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Interactive Market Overview Enhancements */
.market-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.market-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.market-card:hover::before {
  left: 100%;
}

.trending-item {
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.trending-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.trade-btn {
  position: relative;
  overflow: hidden;
}

.trade-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s ease,
    height 0.3s ease;
}

.trade-btn:active::after {
  width: 120px;
  height: 120px;
}

/* Live data indicators */
.price-updating {
  animation: priceFlash 0.5s ease;
}

@keyframes priceFlash {
  0% {
    background: rgba(59, 130, 246, 0.2);
  }
  100% {
    background: transparent;
  }
}

.status-indicator.live {
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* Loading states for market data */
.market-loading {
  position: relative;
}

.market-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Enhanced quick trade interactions */
.asset-btn {
  position: relative;
  overflow: hidden;
}

.asset-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.asset-btn:hover::before {
  transform: translateX(100%);
}

.quick-amount-btn {
  position: relative;
  overflow: hidden;
}

.quick-amount-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--brand);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s ease,
    height 0.2s ease;
  z-index: -1;
}

.quick-amount-btn:hover::after {
  width: 100%;
  height: 100%;
}

/* Real-time price change animations */
.price-change.positive {
  animation: positiveGlow 2s ease-in-out;
}

.price-change.negative {
  animation: negativeGlow 2s ease-in-out;
}

@keyframes positiveGlow {
  0%,
  100% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  }
}

@keyframes negativeGlow {
  0%,
  100% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  }
}

/* Enhanced trending section */
.trending-card {
  position: relative;
  overflow: hidden;
}

.trending-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 10s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Market status enhancements */
.market-status {
  position: relative;
}

.market-status::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, #10b981, transparent);
  animation: pulse 2s infinite;
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .market-card:hover::before {
    display: none;
  }

  .trending-item:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
  }
}
/* Enhanced Trading Interface Styles */

/* Trading Chart Enhancements */
#tradingChart {
  background: #1a1a1a;
  border-radius: 8px;
  cursor: crosshair;
}

/* Order Book Enhancements */
.order-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
}

.order-row:hover {
  background: rgba(59, 130, 246, 0.1);
}

.ask-price {
  color: #ef4444 !important;
}

.bid-price {
  color: #10b981 !important;
}

.order-row .price {
  font-weight: 600;
}

.order-row .amount {
  color: #6b7280;
}

.order-row .total {
  color: #374151;
  font-size: 0.9em;
}

/* Trading Form Enhancements */
.trading-form {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #374151;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

/* Order Type Tabs */
.trading-tabs {
  display: flex;
  background: #e5e7eb;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 20px;
}

.trading-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trading-tab.active {
  background: white;
  color: var(--brand);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Buy/Sell Tabs */
.buy-sell-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.buy-tab,
.sell-tab {
  padding: 12px;
  border: 2px solid;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.buy-tab {
  border-color: #10b981;
  color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.buy-tab.active {
  background: #10b981;
  color: white;
}

.sell-tab {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.sell-tab.active {
  background: #ef4444;
  color: white;
}

/* Percentage Buttons */
.percentage-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.percent-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.percent-btn:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-1px);
}

/* Place Order Button */
.button-danger {
  background: #ef4444;
  color: white;
  border: 2px solid #ef4444;
}

.button-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* Price Update Animation */
.price-updating {
  animation: priceUpdate 0.5s ease;
}

@keyframes priceUpdate {
  0% {
    background: rgba(59, 130, 246, 0.3);
  }
  100% {
    background: transparent;
  }
}

/* Chart Controls */
.chart-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.timeframe-buttons {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 8px;
}

.timeframe-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeframe-btn.active {
  background: white;
  color: var(--brand);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Trading Pair Display */
.chart-symbol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-symbol h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

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

#tradingCurrentPrice {
  font-size: 1.2rem;
  font-weight: 600;
  font-family: "Courier New", monospace;
}

#tradingPriceChange {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Order Book Section Headers */
.section-header {
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.section-header.asks {
  color: #ef4444;
}

.section-header.bids {
  color: #10b981;
}

/* Spread Information */
.spread-info {
  text-align: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.05);
  margin: 8px 0;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Responsive Trading Interface */
@media (max-width: 1024px) {
  .trading-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 400px auto;
  }

  .trading-panels {
    grid-template-rows: auto auto;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .chart-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .price-info {
    justify-content: center;
  }

  .timeframe-buttons {
    justify-content: center;
  }

  .buy-sell-tabs {
    gap: 4px;
  }

  .percentage-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Enhanced Markets Styles */
.asset-info-enhanced {
  display: flex;
  align-items: center;
  gap: 12px;
}

.favorite-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transition: all 0.2s ease;
}

.favorite-btn:hover,
.favorite-btn.active {
  border-color: #f59e0b;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.asset-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.asset-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.price-cell {
  position: relative;
}

.price-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-value {
  font-weight: 700;
  transition: all 0.3s ease;
}

.price-value.price-updating {
  color: var(--brand);
  transform: scale(1.05);
}

.price-sparkline {
  opacity: 0.7;
}

.change-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
}

.change-indicator.change-up {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.change-indicator.change-down {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.change-icon {
  font-size: 0.75rem;
}

.volume-cell,
.marketcap-cell {
  font-weight: 600;
  color: var(--text);
}

.chart-cell {
  padding: 8px;
}

.interactive-chart {
  cursor: crosshair;
  transition: opacity 0.2s ease;
}

.interactive-chart:hover {
  opacity: 0.8;
}

.actions-cell {
  padding: 8px;
}

.market-actions {
  display: flex;
  gap: 6px;
}

.market-row {
  cursor: pointer;
  transition: all 0.2s ease;
}

.market-row:hover {
  background: rgba(36, 87, 245, 0.02);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(36, 87, 245, 0.08);
}

.market-row[data-category="major"] {
  border-left: 3px solid #f59e0b;
}

.market-row[data-category="stablecoin"] {
  border-left: 3px solid #10b981;
}

.market-row[data-category="meme"] {
  border-left: 3px solid #8b5cf6;
}

.market-row[data-category="defi"] {
  border-left: 3px solid #3b82f6;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.markets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.market-filters {
  display: flex;
  gap: 8px;
}

.markets-table-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.markets-table {
  width: 100%;
  border-collapse: collapse;
}

.markets-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.markets-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(220, 230, 245, 0.5);
}

.markets-table tbody tr:last-child td {
  border-bottom: none;
}

/* Animation for price updates */
@keyframes priceFlash {
  0% {
    background: rgba(36, 87, 245, 0.2);
  }
  100% {
    background: transparent;
  }
}

.price-updating {
  animation: priceFlash 0.5s ease;
}

/* Responsive markets table */
@media (max-width: 768px) {
  .markets-table {
    font-size: 0.85rem;
  }

  .asset-info-enhanced {
    gap: 8px;
  }

  .favorite-btn {
    width: 28px;
    height: 28px;
  }

  .market-actions {
    flex-direction: column;
    gap: 4px;
  }

  .market-filters {
    flex-wrap: wrap;
  }
}

/* Loading states */
.markets-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--muted);
}

.markets-loading::after {
  content: "";
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Enhanced tooltips for charts */
.chart-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.chart-tooltip.visible {
  opacity: 1;
}
/* Dashboard Mobile Navigation Styles */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border: 1px solid rgba(220, 230, 245, 0.9);
  border-radius: 22px;
  background: var(--panel-soft);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 22px rgba(91, 129, 214, 0.08);
  position: sticky;
  top: 14px;
  z-index: 20;
}

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

.dashboard-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-trigger {
  width: 50px;
  height: 50px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.menu-trigger:hover,
.menu-trigger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(36, 87, 245, 0.15);
}

.menu-trigger span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: all 0.3s ease;
}

/* Dashboard drawer specific styles */
.dashboard-drawer {
  z-index: 1000;
}

.dashboard-drawer-nav {
  padding: 0 18px;
}

.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  border-radius: 20px;
  color: var(--drawer-text);
  text-decoration: none;
  transition: all 180ms ease;
  cursor: pointer;
}

.dashboard-nav-item:hover {
  background: rgba(36, 87, 245, 0.08);
  transform: translateY(-1px);
}

.dashboard-nav-item.active {
  background: linear-gradient(135deg, var(--brand), #5b83ff);
  color: white;
  box-shadow: 0 8px 20px rgba(36, 87, 245, 0.25);
}

.dashboard-nav-item .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.dashboard-nav-item.active .nav-icon {
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-nav-item .nav-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.full-width {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .menu-trigger {
    display: flex;
  }

  .desktop-only {
    display: none !important;
  }

  .desktop-nav {
    display: none !important;
  }

  .dashboard-nav {
    display: none;
  }

  /* Adjust dashboard layout for mobile */
  .dashboard-main {
    padding: 20px 0;
  }

  .overview-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quick-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .portfolio-breakdown-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .activity-news-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trading-layout {
    flex-direction: column;
    gap: 20px;
  }

  .trading-panels {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .markets-table-panel {
    overflow-x: auto;
  }

  .markets-table {
    min-width: 800px;
  }

  /* Mobile-specific market filters */
  .market-filters {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .dashboard-header {
    padding: 12px 16px;
  }

  .site-shell {
    width: calc(100% - 16px);
    padding: 12px 0 24px;
  }

  .quick-stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px;
  }

  .portfolio-summary-card {
    padding: 20px;
  }

  .quick-trade-panel {
    padding: 20px;
  }
}

/* Menu trigger animation when drawer is open */
body.drawer-open .menu-trigger span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

body.drawer-open .menu-trigger span:nth-child(2) {
  opacity: 0;
}

body.drawer-open .menu-trigger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Ensure drawer appears above everything */
.drawer-overlay {
  z-index: 999;
  pointer-events: none;
}

.drawer-overlay:not([hidden]) {
  pointer-events: auto;
}

.side-drawer {
  z-index: 1000;
}

/* Mobile drawer adjustments */
@media (max-width: 768px) {
  .side-drawer {
    width: 320px;
    max-width: 85vw;
  }

  .drawer-nav {
    gap: 8px;
  }

  .dashboard-nav-item {
    padding: 14px 12px;
  }

  .dashboard-nav-item .nav-icon {
    width: 40px;
    height: 40px;
  }

  .nav-copy strong {
    font-size: 0.95rem;
  }

  .nav-copy small {
    font-size: 0.8rem;
  }
}
/* Deposit and Withdraw Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay:not([hidden]) {
  opacity: 1;
}

.modal {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay:not([hidden]) .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.modal-header h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  color: var(--text);
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--line);
  color: var(--text);
}

.modal-content {
  padding: 0 24px 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--text);
  font-size: 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(36, 87, 245, 0.1);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper .form-input {
  padding-right: 60px;
}

.input-currency {
  position: absolute;
  right: 16px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.payment-methods {
  display: grid;
  gap: 12px;
}

.payment-method-option {
  cursor: pointer;
}

.payment-method-option input[type="radio"] {
  display: none;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: white;
  transition: all 0.2s ease;
}

.payment-method-option:hover .payment-method-card {
  border-color: rgba(36, 87, 245, 0.3);
  background: rgba(36, 87, 245, 0.02);
}

.payment-method-option input[type="radio"]:checked + .payment-method-card {
  border-color: var(--brand);
  background: rgba(36, 87, 245, 0.05);
}

.payment-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: 10px;
}

.payment-info {
  flex: 1;
}

.payment-info strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.payment-info small {
  color: var(--muted);
  font-size: 0.8rem;
}

.available-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
}

.available-balance span:first-child {
  color: var(--muted);
}

.available-balance span:last-child {
  color: var(--accent);
  font-size: 1.1rem;
}

.deposit-summary,
.withdraw-summary {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.summary-row:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  padding-top: 12px;
}

.summary-row span:first-child {
  color: var(--muted);
}

.summary-row span:last-child {
  color: var(--text);
  font-weight: 600;
}

.summary-row.total span {
  color: var(--brand);
}

/* Action buttons styling */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--bg-soft);
  transform: translateY(-1px);
}

.deposit-btn {
  border-color: var(--accent);
  color: var(--accent);
}

.deposit-btn:hover {
  background: var(--accent-soft);
}

.withdraw-btn {
  border-color: #f59e0b;
  color: #f59e0b;
}

.withdraw-btn:hover {
  background: rgba(245, 158, 11, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .modal {
    max-width: 95vw;
    margin: 10px;
  }

  .modal-header {
    padding: 20px 20px 0;
  }

  .modal-content {
    padding: 0 20px 20px;
  }

  .payment-method-card {
    padding: 12px;
  }
}

/* Transaction message styles */
.transaction-message {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 0.9rem;
}

.transaction-message.success {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(23, 178, 106, 0.2);
}

.transaction-message.error {
  background: #fff1f1;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Loading button state */
.button.loading {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.button.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Bank transfer details styles */
.bank-transfer-details {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.bank-transfer-details h4 {
  margin: 0 0 16px 0;
  color: var(--brand);
  font-family: "Space Grotesk", sans-serif;
}

.bank-info {
  margin-bottom: 16px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-row span {
  color: var(--muted);
}

.bank-row strong {
  color: var(--text);
  font-weight: 600;
}

.transfer-instructions {
  background: rgba(36, 87, 245, 0.05);
  border: 1px solid rgba(36, 87, 245, 0.2);
  border-radius: 8px;
  padding: 12px;
}

.transfer-instructions p {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
}

.transfer-instructions p:last-child {
  margin-bottom: 0;
}

/* Mobile money instructions styles */
.mobile-money-instructions {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.mobile-money-instructions h4 {
  margin: 0 0 16px 0;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
}

.payment-info {
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.info-row span {
  color: var(--muted);
}

.info-row strong {
  color: var(--text);
  font-weight: 600;
}

.instructions {
  background: rgba(23, 178, 106, 0.1);
  border: 1px solid rgba(23, 178, 106, 0.2);
  border-radius: 8px;
  padding: 12px;
}

.instructions p {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
}

.instructions p:last-child {
  margin-bottom: 0;
}

/* Mobile money details form */
.mobile-money-details,
.withdraw-mobile-money-details {
  background: rgba(36, 87, 245, 0.02);
  border: 1px solid rgba(36, 87, 245, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.mobile-money-details label,
.withdraw-mobile-money-details label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

/* Enhanced transaction message */
.transaction-message {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-line;
}

.transaction-message h4 {
  margin: 0 0 12px 0;
  font-size: 1rem;
}

.transaction-message .bank-transfer-details,
.transaction-message .mobile-money-instructions {
  background: transparent;
  border: none;
  padding: 0;
  margin: 12px 0 0 0;
}

/* Payment method selection enhancements */
.payment-method-option input[type="radio"]:checked + .payment-method-card {
  border-color: var(--brand);
  background: rgba(36, 87, 245, 0.08);
  box-shadow: 0 2px 8px rgba(36, 87, 245, 0.15);
}

.payment-method-card {
  transition: all 0.3s ease;
}

.payment-method-option:hover .payment-method-card {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Loading button animation */
.button.loading {
  position: relative;
  color: transparent;
}

.button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

  .payment-icon {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
}

/* Loading states */
.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button.loading {
  position: relative;
  color: transparent;
}

.button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success/Error messages */
.transaction-message {
  padding: 16px;
  border-radius: 12px;
  margin: 16px 0;
  font-weight: 600;
}

.transaction-message.success {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.transaction-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
