:root {
  --bg-0: #07070b;
  --bg-1: #0d0d14;
  --bg-2: #14141d;
  --bg-3: #1c1c28;
  --border: #26263a;
  --border-2: #34344a;
  --text: #f4f4f7;
  --text-dim: #8a8a9a;
  --text-faint: #555566;
  --long: #00ffa3;
  --short: #ff3b8b;
  --gold: #ffd166;
  --cyan: #4cc9f0;
  --warn: #ff8a4c;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Geist', sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 255, 163, 0.06), transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 100%, rgba(255, 59, 139, 0.06), transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(76, 201, 240, 0.03), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}

button,
input,
textarea,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}

.screen,
.app {
  position: relative;
  z-index: 2;
}

.screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.screen-card {
  width: min(100%, 420px);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.brand {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--gold);
}

.brand-center {
  margin-bottom: 12px;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
}

.screen-copy {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.spinner {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}

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

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-top: 20px;
}

.auth-form label,
.form-group label,
.snapshot-item label,
.quick-stats label,
.stat-card label {
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}

.auth-form input,
input,
textarea,
select {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.12);
}

.auth-submit {
  width: 100%;
}

.auth-error {
  min-height: 20px;
  color: var(--short);
  font-size: 14px;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  display: none;
}

.main {
  flex: 1;
  padding: 16px 16px calc(var(--tab-h) + var(--safe-b) + 16px);
  padding-top: calc(var(--safe-t) + 16px);
  width: 100%;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

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

.page-header {
  margin-bottom: 20px;
}

.page-title {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.page-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.page-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.55;
}

.quick-stats {
  display: flex;
  gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.quick-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-stats span {
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
}

.quick-stats span.pos,
.stat-card .val.pos,
.r-pos,
.open-trade-direction.long,
.result-banner .long {
  color: var(--long);
}

.quick-stats span.neg,
.stat-card .val.neg,
.r-neg,
.open-trade-direction.short,
.result-banner .short {
  color: var(--short);
}

.card,
.trade-form {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.card-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.tight-top {
  margin-top: 16px;
}

.flip-page-grid,
.insight-grid,
.settings-form {
  display: grid;
  gap: 16px;
}

.coin-stage {
  background: radial-gradient(ellipse at center, rgba(255, 209, 102, 0.04), transparent 70%), var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.coin-stage::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.06), transparent 50%);
  border-radius: 50%;
  pointer-events: none;
}

.coin-wrap {
  perspective: 1200px;
  width: 160px;
  height: 160px;
  position: relative;
  z-index: 2;
}

.coin {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 2.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.08),
    inset 0 -14px 40px rgba(0, 0, 0, 0.4),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.coin-face.long {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 60%),
    linear-gradient(135deg, #00ffa3 0%, #00b876 50%, #006a44 100%);
  color: #001a10;
}

.coin-face.short {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 60%),
    linear-gradient(135deg, #ff3b8b 0%, #c4276a 50%, #6a1238 100%);
  color: #1a0010;
  transform: rotateY(180deg);
}

.coin-face .label {
  font-style: italic;
  font-weight: 600;
}

.coin-face .sym {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.2em;
  margin-top: 4px;
  opacity: 0.7;
}

.flip-btn,
.btn {
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.flip-btn {
  margin-top: 32px;
  background: linear-gradient(135deg, var(--gold), #f4a261);
  color: #1a1200;
  border-radius: 100px;
  padding: 16px 48px;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 32px rgba(255, 209, 102, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 2;
  min-height: 52px;
  touch-action: manipulation;
}

.flip-btn:hover:not(:disabled),
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.flip-btn:hover:not(:disabled) {
  box-shadow: 0 12px 40px rgba(255, 209, 102, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.flip-btn:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow: 0 4px 20px rgba(255, 209, 102, 0.2);
}

.flip-btn:disabled,
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.result-banner {
  margin-top: 14px;
  min-height: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
}

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

.snapshot-item {
  padding: 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.snapshot-item span {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 500;
}

.trade-form {
  display: none;
}

.trade-form.show {
  display: block;
  animation: fadeIn 0.25s ease;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.emotion-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  background: var(--bg-1);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
}

.pill.active {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.12);
}

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

.btn {
  flex: 1;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  min-height: 48px;
  touch-action: manipulation;
}

.btn:hover:not(:disabled) {
  filter: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gold);
  color: #1a1200;
  border-color: var(--gold);
  font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
  background: #ffdb85;
}

.btn-win {
  background: rgba(0, 255, 163, 0.12);
  color: var(--long);
  border-color: rgba(0, 255, 163, 0.3);
}

.btn-win:hover:not(:disabled) {
  background: rgba(0, 255, 163, 0.2);
}

.btn-loss {
  background: rgba(255, 59, 139, 0.12);
  color: var(--short);
  border-color: rgba(255, 59, 139, 0.3);
}

.btn-loss:hover:not(:disabled) {
  background: rgba(255, 59, 139, 0.2);
}

.save-wide {
  width: 100%;
}

.open-trade {
  background: linear-gradient(180deg, rgba(12, 12, 18, 0.92), rgba(20, 20, 29, 0.95));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

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

.open-trade-direction {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-style: italic;
}

.open-trade-status,
.status-chip {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--bg-1);
}

.trade-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trade-card-item {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.trade-card-top,
.trade-card-bottom,
.sync-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.trade-card-left {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.trade-card-num,
.trade-card-meta,
.mini-pill,
.tag,
.sync-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.trade-card-num,
.trade-card-meta,
.sync-status {
  color: var(--text-faint);
}

.trade-card-dir {
  font-weight: 600;
}

.trade-card-dir.long {
  color: var(--long);
}

.trade-card-dir.short {
  color: var(--short);
}

.tag,
.mini-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 5px 8px;
  border-radius: 999px;
}

.trade-card-r {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
}

.trade-card-bottom {
  margin-top: 12px;
}

.trade-card-emotions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.trade-card-delete,
.delete-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-faint);
  font-size: 20px;
}

.table-wrap {
  display: none;
}

.trades-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.trades-table th,
.trades-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.trades-table th {
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.trades-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.dir-long {
  color: var(--long);
  font-weight: 600;
}

.dir-short {
  color: var(--short);
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--text-dim);
}

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

.stat-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.stat-card .val {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 600;
}

.stat-card .val.cyan {
  color: var(--cyan);
}

.stat-card .val.gold {
  color: var(--gold);
}

.stat-card .sub {
  margin-top: 10px;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.45;
}

#equityCanvas {
  width: 100%;
  height: 220px;
  display: block;
}

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

.insight-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-1);
  padding: 14px;
}

