/* Local font faces — no external CDN required */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuFuYAZ9hiA.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYAZ9hiA.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hiA.woff2") format("woff2");
}

@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url("../fonts/material-symbols-outlined.woff2") format("woff2");
}
/**
 * Yield One FX — Design System
 * Institutional minimalism · Inter · dark/light · no gradients
 */

/* ========== THEME TOKENS ========== */
:root {
  --yoa-font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Light palette */
  --yoa-background: #f5f6fa;
  --yoa-surface: #ffffff;
  --yoa-surface-dim: #eef0f6;
  --yoa-surface-low: #f3f3fd;
  --yoa-surface-container: #eaedf5;
  --yoa-surface-container-high: #e2e5ef;
  --yoa-surface-elevated: #ffffff;
  --yoa-outline-variant: #d0d4e0;
  --yoa-outline: #8b8fa3;
  --yoa-on-background: #111827;
  --yoa-on-surface: #111827;
  --yoa-on-surface-variant: #4b5068;
  --yoa-primary: #0044b8;
  --yoa-primary-hover: #003494;
  --yoa-on-primary: #ffffff;
  --yoa-primary-container: #0052cc;
  --yoa-primary-soft: #e8f0fe;
  --yoa-secondary: #505f76;
  --yoa-error: #d32f2f;
  --yoa-error-soft: #fef2f2;
  --yoa-success: #0d9058;
  --yoa-success-soft: #ecfdf5;
  --yoa-warning: #e67e00;
  --yoa-warning-soft: #fff8eb;
  --yoa-on-primary-container: #c4d2ff;
  --yoa-inverse-surface: #1e2030;
  --yoa-inverse-on-surface: #f0f0fb;

  /* Radii */
  --yoa-radius-xs: 6px;
  --yoa-radius-sm: 8px;
  --yoa-radius-md: 12px;
  --yoa-radius-lg: 16px;
  --yoa-radius-xl: 20px;
  --yoa-radius-full: 9999px;

  /* Spacing */
  --yoa-space-2xs: 2px;
  --yoa-space-xs: 4px;
  --yoa-space-sm: 8px;
  --yoa-space-md: 16px;
  --yoa-space-lg: 24px;
  --yoa-space-xl: 32px;
  --yoa-space-2xl: 48px;
  --yoa-gutter: 20px;

  /* Layout */
  --yoa-header-h: 60px;
  --yoa-nav-h: 64px;
  --yoa-max-w: 480px;

  /* Shadows */
  --yoa-shadow-xs: 0 2px 4px rgba(0,0,0,0.02);
  --yoa-shadow-sm: 0 4px 12px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.02);
  --yoa-shadow-md: 0 8px 24px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
  --yoa-shadow-lg: 0 12px 32px rgba(0,0,0,0.08);

  /* Transitions */
  --yoa-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --yoa-duration: 200ms;
}

/* ========== DARK MODE ========== */
[data-theme="dark"] {
  --yoa-background: #0b0f19;
  --yoa-surface: #111827;
  --yoa-surface-dim: #0f1422;
  --yoa-surface-low: #151d30;
  --yoa-surface-container: #1f2937;
  --yoa-surface-container-high: #374151;
  --yoa-surface-elevated: #1f2937;
  --yoa-outline-variant: #374151;
  --yoa-outline: #6b7280;
  --yoa-on-background: #f3f4f6;
  --yoa-on-surface: #f9fafb;
  --yoa-on-surface-variant: #9ca3af;
  --yoa-primary: #3b82f6;
  --yoa-primary-hover: #60a5fa;
  --yoa-on-primary: #ffffff;
  --yoa-primary-container: #2563eb;
  --yoa-primary-soft: rgba(59, 130, 246, 0.15);
  --yoa-secondary: #9ca3af;
  --yoa-error: #ef4444;
  --yoa-error-soft: rgba(239, 68, 68, 0.15);
  --yoa-success: #10b981;
  --yoa-success-soft: rgba(16, 185, 129, 0.15);
  --yoa-warning: #f59e0b;
  --yoa-warning-soft: rgba(245, 158, 11, 0.15);
  --yoa-inverse-surface: #f3f4f6;
  --yoa-inverse-on-surface: #111827;

  --yoa-shadow-xs: 0 2px 4px rgba(0,0,0,0.3);
  --yoa-shadow-sm: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
  --yoa-shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --yoa-shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  font-family: var(--yoa-font);
  font-size: 15px;
  line-height: 1.5;
  background: var(--yoa-background);
  color: var(--yoa-on-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--yoa-duration) var(--yoa-ease), color var(--yoa-duration) var(--yoa-ease);
}

a { color: var(--yoa-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.yoa-skip { position: absolute; left: -9999px; }

/* ========== APP SHELL ========== */
.yoa-app {
  min-height: 100dvh;
  padding-bottom: calc(var(--yoa-nav-h) + var(--yoa-space-md));
}

/* ---- Header ---- */
.yoa-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--yoa-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--yoa-space-md);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--yoa-outline-variant);
  box-shadow: var(--yoa-shadow-xs);
  transition: height var(--yoa-duration) var(--yoa-ease), background var(--yoa-duration) var(--yoa-ease), border-color var(--yoa-duration) var(--yoa-ease);
}

.yoa-header--scrolled {
  height: 52px;
  box-shadow: var(--yoa-shadow-md);
  background: rgba(255, 255, 255, 0.95);
}
[data-theme="dark"] .yoa-header--scrolled {
  background: rgba(17, 24, 39, 0.95);
}

[data-theme="dark"] .yoa-header {
  background: rgba(17, 24, 39, 0.85);
}

.yoa-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--yoa-primary);
  letter-spacing: -0.01em;
}

.yoa-header__logo {
  width: 34px; height: 34px;
  border-radius: var(--yoa-radius-full);
  object-fit: contain;
  background: var(--yoa-surface);
  border: 1.5px solid var(--yoa-outline-variant);
}

.yoa-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Bottom Nav ---- */
.yoa-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--yoa-nav-h);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--yoa-outline-variant);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.03);
  transition: background var(--yoa-duration) var(--yoa-ease);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] .yoa-nav {
  background: rgba(17, 24, 39, 0.9);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
}

.yoa-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--yoa-outline);
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--yoa-duration) var(--yoa-ease);
  position: relative;
}

.yoa-nav__item--active {
  color: var(--yoa-primary);
}

.yoa-nav__item--active::after {
  content: "";
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 2.5px;
  background: var(--yoa-primary);
  border-radius: 0 0 2px 2px;
}

.yoa-nav__icon {
  font-size: 22px;
  line-height: 1;
}

/* ---- Main Content ---- */
.yoa-main {
  padding-top: calc(var(--yoa-header-h) + var(--yoa-space-md));
  padding-left: var(--yoa-space-md);
  padding-right: var(--yoa-space-md);
  padding-bottom: var(--yoa-space-lg);
  max-width: var(--yoa-max-w);
  margin: 0 auto;
}

.yoa-main--auth {
  padding-top: var(--yoa-space-2xl);
  max-width: 400px;
}

.yoa-main--wide {
  max-width: 960px;
}

/* ========== TYPOGRAPHY ========== */
.yoa-display {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--yoa-on-surface);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.yoa-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--yoa-on-surface);
  margin: 0 0 var(--yoa-space-xs);
}

.yoa-subtitle {
  margin: 0 0 var(--yoa-space-lg);
  font-size: 0.875rem;
  color: var(--yoa-secondary);
}

.yoa-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yoa-secondary);
  margin: var(--yoa-space-lg) 0 var(--yoa-space-sm);
}

/* keep old class as alias */
.yoa-profile-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yoa-secondary);
  margin: var(--yoa-space-lg) 0 var(--yoa-space-sm);
}

.yoa-muted {
  font-size: 0.8125rem;
  color: var(--yoa-on-surface-variant);
}

/* ========== CARDS ========== */
.yoa-card {
  background: var(--yoa-surface);
  border: 1px solid var(--yoa-outline-variant);
  border-radius: var(--yoa-radius-xl);
  padding: var(--yoa-space-md);
  box-shadow: var(--yoa-shadow-sm);
  transition: background var(--yoa-duration) var(--yoa-ease),
              border-color var(--yoa-duration) var(--yoa-ease),
              box-shadow var(--yoa-duration) var(--yoa-ease),
              transform var(--yoa-duration) var(--yoa-ease);
}

.yoa-card:hover {
  box-shadow: var(--yoa-shadow-md);
}

.yoa-card + .yoa-card { margin-top: var(--yoa-space-md); }

.yoa-card__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yoa-secondary);
  margin: 0 0 var(--yoa-space-xs);
}

.yoa-card__value {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--yoa-on-surface);
}

.yoa-card--interactive {
  cursor: pointer;
}

.yoa-card--interactive:hover {
  transform: translateY(-1px);
  box-shadow: var(--yoa-shadow-md);
}

.yoa-card--interactive:active {
  transform: translateY(0);
}

/* ========== ICON BUTTON ========== */
.yoa-icon-btn {
  border: none;
  background: transparent;
  color: var(--yoa-on-surface-variant);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--yoa-radius-md);
  line-height: 0;
  transition: background var(--yoa-duration) var(--yoa-ease), color var(--yoa-duration) var(--yoa-ease);
}

.yoa-icon-btn:hover {
  background: var(--yoa-surface-container);
  color: var(--yoa-primary);
}

/* ========== BADGES ========== */
.yoa-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--yoa-radius-full);
  background: var(--yoa-error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yoa-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--yoa-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.yoa-pill--primary {
  background: var(--yoa-primary-soft);
  color: var(--yoa-primary);
  border-color: rgba(0, 82, 204, 0.15);
}

.yoa-pill--success {
  background: var(--yoa-success-soft);
  color: var(--yoa-success);
}

.yoa-pill--warning {
  background: var(--yoa-warning-soft);
  color: var(--yoa-warning);
}

.yoa-pill--error {
  background: var(--yoa-error-soft);
  color: var(--yoa-error);
}

/* ========== GRID ========== */
.yoa-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--yoa-space-md);
}

.yoa-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--yoa-space-sm);
}

.yoa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--yoa-space-md);
}

/* ========== FORMS ========== */
.yoa-form-group {
  margin-bottom: var(--yoa-space-md);
}

.yoa-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yoa-on-surface-variant);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.yoa-input,
.yoa-textarea,
.yoa-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--yoa-radius-md);
  border: 1.5px solid var(--yoa-outline-variant);
  background: var(--yoa-surface);
  font-family: inherit;
  font-size: 16px;
  color: var(--yoa-on-surface);
  transition: border-color var(--yoa-duration) var(--yoa-ease),
              box-shadow var(--yoa-duration) var(--yoa-ease),
              background var(--yoa-duration) var(--yoa-ease);
}

.yoa-input::placeholder,
.yoa-textarea::placeholder {
  color: var(--yoa-outline);
}

.yoa-input:focus,
.yoa-textarea:focus,
.yoa-select:focus {
  outline: none;
  border-color: var(--yoa-primary);
  box-shadow: 0 0 0 3px var(--yoa-primary-soft);
}

.yoa-textarea {
  min-height: 100px;
  resize: vertical;
}

