:root {
  --bg: #07111e;
  --bg-soft: #0f1c2e;
  --panel: rgba(15, 28, 46, 0.82);
  --panel-strong: #10233b;
  --panel-border: rgba(150, 194, 255, 0.12);
  --text: #eff6ff;
  --muted: #8fa4bf;
  --muted-strong: #c9d8ea;
  --teal: #2de2c4;
  --teal-strong: #11b79b;
  --gold: #f6be4f;
  --red: #ff6f6c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1200px;
  --font-body: "Segoe UI Variable Text", "Segoe UI", "Trebuchet MS", Tahoma, sans-serif;
  --font-display: "Aptos Display", "Segoe UI Variable Display", "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(45, 226, 196, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(246, 190, 79, 0.14), transparent 22%),
    linear-gradient(180deg, #06101b 0%, #091524 44%, #07111e 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
  pointer-events: none;
  z-index: -1;
}

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

button,
input,
select {
  font: inherit;
}

img,
svg {
  display: block;
}

.app-shell {
  min-height: 100vh;
}

.container {
  width: min(var(--container), calc(100vw - 32px));
  margin: 0 auto;
}

.translate-widget-shell {
  position: fixed;
  top: 12px;
  right: 16px;
  width: min(280px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(45, 226, 196, 0.2);
  background: linear-gradient(135deg, rgba(11, 20, 34, 0.96), rgba(16, 35, 59, 0.92));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  z-index: 1800;
}

.translate-widget-shell.translate-widget-shell-docked {
  top: var(--translate-top, 12px);
  left: var(--translate-left, auto);
  right: auto;
  width: var(--translate-width, 260px);
}

.translate-widget-shell-label {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.translate-widget-shell .goog-te-gadget {
  width: 100%;
  color: transparent !important;
  font-size: 0;
}

.translate-widget-shell .goog-te-gadget .goog-te-combo {
  width: 100%;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(143, 164, 191, 0.2);
  background: rgba(7, 17, 30, 0.92);
  color: var(--text);
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}

.language-widget-slot {
  width: min(280px, 100%);
  min-height: 52px;
  flex: 0 0 min(280px, 100%);
  border-radius: 18px;
}

.top-strip {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 16, 27, 0.72);
}

.ticker {
  display: flex;
  gap: 18px;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  padding: 10px 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.ticker-track {
  display: flex;
  gap: 18px;
  min-width: max-content;
  animation: ticker-slide 32s linear infinite;
}

.ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.ticker-pill strong {
  color: var(--text);
}

.up {
  color: var(--teal);
}

.down {
  color: var(--red);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

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

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45, 226, 196, 0.95), rgba(246, 190, 79, 0.9));
  box-shadow: 0 18px 34px rgba(17, 183, 155, 0.28);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 11px;
}

.brand-mark::before {
  border: 2px solid rgba(7, 17, 30, 0.65);
}

.brand-mark::after {
  inset: 17px 11px 11px 17px;
  background: rgba(7, 17, 30, 0.8);
}

.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--teal), #4ae8a9);
  color: #04111d;
  box-shadow: 0 20px 40px rgba(45, 226, 196, 0.28);
  font-weight: 800;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.button-gold {
  background: linear-gradient(135deg, var(--gold), #ffd978);
  color: #172030;
  font-weight: 800;
}

.hero {
  padding: 62px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(45, 226, 196, 0.1);
  border: 1px solid rgba(45, 226, 196, 0.18);
  color: var(--muted-strong);
  font-size: 0.88rem;
}

.hero-copy h1,
.section-copy h2,
.auth-copy h1,
.dashboard-title h1 {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  max-width: 10ch;
}

.hero-copy p,
.section-copy p,
.auth-copy p {
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 58ch;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.metric-card,
.glass-card,
.feature-card,
.plan-card,
.faq-item,
.auth-panel,
.auth-form-panel,
.dashboard-card,
.sidebar-card,
.table-wrap,
.activity-card,
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(17, 35, 59, 0.88), rgba(9, 21, 36, 0.88));
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 22px;
}

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

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.hero-panel {
  padding: 28px;
  min-height: 100%;
}

.panel-grid {
  display: grid;
  gap: 18px;
  height: 100%;
}

.panel-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.chart-card,
.wallet-card,
.signal-card,
.terminal-card {
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-card {
  min-height: 260px;
}

.chart-heading,
.row-between,
.auth-inline,
.dashboard-row,
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.84rem;
}

.chip.active {
  background: rgba(45, 226, 196, 0.14);
  color: var(--text);
  border-color: rgba(45, 226, 196, 0.25);
}

.portfolio-total {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
}

.area-chart {
  width: 100%;
  height: 160px;
  margin-top: 18px;
}

.wallet-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.balance {
  font-size: 2rem;
  font-family: var(--font-display);
}

.wallet-bar {
  display: flex;
  gap: 8px;
}

.wallet-bar span {
  height: 12px;
  border-radius: 999px;
}

.wallet-bar span:nth-child(1) {
  width: 44%;
  background: var(--teal);
}

.wallet-bar span:nth-child(2) {
  width: 30%;
  background: var(--gold);
}

.wallet-bar span:nth-child(3) {
  width: 18%;
  background: #6fa7ff;
}