.insight-item h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.insight-item p {
  color: var(--text-dim);
  line-height: 1.55;
  font-size: 14px;
}

.insight-item.good {
  border-color: rgba(0, 255, 163, 0.24);
}

.insight-item.bad,
.insight-item.warn {
  border-color: rgba(255, 59, 139, 0.2);
}

.lesson-card,
.danger-zone {
  margin-top: 16px;
}

.lesson-card {
  display: none;
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.12), rgba(255, 209, 102, 0.04));
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 16px;
  padding: 20px;
}

.lesson-card h3,
.danger-zone h4 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
}

.lesson-card p {
  margin-top: 10px;
  color: var(--text-dim);
  line-height: 1.65;
}

.settings-card,
.sync-card {
  margin-bottom: 16px;
}

.danger-zone .btn-row {
  flex-wrap: wrap;
}

.danger-zone .btn {
  flex: 0 1 auto;
  font-size: 13px;
  padding: 12px 10px;
  min-height: 0;
}

.sync-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sync-row span {
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.sync-row strong {
  font-size: 15px;
}

.sync-cluster {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.logout-link {
  background: transparent;
  border: none;
  color: var(--gold);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  padding: 0;
}

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(7, 7, 11, 0.88);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
}

.tab-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.tab-btn.active {
  color: var(--gold);
}

.tab-btn.active svg {
  transform: scale(1.08);
}

.tab-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 12px var(--gold);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + var(--safe-b) + 18px);
  transform: translateX(-50%);
  z-index: 110;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.toast.error {
  border-color: rgba(255, 59, 139, 0.35);
  color: #ffd3e8;
}

.toast.success {
  border-color: rgba(0, 255, 163, 0.3);
}

@media (min-width: 768px) {
  .main {
    padding: 28px 28px 104px;
  }

  .page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
  }

  .quick-stats {
    margin-top: 0;
  }

  .flip-page-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

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

  .insight-grid {
    grid-template-columns: 1.5fr 1fr;
  }

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

  .settings-form .full {
    grid-column: 1 / -1;
  }

  .coin-wrap {
    width: 220px;
    height: 220px;
  }

  .coin-face {
    font-size: 44px;
  }
}

@media (min-width: 1024px) {
  .app {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
    padding: 28px 18px;
  }

  .nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .nav-btn .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-faint);
  }

  .nav-btn.active {
    background: var(--bg-2);
    color: var(--text);
    border-color: var(--border-2);
  }

  .nav-btn.active .dot {
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
  }

  .tab-bar {
    display: none;
  }

  .main {
    padding: 40px 48px 64px;
    max-width: 1400px;
  }

  .page-title {
    font-size: 42px;
  }

  .page-sub {
    max-width: 640px;
  }

  .flip-page-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
  }

  .coin-stage {
    min-height: 540px;
    padding: 56px 40px;
  }

  .coin-face {
    font-size: 48px;
    box-shadow:
      inset 0 0 0 4px rgba(255, 255, 255, 0.08),
      inset 0 -20px 60px rgba(0, 0, 0, 0.4),
      0 30px 80px rgba(0, 0, 0, 0.5);
  }

  .coin-face .sym {
    font-size: 13px;
    margin-top: 6px;
  }

  .flip-btn {
    margin-top: 48px;
    padding: 18px 56px;
    font-size: 18px;
    box-shadow: 0 10px 40px rgba(255, 209, 102, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .flip-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 50px rgba(255, 209, 102, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .btn {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    min-height: 0;
  }

  .btn:hover:not(:disabled) {
    background: var(--bg-3);
    border-color: var(--border-2);
  }

  .btn-primary:hover:not(:disabled) {
    background: #ffdb85;
    border-color: var(--gold);
  }

  .btn-win:hover:not(:disabled) {
    background: rgba(0, 255, 163, 0.2);
    border-color: rgba(0, 255, 163, 0.3);
  }

  .btn-loss:hover:not(:disabled) {
    background: rgba(255, 59, 139, 0.2);
    border-color: rgba(255, 59, 139, 0.3);
  }

  .trade-cards {
    display: none;
  }

  .table-wrap {
    display: block;
  }

  .toast {
    bottom: 24px;
  }

  .danger-zone {
    max-width: 700px;
  }

  .danger-zone .btn-row {
    flex-wrap: nowrap;
    max-width: 500px;
  }
}