/* ========== BUTTONS ========== */
.yoa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--yoa-radius-md);
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--yoa-duration) var(--yoa-ease);
  position: relative;
  overflow: hidden;
}

.yoa-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.yoa-btn--primary {
  background: var(--yoa-primary-container);
  color: var(--yoa-on-primary);
  box-shadow: var(--yoa-shadow-sm);
}

.yoa-btn--primary:hover:not(:disabled) {
  background: var(--yoa-primary-hover);
  box-shadow: var(--yoa-shadow-md);
  transform: translateY(-1px);
}

.yoa-btn--primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--yoa-shadow-xs);
}

.yoa-btn--secondary {
  background: var(--yoa-surface);
  color: var(--yoa-on-surface);
  border-color: var(--yoa-outline-variant);
}

.yoa-btn--secondary:hover:not(:disabled) {
  background: var(--yoa-surface-container);
  border-color: var(--yoa-outline);
}

.yoa-btn--ghost {
  background: transparent;
  color: var(--yoa-primary);
  padding: 8px 12px;
}

.yoa-btn--ghost:hover {
  background: var(--yoa-primary-soft);
}

.yoa-btn--sm {
  padding: 8px 14px;
  font-size: 0.8125rem;
  border-radius: var(--yoa-radius-sm);
}

/* ========== ALERTS ========== */
.yoa-alert {
  padding: var(--yoa-space-sm) var(--yoa-space-md);
  border-radius: var(--yoa-radius-md);
  font-size: 0.875rem;
  margin-bottom: var(--yoa-space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--yoa-space-sm);
}

.yoa-alert--error {
  background: var(--yoa-error-soft);
  color: var(--yoa-error);
  border: 1px solid rgba(211,47,47,0.2);
}

.yoa-alert--info {
  background: var(--yoa-primary-soft);
  border: 1px solid rgba(0,82,204,0.15);
  color: var(--yoa-on-surface);
}

.yoa-alert--success {
  background: var(--yoa-success-soft);
  border: 1px solid rgba(13,144,88,0.2);
  color: var(--yoa-success);
}

.yoa-alert--warning {
  background: var(--yoa-warning-soft);
  border: 1px solid rgba(230,126,0,0.2);
  color: var(--yoa-warning);
}

/* ========== TABLES ========== */
.yoa-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--yoa-outline-variant);
  border-radius: var(--yoa-radius-lg);
  background: var(--yoa-surface);
  box-shadow: var(--yoa-shadow-xs);
}

.yoa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.yoa-table th,
.yoa-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--yoa-outline-variant);
}

.yoa-table th {
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yoa-secondary);
  background: var(--yoa-surface-dim);
}

.yoa-table tbody tr {
  transition: background var(--yoa-duration) var(--yoa-ease);
}

.yoa-table tbody tr:hover {
  background: var(--yoa-surface-dim);
}

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

/* ========== LISTS ========== */
.yoa-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yoa-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--yoa-outline-variant);
  font-size: 0.875rem;
}

.yoa-list li:last-child {
  border-bottom: none;
}

/* ========== CHART CONTAINER ========== */
.yoa-chart {
  height: 220px;
  border-radius: var(--yoa-radius-lg);
  border: 1px solid var(--yoa-outline-variant);
  background: var(--yoa-surface);
  overflow: hidden;
  box-shadow: var(--yoa-shadow-xs);
}

.yoa-chart--execution {
  border-radius: var(--yoa-radius-md);
  background: var(--yoa-surface-dim);
}

/* ========== FEED ========== */
.yoa-feed {
  display: flex;
  flex-direction: column;
  gap: var(--yoa-space-sm);
}

.yoa-feed__item {
  padding: var(--yoa-space-md);
  border-radius: var(--yoa-radius-lg);
  border: 1px solid var(--yoa-outline-variant);
  background: var(--yoa-surface);
  font-size: 0.8125rem;
  box-shadow: var(--yoa-shadow-xs);
  transition: border-color var(--yoa-duration) var(--yoa-ease),
              box-shadow var(--yoa-duration) var(--yoa-ease);
}

.yoa-feed__item:hover {
  border-color: var(--yoa-primary-container);
  box-shadow: var(--yoa-shadow-sm);
}

/* ========== MATERIAL ICONS ========== */
.yoa-material {
  font-family: "Material Symbols Outlined", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Ligature names flash before Material Symbols loads — show icon-sized skeleton until font is ready */
html.yoa-icons-pending .yoa-material {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  overflow: hidden;
  font-family: sans-serif !important;
  font-variation-settings: normal !important;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 8px;
  background-color: var(--yoa-surface-container);
  background-image: linear-gradient(
    90deg,
    var(--yoa-surface-container) 0px,
    var(--yoa-surface-container-high) 50%,
    var(--yoa-surface-container) 100%
  );
  background-size: 1000px 100%;
  animation: yoa-shimmer 2s infinite linear;
}

html.yoa-icons-pending .yoa-theme-toggle .yoa-material {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 6px;
}

html.yoa-icons-pending .yoa-nav__icon.yoa-material {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html.yoa-icons-pending .yoa-material {
    animation: none;
  }
}

/* ========== LIVE INDICATOR ========== */
.yoa-live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: var(--yoa-radius-full);
  background: var(--yoa-success);
  animation: yoa-pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 6px var(--yoa-success);
}

@keyframes yoa-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ========== THEME TOGGLE ========== */
.yoa-theme-toggle {
  border: none;
  background: var(--yoa-surface-container);
  color: var(--yoa-on-surface-variant);
  cursor: pointer;
  padding: 7px;
  border-radius: var(--yoa-radius-md);
  line-height: 0;
  transition: background var(--yoa-duration) var(--yoa-ease), color var(--yoa-duration) var(--yoa-ease);
}

.yoa-theme-toggle:hover {
  background: var(--yoa-surface-container-high);
  color: var(--yoa-primary);
}

.yoa-theme-toggle .yoa-material {
  font-size: 20px;
}

/* ========== STATUS INDICATORS ========== */
.yoa-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--yoa-radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.yoa-status--active { background: var(--yoa-success-soft); color: var(--yoa-success); }
.yoa-status--pending { background: var(--yoa-warning-soft); color: var(--yoa-warning); }
.yoa-status--error { background: var(--yoa-error-soft); color: var(--yoa-error); }
.yoa-status--info { background: var(--yoa-primary-soft); color: var(--yoa-primary); }

.yoa-suspended-notice {
  background: var(--yoa-error-soft);
  color: var(--yoa-error);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid var(--yoa-error);
  line-height: 1.4;
}

.yoa-suspended-watermark {
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.yoa-suspended-watermark span {
  transform: rotate(-22deg);
  font-size: clamp(1.1rem, 3.5vw, 1.75rem);
  font-weight: 800;
  color: var(--yoa-error);
  opacity: 0.11;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  user-select: none;
}

/* ========== PROFIT/LOSS COLORS ========== */
.yoa-profit { color: var(--yoa-success); font-weight: 700; font-variant-numeric: tabular-nums; }
.yoa-loss { color: var(--yoa-error); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ========== SHIMMER LOADING ========== */
.yoa-shimmer {
  background: linear-gradient(90deg,
    var(--yoa-surface-container) 25%,
    var(--yoa-surface-dim) 50%,
    var(--yoa-surface-container) 75%);
  background-size: 200% 100%;
  animation: yoa-shimmer 1.5s infinite;
  border-radius: var(--yoa-radius-md);
}

@keyframes yoa-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ========== SEPARATOR ========== */
.yoa-divider {
  height: 1px;
  background: var(--yoa-outline-variant);
  border: none;
  margin: var(--yoa-space-md) 0;
}

/* ========== SECURE FOOTER ========== */
.yoa-secure-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--yoa-space-md) 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yoa-outline);
}

.yoa-secure-footer .yoa-live-dot {
  width: 6px; height: 6px;
}

/* ========== UTILITY ========== */
.yoa-hidden { display: none !important; }

.yoa-text-center { text-align: center; }

.yoa-w-full { width: 100%; }

.yoa-mt-sm { margin-top: var(--yoa-space-sm); }
.yoa-mt-md { margin-top: var(--yoa-space-md); }
.yoa-mt-lg { margin-top: var(--yoa-space-lg); }
.yoa-mb-sm { margin-bottom: var(--yoa-space-sm); }
.yoa-mb-md { margin-bottom: var(--yoa-space-md); }
.yoa-mb-lg { margin-bottom: var(--yoa-space-lg); }

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
  .yoa-main {
    padding-left: var(--yoa-space-xl);
    padding-right: var(--yoa-space-xl);
  }
}

/* ========== SCROLLBAR (dark mode polish) ========== */
[data-theme="dark"] ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--yoa-surface);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: var(--yoa-outline-variant);
  border-radius: 3px;
}

/* ========== TRANSITION CLASSES ========== */
.yoa-fade-in {
  animation: yoa-fade-in 0.3s var(--yoa-ease) both;
}

@keyframes yoa-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== SKELETON LOADERS ========== */
@keyframes yoa-shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.yoa-skeleton {
  background: var(--yoa-surface-container);
  background-image: linear-gradient(
    90deg,
    var(--yoa-surface-container) 0px,
    var(--yoa-surface-container-high) 50%,
    var(--yoa-surface-container) 100%
  );
  background-size: 1000px 100%;
  animation: yoa-shimmer 2s infinite linear;
  border-radius: var(--yoa-radius-md);
}

.yoa-skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.yoa-skeleton-title {
  height: 24px;
  width: 50%;
  margin-bottom: 16px;
  border-radius: 6px;
}

.yoa-skeleton-card {
  height: 140px;
  width: 100%;
  margin-bottom: var(--yoa-space-md);
  border-radius: var(--yoa-radius-lg);
}

/* ---- Heatmap ---- */
.yoa-heatmap-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12px, 1fr));
  gap: 4px;
}
.yoa-heatmap-box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--yoa-surface-alt);
  transition: transform 0.2s ease;
}
.yoa-heatmap-box:hover {
  transform: scale(1.2);
  z-index: 1;
}
.yoa-heatmap-box--level-0 { background: var(--yoa-surface-alt); }
.yoa-heatmap-box--level-1 { background: rgba(34, 197, 94, 0.25); }
.yoa-heatmap-box--level-2 { background: rgba(34, 197, 94, 0.55); }
.yoa-heatmap-box--level-3 { background: var(--yoa-success); }

/* ---- Avatars ---- */
.yoa-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yoa-primary);
  color: var(--yoa-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: var(--yoa-shadow-sm);
  flex-shrink: 0;
  user-select: none;
}
.yoa-avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}
.yoa-avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
}

/* ---- Modals ---- */
.yoa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.yoa-modal-content {
  transform: scale(0.9);
  animation: yoa-modal-in 0.3s var(--yoa-ease) forwards;
}
@keyframes yoa-modal-in {
  to { transform: scale(1); opacity: 1; }
}

.yoa-modal-content--confirm {
  text-align: center;
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--yoa-surface);
  box-shadow: var(--yoa-shadow-lg);
  max-width: 360px;
  width: 90%;
}

.yoa-modal-confirm-icon {
  display: block;
  font-size: 48px;
  color: var(--yoa-warning);
  margin: 0 auto 12px;
}

.yoa-modal-confirm-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
}