.signal-card,
.terminal-card {
  display: grid;
  gap: 14px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.signal-pill {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.terminal-card pre {
  margin: 0;
  font-family: Consolas, monospace;
  white-space: pre-wrap;
  color: #b5c7de;
}

.section {
  padding: 50px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-copy h2,
.auth-copy h1,
.dashboard-title h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

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

.glass-card {
  padding: 22px;
  backdrop-filter: blur(18px);
}

.glass-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 1.2rem;
}

.mini-stat {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.feature-grid,
.plan-grid,
.security-grid,
.testimonial-grid,
.dashboard-grid,
.activity-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card {
  padding: 26px;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(45, 226, 196, 0.2), rgba(246, 190, 79, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.25rem;
}

.feature-card h3,
.plan-card h3,
.dashboard-card h3,
.faq-item h3,
.sidebar-card h3 {
  margin: 18px 0 10px;
  font-size: 1.18rem;
}

.feature-list,
.auth-points,
.stat-list,
.activity-list,
.sidebar-links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.feature-list span,
.auth-points span,
.stat-list span,
.activity-list li,
.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-strong);
}

.feature-list span::before,
.auth-points span::before,
.stat-list span::before,
.sidebar-links a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  flex: 0 0 auto;
}

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

.plan-card {
  padding: 28px;
}

.plan-card.highlight {
  border-color: rgba(246, 190, 79, 0.28);
  transform: translateY(-4px);
}

.plan-price {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 16px 0;
}

.plan-price strong {
  font-size: 2.2rem;
  font-family: var(--font-display);
}

.calc-wrap {
  padding: 28px;
}

.calculator {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.range-group {
  display: grid;
  gap: 12px;
}

.range-group input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.calc-summary {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.calc-summary strong {
  font-size: 2rem;
  font-family: var(--font-display);
}

.security-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

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

.testimonial-card {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonial-card p {
  color: var(--muted-strong);
  line-height: 1.7;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(45, 226, 196, 0.2), rgba(246, 190, 79, 0.2));
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 22px;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.cta-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
  padding: 28px;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-family: var(--font-display);
}

.footer {
  padding: 34px 0 46px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted-strong);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.auth-layout {
  width: min(1180px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 22px;
}

.auth-panel,
.auth-form-panel {
  padding: 30px;
}

.auth-copy {
  max-width: 54ch;
}

.auth-hero-stat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.auth-hero-stat div,
.dashboard-mini-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-form-panel h2 {
  margin: 10px 0;
  font-size: 2rem;
  font-family: var(--font-display);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

.form-group label {
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.input,
.select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 28, 46, 0.95);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238fa4bf' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.select option {
  background: #0f1c2e;
  color: #eff6ff;
}

.input::placeholder {
  color: #6d839f;
}

.input:focus,
.select:focus {
  outline: 2px solid rgba(45, 226, 196, 0.3);
  border-color: rgba(45, 226, 196, 0.25);
}

.helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

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

.checkbox input {
  accent-color: var(--teal);
}

.social-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.social-button {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.dashboard-shell {
  min-height: 100vh;
  padding: 24px 0 40px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
}

.dashboard-layout > *,
.dashboard-main > *,
.dashboard-grid > *,
.page-grid > *,
.page-grid-two > *,
.asset-grid > *,
.verification-grid > *,
.deposit-panel-grid > *,
.ops-summary-grid > *,
.ops-form-grid > *,
.activity-grid > *,
.auth-layout > *,
.feature-grid > *,
.market-board > *,
.plan-grid > *,
.testimonial-grid > * {
  min-width: 0;
}

.sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.sidebar-card {
  padding: 24px;
}

.dashboard-main {
  display: grid;
  gap: 20px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-title p {
  margin: 0;
  color: var(--muted-strong);
}

.dashboard-title,
.dashboard-title h1,
.dashboard-title p {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.dashboard-card {
  padding: 24px;
}

.dashboard-card.featured {
  grid-column: span 2;
}

.dashboard-card h3 {
  margin-top: 0;
}

.big-number {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-family: var(--font-display);
}

.dashboard-chart {
  width: 100%;
  height: 190px;
}

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

.table-wrap {
  padding: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

.market-table th,
.market-table td {
  text-align: left;
  padding: 16px 12px;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.market-table th {
  color: var(--muted);
  font-weight: 600;
}

.token-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.activity-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.activity-card {
  padding: 24px;
}

.page-grid,
.asset-grid,
.verification-grid,
.ticket-list,
.session-list,
.info-list,
.deposit-panel-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.deposit-panel-grid {
  grid-template-columns: 260px minmax(0, 1fr);
}

.wallet-asset-card,
.verification-card,
.ticket-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.address-box {
  margin: 16px 0 12px;
  padding: 14px 16px;
  border-radius: 16px;
  word-break: break-all;
  font-family: Consolas, monospace;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-success {
  color: #dffef3;
  background: rgba(45, 226, 196, 0.14);
  border-color: rgba(45, 226, 196, 0.24);
}

.badge-warning {
  color: #fff2d2;
  background: rgba(246, 190, 79, 0.14);
  border-color: rgba(246, 190, 79, 0.24);
}

.badge-neutral {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.05);
}

.progress-track {
  width: 100%;
  height: 14px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--teal), var(--gold));
}

.ticket-meta,
.info-row,
.session-item,
.quick-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticket-meta,
.info-row,
.session-item {
  color: var(--muted-strong);
}

.ticket-card p {
  margin: 12px 0;
  line-height: 1.7;
}

.ticket-card-unread {
  border-color: rgba(45, 226, 196, 0.28);
  box-shadow: 0 18px 44px rgba(45, 226, 196, 0.08);
}

.qr-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.qr-frame {
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.98), rgba(229, 243, 255, 0.98));
  margin-bottom: 16px;
}

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

.textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  resize: vertical;
}

.textarea:focus {
  outline: 2px solid rgba(45, 226, 196, 0.3);
  border-color: rgba(45, 226, 196, 0.25);
}

.input-readonly {
  display: flex;
  align-items: center;
  min-height: 52px;
  cursor: default;
}

.sidebar-links a.active {
  color: var(--text);
}

.sidebar-links a.active::before {
  background: var(--gold);
}

.sidebar-links {
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(45, 226, 196, 0.2), rgba(246, 190, 79, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.method-list {
  display: grid;
  gap: 14px;
}

.private-mobile-nav {
  display: none;
}

.admin-mobile-nav {
  border-color: rgba(246, 190, 79, 0.2);
}

.article-body p {
  margin: 16px 0 0;
  color: var(--muted-strong);
  line-height: 1.8;
  font-size: 1rem;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-list li {
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(7, 17, 30, 0.92);
  border: 1px solid rgba(45, 226, 196, 0.22);
  color: var(--text);
  box-shadow: var(--shadow);
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: 220ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  animation: reveal-up 620ms ease both;
}

.delay-1 {
  animation-delay: 80ms;
}

.delay-2 {
  animation-delay: 160ms;
}

.delay-3 {
  animation-delay: 240ms;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ticker-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1080px) {

  .hero-grid,
  .security-grid,
  .cta-band,
  .auth-layout,
  .dashboard-layout,
  .activity-grid,
  .calculator {
    grid-template-columns: 1fr;
  }

  .market-board,
  .feature-grid,
  .plan-grid,
  .testimonial-grid,
  .dashboard-grid,
  .page-grid-two,
  .verification-grid,
  .deposit-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-card.featured {
    grid-column: span 1;
  }

  .dashboard-layout {
    gap: 16px;
  }

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

@media (max-width: 820px) {
  .site-nav {
    flex-wrap: wrap;
  }

  .nav-links,
  .nav-actions {
    display: none;
    width: 100%;
  }

  .nav-links.open,
  .nav-actions.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-metrics,
  .panel-top,
  .signal-grid,
  .auth-hero-stat,
  .dashboard-stats,
  .footer-grid,
  .market-board,
  .feature-grid,
  .plan-grid,
  .testimonial-grid,
  .dashboard-grid,
  .page-grid-two,
  .asset-grid,
  .verification-grid,
  .deposit-panel-grid,
  .sidebar,
  .activity-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-panel,
  .metric-card,
  .feature-card,
  .plan-card,
  .dashboard-card,
  .activity-card,
  .auth-panel,
  .auth-form-panel,
  .cta-band {
    padding: 22px;
  }

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

  .market-table {
    min-width: 620px;
  }

  .private-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 8px 4px calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    background: rgba(7, 17, 30, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 12px;
    color: rgba(255,255,255,0.45);
    font-size: 0;
    transition: color 200ms ease, background 200ms ease;
    text-decoration: none;
  }

  .mobile-nav-item.active {
    color: var(--teal);
    background: rgba(45, 226, 196, 0.08);
  }

  .mobile-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }

  .mobile-nav-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .dashboard-shell {
    padding-bottom: 90px;
  }
}

@media (max-width: 540px) {

  .container,
  .auth-layout {
    width: min(100vw - 20px, 100%);
  }

  .site-nav {
    gap: 14px;
  }

  .hero-copy h1,
  .section-copy h2,
  .auth-copy h1,
  .dashboard-title h1 {
    letter-spacing: -0.05em;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .nav-actions.open,
  .social-row {
    grid-template-columns: 1fr;
  }

  .helper-row {
    flex-direction: column;
    align-items: start;
  }

  .ticket-meta,
  .info-row,
  .session-item,
  .quick-links {
    flex-direction: column;
    align-items: start;
  }

  .private-mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ============================================================
   LIVE TRADING PAGE
   ============================================================ */

.trading-page {
  display: grid;
  gap: 0;
}

/* Pair Selector Bar */
.trade-pair-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.trade-pair-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 0.92rem;
  transition: all 180ms ease;
}

.trade-pair-tab:hover {
  border-color: rgba(45, 226, 196, 0.2);
  color: var(--text);
}

.trade-pair-tab.active {
  background: rgba(45, 226, 196, 0.12);
  border-color: rgba(45, 226, 196, 0.3);
  color: var(--teal);
  font-weight: 700;
}

.pair-icon {
  font-size: 1.1rem;
}

/* Live Price Header */
.trade-price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.trade-price-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.trade-live-price {
  font-size: 2.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color 300ms;
}

.trade-live-price.up {
  color: #00c076;
}

.trade-live-price.down {
  color: #e84142;
}

.trade-change {
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.trade-change.up {
  color: #00c076;
  background: rgba(0, 192, 118, 0.1);
}

.trade-change.down {
  color: #e84142;
  background: rgba(232, 65, 66, 0.1);
}

.trade-stats-row {
  display: flex;
  gap: 24px;
}

.trade-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
}

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

.trade-stat strong {
  color: var(--text);
  font-size: 0.96rem;
}

/* Chart Container */
.trade-chart-wrap {
  border-radius: var(--radius-md);
  background: rgba(10, 18, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-bottom: 16px;
}

.chart-timeframes {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tf-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 140ms;
}

.tf-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.tf-btn.active {
  background: rgba(45, 226, 196, 0.14);
  color: var(--teal);
  font-weight: 700;
}

.trading-chart-container {
  width: 100%;
  height: 340px;
}

/* Buy / Sell Action Bar */
.trade-action-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}

.trade-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.trade-btn:hover {
  transform: translateY(-2px);
}

.trade-buy {
  background: linear-gradient(135deg, #00c076, #00e68a);
  color: #04111d;
  box-shadow: 0 12px 32px rgba(0, 192, 118, 0.3);
}

.trade-sell {
  background: linear-gradient(135deg, #e84142, #ff5f6d);
  color: #fff;
  box-shadow: 0 12px 32px rgba(232, 65, 66, 0.28);
}

/* Trading Modal */
.trade-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 10, 20, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.trade-modal {
  width: min(520px, 100%);
  background: linear-gradient(180deg, #0f1e33, #091524);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 26px;
  display: grid;
  gap: 16px;
  animation: slideUp 260ms ease;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.trade-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trade-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.trade-modal-title.buy {
  color: #00c076;
}

.trade-modal-title.sell {
  color: #e84142;
}

.trade-modal-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.trade-modal-section-label {
  font-size: 0.88rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Period Selection Grid */
.period-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 10px;
}

.period-card {
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 14px 10px;
  min-height: 148px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-align: center;
  transition: all 160ms;
}

.period-card div {
  overflow-wrap: anywhere;
}

.period-card:hover {
  border-color: rgba(45, 226, 196, 0.2);
  background: rgba(45, 226, 196, 0.06);
}

.period-card.active {
  border-color: rgba(45, 226, 196, 0.35);
  background: rgba(45, 226, 196, 0.1);
}

.period-sec {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.period-sec small {
  color: var(--muted);
  font-size: 0.75rem;
}

.period-ytm-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

.period-ytm {
  font-size: 1rem;
  font-weight: 700;
  color: #f6be4f;
  margin-top: 2px;
}

/* Amount Input */
.trade-amount-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 160ms;
}

.trade-amount-input:focus {
  border-color: rgba(45, 226, 196, 0.4);
}

/* Quick Amount Chips */
.quick-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-amt-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 140ms;
}

.quick-amt-btn:hover {
  border-color: rgba(45, 226, 196, 0.25);
  color: var(--text);
  background: rgba(45, 226, 196, 0.08);
}

/* Trade Now Button */
.trade-now-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, #e84142 0%, #00c076 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 160ms, transform 160ms;
}

.trade-now-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.trade-modal-close {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 140ms;
}

.trade-modal-close:hover {
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 640px) {
  .trade-price-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .trade-stats-row {
    gap: 14px;
  }

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

  .trade-pair-bar {
    gap: 6px;
  }
}

/* ── Active Trade Monitor Panel ── */
.trade-monitor-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 20px;
}

.trade-monitor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
}

.atm-dir {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 4px 12px;
  border-radius: 6px;
}

.atm-dir.buy {
  background: rgba(0, 192, 118, 0.15);
  color: #00c076;
}

.atm-dir.sell {
  background: rgba(232, 65, 66, 0.15);
  color: #e84142;
}

.trade-monitor-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .trade-monitor-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Pro Trading Layout ── */
.pro-trading-layout {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: calc(100vh - 72px);
  margin: -32px; /* Negate the .shell-content padding */
  background: var(--bg-base);
}

@media (min-width: 992px) {
  .pro-trading-layout {
    flex-direction: row;
    height: calc(100vh - 72px);
    overflow: hidden;
  }
}

.pro-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.pro-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 12px;
}

.pro-chart-body {
  flex: 1;
  position: relative;
}

.pro-trading-chart-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.pro-order-col {
  width: 100%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

@media (min-width: 992px) {
  .pro-order-col {
    width: 340px;
    min-width: 340px;
  }
}

.pro-order-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* Redesigning Buy/Sell buttons for Pro terminal */
.pro-buy-btn, .pro-sell-btn {
  width: 100%;
  min-height: 110px;
  padding: 18px 20px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  text-align: left;
}

.pro-buy-btn span,
.pro-sell-btn span {
  overflow-wrap: anywhere;
}

.pro-buy-btn span:last-child,
.pro-sell-btn span:last-child {
  font-size: 1.1rem;
  line-height: 1;
}

.pro-buy-btn {
  background: #00c076;
  box-shadow: 0 4px 14px rgba(0, 192, 118, 0.3);
}
.pro-buy-btn:hover { background: #00d683; transform: translateY(-2px); }

.pro-sell-btn {
  background: #e84142;
  box-shadow: 0 4px 14px rgba(232, 65, 66, 0.3);
}
.pro-sell-btn:hover { background: #fa4a4b; transform: translateY(-2px); }

/* Input fields inside pro terminal */
.pro-input-wrap {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  align-items: center;
  transition: border-color 150ms;
  margin-bottom: 20px;
}
.pro-input-wrap:focus-within {
  border-color: rgba(45, 226, 196, 0.5);
}
.pro-input-wrap input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  width: 100%;
  outline: none;
  text-align: right;
  padding-left: 10px;
}

/* ============================================================
   WALLET PAGE — NEW DESIGN
   ============================================================ */

.wallet-hero-card {
  background: linear-gradient(135deg, rgba(22,35,55,0.95) 0%, rgba(12,26,46,0.98) 100%);
  border: 1px solid rgba(45,226,196,0.15);
  border-radius: 20px;
  padding: 24px 20px 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.wallet-hero-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(45,226,196,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.wallet-balance-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-balance-main {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.wallet-balance-unit {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}

.wallet-change-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.wallet-change-chip.up { background: rgba(0,192,118,0.15); color: #00c076; }
.wallet-change-chip.down { background: rgba(232,65,66,0.15); color: #e84142; }

.wallet-sparkline {
  width: 100%;
  height: 60px;
  margin-top: 4px;
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.wallet-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 150ms ease, opacity 150ms ease;
}

.wallet-action-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.wallet-action-btn:active { transform: scale(0.96); }

.wallet-action-btn.deposit {
  background: rgba(0,192,118,0.15);
  color: #00c076;
  border: 1px solid rgba(0,192,118,0.25);
}

.wallet-action-btn.withdraw {
  background: rgba(232,65,66,0.15);
  color: #e84142;
  border: 1px solid rgba(232,65,66,0.25);
}

.wallet-action-btn.exchange {
  background: rgba(45,226,196,0.12);
  color: var(--teal);
  border: 1px solid rgba(45,226,196,0.2);
}

.wallet-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.wallet-action-btn.deposit .wallet-action-icon { background: rgba(0,192,118,0.2); }
.wallet-action-btn.withdraw .wallet-action-icon { background: rgba(232,65,66,0.2); }
.wallet-action-btn.exchange .wallet-action-icon { background: rgba(45,226,196,0.15); }

.wallet-assets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.wallet-assets-toggle {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 150ms;
}

.wallet-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  margin-bottom: 12px;
}

.wallet-coin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  margin-bottom: 8px;
  transition: background 150ms;
}

.wallet-coin-row:hover { background: rgba(255,255,255,0.05); }

.wallet-coin-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  flex-shrink: 0;
}

.wallet-coin-info { flex: 1; }
.wallet-coin-name { font-weight: 700; font-size: 0.95rem; }
.wallet-coin-sub { font-size: 0.78rem; color: rgba(255,255,255,0.45); }

.wallet-coin-amounts { text-align: right; }
.wallet-coin-val { font-weight: 800; font-size: 0.95rem; }
.wallet-coin-usd { font-size: 0.78rem; color: rgba(255,255,255,0.45); }

/* ============================================================
   MARKET OVERVIEW PAGE
   ============================================================ */

.market-overview-header {
  padding: 20px 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
}

.market-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.market-search-box input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.9rem;
  width: 100%;
}

.market-tab-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.market-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 150ms;
}

.market-tab.active {
  background: rgba(45,226,196,0.15);
  color: var(--teal);
  border-color: rgba(45,226,196,0.3);
}

.market-coin-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
  text-decoration: none;
  color: inherit;
}

.market-coin-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(45,226,196,0.2);
}

.market-coin-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.market-coin-info { flex: 1; }
.market-coin-name { font-weight: 700; font-size: 0.95rem; }
.market-coin-sym { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

.market-coin-price-col { text-align: right; flex-shrink: 0; }
.market-coin-price { font-weight: 800; font-size: 0.95rem; }
.market-coin-change {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 3px;
}
.market-coin-change.up { background: rgba(0,192,118,0.15); color: #00c076; }
.market-coin-change.down { background: rgba(232,65,66,0.15); color: #e84142; }

.market-coin-sparkline {
  width: 60px;
  height: 32px;
  flex-shrink: 0;
}

/* ============================================================
   TRADE CONFIRMATION MODAL
   ============================================================ */

.trade-confirm-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.trade-confirm-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.trade-confirm-box {
  background: linear-gradient(135deg, rgba(22,35,55,0.98) 0%, rgba(12,26,46,0.98) 100%);
  border: 1px solid rgba(45,226,196,0.2);
  border-radius: 24px;
  padding: 24px;
  width: 320px;
  max-width: 90%;
  transform: translateY(20px) scale(0.95);
  transition: transform 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.trade-confirm-overlay.show .trade-confirm-box {
  transform: translateY(0) scale(1);
}

.tc-header {
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}

.tc-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.tc-label { color: rgba(255,255,255,0.5); }
.tc-val { font-weight: 700; color: #fff; }
.tc-val.up { color: #00c076; }
.tc-val.down { color: #e84142; }

.tc-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.tc-actions button {
  flex: 1;
}

.admin-balance-trigger {
  padding: 4px 10px;
  font-size: 0.8rem;
  background: transparent;
  border: 1px solid rgba(45, 226, 196, 0.4);
  color: var(--teal);
}

.ops-dialog-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 10, 18, 0.78);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 2500;
}

.ops-dialog-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.ops-dialog-card {
  width: min(620px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(45, 226, 196, 0.16);
  background: linear-gradient(145deg, rgba(10, 21, 36, 0.98), rgba(16, 35, 59, 0.96));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.ops-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.ops-dialog-title {
  margin: 10px 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.ops-dialog-copy {
  margin: 0;
  max-width: 52ch;
}

.ops-dialog-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.ops-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.ops-summary-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.ops-summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.ops-summary-label {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.ops-form-group {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
}

.ops-form-group small {
  line-height: 1.45;
}

.ops-dialog-alert {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.ops-dialog-alert.success {
  border-color: rgba(45, 226, 196, 0.24);
  background: rgba(45, 226, 196, 0.08);
}

.ops-dialog-alert.danger {
  border-color: rgba(255, 111, 108, 0.24);
  background: rgba(255, 111, 108, 0.08);
}

.ops-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.pro-input-label {
  color: var(--muted-strong);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Ensure global responsiveness */
.shell-content {
  overflow-x: hidden;
}
input, .button, select {
  max-width: 100%;
}
@media (max-width: 900px) {
  .dashboard-shell {
    padding-bottom: 108px;
  }

  .dashboard-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .table-header,
  .row-between {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-widget-slot {
    width: min(100%, 280px);
    flex-basis: min(100%, 280px);
  }
}

@media (max-width: 720px) {
  .translate-widget-shell,
  .translate-widget-shell.translate-widget-shell-docked {
    left: 12px;
    right: 12px;
    top: 12px;
    width: calc(100vw - 24px);
  }

  .ops-dialog-card {
    padding: 22px;
  }

  .ops-summary-grid,
  .ops-form-grid {
    grid-template-columns: 1fr;
  }

  .ops-dialog-actions {
    flex-direction: column;
  }

  .chip-row,
  .dashboard-toolbar > * {
    width: 100%;
  }

  .market-table {
    min-width: 560px;
  }
}

@media (max-width: 480px) {
  .dashboard-shell {
    padding-bottom: 116px;
  }

  .pro-input-wrap input {
    font-size: 1rem;
  }
  .pro-order-panel {
    padding: 16px;
  }

  .translate-widget-shell {
    padding: 10px 12px;
  }

  .translate-widget-shell-label {
    font-size: 0.72rem;
  }
}

.translate-engine-host {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.language-widget-slot {
  width: min(290px, 100%);
  min-height: auto;
  flex: 0 0 auto;
}

.language-widget-slot-nav {
  width: auto;
  min-width: 190px;
}

.language-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(143, 164, 191, 0.16);
  background: linear-gradient(135deg, rgba(8, 18, 31, 0.96), rgba(14, 30, 50, 0.92));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.language-control-meta {
  display: grid;
  gap: 4px;
  min-width: 74px;
  flex: 0 0 auto;
}

.language-control-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.language-control-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(143, 164, 191, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: default;
}

.language-control-status.loading {
  border-color: rgba(246, 190, 79, 0.28);
  background: rgba(246, 190, 79, 0.1);
  color: #ffe39b;
}

.language-control-status.ready {
  border-color: rgba(45, 226, 196, 0.24);
  background: rgba(45, 226, 196, 0.1);
  color: #bff9ec;
}

.language-control-status.error {
  border-color: rgba(255, 111, 108, 0.28);
  background: rgba(255, 111, 108, 0.1);
  color: #ffd8d5;
  cursor: pointer;
}

.language-control-select {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(143, 164, 191, 0.18);
  border-radius: 12px;
  background: rgba(7, 17, 30, 0.92);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

.nav-actions .language-widget-slot-nav .language-control {
  min-width: 190px;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-filter-input,
.admin-filter-select {
  width: 100%;
}

.admin-inline-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.admin-user-detail-card {
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 28, 46, 0.92), rgba(8, 16, 29, 0.88));
}

.admin-live-trade-list,
.audit-log-list {
  display: grid;
  gap: 12px;
}

.admin-live-trade-card,
.audit-log-card,
.deposit-admin-card,
.empty-state-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
}

.admin-live-trade-actions,
.audit-log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-live-trade-actions {
  margin-top: 16px;
}

.audit-log-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.deposit-admin-group + .deposit-admin-group {
  margin-top: 26px;
}

.deposit-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.address-readonly {
  word-break: break-all;
  font-family: "Consolas", "Cascadia Code", monospace;
}

.deposit-guidance-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}

.deposit-guidance-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
}

.deposit-guidance-list span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(45, 226, 196, 0.12);
}

.deposit-flow {
  display: grid;
  gap: 20px;
}

.deposit-hero-card {
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(45, 226, 196, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(13, 24, 45, 0.98), rgba(20, 31, 58, 0.92));
  border: 1px solid rgba(93, 107, 255, 0.14);
}

.deposit-status-card {
  margin-bottom: 18px;
}

.deposit-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.deposit-network-strip {
  margin: 20px 0 0;
}

.deposit-network-pill {
  min-width: 96px;
  justify-content: center;
}

.deposit-hero-stats {
  margin: 18px 0 0;
}

.deposit-shell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 20px;
  align-items: start;
}

.deposit-address-card,
.deposit-proof-card {
  padding: 24px;
}

.deposit-address-layout-v2 {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.deposit-qr-card-v2 {
  flex: 0 0 160px;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
}

.deposit-qr-card-v2 .qr-frame svg {
  width: 100%;
  height: auto;
  display: block;
}

.deposit-address-details-v2 {
  flex: 1;
  min-width: 0;
}

.deposit-address-box-v2 {
  margin-top: 8px;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--text);
  word-break: break-all;
}

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

.deposit-note-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.deposit-note-card strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--text);
}

.deposit-note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.deposit-proof-head {
  margin-bottom: 18px;
}

.deposit-proof-form {
  gap: 16px;
}

.deposit-readout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

@media (max-width: 1180px) {
  .deposit-shell-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .deposit-hero-head,
  .deposit-address-head {
    flex-direction: column;
    align-items: stretch;
  }

  .deposit-address-layout-v2,
  .deposit-note-grid,
  .deposit-readout-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .deposit-address-card,
  .deposit-proof-card,
  .deposit-hero-card {
    padding: 18px;
  }

  .deposit-network-pill {
    min-width: 0;
  }
}

.ops-form-grid-single {
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.ops-preview-card {
  margin-top: 16px;
}

.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-danger-button {
  background: rgba(255, 111, 108, 0.1);
  border-color: rgba(255, 111, 108, 0.35);
  color: #ffd6d4;
}

.session-item-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.wallet-coin-name,
.wallet-coin-sub,
.wallet-coin-val,
.wallet-coin-usd,
.audit-log-card,
.session-item-card,
.ops-summary-card,
.market-table td,
.market-table th,
.deposit-guidance-list span,
.stat-list span {
  overflow-wrap: anywhere;
}

.session-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.mfa-setup-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(45, 226, 196, 0.15);
  background: linear-gradient(180deg, rgba(7, 17, 30, 0.95), rgba(14, 30, 50, 0.88));
}

.admin-control-grid {
  align-items: start;
}

.admin-shell {
  background:
    radial-gradient(circle at top left, rgba(45, 226, 196, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(246, 190, 79, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(4, 12, 24, 0.96), rgba(7, 18, 32, 0.98));
}

.admin-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.admin-main,
.admin-shell-stack,
.admin-users-main,
.admin-users-side,
.admin-detail-stack {
  display: grid;
  gap: 22px;
}

.admin-sidebar {
  grid-template-columns: 1fr;
  position: sticky;
  top: 24px;
  align-self: start;
  gap: 16px;
}

.admin-sidebar-card {
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(13, 26, 44, 0.96), rgba(7, 17, 29, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.admin-brand-header {
  display: grid;
  gap: 10px;
}

.admin-brand-copy {
  margin: 0;
  line-height: 1.7;
}

.admin-brand-card .brand {
  margin-top: 18px;
}

.admin-sidebar-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.admin-sidebar-stat {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}

.admin-sidebar-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sidebar-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
}

.admin-sidebar-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-sidebar-section-head h3,
.admin-section-title {
  margin: 0;
}

.admin-sidebar-section-head p,
.admin-section-copy {
  margin: 6px 0 0;
}

.admin-nav-list {
  display: grid;
  gap: 10px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 18px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.admin-nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 226, 196, 0.22);
  background: rgba(45, 226, 196, 0.06);
}

.admin-nav-link.active {
  border-color: rgba(246, 190, 79, 0.3);
  background: linear-gradient(180deg, rgba(246, 190, 79, 0.12), rgba(255, 255, 255, 0.04));
}

.admin-nav-link-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-nav-link-label {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-nav-link-sub {
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.admin-nav-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  font-size: 0.76rem;
  text-align: center;
}

.admin-sidebar-exit {
  width: 100%;
  margin-top: 18px;
}

.admin-note-list {
  margin-top: 0;
}

.admin-topbar-card.dashboard-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 0;
  padding: 26px;
}

.admin-topbar-copy,
.admin-topbar-heading {
  display: grid;
  gap: 10px;
}

.admin-topbar-kicker {
  letter-spacing: 0.14em;
}

.admin-toolbar {
  align-items: stretch;
  gap: 14px;
}

.admin-toolbar .chip-row {
  justify-content: flex-end;
}

.admin-toolbar-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.admin-kpi-card {
  position: relative;
  overflow: hidden;
}

.admin-kpi-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -45% auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45, 226, 196, 0.16), transparent 64%);
  pointer-events: none;
}

.admin-section-card {
  padding: 22px;
}

.admin-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-section-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-section-tools .input {
  width: min(260px, 100%);
}

.admin-table-surface {
  padding: 0;
  overflow: hidden;
}

.admin-table-surface .admin-inline-actions,
.admin-table-surface .admin-section-header,
.admin-table-surface .admin-filter-bar,
.admin-table-surface .admin-table-inner {
  padding-inline: 22px;
}

.admin-table-surface .admin-inline-actions {
  padding-top: 22px;
  margin-bottom: 14px;
}

.admin-table-surface .admin-section-header {
  padding-top: 22px;
}

.admin-table-surface .admin-inline-actions + .admin-section-header {
  padding-top: 4px;
}

.admin-table-surface .admin-filter-bar {
  margin-bottom: 0;
  padding-bottom: 18px;
}

.admin-table-inner {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table-caption {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.admin-table-surface .market-table th {
  color: rgba(214, 226, 242, 0.7);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-table-surface .market-table tbody tr:hover,
.admin-embedded-table .market-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.admin-users-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.admin-users-side {
  position: sticky;
  top: 24px;
  align-self: start;
}

.admin-detail-panel {
  margin-top: 0;
  padding: 24px;
}

.admin-user-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.admin-focus-grid {
  gap: 18px;
}

.admin-subsection-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}

.admin-subsection-card h3 {
  margin: 0 0 14px;
}

.admin-embedded-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.admin-embedded-table .table-header {
  padding: 18px 20px 0;
}

.admin-embedded-table .market-table th,
.admin-embedded-table .market-table td {
  padding-inline: 20px;
}

.admin-empty-detail-card {
  padding: 22px;
}

.admin-ticket-list {
  gap: 14px;
}

.admin-ticket-list .ticket-card {
  background: rgba(255, 255, 255, 0.035);
}

@media (max-width: 900px) {
  .admin-filter-bar {
    grid-template-columns: 1fr;
  }

  .admin-inline-actions {
    justify-content: stretch;
  }

  .admin-inline-actions .button {
    width: 100%;
  }

  .nav-actions .language-widget-slot-nav {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 1180px) {
  .admin-layout,
  .admin-users-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar,
  .admin-users-side {
    position: static;
  }
}

@media (max-width: 860px) {
  .admin-topbar-card.dashboard-topbar,
  .admin-section-header {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-toolbar {
    width: 100%;
  }

  .admin-toolbar .chip-row {
    justify-content: flex-start;
  }

  .admin-section-tools,
  .admin-section-tools .input {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .admin-kpi-grid,
  .admin-sidebar-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .language-widget-slot,
  .language-widget-slot-nav {
    width: 100%;
    min-width: 0;
  }

  .language-control {
    flex-direction: column;
    align-items: stretch;
  }

  .language-control-meta {
    min-width: 0;
  }

  .admin-live-trade-actions,
  .audit-log-meta,
  .session-item-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-table-surface .admin-inline-actions,
  .admin-table-surface .admin-section-header,
  .admin-table-surface .admin-filter-bar,
  .admin-table-surface .admin-table-inner {
    padding-inline: 16px;
  }

  .admin-detail-panel {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .trade-modal-overlay,
  .ops-dialog-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .trade-modal {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 20px;
    border-radius: 22px 22px 18px 18px;
  }

  .trade-modal-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .wallet-coin-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .wallet-coin-amounts {
    width: 100%;
    padding-left: 54px;
    text-align: left;
  }

  .admin-kpi-grid,
  .admin-sidebar-metrics,
  .admin-user-kpi-grid {
    grid-template-columns: 1fr;
  }

  .admin-nav-link {
    align-items: flex-start;
    padding: 14px;
  }

  .admin-nav-count {
    min-width: 64px;
  }

  .admin-embedded-table .table-header {
    padding: 16px 16px 0;
  }

  .admin-embedded-table .market-table th,
  .admin-embedded-table .market-table td {
    padding-inline: 16px;
  }
}

@media (max-width: 540px) {
  .auth-hero-stat {
    grid-template-columns: 1fr;
  }

  .dashboard-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-toolbar > * {
    width: 100%;
  }

  .wallet-coin-amounts {
    padding-left: 0;
  }
}

.sidebar-card-clickable {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.sidebar-card-clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 226, 196, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.shell-utility-bar {
  display: none;
  gap: 10px;
  flex-wrap: wrap;
}

.shell-utility-btn {
  appearance: none;
  border: 1px solid rgba(143, 164, 191, 0.16);
  background: rgba(8, 18, 31, 0.94);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.shell-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  background: rgba(3, 10, 18, 0.72);
  backdrop-filter: blur(12px);
  overscroll-behavior: contain;
}

.shell-panel-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 22px;
  border-radius: 28px 28px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(10, 20, 34, 0.98), rgba(15, 31, 52, 0.95));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.shell-panel-card-nav {
  display: grid;
  gap: 18px;
}

.shell-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.shell-panel-header h3 {
  margin: 8px 0 0;
}

.shell-panel-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.shell-panel-nav-list {
  display: grid;
  gap: 10px;
}

.shell-panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.shell-panel-link.active {
  border-color: rgba(45, 226, 196, 0.25);
  background: rgba(45, 226, 196, 0.08);
  color: var(--teal);
}

.shell-panel-link-danger,
.mobile-profile-actions .danger {
  color: #ff8f8a;
}

.mobile-profile-hero {
  position: relative;
  padding: 22px 18px 18px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 17, 31, 0.72);
}

.mobile-profile-banner {
  position: absolute;
  inset: 0 0 auto;
  height: 140px;
  background:
    linear-gradient(135deg, rgba(70, 115, 255, 0.22), rgba(255, 71, 185, 0.22)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 58%);
}

.mobile-profile-avatar {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2a7bf, #d36ad5);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  border: 5px solid rgba(10, 20, 34, 0.95);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.mobile-profile-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.mobile-profile-copy strong {
  font-size: 1.18rem;
}

.mobile-profile-copy > span {
  color: rgba(255, 255, 255, 0.65);
}

.mobile-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.mobile-profile-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
}

.mobile-profile-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mobile-profile-actions a,
.mobile-profile-actions button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.trade-live-mobile-ring {
  --progress: 100%;
  width: 220px;
  height: 220px;
  margin: 12px auto 18px;
  padding: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(9, 18, 33, 0.96) 58%, transparent 59%),
    conic-gradient(#d540ff 0 var(--progress), #ff6683 var(--progress) 100%);
  display: grid;
  place-items: center;
}

.trade-live-mobile-ring-copy {
  text-align: center;
  display: grid;
  gap: 8px;
}

.trade-live-mobile-ring-copy strong {
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1;
}

.trade-live-mobile-ring-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.trade-live-mobile-card,
.trade-outcome-sheet {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.trade-live-mobile-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trade-live-mobile-row:last-of-type {
  border-bottom: none;
}

.trade-live-mobile-row span,
.trade-live-mobile-grid span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
}

.trade-live-mobile-row strong,
.trade-live-mobile-grid strong {
  color: var(--text);
}

.trade-live-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.trade-live-mobile-grid > div {
  display: grid;
  gap: 6px;
}

.trade-live-mobile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.trade-selector-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.trade-selector-card,
.trade-selected-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.trade-selector-card {
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  min-height: 126px;
  min-width: 0;
}

.trade-selector-label,
.trade-selected-summary-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.trade-selector-value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 1.05rem;
  min-width: 0;
}

.trade-selector-value strong {
  overflow-wrap: anywhere;
}

.trade-selector-meta,
.trade-selected-summary small {
  color: var(--muted-strong);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.trade-selected-summary {
  margin-bottom: 18px;
  min-width: 0;
}

.trade-selected-summary-duration {
  margin-bottom: 24px;
}

.trade-selected-summary > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.trade-selected-summary strong {
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.trade-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: none;
}

.trade-picker-overlay.show {
  display: block;
}

.trade-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 18, 0.76);
  backdrop-filter: blur(10px);
}

.trade-picker-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 20px));
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 22px;
  border-radius: 28px 28px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 21, 36, 0.98), rgba(15, 31, 52, 0.96));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.32);
}

.trade-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.trade-picker-header h3 {
  margin: 8px 0 0;
}

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

.trade-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.trade-option-card.active {
  border-color: rgba(45, 226, 196, 0.32);
  background: rgba(45, 226, 196, 0.09);
}

.trade-option-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.2rem;
}

.trade-option-copy {
  display: grid;
  gap: 4px;
}

.trade-option-copy small {
  color: var(--muted-strong);
}

.period-grid-sheet {
  margin-bottom: 0;
}

.period-grid,
.period-grid-sheet {
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
}

.live-chat-widget {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1850;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.active-trade-widget {
  position: fixed;
  z-index: 1840;
  display: grid;
}

.active-trade-fab {
  width: 74px;
  height: 74px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
  cursor: grab;
  touch-action: none;
}

.active-trade-fab:active {
  cursor: grabbing;
}

.active-trade-fab-ring {
  --progress: 100%;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 8px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(9, 18, 33, 0.98) 58%, transparent 60%),
    conic-gradient(#d540ff 0 var(--progress), #ff6683 var(--progress) 100%);
}

.active-trade-fab-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.active-trade-fab-timer {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.active-trade-fab small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 3px;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.live-chat-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f7cff, #2de2c4);
  color: #04111d;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.live-chat-fab-badge,
.live-chat-thread-badge {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff6f6c;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

.live-chat-panel {
  width: min(420px, calc(100vw - 28px));
  display: none;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 21, 36, 0.98), rgba(15, 31, 52, 0.96));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.live-chat-panel.show {
  display: block;
}

.live-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.live-chat-header h3 {
  margin: 8px 0 6px;
}

.live-chat-header p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.88rem;
}

.live-chat-body {
  display: grid;
  min-height: 420px;
}

.live-chat-body.admin-layout {
  grid-template-columns: 180px minmax(0, 1fr);
}

.live-chat-sidebar {
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 10px;
  align-content: start;
}

.live-chat-thread {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.live-chat-thread.active {
  border-color: rgba(45, 226, 196, 0.24);
  background: rgba(45, 226, 196, 0.08);
}

.live-chat-thread strong,
.live-chat-thread span {
  display: block;
}

.live-chat-thread span {
  color: var(--muted-strong);
  font-size: 0.76rem;
  margin-top: 4px;
}

.live-chat-conversation {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 420px;
}

.live-chat-messages {
  max-height: 420px;
  overflow-y: auto;
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.live-chat-message {
  display: flex;
}

.live-chat-message.admin {
  justify-content: flex-start;
}

.live-chat-message.user {
  justify-content: flex-end;
}

.live-chat-bubble {
  max-width: min(280px, 100%);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.live-chat-message.user .live-chat-bubble {
  background: rgba(45, 226, 196, 0.1);
  border-color: rgba(45, 226, 196, 0.22);
}

.live-chat-bubble strong {
  display: block;
  margin-bottom: 6px;
}

.live-chat-bubble p {
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.live-chat-bubble span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.live-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.live-chat-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.live-chat-empty strong {
  display: block;
  margin-bottom: 6px;
}

.trade-outcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
}

.trade-outcome-overlay.show {
  display: flex;
}

.trade-outcome-card {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
}

.trade-outcome-ring {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}

.trade-outcome-ring.win {
  background: radial-gradient(circle at center, rgba(16, 22, 42, 0.92) 56%, transparent 57%), linear-gradient(135deg, #ff5f9d, #8247ff);
}

.trade-outcome-ring.loss {
  background: radial-gradient(circle at center, rgba(16, 22, 42, 0.92) 56%, transparent 57%), linear-gradient(135deg, #ff7b72, #ff3c5f);
}

.trade-outcome-ring span {
  font-size: clamp(1.8rem, 8vw, 3rem);
  font-weight: 800;
}

.trade-outcome-ring small {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }

  .shell-utility-bar {
    display: flex;
  }

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

@media (max-width: 720px) {
  .trade-picker-grid,
  .trade-live-mobile-grid,
  .trade-live-mobile-actions {
    grid-template-columns: 1fr;
  }

  .trade-selector-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .trade-selector-card {
    min-height: 118px;
    padding: 14px;
  }

  .live-chat-panel {
    width: min(100vw - 20px, 420px);
  }

  .live-chat-body.admin-layout {
    grid-template-columns: 1fr;
  }

  .live-chat-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 540px) {
  .shell-panel-card,
  .trade-picker-sheet {
    padding: 18px;
  }

  .trade-live-mobile-ring,
  .trade-outcome-ring {
    width: 180px;
    height: 180px;
  }

  .live-chat-widget {
    right: 12px;
    left: 12px;
    justify-items: stretch;
  }

  .live-chat-fab {
    justify-content: center;
  }

  .live-chat-panel {
    width: 100%;
  }

  .live-chat-composer {
    grid-template-columns: 1fr;
  }

  .trade-selector-strip {
    gap: 10px;
  }

  .trade-selector-card {
    min-height: 110px;
    padding: 12px;
  }

  .trade-selector-value {
    gap: 8px;
    font-size: 0.94rem;
  }
}

body.shell-lock {
  position: fixed;
  overflow: hidden;
  width: 100%;
  left: 0;
  right: 0;
  overscroll-behavior: none;
}

.shell-utility-bar {
  display: none !important;
}

.floating-utility-dock {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1820;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 18, 31, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.floating-utility-btn {
  min-width: 70px;
  padding: 12px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.floating-utility-btn.active {
  background: linear-gradient(135deg, rgba(31, 124, 255, 0.22), rgba(45, 226, 196, 0.18));
  color: #9df6ea;
}

.trade-records-table td {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .trade-records-table thead {
    display: none;
  }

  .trade-records-table,
  .trade-records-table tbody,
  .trade-records-table tr,
  .trade-records-table td {
    display: block;
    width: 100%;
  }

  .trade-records-table tr {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .trade-records-table tr:last-child {
    border-bottom: none;
  }

  .trade-records-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    white-space: normal;
    border: 0;
  }

  .trade-records-table td::before {
    content: attr(data-label);
    flex: 0 0 110px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .trade-records-table td strong,
  .trade-records-table td span,
  .trade-records-table td b {
    text-align: right;
  }
}

.pair-icon-badge {
  min-width: 58px;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--pair-accent, #2de2c4);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.pro-trading-layout {
  margin: 0;
  min-height: auto;
  gap: 16px;
  background: transparent;
}

.pro-chart-col,
.pro-order-col {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(10, 20, 34, 0.96), rgba(13, 27, 46, 0.92));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.pro-chart-col {
  min-height: 540px;
  border-right: none;
}

.pro-chart-header {
  display: grid;
  gap: 16px;
  align-items: stretch;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
}

.trade-terminal-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(280px, 1.15fr);
  gap: 12px;
  align-items: stretch;
}

.trade-selector-card,
.trade-selected-summary,
.trade-order-summary-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.trade-selector-card {
  min-height: 116px;
}

.trade-selector-card-balance {
  justify-content: center;
}

.trade-price-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
}

.trade-live-price {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.trade-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(420px, 100%);
}

.trade-stat {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pro-chart-body {
  min-height: 360px;
}

.chart-timeframes {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(6, 14, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pro-order-col {
  width: 100%;
  overflow-y: auto;
}

.pro-order-panel {
  display: grid;
  padding: 22px;
  gap: 16px;
}

.trade-stage-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.028);
}

.trade-stage-placeholder {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.trade-stage-placeholder p {
  margin: 0;
}

.trade-direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.pro-order-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pro-order-heading h3 {
  margin: 8px 0 0;
}

.chip-soft {
  background: rgba(45, 226, 196, 0.08);
  color: var(--teal);
  border-color: rgba(45, 226, 196, 0.2);
}

.trade-form-step {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.quick-amounts-trade {
  margin-bottom: 8px;
}

.trade-order-summary-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.trade-order-summary-card > div:first-child {
  display: grid;
  gap: 6px;
}

.trade-order-summary-card strong {
  font-size: 1rem;
}

.trade-order-summary-card small {
  color: var(--muted-strong);
}

.trade-order-summary-metrics {
  display: grid;
  gap: 8px;
  min-width: 120px;
}

.trade-order-summary-metrics span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.pro-buy-btn.selected,
.pro-sell-btn.selected {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.pro-buy-btn.selected {
  border-color: rgba(0, 192, 118, 0.32);
  background: linear-gradient(180deg, rgba(0, 192, 118, 0.2), rgba(0, 192, 118, 0.1));
}

.pro-sell-btn.selected {
  border-color: rgba(232, 65, 66, 0.32);
  background: linear-gradient(180deg, rgba(232, 65, 66, 0.2), rgba(232, 65, 66, 0.1));
}

.live-chat-widget {
  right: 18px;
  bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.live-chat-fab {
  width: 72px;
  height: 72px;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f7cff, #2de2c4);
  color: #04111d;
}

.live-chat-fab-copy {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.live-chat-panel {
  position: absolute;
  bottom: calc(100% + 12px);
}

.live-chat-panel.dock-right {
  right: 0;
}

.live-chat-panel.dock-left {
  left: 0;
}

@media (min-width: 992px) {
  .pro-trading-layout {
    flex-direction: row;
    align-items: stretch;
    min-height: min(860px, calc(100vh - 132px));
  }

  .pro-order-col {
    width: 360px;
    min-width: 360px;
  }
}

@media (max-width: 1024px) {
  .floating-utility-dock {
    display: flex;
  }

  .dashboard-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-toolbar .chip-row,
  .dashboard-toolbar .language-control-shell {
    display: none;
  }

  .pro-chart-col,
  .pro-order-col {
    border-radius: 24px;
  }

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

  .trade-selector-card-balance {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .floating-utility-dock {
    width: calc(100vw - 24px);
    justify-content: space-between;
  }

  .floating-utility-btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 10px;
  }

  .trade-terminal-strip,
  .trade-stats-row,
  .trade-order-summary-card {
    grid-template-columns: 1fr;
  }

  .trade-order-summary-card {
    flex-direction: column;
  }

  .trade-direction-grid {
    grid-template-columns: 1fr;
  }

  .pro-buy-btn,
  .pro-sell-btn {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trade-stage-block,
  .trade-stage-placeholder,
  .admin-user-detail-card {
    padding: 16px;
  }

  .admin-actions-cell {
    display: grid;
    gap: 8px;
  }

  .admin-actions-cell .button {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .pro-chart-header,
  .pro-order-panel {
    padding: 16px;
  }

  .trade-selector-card,
  .trade-selected-summary,
  .trade-order-summary-card {
    padding: 15px 16px;
  }

  .trade-stage-block,
  .trade-stage-placeholder {
    padding: 15px;
  }

  .trade-live-price {
    font-size: 1.9rem;
  }

  .chart-timeframes {
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    justify-content: space-between;
  }

  .pro-chart-body {
    min-height: 320px;
  }

  .live-chat-widget {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .live-chat-panel {
    width: min(360px, calc(100vw - 24px));
  }

  .admin-inline-actions {
    justify-content: stretch;
  }

  .admin-inline-actions .button {
    width: 100%;
  }
}

/* Admin UX audit overrides */
.admin-sidebar,
.admin-users-side {
  position: static;
  top: auto;
}

.admin-users-layout {
  grid-template-columns: 1fr;
}

.admin-topbar-card.dashboard-topbar {
  grid-template-columns: 1fr;
  padding: 22px 24px;
}

.admin-topbar-card .dashboard-title,
.admin-topbar-card .dashboard-title h1,
.admin-topbar-card .dashboard-title p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.admin-topbar-card .dashboard-title h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 0.98;
}

.admin-toolbar {
  width: 100%;
  justify-content: space-between;
}

.admin-toolbar .chip-row {
  justify-content: flex-start;
}

.admin-toolbar-summary {
  margin-top: 2px;
}

.admin-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-scroll-pane {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.admin-scroll-pane-tall {
  max-height: 620px;
}

.admin-mobile-card-list {
  display: none;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.admin-record-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.admin-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

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

.admin-record-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-record-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.admin-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-record-actions .button {
  flex: 1 1 140px;
}

.admin-embedded-table {
  overflow: hidden;
}

.admin-embedded-table .admin-mobile-card-list {
  padding: 0 18px 18px;
}

@media (max-width: 1180px) {
  .admin-topbar-card .dashboard-title h1 {
    max-width: none;
  }

  .admin-scroll-pane-tall {
    max-height: 520px;
  }
}

@media (max-width: 900px) {
  .admin-topbar-card.dashboard-topbar {
    padding: 18px;
  }

  .admin-toolbar-summary {
    display: none;
  }
}

@media (max-width: 720px) {
  .admin-topbar-card .dashboard-title h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .admin-topbar-card.dashboard-topbar,
  .admin-section-card,
  .admin-detail-panel,
  .admin-empty-detail-card {
    padding: 18px;
  }

  .admin-table-surface .admin-table-inner,
  .admin-embedded-table .admin-table-inner {
    display: none;
  }

  .admin-mobile-card-list {
    display: grid;
  }

  .admin-scroll-pane,
  .admin-scroll-pane-tall {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .admin-record-grid {
    grid-template-columns: 1fr;
  }

  .admin-record-actions {
    flex-direction: column;
  }

  .admin-record-actions .button {
    width: 100%;
    flex: 1 1 auto;
  }

  body[data-route^="admin"] .live-chat-widget {
    right: 14px;
    left: auto;
    bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  }

  body[data-route^="admin"] .live-chat-fab {
    width: 60px;
    height: 60px;
  }

  body[data-route^="admin"] .live-chat-fab-copy {
    font-size: 0.84rem;
  }
}

/* ============================================================
   WALLET HUB REDESIGN
   ============================================================ */

.wallet-hub {
  display: grid;
  gap: 22px;
}

.wallet-hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  padding: 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(133, 103, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(18, 41, 74, 0.98), rgba(25, 34, 90, 0.92));
  border: 1px solid rgba(132, 153, 255, 0.16);
  box-shadow: 0 28px 80px rgba(4, 10, 28, 0.42);
  overflow: hidden;
}

.wallet-hub-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.wallet-hub-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wallet-hub-hero-label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(233, 240, 255, 0.84);
}

.wallet-hub-hero-visibility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(233, 240, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wallet-hub-hero-balance {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.wallet-hub-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: rgba(222, 230, 246, 0.72);
  font-size: 0.92rem;
}

.wallet-hub-chart-wrap {
  position: relative;
  min-height: 186px;
  border-radius: 24px;
  padding: 18px 18px 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(7, 18, 40, 0.42), rgba(7, 18, 40, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-hub-chart-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 42px, 54px 100%;
  opacity: 0.48;
  pointer-events: none;
}

.wallet-hub-chart {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.wallet-hub-chart-callout {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  min-width: 156px;
  padding: 10px 14px;
  border-radius: 16px;
  color: #152038;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 34px rgba(5, 12, 28, 0.22);
}

.wallet-hub-chart-callout span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  color: rgba(21, 32, 56, 0.68);
}

.wallet-hub-chart-callout strong {
  font-size: 1.05rem;
  color: #152038;
}

.wallet-hub-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wallet-hub-action {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.wallet-hub-action:hover {
  transform: translateY(-1px);
}

.wallet-hub-action span {
  font-size: 1rem;
  font-weight: 800;
}

.wallet-hub-action small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.wallet-hub-action-deposit {
  color: #d9fff1;
  background: linear-gradient(135deg, rgba(17, 132, 91, 0.88), rgba(9, 90, 66, 0.92));
  border-color: rgba(65, 224, 157, 0.28);
}

.wallet-hub-action-withdraw {
  color: #ffe4e6;
  background: linear-gradient(135deg, rgba(150, 29, 51, 0.88), rgba(102, 18, 39, 0.92));
  border-color: rgba(255, 116, 136, 0.24);
}

.wallet-hub-action-exchange {
  color: #e2fbff;
  background: linear-gradient(135deg, rgba(29, 83, 150, 0.88), rgba(24, 54, 114, 0.92));
  border-color: rgba(98, 216, 255, 0.24);
}

.wallet-hub-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-hub-status strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
}

.wallet-hub-status p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.wallet-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 20px;
}

.wallet-hub-panel,
.wallet-hub-side-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(9, 17, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 64px rgba(2, 8, 22, 0.34);
}

.wallet-hub-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

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

.wallet-hub-panel-head h3,
.wallet-hub-side-card h3 {
  margin: 0 0 6px;
  color: #ffffff;
}

.wallet-hub-panel-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
}

.wallet-hub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
}

.wallet-hub-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #5d6bff;
}

.wallet-hub-toggle span {
  font-size: 0.82rem;
  font-weight: 700;
}

.wallet-hub-allocation {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-hub-ring {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgba(10, 17, 35, 0.18);
}

.wallet-hub-ring::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(8, 16, 34, 0.98), rgba(11, 21, 42, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-hub-ring-core {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
}

.wallet-hub-ring-core span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wallet-hub-ring-core strong {
  max-width: 130px;
  font-size: 1.06rem;
  line-height: 1.35;
  color: #ffffff;
}

.wallet-hub-legend {
  display: grid;
  gap: 10px;
}

.wallet-hub-legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-hub-legend-item span,
.wallet-hub-legend-item strong {
  font-size: 0.88rem;
}

.wallet-hub-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.wallet-hub-assets {
  display: grid;
  gap: 10px;
}

.wallet-hub-asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-hub-asset-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.wallet-hub-asset-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
}

.wallet-hub-asset-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wallet-hub-asset-copy strong,
.wallet-hub-asset-values strong {
  color: #ffffff;
}

.wallet-hub-asset-copy span,
.wallet-hub-asset-values span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.wallet-hub-asset-values {
  display: grid;
  gap: 5px;
  text-align: right;
}

.wallet-hub-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wallet-hub-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 160ms ease, background 160ms ease;
}

.wallet-hub-link-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(93, 107, 255, 0.35);
}

.wallet-hub-note-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.wallet-hub-empty-copy {
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1180px) {
  .wallet-hub-hero,
  .wallet-hub-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .wallet-hub {
    gap: 18px;
  }

  .wallet-hub-hero,
  .wallet-hub-panel,
  .wallet-hub-side-card {
    padding: 18px;
    border-radius: 22px;
  }

  .wallet-hub-chart-wrap {
    min-height: 170px;
    padding: 54px 12px 8px;
  }

  .wallet-hub-chart-callout {
    top: 12px;
    right: 12px;
    min-width: 142px;
    padding: 9px 12px;
  }

  .wallet-hub-actions {
    grid-template-columns: 1fr;
  }

  .wallet-hub-status,
  .wallet-hub-panel-head,
  .wallet-hub-asset-row {
    flex-direction: column;
    align-items: stretch;
  }

  .wallet-hub-toggle {
    justify-content: center;
  }

  .wallet-hub-allocation {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .wallet-hub-sidebar {
    grid-template-columns: 1fr;
  }

  .wallet-hub-asset-values {
    text-align: left;
  }
}

.loan-record-card .admin-record-actions {
  align-items: flex-start;
  gap: 10px;
}

.loan-record-card .admin-record-actions .muted {
  display: block;
  width: 100%;
  font-size: 0.82rem;
  line-height: 1.45;
}
