/**
 * 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%);
  }
}