.yoa-modal-confirm-message {
  margin: 0 0 20px;
  line-height: 1.5;
}

.yoa-modal-actions {
  display: flex;
  gap: 10px;
}

.yoa-modal-actions .yoa-btn {
  flex: 1;
}

.yoa-fade-out {
  animation: yoa-fade-out 0.3s var(--yoa-ease) forwards;
}
@keyframes yoa-fade-out {
  to { opacity: 0; transform: translateY(20px); }
}

/* ---- FAQ Accordion ---- */
.yoa-faq {
  border-bottom: 1px solid var(--yoa-outline-variant);
}
.yoa-faq:last-child {
  border-bottom: none;
}
.yoa-faq summary {
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.yoa-faq summary::after {
  content: 'expand_more';
  font-family: 'Material Symbols Outlined';
  font-size: 20px;
  transition: transform 0.3s ease;
}
.yoa-faq[open] summary::after {
  transform: rotate(180deg);
}
.yoa-faq div {
  padding: 0 16px 16px;
  font-size: 13px;
  color: var(--yoa-muted);
  line-height: 1.6;
}

/* ---- FAB ---- */
.yoa-fab {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yoa-primary);
  color: var(--yoa-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--yoa-shadow-lg);
  cursor: pointer;
  z-index: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.yoa-fab:active {
  transform: scale(0.9);
}
.yoa-fab .yoa-material {
  font-size: 28px;
}

/* ---- Bottom Sheets ---- */
.yoa-bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  animation: yoa-fade-in 0.3s forwards;
}
.yoa-bottom-sheet {
  width: 100%;
  background: var(--yoa-surface);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px 32px;
  transform: translateY(100%);
  animation: yoa-sheet-up 0.3s cubic-bezier(0.32, 0.72, 0, 1) forwards;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
}
.yoa-bottom-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--yoa-outline-variant);
  border-radius: 2px;
  margin: 0 auto 16px;
}
@keyframes yoa-sheet-up {
  to { transform: translateY(0); }
}
.yoa-sheet-down {
  animation: yoa-sheet-down 0.25s ease-in forwards;
}
@keyframes yoa-sheet-down {
  to { transform: translateY(100%); }
}

/* ========== global nav loading bar (JS: #yoa-global-progress) ========== */
@keyframes yoa-nprogress-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(380%);
  }
}

/* Auth screens — institutional login (design/login_yield_one_affex) */

.yoa-auth-bg {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--yoa-background);
}

.yoa-auth-bg__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 82, 204, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .yoa-auth-bg__glow {
  background: radial-gradient(ellipse, rgba(91, 156, 245, 0.06) 0%, transparent 70%);
}

.yoa-auth-header {
  position: absolute;
  top: var(--yoa-space-md);
  right: var(--yoa-space-md);
}

.yoa-auth-shield {
  width: 56px;
  height: 56px;
  border-radius: var(--yoa-radius-full);
  background: var(--yoa-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--yoa-space-md);
  border: 2px solid rgba(0, 82, 204, 0.15);
}

.yoa-auth-shield .yoa-material {
  font-size: 28px;
  color: var(--yoa-primary);
}

.yoa-auth-shield--warning {
  background: var(--yoa-warning-soft);
  border-color: rgba(230, 126, 0, 0.2);
}

.yoa-auth-shield--warning .yoa-material {
  color: var(--yoa-warning);
}

.yoa-auth-card {
  background: var(--yoa-surface);
  border: 1px solid var(--yoa-outline-variant);
  border-radius: var(--yoa-radius-xl);
  padding: var(--yoa-space-lg);
  box-shadow: var(--yoa-shadow-md);
  transition: background var(--yoa-duration) var(--yoa-ease), border-color var(--yoa-duration) var(--yoa-ease);
}

.yoa-auth-footer {
  margin-top: var(--yoa-space-md);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--yoa-on-surface-variant);
}

.yoa-auth-footer a,
.yoa-modal-confirm-message a {
  color: var(--yoa-primary);
  font-weight: 600;
  text-decoration: underline;
}

.yoa-legal-accept-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 4px;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  color: var(--yoa-on-surface);
}

.yoa-legal-accept-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--yoa-primary);
}

/* Registration terms gate — high z-index so it appears above auth shell / Telegram chrome */
.yoa-legal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.yoa-legal-modal-panel {
  max-width: 400px;
  width: 100%;
  max-height: min(90vh, 640px);
  overflow: auto;
  background: var(--yoa-surface);
  color: var(--yoa-on-surface);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: var(--yoa-shadow-lg);
  text-align: center;
}

.yoa-legal-modal-panel .yoa-legal-accept-row {
  margin-top: 12px;
}

.yoa-legal-modal-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
}

.yoa-legal-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.yoa-legal-modal-actions .yoa-btn {
  flex: 1;
}

.yoa-member-id-box {
  background: var(--yoa-primary-soft);
  border: 2px solid rgba(0, 82, 204, 0.25);
  border-radius: var(--yoa-radius-lg);
  padding: var(--yoa-space-lg);
  text-align: center;
  margin-bottom: var(--yoa-space-md);
}

.yoa-member-id-box__label {
  margin: 0 0 var(--yoa-space-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yoa-primary);
}

.yoa-member-id-box__value {
  display: block;
  font-family: "SF Mono", "Cascadia Code", "Fira Code", monospace;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--yoa-on-surface);
  font-variant-numeric: tabular-nums;
}

.yoa-input--readonly {
  background: var(--yoa-surface-container);
  color: var(--yoa-on-surface);
  cursor: not-allowed;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.yoa-input--readonly:focus {
  outline: none;
  border-color: var(--yoa-outline-variant);
  box-shadow: none;
}

.yoa-recovery-key-box {
  background: var(--yoa-surface);
  border: 2px dashed var(--yoa-warning);
  border-radius: var(--yoa-radius-lg);
  padding: var(--yoa-space-lg);
  text-align: center;
  margin-bottom: var(--yoa-space-md);
}

.yoa-recovery-key-box code {
  font-family: "SF Mono", "Cascadia Code", "Fira Code", monospace;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--yoa-on-surface);
  word-break: break-all;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.yoa-recovery-warning {
  background: var(--yoa-error-soft);
  border: 1px solid rgba(211, 47, 47, 0.2);
  border-radius: var(--yoa-radius-md);
  padding: var(--yoa-space-sm) var(--yoa-space-md);
  font-size: 0.8125rem;
  color: var(--yoa-error);
  text-align: center;
}

.yoa-password-field {
  position: relative;
}

.yoa-password-field__input {
  padding-right: 48px;
}

.yoa-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--yoa-outline);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  border-radius: var(--yoa-radius-md);
  transition: color var(--yoa-duration) var(--yoa-ease);
}

.yoa-password-toggle:hover {
  color: var(--yoa-primary);
}

.yoa-password-toggle:focus-visible {
  outline: 2px solid var(--yoa-primary);
  outline-offset: 2px;
}

.yoa-password-toggle .yoa-material {
  font-size: 20px;
}
/**
 * Yield One FX — Public landing page (#/landing)
 * Scoped under .lp — does not use app shell / bottom nav.
 */

.yoa-app.yoa-landing-root,
.yoa-app:has(.lp) {
  padding-bottom: 0 !important;
  max-width: none;
}

html.yoa-landing-active {
  color-scheme: dark;
}

.lp {
  --lp-bg: #0c0e14;
  --lp-bg-alt: #12151e;
  --lp-surface: #1a1f2e;
  --lp-border: rgba(255, 255, 255, 0.08);
  --lp-text: #f4f6fb;
  --lp-muted: #9aa3b8;
  --lp-primary: #3d7eff;
  --lp-primary-hover: #5b93ff;
  --lp-glass: rgba(255, 255, 255, 0.06);
  --lp-max: 1120px;
  --lp-nav-h: 64px;
  color: var(--lp-text);
  background: var(--lp-bg);
  font-family: var(--yoa-font, "Inter", system-ui, sans-serif);
  line-height: 1.5;
  overflow-x: hidden;
}

.lp a {
  color: inherit;
  text-decoration: none;
}

.lp a:hover {
  text-decoration: none;
}

.lp-w {
  width: 100%;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

/* ── Skeleton ── */
.lp-skeleton {
  min-height: 100vh;
  background: var(--lp-bg);
}

.lp-skel-nav,
.lp-skel-hero,
.lp-skel-stats {
  padding: 20px;
}

.lp-skel-pill,
.lp-skel-bar,
.lp-skel-circle {
  background: linear-gradient(90deg, #1e2433 0%, #2a3145 50%, #1e2433 100%);
  background-size: 200% 100%;
  animation: lp-shimmer 1.2s ease-in-out infinite;
  border-radius: 8px;
}

.lp-skel-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.lp-skel-bar {
  height: 14px;
  margin: 10px auto;
  max-width: 320px;
}

.lp-skel-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.lp-skel-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lp-skel-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: var(--lp-max);
  margin: 0 auto;
}

@keyframes lp-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.lp--loaded .lp-skeleton {
  display: none;
}

/* ── Nav ── */
.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--lp-nav-h);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.lp-nav .lp-w {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lp-nav--solid {
  background: rgba(12, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--lp-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.lp-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--lp-text);
  flex-shrink: 0;
}

.lp-nav-brand img {
  border-radius: 8px;
}

.lp-nav-drawer {
  display: none;
}

.lp-nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

.lp-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}

.lp-nav-links a:hover {
  color: var(--lp-text);
  background: var(--lp-glass);
}

.lp-nav-links .yoa-material {
  font-size: 18px;
}

.lp-nav-end {
  display: none;
  align-items: center;
  gap: 8px;
}

.lp-nav-login {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-muted);
}

.lp-nav-login:hover {
  color: var(--lp-text);
}

.lp-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--lp-primary);
  border-radius: 999px;
  transition: background 0.2s, transform 0.15s;
}

.lp-nav-cta:hover {
  background: var(--lp-primary-hover);
  transform: translateY(-1px);
}

.lp-nav-ham {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  background: var(--lp-glass);
  color: var(--lp-text);
  cursor: pointer;
}

@media (min-width: 900px) {
  .lp-nav-drawer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .lp-nav-links,
  .lp-nav-end {
    display: flex;
  }

  .lp-nav-ham {
    display: none;
  }
}

@media (max-width: 899px) {
  .lp-nav--open .lp-nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--lp-nav-h);
    left: 0;
    right: 0;
    z-index: 199;
    padding: 16px clamp(16px, 4vw, 24px) 24px;
    background: rgba(12, 14, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--lp-border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    max-height: calc(100dvh - var(--lp-nav-h));
    overflow-y: auto;
  }

  .lp-nav--open .lp-nav-links,
  .lp-nav--open .lp-nav-end {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .lp-nav--open .lp-nav-links a {
    width: 100%;
    padding: 12px 14px;
  }

  .lp-nav--open .lp-nav-end {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--lp-border);
    gap: 10px;
  }

  .lp-nav--open .lp-nav-login,
  .lp-nav--open .lp-nav-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ── Hero ── */
.lp-hero {
  position: relative;
  min-height: min(100dvh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--lp-nav-h) + 32px) 20px 48px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 18% 42%, rgba(58, 41, 255, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 65% 50% at 82% 38%, rgba(255, 50, 80, 0.2) 0%, transparent 58%),
    radial-gradient(ellipse 90% 40% at 50% 100%, rgba(30, 60, 180, 0.12) 0%, transparent 55%),
    #06080f;
}

.lp-hero-chart {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.lp-hero-chart-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.lp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    transparent 42%,
    rgba(0, 0, 0, 0.4) 82%,
    var(--lp-bg) 100%
  );
  pointer-events: none;
}

.lp-hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
}

.lp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.lp-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  background: var(--lp-glass);
  color: var(--lp-muted);
}

.lp-hero-logo-stage {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  perspective: 560px;
  perspective-origin: center center;
}

.lp-hero-logo {
  display: block;
  width: 96px;
  height: 96px;
  margin: 12px auto 0;
  border-radius: 20px;
  box-shadow: none;
  filter: none;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

.lp-hero-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #e8d48a 55%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-hero-sub {
  margin: 0 0 28px;
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  color: var(--lp-muted);
  line-height: 1.65;
}

.lp-hero-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.lp-hero-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--lp-muted);
  opacity: 0.85;
}

/* ── Buttons ── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.lp-btn .yoa-material {
  font-size: 20px;
}

.lp-btn--primary {
  color: #fff;
  background: var(--lp-primary);
  box-shadow: 0 4px 20px rgba(61, 126, 255, 0.35);
}

.lp-btn--primary:hover {
  background: var(--lp-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(61, 126, 255, 0.45);
}

.lp-btn--glass {
  color: var(--lp-text);
  background: var(--lp-glass);
  border: 1px solid var(--lp-border);
}

.lp-btn--glass:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.lp-btn--lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* ── Stats bar ── */
.lp-stats {
  background: var(--lp-bg-alt);
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
  padding: 28px 0;
}

.lp-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 640px) {
  .lp-stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lp-stat {
  text-align: center;
}

.lp-stat-val {
  display: block;
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  font-weight: 800;
  color: var(--lp-text);
  letter-spacing: -0.02em;
}

.lp-stat-lbl {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lp-muted);
}

/* ── About Us ── */
.lp-about-intro {
  margin-bottom: 48px;
}

.lp-about-highlight {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.06) 0%, rgba(61, 126, 255, 0.04) 100%);
  border: 1px solid rgba(255, 193, 7, 0.15);
  border-radius: 16px;
  padding: 32px;
}

.lp-about-highlight-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 193, 7, 0.12);
  border-radius: 14px;
  color: #ffd700;
  font-size: 28px;
}

.lp-about-highlight-icon .yoa-material {
  font-size: 28px;
}

.lp-about-highlight-text h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffd700;
}

.lp-about-highlight-text p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 560px) {
  .lp-about-highlight {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
}

.lp-about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .lp-about-grid {
    grid-template-columns: 1fr;
  }
}

.lp-about-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.lp-about-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.lp-about-card-icon {
  margin-bottom: 16px;
}

.lp-about-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lp-text);
}

.lp-about-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--lp-muted);
}

.lp-about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

@media (max-width: 640px) {
  .lp-about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.lp-about-stat-val {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--lp-primary);
  letter-spacing: -0.02em;
}

.lp-about-stat-lbl {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lp-muted);
}

/* About page hero */
.lp-about-hero {
  padding: calc(var(--lp-nav-h) + 48px) 0 64px;
  background: linear-gradient(180deg, var(--lp-bg-alt) 0%, var(--lp-bg) 100%);
  border-bottom: 1px solid var(--lp-border);
  text-align: center;
}

.lp-about-hero-inner h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
  line-height: 1.15;
}

.lp-about-hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--lp-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* About timeline */
.lp-about-timeline {
  position: relative;
  padding-left: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.lp-about-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--lp-border);
}

.lp-about-tl-item {
  position: relative;
  padding-bottom: 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.lp-about-tl-item:last-child {
  padding-bottom: 0;
}

.lp-about-tl-dot {
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lp-primary);
  border: 2px solid var(--lp-bg);
  box-shadow: 0 0 0 3px rgba(61, 126, 255, 0.2);
}

.lp-about-tl-year {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--lp-primary);
  min-width: 48px;
  padding-top: 2px;
}

.lp-about-tl-content h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lp-text);
}

.lp-about-tl-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--lp-muted);
}

/* About values */
.lp-about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 640px) {
  .lp-about-values-grid {
    grid-template-columns: 1fr;
  }
}

.lp-about-value {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-about-value h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lp-text);
}

.lp-about-value p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-muted);
}

/* About why trust section */
.lp-about-why {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  padding: 40px;
}

@media (max-width: 560px) {
  .lp-about-why {
    padding: 24px;
  }
}

.lp-about-why-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.lp-about-why-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(61, 126, 255, 0.12);
  color: var(--lp-primary);
}

.lp-about-why-icon .yoa-material {
  font-size: 26px;
}

.lp-about-why-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.lp-about-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .lp-about-why-grid {
    grid-template-columns: 1fr;
  }
}

.lp-about-why-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lp-about-why-item > .yoa-material {
  color: #4ade80;
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.lp-about-why-item h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-text);
}

.lp-about-why-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--lp-muted);
}

/* About director */
.lp-about-director {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  padding: 40px;
}

@media (max-width: 700px) {
  .lp-about-director {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 28px;
  }
}

.lp-about-director-photo {
  flex-shrink: 0;
}

.lp-about-director-photo img {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--lp-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lp-about-director-info .lp-tag {
  margin-bottom: 8px;
}

.lp-about-director-info h2 {
  margin: 12px 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
}

.lp-about-director-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-primary);
  margin: 0 0 16px;
}

.lp-about-director-info p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--lp-muted);
  margin: 0 0 12px;
}

.lp-about-director-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(61, 126, 255, 0.08);
  border: 1px solid rgba(61, 126, 255, 0.15);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
}

.lp-about-director-address .yoa-material {
  color: var(--lp-primary);
  font-size: 18px;
}

/* About AI features */
.lp-about-ai-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .lp-about-ai-features {
    grid-template-columns: 1fr;
  }
}

.lp-about-ai-feat {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-about-ai-feat > .yoa-material {
  font-size: 28px;
  color: var(--lp-primary);
}

.lp-about-ai-feat h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-text);
}

.lp-about-ai-feat p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--lp-muted);
}

/* Footer address */
.lp-foot-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--lp-muted);
  margin-bottom: 12px;
}

.lp-foot-address .yoa-material {
  font-size: 16px;
  color: var(--lp-primary);
}

/* ── Sections ── */
.lp-sect {
  padding: 64px 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.lp-sect--visible,
.lp-sect.lp-sect--visible {
  opacity: 1;
  transform: none;
}

.lp-sect--alt {
  background: var(--lp-bg-alt);
}

.lp-sect-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.lp-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lp-primary);
  margin-bottom: 10px;
}

.lp-sect-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lp-text);
}

.lp-sect-head p {
  margin: 0;
  font-size: 15px;
  color: var(--lp-muted);
  line-height: 1.6;
}

.lp-grid {
  display: grid;
  gap: 20px;
}

.lp-grid--2 {
  grid-template-columns: 1fr;
}

.lp-grid--3 {
  grid-template-columns: 1fr;
}

.lp-grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .lp-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .lp-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .lp-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Cards ── */
.lp-card {
  padding: 24px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.lp-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.lp-card h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--lp-text);
}

.lp-card p {
  margin: 0;
  font-size: 14px;
  color: var(--lp-muted);
  line-height: 1.6;
}

.lp-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 14px;
}

.lp-icon .yoa-material {
  font-size: 24px;
}

.lp-icon--blue {
  background: rgba(61, 126, 255, 0.15);
  color: #6ba3ff;
}

.lp-icon--purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.lp-icon--green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.lp-icon--amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.lp-icon--gold {
  background: rgba(234, 179, 8, 0.15);
  color: #fcd34d;
}

.lp-icon--cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.lp-icon--telegram {
  background: rgba(42, 171, 238, 0.18);
  color: #2aabee;
}

.lp-icon--telegram .lp-icon-svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.lp-card--head-only {
  text-align: center;
  padding: 28px 20px;
}

.lp-card--head-only h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.lp-card--head-only .lp-icon {
  margin-left: auto;
  margin-right: auto;
}

/* ── Reveal animation ── */
.lp-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.lp-reveal.lp-visible {
  opacity: 1;
  transform: none;
}

/* ── How it works steps ── */
.lp-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .lp-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lp-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lp-step {
  position: relative;
  padding: 24px 20px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  text-align: center;
}

.lp-step-num {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--lp-muted);
  background: var(--lp-glass);
  border-radius: 50%;
}

.lp-step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 126, 255, 0.12);
  border-radius: 12px;
  color: var(--lp-primary);
}

.lp-step-icon .yoa-material {
  font-size: 26px;
}

.lp-step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.lp-step p {
  margin: 0;
  font-size: 13px;
  color: var(--lp-muted);
  line-height: 1.55;
}

/* ── Expressway ── */
.lp-eway {
  display: grid;
  gap: 32px;
  padding: 32px;
  background: linear-gradient(145deg, rgba(61, 126, 255, 0.08) 0%, rgba(168, 85, 247, 0.06) 100%);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
}

@media (min-width: 900px) {
  .lp-eway {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 40px;
  }
}

.lp-eway-text h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
}

.lp-eway-sub {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--lp-primary);
  margin: 0 0 12px;
}

.lp-eway-text > p:last-of-type {
  margin: 0 0 20px;
  color: var(--lp-muted);
  font-size: 14px;
  line-height: 1.6;
}

.lp-eway-eg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.lp-eway-eg-box {
  flex: 1;
  min-width: 120px;
  padding: 14px 16px;
  background: var(--lp-surface);
  border-radius: 12px;
  border: 1px solid var(--lp-border);
}

.lp-eway-eg-lbl {
  display: block;
  font-size: 11px;
  color: var(--lp-muted);
  margin-bottom: 4px;
}

.lp-eway-eg-val {
  font-size: 1.25rem;
  font-weight: 800;
}

.lp-eway-eg-val--green {
  color: #34d399;
}

.lp-eway-arrow {
  color: var(--lp-muted);
}

.lp-eway-arrow .yoa-material {
  font-size: 28px;
}

.lp-eway-nums {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.lp-eway-num {
  padding: 16px;
  text-align: center;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
}

.lp-eway-num-val {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--lp-text);
}

.lp-eway-num-lbl {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--lp-muted);
}

/* ── Leadership ranks ── */
.lp-rank {
  padding: 24px 16px;
  text-align: center;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
}

.lp-rank h3 {
  margin: 8px 0;
  font-size: 1.125rem;
}

.lp-rank-badge {
  color: var(--lp-muted);
}

.lp-rank-badge .yoa-material {
  font-size: 32px;
}

.lp-rank-salary {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.lp-rank-salary small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lp-muted);
}

.lp-rank-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--lp-muted);
}

.lp-rank-info span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.lp-rank--bronze .lp-rank-badge {
  color: #cd7f32;
}

.lp-rank--silver .lp-rank-badge {
  color: #c0c0c0;
}

.lp-rank--gold .lp-rank-badge {
  color: #ffd700;
}

.lp-rank--plat .lp-rank-badge {
  color: #a8b8d8;
}

/* ── Contact Form ── */
.lp-contact-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.lp-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lp-cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .lp-cf-row {
    grid-template-columns: 1fr;
  }
}

.lp-cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.lp-cf-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lp-cf-field input,
.lp-cf-field textarea {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--lp-text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.lp-cf-field input::placeholder,
.lp-cf-field textarea::placeholder {
  color: rgba(154, 163, 184, 0.5);
}

.lp-cf-field input:focus,
.lp-cf-field textarea:focus {
  border-color: var(--lp-primary);
  box-shadow: 0 0 0 3px rgba(61, 126, 255, 0.15);
}

.lp-cf-field textarea {
  resize: vertical;
  min-height: 120px;
}

.lp-cf-counter {
  font-size: 12px;
  color: var(--lp-muted);
  text-align: right;
}

.lp-cf-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.lp-cf-alert--success {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.lp-cf-alert--error {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.lp-contact-form .lp-btn {
  align-self: flex-start;
}

/* ── CTA ── */
.lp-cta {
  padding: 72px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--lp-bg-alt) 0%, var(--lp-bg) 100%);
  border-top: 1px solid var(--lp-border);
}

.lp-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

.lp-cta > .lp-w > p {
  margin: 0 auto 28px;
  max-width: 480px;
  color: var(--lp-muted);
  font-size: 15px;
  line-height: 1.6;
}

.lp-cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ── Footer ── */
.lp-foot {
  padding: 48px 0 32px;
  background: #080a0f;
  border-top: 1px solid var(--lp-border);
}

.lp-foot-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .lp-foot-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.lp-foot-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 10px;
}

.lp-foot-logo img {
  border-radius: 6px;
}

.lp-foot-brand p {
  margin: 0;
  font-size: 13px;
  color: var(--lp-muted);
  line-height: 1.55;
  max-width: 280px;
}

.lp-foot-col h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-muted);
}

.lp-foot-col a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--lp-text);
  opacity: 0.85;
}

.lp-foot-col a:hover {
  opacity: 1;
  color: var(--lp-primary);
}

.lp-foot-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--lp-border);
  font-size: 12px;
  color: var(--lp-muted);
  text-align: center;
}

/* First section visible without lazy observer delay */
.lp--loaded .lp-sect:first-of-type,
.lp--loaded .lp-stats {
  opacity: 1;
  transform: none;
}

/* ── Responsive polish ── */
@media (max-width: 639px) {
  .lp-skel-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-hero {
    min-height: min(100svh, 820px);
    padding: calc(var(--lp-nav-h) + 20px) clamp(12px, 4vw, 20px) 40px;
  }

  .lp-hero-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .lp-hero-btns .lp-btn {
    width: 100%;
    max-width: 300px;
  }

  .lp-hero-meta {
    font-size: 10px;
    letter-spacing: 0.08em;
    line-height: 1.5;
    padding: 0 8px;
  }

  .lp-nav-brand-text {
    font-size: 0.9rem;
    max-width: calc(100vw - 148px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lp-stats {
    padding: 22px 0;
  }

  .lp-stats-row {
    gap: 16px 12px;
  }

  .lp-sect {
    padding: 48px 0;
  }

  .lp-sect-head {
    margin-bottom: 28px;
  }

  .lp-card {
    padding: 20px 18px;
  }

  .lp-eway {
    padding: 22px 18px;
    gap: 24px;
  }

  .lp-eway-text h2 {
    font-size: 1.4rem;
  }

  .lp-eway-eg {
    flex-direction: column;
    width: 100%;
  }

  .lp-eway-eg-box {
    width: 100%;
    min-width: 0;
  }

  .lp-eway-arrow {
    transform: rotate(90deg);
  }

  .lp-cta {
    padding: 52px 0;
  }

  .lp-cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .lp-cta-btns .lp-btn {
    width: 100%;
    max-width: 300px;
  }

  .lp-foot {
    padding: 40px 0 28px;
  }

  .lp-foot-bottom {
    font-size: 11px;
    line-height: 1.5;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-logo {
    transform: none !important;
    animation: none;
  }

  .lp-reveal,
  .lp-sect {
    transition: none;
  }
}

@media (max-width: 639px) {
  .lp-hero-logo-stage {
    width: 104px;
    height: 104px;
  }

  .lp-hero-logo {
    width: 84px;
    height: 84px;
  }
}

/* ═══════════════════════════════════════
   Section-wise lazy loading skeletons
   ═══════════════════════════════════════ */

.lp-lazy-slot {
  min-height: 200px;
  overflow: hidden;
}

.lp-lazy-slot--alt {
  background: var(--lp-bg-alt, #12151e);
}

.lp-lazy-skel {
  max-width: var(--lp-max, 1120px);
  margin: 0 auto;
  padding: 48px clamp(16px, 4vw, 24px);
}

.lp-lazy-slot--loaded .lp-lazy-skel {
  display: none;
}

/* Fade in when section loads */
.lp-lazy-slot--loaded > section,
.lp-lazy-slot--loaded > footer {
  animation: lp-lazy-in 0.4s ease both;
}

@keyframes lp-lazy-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Skeleton grids */
.lp-skel-grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.lp-skel-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lp-skel-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.lp-skel-card {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lp-skel-card--step {
  padding: 20px 12px;
}

/* Expressway skeleton */
.lp-skel-eway {
  display: flex;
  gap: 32px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 32px 24px;
}

.lp-skel-eway-left {
  flex: 1.2;
}

.lp-skel-eway-right {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Contact skeleton */
.lp-skel-contact {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 24px;
}

/* Footer skeleton */
.lp-skel-footer {
  padding: 20px 0;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .lp-skel-grid3 { grid-template-columns: 1fr; }
  .lp-skel-grid4 { grid-template-columns: repeat(2, 1fr); }
  .lp-skel-eway { flex-direction: column; }
}

@media (max-width: 639px) {
  .lp-skel-grid2 { grid-template-columns: 1fr; }
  .lp-skel-grid4 { grid-template-columns: 1fr; }
}
/* Hero countdown timer — glassmorphism */

.lp-hero-promo-timer {
  margin: 0 auto 20px;
  max-width: min(420px, 92vw);
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--lp-promo-glow, #3a5cff) 45%, transparent);
  background: rgba(12, 16, 28, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 28px color-mix(in srgb, var(--lp-promo-glow, #3a5cff) 35%, transparent),
    0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.lp-hero-promo-timer[hidden] {
  display: none !important;
}

.lp-hero-promo-timer__title {
  margin: 0 0 10px;
  font-size: clamp(13px, 2.4vw, 16px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lp-promo-title-color, #ffd700);
  text-shadow:
    0 0 6px var(--lp-promo-title-color, #ffd700),
    0 0 18px color-mix(in srgb, var(--lp-promo-title-color, #ffd700) 50%, transparent),
    0 0 40px color-mix(in srgb, var(--lp-promo-title-color, #ffd700) 25%, transparent);
}

.lp-hero-promo-timer__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.5vw, 8px);
  flex-wrap: wrap;
}

.lp-hero-promo-timer__unit {
  min-width: clamp(44px, 12vw, 52px);
  text-align: center;
}

.lp-hero-promo-timer__val {
  display: block;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 18px color-mix(in srgb, var(--lp-promo-glow, #3a5cff) 55%, transparent);
}

.lp-hero-promo-timer__lbl {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-muted, #9aa3b5);
}

.lp-hero-promo-timer__sep {
  font-size: 1.25rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--lp-promo-glow, #3a5cff) 70%, #fff);
  opacity: 0.85;
  padding-bottom: 14px;
}
/* Promo banner carousel — 16:9, responsive */

.yoa-banner-section {
  margin-bottom: 16px;
}

/* User dashboard — compact, matches app cards */
.yoa-main .yoa-banner-section--dashboard {
  margin: 4px 0 14px;
  padding: 0;
}

.yoa-main .yoa-banner-section--dashboard .yoa-banner-carousel__viewport {
  border: 1px solid var(--yoa-outline-variant, #d0d7e2);
  box-shadow: var(--yoa-shadow-sm, 0 1px 4px rgba(0, 0, 0, 0.06));
}

.yoa-main .yoa-banner-section--dashboard .yoa-banner-carousel__dot--active {
  background: var(--yoa-primary, #003d9b);
}

@media (max-width: 480px) {
  .yoa-main .yoa-banner-carousel__nav {
    width: 32px;
    height: 32px;
  }
  .yoa-main .yoa-banner-carousel__nav .yoa-material {
    font-size: 20px;
  }
}

.yoa-banner-carousel {
  position: relative;
  width: 100%;
}

.yoa-banner-carousel__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--yoa-radius-lg, 12px);
  background: var(--yoa-surface-dim, #e8edf5);
  box-shadow: var(--yoa-shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.yoa-banner-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.yoa-banner-carousel__slide {
  flex: 0 0 100%;
  height: 100%;
  min-width: 100%;
}

.yoa-banner-carousel__link,
.yoa-banner-carousel__img-wrap {
  display: block;
  width: 100%;
  height: 100%;
}

.yoa-banner-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.yoa-banner-carousel__img--loaded {
  opacity: 1;
}

.yoa-banner-section--lazy .yoa-banner-carousel__viewport,
.yoa-banner-section--lazy:empty {
  min-height: 0;
}

.yoa-banner-section--lazy:not(:empty)::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--yoa-radius-lg, 12px);
  background: linear-gradient(
    110deg,
    var(--yoa-surface-dim, #e8edf5) 8%,
    var(--yoa-surface, #f5f7fa) 18%,
    var(--yoa-surface-dim, #e8edf5) 33%
  );
  background-size: 200% 100%;
  animation: yoa-banner-shimmer 1.2s ease-in-out infinite;
}

@keyframes yoa-banner-shimmer {
  to {
    background-position-x: -200%;
  }
}

.yoa-banner-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.yoa-banner-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--yoa-outline-variant, #c5cdd8);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.yoa-banner-carousel__dot--active {
  background: var(--yoa-primary, #003d9b);
  transform: scale(1.15);
}

.yoa-banner-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.yoa-banner-carousel:hover .yoa-banner-carousel__nav,
.yoa-banner-carousel:focus-within .yoa-banner-carousel__nav {
  display: flex;
}

@media (min-width: 640px) {
  .yoa-banner-carousel__nav {
    display: flex;
  }
}

.yoa-banner-carousel__nav--prev {
  left: 8px;
}

.yoa-banner-carousel__nav--next {
  right: 8px;
}

.yoa-banner-carousel__nav .yoa-material {
  font-size: 22px;
}

/* Landing page — section below hero */
.lp .yoa-banner-section--landing {
  padding: clamp(16px, 3vw, 28px) 0 0;
  max-width: var(--lp-max, 1120px);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 24px);
  padding-right: clamp(16px, 4vw, 24px);
}

@media (min-width: 900px) {
  .lp .yoa-banner-section--landing .yoa-banner-carousel {
    max-width: min(960px, 100%);
    margin: 0 auto;
  }
}

.lp .yoa-banner-section--landing .yoa-banner-carousel__viewport {
  border-radius: 14px;
  border: 1px solid var(--lp-border, rgba(255, 255, 255, 0.08));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.lp .yoa-banner-carousel__dot {
  background: rgba(255, 255, 255, 0.25);
}

.lp .yoa-banner-carousel__dot--active {
  background: var(--lp-primary, #3d7eff);
}

@media (prefers-reduced-motion: reduce) {
  .yoa-banner-carousel__track {
    transition: none;
  }
}
/* Dashboard — wallet cards, news strip (design/dashboard_yield_one_affex) */

.yoa-dash-clock {
  text-align: right;
}

.yoa-dash-clock .yoa-clock-date {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yoa-outline);
  margin: 0;
}

.yoa-dash-clock .yoa-clock-time {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--yoa-outline);
  margin: 0;
}

.yoa-dash-wallets {
  margin-bottom: var(--yoa-space-md);
}

.yoa-dash-wallet-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.yoa-dash-wallet-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.yoa-dash-wallet-card__body {
  flex: 1;
  min-width: 0;
}

.yoa-dash-wallet-card__body .yoa-card__label {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yoa-on-surface-variant, #64748b);
}

.yoa-dash-wallet-card__body .yoa-card__value {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
}

.yoa-dash-wallet-hint {
  margin: 8px 0 0;
  font-size: 0.6875rem;
  line-height: 1.35;
}

.yoa-dash-wallet-card__icon {
  font-size: 1.625rem;
  opacity: 0.88;
  flex-shrink: 0;
}

.yoa-dash-wallet-card--main .yoa-dash-wallet-card__icon {
  color: var(--yoa-primary);
}

.yoa-dash-wallet-card--trading .yoa-dash-wallet-card__icon {
  color: var(--yoa-success);
}

.yoa-dash-wallet-card--yield .yoa-dash-wallet-card__icon {
  color: var(--yoa-on-surface-variant);
}

.yoa-dash-wallet-card--main .yoa-card__value {
  color: var(--yoa-primary);
}

.yoa-dash-wallet-card--trading .yoa-card__value {
  color: var(--yoa-success);
}

.yoa-dash-wallet-card--yield .yoa-card__value {
  color: var(--yoa-on-surface);
}

.yoa-dash-wallet-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--yoa-outline-variant, rgba(148, 163, 184, 0.35));
}

.yoa-dash-wallet-card__actions .yoa-btn {
  flex: 1;
  min-width: calc(50% - 4px);
  justify-content: center;
}

.yoa-dash-wallet-card__actions--stack {
  flex-direction: column;
}

.yoa-dash-wallet-card__actions--stack .yoa-btn {
  min-width: 100%;
}

.yoa-dash-yield-hint {
  width: 100%;
}

.yoa-dash-yield-hint .yoa-muted,
.yoa-dash-yield-hint .yoa-status {
  display: block;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .yoa-dash-wallets.yoa-grid-3 {
    grid-template-columns: 1fr;
  }
}

.yoa-dash-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--yoa-space-sm);
  margin-bottom: var(--yoa-space-md);
}

.yoa-dash-quick-actions .yoa-btn {
  text-align: center;
  justify-content: center;
}

.yoa-dash-team-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--yoa-space-sm);
  text-align: center;
}

.yoa-dash-team-stat {
  padding: var(--yoa-space-sm);
}

.yoa-dash-team-stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--yoa-on-surface);
  margin: 0;
}

.yoa-dash-team-stat-label {
  font-size: 0.6875rem;
  color: var(--yoa-secondary);
  margin: 2px 0 0;
}

.yoa-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--yoa-space-md);
}

@media (min-width: 640px) {
  .yoa-news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.yoa-news-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--yoa-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--yoa-space-sm);
}

.yoa-news-card-icon--gold {
  background: #fef3c7;
  color: #d97706;
}

.yoa-news-card-icon--btc {
  background: #fff7ed;
  color: #ea580c;
}

/* Append PRD v2.0 — leadership rank badge */
.yoa-rank-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--yoa-radius-md, 12px);
  font-size: 0.8125rem;
  line-height: 1.35;
  border: 1px solid var(--yoa-outline-variant, #e5e7eb);
  background: var(--yoa-surface-container-low, #f8fafc);
}

.yoa-rank-badge--bronze {
  border-color: #cd7f32;
  background: linear-gradient(135deg, #fff8f0 0%, #fde8d4 100%);
}

.yoa-rank-badge--silver {
  border-color: #94a3b8;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.yoa-rank-badge--gold {
  border-color: #d4a012;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.yoa-rank-badge--platinum {
  border-color: #6366f1;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}
/* Execution tab — live chart + trade feed */

.yoa-exec-banner {
  font-size: 0.8125rem;
}

.yoa-exec-asset-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--yoa-space-sm);
  padding: 6px 14px;
  background: var(--yoa-surface-container);
  border-radius: 9999px;
  border: 1px solid var(--yoa-outline-variant);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--yoa-primary);
}

.yoa-exec-chart-card {
  overflow: hidden;
}

.yoa-exec-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--yoa-space-md);
  margin-bottom: var(--yoa-space-md);
  flex-wrap: wrap;
}

.yoa-exec-price-block {
  min-width: 0;
  flex: 1 1 160px;
}

.yoa-exec-price-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yoa-secondary);
  margin: 0 0 var(--yoa-space-xs);
}

.yoa-exec-price-value {
  margin: 0;
  font-size: clamp(1.375rem, 4.5vw, 1.75rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: var(--yoa-on-surface);
}

.yoa-exec-meta {
  text-align: right;
  flex: 0 1 auto;
}

.yoa-exec-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.yoa-exec-provider {
  margin: 6px 0 0;
  font-size: 0.625rem;
  color: var(--yoa-outline);
  line-height: 1.4;
}

.yoa-exec-provider .yoa-live-dot {
  width: 6px;
  height: 6px;
  vertical-align: middle;
  margin-right: 4px;
}

.yoa-exec-chart-note {
  margin: 0 0 var(--yoa-space-sm);
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--yoa-outline);
}

.yoa-chart--execution {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: clamp(220px, 48vw, 280px);
  max-height: min(68vh, 520px);
  height: auto;
  padding: 0;
  background: var(--yoa-surface-dim);
  border-radius: var(--yoa-radius-md);
  overflow: hidden;
  contain: layout style;
}

.yoa-chart--execution.yoa-chart--loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 82, 204, 0.06) 50%,
    transparent 100%
  );
  animation: yoa-exec-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}

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

.yoa-tv-chart {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.yoa-tv-chart__frame-wrap {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.yoa-tv-chart__iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  background: var(--yoa-surface-dim);
}

.yoa-exec-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--yoa-space-sm);
  gap: var(--yoa-space-sm);
}

.yoa-exec-feed-header h3 {
  display: flex;
  align-items: center;
  gap: var(--yoa-space-sm);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.yoa-feed__item--trade {
  display: flex;
  flex-direction: column;
  gap: var(--yoa-space-sm);
}

.yoa-feed__item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yoa-feed__item-icon {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--yoa-surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yoa-secondary);
}

.yoa-feed__item-meta {
  display: flex;
  align-items: center;
  gap: var(--yoa-space-sm);
}

.yoa-feed__item-id {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--yoa-on-surface);
}

.yoa-feed__item-time {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--yoa-outline);
}

.yoa-feed__item-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--yoa-gutter);
  padding-top: var(--yoa-space-sm);
  border-top: 1px solid var(--yoa-outline-variant);
}

.yoa-feed__item-prices p:first-child {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yoa-outline);
  margin: 0 0 2px;
}

.yoa-feed__item-prices p:last-child {
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--yoa-on-surface);
  margin: 0;
}

.yoa-feed__item-prices > div:last-child {
  text-align: right;
}

@media (min-width: 480px) {
  .yoa-chart--execution {
    aspect-ratio: 16 / 9;
    min-height: 300px;
  }
}

@media (min-width: 768px) {
  .yoa-chart--execution {
    max-height: 480px;
  }

  .yoa-exec-chart-head {
    flex-wrap: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yoa-chart--execution.yoa-chart--loading::after {
    animation: none;
  }
}
/* Today's trades (design/today_s_trades_yield_one_affex) */

.yoa-trades-status {
  display: inline-flex;
  align-items: center;
  gap: var(--yoa-space-xs);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.yoa-trades-status--active {
  background: #ecfdf5;
  color: #059669;
}

.yoa-trades-status--completed {
  background: var(--yoa-surface-container);
  color: var(--yoa-secondary);
}

.yoa-trades-status--pending {
  background: #fffbeb;
  color: #d97706;
}

.yoa-trades-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--yoa-space-sm);
  margin-bottom: var(--yoa-space-md);
}

.yoa-trades-summary-item {
  text-align: center;
  padding: var(--yoa-space-sm);
  background: var(--yoa-surface-lowest);
  border: 1px solid var(--yoa-outline-variant);
  border-radius: var(--yoa-radius-md);
}

.yoa-trades-summary-item .yoa-card__label {
  margin-bottom: 2px;
}

.yoa-trades-summary-item .yoa-card__value {
  font-size: 1rem;
}

.yoa-trades-profit {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.yoa-trades-profit--positive {
  color: #059669;
}

.yoa-trades-profit--negative {
  color: var(--yoa-error);
}

.yoa-table td.yoa-trades-profit {
  font-weight: 600;
}

@media (max-width: 480px) {
  .yoa-trades-summary {
    grid-template-columns: 1fr;
  }
}
/* History (design/history_yield_one_affex) */

.yoa-hist-tabs {
  display: flex;
  gap: var(--yoa-space-xs);
  margin-bottom: var(--yoa-space-md);
  border-bottom: 2px solid var(--yoa-outline-variant);
}

.yoa-hist-tab {
  padding: var(--yoa-space-sm) var(--yoa-space-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--yoa-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
}

.yoa-hist-tab--active {
  color: var(--yoa-primary);
  border-bottom-color: var(--yoa-primary-container);
}

.yoa-hist-range {
  display: flex;
  gap: var(--yoa-space-xs);
  margin-bottom: var(--yoa-space-md);
}

.yoa-hist-range-btn {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--yoa-outline-variant);
  background: var(--yoa-surface-lowest);
  color: var(--yoa-secondary);
  cursor: pointer;
}

.yoa-hist-range-btn--active {
  background: var(--yoa-primary-container);
  color: var(--yoa-on-primary);
  border-color: var(--yoa-primary-container);
}

.yoa-hist-day-card {
  border: 1px solid var(--yoa-outline-variant);
  border-radius: var(--yoa-radius-lg);
  background: var(--yoa-surface-lowest);
  padding: var(--yoa-space-md);
  margin-bottom: var(--yoa-space-sm);
  box-shadow: var(--yoa-shadow-card);
}

.yoa-hist-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--yoa-space-sm);
}

.yoa-hist-day-date {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--yoa-on-surface);
}

.yoa-hist-day-asset {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yoa-secondary);
}

.yoa-hist-day-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--yoa-space-sm);
  padding-top: var(--yoa-space-sm);
  border-top: 1px solid var(--yoa-outline-variant);
}

.yoa-hist-day-stat-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--yoa-outline);
  margin: 0 0 2px;
}

.yoa-hist-day-stat-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yoa-on-surface);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.yoa-hist-tx-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--yoa-radius-sm);
  font-size: 0.6875rem;
  font-weight: 600;
}

.yoa-hist-tx-type--deposit { background: #dbeafe; color: #1e40af; }
.yoa-hist-tx-type--transfer_in { background: #ecfdf5; color: #059669; }
.yoa-hist-tx-type--transfer_out { background: #fef3c7; color: #d97706; }
.yoa-hist-tx-type--yield_credit { background: #ecfdf5; color: var(--yoa-success); }
.yoa-hist-tx-type--manual_credit { background: #ede9fe; color: #7c3aed; }
.yoa-hist-tx-type--manual_debit { background: #fef2f2; color: var(--yoa-error); }

.yoa-hist-trades {
  border: 1px solid var(--yoa-outline-variant);
  border-radius: var(--yoa-radius-lg);
  background: var(--yoa-surface);
  overflow: hidden;
}

.yoa-hist-trades-head,
.yoa-hist-trade-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 64px minmax(0, 0.85fr) minmax(0, 0.85fr) 80px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
}

.yoa-hist-trades-head {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yoa-outline);
  background: var(--yoa-surface-container-lowest);
  border-bottom: 1px solid var(--yoa-outline-variant);
}

.yoa-hist-trade-row {
  border-bottom: 1px solid var(--yoa-outline-variant);
  font-size: 0.8125rem;
}

.yoa-hist-trade-row:last-child {
  border-bottom: none;
}

.yoa-hist-trade-time {
  font-variant-numeric: tabular-nums;
  color: var(--yoa-on-surface-variant);
  font-size: 0.75rem;
  line-height: 1.35;
}

.yoa-hist-trade-side {
  justify-self: start;
  font-size: 0.625rem !important;
}

.yoa-hist-trade-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 0.75rem;
  color: var(--yoa-on-surface);
}

.yoa-hist-trade-earned {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 520px) {
  .yoa-hist-trades-head {
    display: none;
  }

  .yoa-hist-trade-row {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 6px 10px;
  }

  .yoa-hist-trade-time {
    grid-column: 1 / -1;
  }

  .yoa-hist-trade-side {
    justify-self: start;
  }

  .yoa-hist-trade-earned {
    grid-column: 3;
    justify-self: end;
  }
}
/* Profile & settings (design/profile_settings_yield_one_affex) */

.yoa-profile-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yoa-secondary);
  margin: var(--yoa-space-lg) 0 var(--yoa-space-sm);
}

.yoa-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: var(--yoa-primary-container);
  color: var(--yoa-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.yoa-profile-identity {
  display: flex;
  align-items: center;
  gap: var(--yoa-space-md);
  margin-bottom: var(--yoa-space-md);
}

.yoa-profile-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--yoa-on-surface);
  margin: 0;
}

.yoa-profile-username {
  font-size: 0.8125rem;
  color: var(--yoa-secondary);
  margin: 2px 0 0;
}

.yoa-profile-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--yoa-space-sm) 0;
  border-bottom: 1px solid var(--yoa-outline-variant);
  font-size: 0.875rem;
}

.yoa-profile-info-row:last-child {
  border-bottom: none;
}

.yoa-profile-info-label {
  color: var(--yoa-secondary);
  font-weight: 500;
}

.yoa-profile-info-value {
  color: var(--yoa-on-surface);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.yoa-profile-ref-box {
  padding: var(--yoa-space-sm) var(--yoa-space-md);
  background: var(--yoa-surface-low);
  border-radius: var(--yoa-radius-md);
  font-size: 0.8125rem;
  word-break: break-all;
  color: var(--yoa-on-surface-variant);
  margin-bottom: var(--yoa-space-sm);
}

.yoa-profile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--yoa-space-sm);
  margin-top: var(--yoa-space-md);
}

.yoa-profile-security-item {
  display: flex;
  align-items: center;
  gap: var(--yoa-space-sm);
  padding: var(--yoa-space-sm) 0;
  border-bottom: 1px solid var(--yoa-outline-variant);
  font-size: 0.875rem;
}

.yoa-profile-security-item:last-child {
  border-bottom: none;
}

.yoa-profile-security-icon {
  color: var(--yoa-secondary);
  font-size: 20px;
}

/* ========== Profile wallets — unified statement panel (yoa-pw) ========== */

.yoa-prof-wallets.yoa-pw {
  margin-top: var(--yoa-space-lg);
  margin-bottom: var(--yoa-space-lg);
}

.yoa-prof-wallets.yoa-pw > .yoa-profile-section-title {
  margin-top: 0;
  margin-bottom: var(--yoa-space-sm);
}

.yoa-pw-msg {
  margin-bottom: var(--yoa-space-sm);
}

.yoa-pw-msg:empty {
  display: none;
}

.yoa-pw-msg .yoa-alert {
  margin: 0;
}

.yoa-pw-panel {
  padding: 0;
  overflow: hidden;
  box-shadow: var(--yoa-shadow-sm);
}

.yoa-pw-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yoa-pw-row {
  display: flex;
  align-items: center;
  gap: var(--yoa-space-md);
  padding: var(--yoa-space-md) var(--yoa-space-md);
  border-bottom: 1px solid var(--yoa-outline-variant);
  min-height: 72px;
}

.yoa-pw-row:last-child {
  border-bottom: none;
}

.yoa-pw-ico {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--yoa-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yoa-primary-soft);
  color: var(--yoa-primary);
}

.yoa-pw-ico .yoa-material {
  font-size: 22px;
}

.yoa-pw-row--trade .yoa-pw-ico {
  background: var(--yoa-success-soft);
  color: var(--yoa-success);
}

.yoa-pw-row--yield .yoa-pw-ico {
  background: var(--yoa-surface-container-high);
  color: var(--yoa-on-surface-variant);
}

.yoa-pw-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yoa-pw-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yoa-on-surface);
  letter-spacing: -0.01em;
}

.yoa-pw-desc {
  font-size: 0.75rem;
  color: var(--yoa-on-surface-variant);
  line-height: 1.35;
}

.yoa-pw-val {
  flex-shrink: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--yoa-on-surface);
  text-align: right;
}

.yoa-pw-row--main .yoa-pw-val {
  color: var(--yoa-primary);
}

.yoa-pw-row--trade .yoa-pw-val {
  color: var(--yoa-success);
}

.yoa-pw-row--yield {
  flex-direction: column;
  align-items: stretch;
  gap: var(--yoa-space-sm);
  padding-bottom: var(--yoa-space-md);
}

.yoa-pw-yield-top {
  display: flex;
  align-items: center;
  gap: var(--yoa-space-md);
  width: 100%;
}

.yoa-pw-row--yield .yoa-pw-copy {
  flex: 1;
  min-width: 0;
}

.yoa-pw-row--yield .yoa-pw-val {
  margin-left: auto;
  flex-shrink: 0;
}

.yoa-pw-yield-note {
  width: 100%;
  margin: 0 0 var(--yoa-space-sm);
  padding: 0 0 0 calc(44px + var(--yoa-space-md));
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--yoa-on-surface-variant);
  box-sizing: border-box;
}

.yoa-pw-yield-act {
  width: 100%;
  padding: 0 0 0 calc(44px + var(--yoa-space-md));
  box-sizing: border-box;
}

.yoa-pw-yield-act .yoa-btn {
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

.yoa-pw-btn-ico {
  font-size: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

.yoa-pw-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--yoa-space-sm);
  padding: var(--yoa-space-md);
  background: var(--yoa-surface-dim);
  border-top: 1px solid var(--yoa-outline-variant);
}

.yoa-pw-tool {
  flex: 1;
  min-width: 120px;
  justify-content: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 400px) {
  .yoa-pw-yield-note,
  .yoa-pw-yield-act {
    padding-left: 0;
  }

  .yoa-pw-yield-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .yoa-pw-row--yield .yoa-pw-val {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .yoa-pw-yield-act .yoa-btn {
    max-width: none;
  }
}

[data-theme="dark"] .yoa-pw-toolbar {
  background: var(--yoa-surface-dim);
}

/* ========== Deposit page (receive-style layout) ========== */

.yoa-dep-info-card.yoa-dep-receive-card {
  padding: var(--yoa-space-lg) var(--yoa-space-md);
  background: #fff;
  border: 1px solid rgba(0, 21, 41, 0.1);
  box-shadow: 0 2px 16px rgba(0, 21, 41, 0.06);
}

.yoa-dep-receive-head {
  text-align: center;
  margin-bottom: 20px;
}

.yoa-dep-token-mark {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 164, 164, 0.35);
  background: #e8eef4;
}

.yoa-dep-token-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yoa-dep-receive-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #001529;
  letter-spacing: -0.02em;
}

.yoa-dep-receive-sub {
  margin: 0 auto;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 20rem;
}

.yoa-dep-receive-sub strong {
  color: #001529;
  font-weight: 600;
}

.yoa-dep-qr-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.yoa-dep-qr-stage .yoa-dep-qr-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(0, 21, 41, 0.12);
  background: #fff;
  padding: 10px;
}

.yoa-dep-address-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(0, 21, 41, 0.12);
  border-radius: 12px;
  margin-bottom: 16px;
}

.yoa-dep-address-card--empty {
  border-style: dashed;
}

.yoa-dep-address-card__body {
  flex: 1;
  min-width: 0;
}

.yoa-dep-address-card__label {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #001529;
}

.yoa-dep-address-card__value {
  margin: 0;
  font-size: 0.8125rem;
  font-family: "SF Mono", "Consolas", "Monaco", monospace;
  word-break: break-all;
  line-height: 1.45;
  color: #001529;
  user-select: all;
}

.yoa-dep-copy-icon-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #eef2f6;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.yoa-dep-copy-icon-btn:hover {
  background: #e2e8f0;
  color: #001529;
}

.yoa-dep-copy-icon-btn.yoa-dep-copy--done {
  background: var(--yoa-success-soft);
  color: var(--yoa-success);
}

.yoa-dep-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1.5px solid var(--yoa-primary);
  border-radius: var(--yoa-radius-sm);
  background: var(--yoa-primary-soft);
  color: var(--yoa-primary);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--yoa-duration) var(--yoa-ease);
  white-space: nowrap;
}

.yoa-dep-copy-btn:hover {
  background: var(--yoa-primary);
  color: var(--yoa-on-primary);
}

.yoa-dep-copy--done {
  border-color: var(--yoa-success);
  background: var(--yoa-success-soft);
  color: var(--yoa-success);
}

.yoa-dep-instructions--block {
  margin-bottom: 12px;
  text-align: left;
}

.yoa-dep-instructions-text {
  font-size: 0.8125rem;
  color: var(--yoa-on-surface-variant);
  line-height: 1.55;
  margin: 6px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.yoa-dep-min-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--yoa-warning-soft);
  border: 1px solid rgba(230, 126, 0, 0.2);
  border-radius: var(--yoa-radius-sm);
  font-size: 0.8125rem;
  color: var(--yoa-warning);
}

.yoa-dep-amt-hint {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.yoa-dep-amt-hint--error {
  color: var(--yoa-error);
}

.yoa-dep-amt-hint--ok {
  color: var(--yoa-success);
}

.yoa-input.yoa-input--error {
  border-color: var(--yoa-error);
  box-shadow: 0 0 0 3px var(--yoa-error-soft);
}

.yoa-input.yoa-input--ok {
  border-color: var(--yoa-success);
  box-shadow: 0 0 0 3px var(--yoa-success-soft);
}

/* Live support chat (user) */
.yoa-chat-box {
  max-height: 360px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--yoa-outline-variant);
  border-radius: var(--yoa-radius-md);
  background: var(--yoa-surface-container-lowest);
}

.yoa-chat__bubble {
  max-width: 88%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--yoa-outline-variant);
}

.yoa-chat__bubble--user {
  margin-left: auto;
  background: var(--yoa-primary-container);
}

.yoa-chat__bubble--admin {
  margin-right: auto;
  background: var(--yoa-surface-container);
}

.yoa-chat__meta {
  margin: 0 0 4px;
  font-size: 10px;
  color: var(--yoa-outline);
}

.yoa-chat__text {
  margin: 0;
  font-size: 0.875rem;
  white-space: pre-wrap;
  word-break: break-word;
}
/* Team Tree — Interactive pan/zoom genealogy visualization */

.tt-page {
  padding-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--yoa-nav-h, 56px));
  overflow: hidden;
}

.tt-header {
  padding: 0 0 8px;
  flex-shrink: 0;
}

.tt-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 4px 0 2px;
}

.tt-subtitle {
  font-size: 12px;
  color: var(--yoa-on-surface-muted);
  margin: 0;
}

/* Stats strip */
.tt-stats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}

.tt-stat {
  flex: 0 0 auto;
  min-width: 80px;
  background: var(--yoa-surface);
  border: 1px solid var(--yoa-outline-variant);
  border-radius: var(--yoa-radius-md);
  padding: 10px 14px;
  text-align: center;
}

.tt-stat strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--yoa-primary);
  font-variant-numeric: tabular-nums;
}

.tt-stat span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--yoa-on-surface-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Hint */
.tt-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--yoa-on-surface-muted);
  background: var(--yoa-surface-dim);
  border-radius: var(--yoa-radius-md);
  padding: 8px 12px;
  margin: 4px 0 8px;
  flex-shrink: 0;
}

.tt-hint .yoa-material {
  font-size: 16px;
  color: var(--yoa-primary);
  flex-shrink: 0;
}

/* Viewport - pan/zoom container */
.tt-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: var(--yoa-surface-dim);
  border-radius: var(--yoa-radius-lg);
  border: 1px solid var(--yoa-outline-variant);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.tt-viewport--grabbing {
  cursor: grabbing;
}

.tt-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  will-change: transform;
  padding: 60px;
}

.tt-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Zoom controls */
.tt-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--yoa-surface);
  border: 1px solid var(--yoa-outline-variant);
  border-radius: 999px;
  padding: 4px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.tt-ctrl-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--yoa-on-surface);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.tt-ctrl-btn:hover {
  background: var(--yoa-surface-dim);
}

.tt-ctrl-btn .yoa-material {
  font-size: 20px;
}

.tt-zoom-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--yoa-on-surface-muted);
  min-width: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tt-controls-sep {
  width: 1px;
  height: 20px;
  background: var(--yoa-outline-variant);
  margin: 0 4px;
}

/* Fullscreen button */
.tt-fullscreen-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  margin-bottom: 10px;
  border: 2px solid var(--yoa-primary);
  border-radius: var(--yoa-radius-md);
  background: transparent;
  color: var(--yoa-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.tt-fullscreen-btn:hover {
  background: var(--yoa-primary);
  color: #fff;
  transform: scale(1.01);
}

.tt-fullscreen-btn .yoa-material {
  font-size: 20px;
}

/* Node */
.tt-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.tt-node-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--yoa-surface);
  border: 2px solid var(--yoa-outline-variant);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}

.tt-node-pill:hover {
  border-color: var(--yoa-primary);
  box-shadow: 0 2px 12px rgba(var(--yoa-primary-rgb, 59 130 246), 0.15);
  transform: scale(1.04);
}

.tt-node--you .tt-node-pill {
  background: var(--yoa-primary);
  border-color: var(--yoa-primary);
  color: #fff;
}

.tt-node--you .tt-node-dot {
  background: #fff;
}

.tt-node--you .tt-node-id {
  color: #fff;
}

.tt-node--direct .tt-node-pill {
  border-color: color-mix(in srgb, var(--yoa-primary) 50%, var(--yoa-outline-variant));
}

.tt-node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tt-node--active .tt-node-dot {
  background: var(--yoa-success);
}

.tt-node--inactive .tt-node-dot {
  background: var(--yoa-outline);
}

.tt-node-id {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--yoa-on-surface);
}

/* Detail card (shown on click) */
.tt-node-card {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  background: var(--yoa-surface);
  border: 1px solid var(--yoa-outline-variant);
  border-radius: var(--yoa-radius-md);
  padding: 12px 16px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  transition: opacity 0.2s, transform 0.2s;
}

.tt-node--expanded .tt-node-card {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.tt-node-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--yoa-outline-variant);
}

.tt-node-card-row:last-child {
  border-bottom: none;
}

.tt-card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--yoa-on-surface-muted);
}

.tt-card-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--yoa-on-surface);
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.tt-card-val--active {
  color: var(--yoa-success);
}

.tt-card-val--inactive {
  color: var(--yoa-outline);
}

/* Expand button */
.tt-expand-btn {
  margin-top: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--yoa-primary);
  background: var(--yoa-surface);
  color: var(--yoa-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  z-index: 2;
}

.tt-expand-btn:hover {
  background: var(--yoa-primary);
  color: #fff;
  transform: scale(1.15);
}

.tt-expand-btn .yoa-material {
  font-size: 18px;
}

/* Children container */
.tt-children {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 24px;
  padding-top: 24px;
  position: relative;
}

.tt-children--hidden {
  display: none;
}

.tt-children::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--yoa-outline-variant);
}

.tt-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Vertical connector from horizontal bar to node */
.tt-connector {
  width: 2px;
  height: 20px;
  background: var(--yoa-outline-variant);
}

/* Vertical connector from node down to children horizontal bar */
.tt-subtree {
  position: relative;
  padding-top: 4px;
}

.tt-subtree::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 24px;
  background: var(--yoa-outline-variant);
}

/* Root connector (from root node to first children row) */
.tt-tree > .tt-children {
  margin-top: 0;
}

.tt-tree > .tt-children::before {
  display: none;
}

.tt-tree > .tt-node + .tt-children {
  padding-top: 32px;
  position: relative;
}

.tt-tree > .tt-node + .tt-children::before {
  display: block;
  top: 8px;
}

/* Empty state */
.tt-empty {
  text-align: center;
  padding: 48px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tt-empty .yoa-material {
  font-size: 56px;
  color: var(--yoa-outline);
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 480px) {
  .tt-stats {
    gap: 6px;
  }

  .tt-stat {
    min-width: 70px;
    padding: 8px 10px;
  }

  .tt-stat strong {
    font-size: 1rem;
  }

  .tt-controls {
    bottom: 8px;
    right: 8px;
  }

  .tt-node-pill {
    padding: 6px 12px;
    gap: 6px;
  }

  .tt-node-id {
    font-size: 11px;
  }

  .tt-children {
    gap: 16px;
  }
}
/**
 * Expressway plan — user-facing (matches main design tokens).
 */

.yoa-ex {
  max-width: var(--yoa-max-w);
  margin: 0 auto;
}

.yoa-ex-hero {
  background: var(--yoa-surface);
  border: 1px solid var(--yoa-outline-variant);
  border-radius: var(--yoa-radius-lg);
  padding: var(--yoa-space-lg);
  margin-bottom: var(--yoa-space-md);
  box-shadow: var(--yoa-shadow-sm);
}

.yoa-ex-hero__title {
  display: flex;
  align-items: center;
  gap: var(--yoa-space-sm);
  margin: 0 0 var(--yoa-space-xs);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--yoa-on-surface);
}

.yoa-ex-hero__title .yoa-material {
  font-size: 28px;
  color: var(--yoa-primary);
}

.yoa-ex-hero__lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--yoa-on-surface-variant);
}

.yoa-ex-steps {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--yoa-space-xs);
  overflow-x: auto;
  padding: var(--yoa-space-sm) 0 var(--yoa-space-md);
  margin: 0 -4px;
  scrollbar-width: thin;
}

.yoa-ex-step {
  flex: 0 0 auto;
  min-width: 108px;
  padding: var(--yoa-space-sm) var(--yoa-space-sm);
  border-radius: var(--yoa-radius-md);
  background: var(--yoa-surface-container);
  border: 1px solid var(--yoa-outline-variant);
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--yoa-on-surface-variant);
}

.yoa-ex-step strong {
  display: block;
  font-size: 0.75rem;
  color: var(--yoa-on-surface);
  margin-bottom: 2px;
}

.yoa-ex-step--active {
  border-color: var(--yoa-primary);
  background: var(--yoa-primary-soft);
  color: var(--yoa-on-surface);
}

.yoa-ex-step--done {
  border-color: var(--yoa-success);
  background: var(--yoa-success-soft);
}

.yoa-ex-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--yoa-space-sm);
  margin-bottom: var(--yoa-space-md);
}

@media (min-width: 400px) {
  .yoa-ex-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.yoa-ex-metric {
  background: var(--yoa-surface);
  border: 1px solid var(--yoa-outline-variant);
  border-radius: var(--yoa-radius-md);
  padding: var(--yoa-space-md);
}

.yoa-ex-metric__label {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--yoa-secondary);
}

.yoa-ex-metric__value {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--yoa-on-surface);
}

.yoa-ex-progress {
  margin: var(--yoa-space-md) 0;
}

.yoa-ex-progress__track {
  height: 8px;
  border-radius: var(--yoa-radius-full);
  background: var(--yoa-surface-container-high);
  overflow: hidden;
}

.yoa-ex-progress__fill {
  height: 100%;
  border-radius: var(--yoa-radius-full);
  background: var(--yoa-primary);
  transition: width var(--yoa-duration) var(--yoa-ease);
}

.yoa-ex-progress__fill--cap {
  background: var(--yoa-success);
}

.yoa-ex-progress__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--yoa-on-surface-variant);
}

.yoa-ex-actions {
  display: flex;
  flex-direction: column;
  gap: var(--yoa-space-sm);
  margin-top: var(--yoa-space-lg);
}

.yoa-ex-actions .yoa-btn[disabled],
.yoa-ex-actions .yoa-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.yoa-ex-log {
  margin-top: var(--yoa-space-md);
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--yoa-outline-variant);
  border-radius: var(--yoa-radius-md);
  background: var(--yoa-surface);
}

.yoa-ex-log table {
  width: 100%;
  font-size: 0.75rem;
  border-collapse: collapse;
}

.yoa-ex-log th,
.yoa-ex-log td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--yoa-outline-variant);
}

.yoa-ex-log th {
  position: sticky;
  top: 0;
  background: var(--yoa-surface-container);
  font-weight: 600;
  color: var(--yoa-secondary);
}

.yoa-ex-log tr:last-child td {
  border-bottom: none;
}

.yoa-ex-foot {
  margin-top: var(--yoa-space-md);
  font-size: 0.75rem;
  color: var(--yoa-on-surface-variant);
  line-height: 1.45;
}
