/* ===========================================================================
   Triple Trade — Shared Theme | Dark + Lemon Yellow | Mobile-first
   =========================================================================== */

:root{
  /* Base palette */
  --bg:        #06070a;
  --bg-2:      #0a0c12;
  --bg-3:      #11141d;
  --bg-4:      #1a1e2a;
  --surface:   #14171f;

  /* Text */
  --ink:       #f5f7fb;
  --ink-2:     #a8aec1;
  --ink-3:     #6b7186;

  /* Lines */
  --line:      rgba(255,255,255,0.06);
  --line-2:    rgba(255,255,255,0.12);

  /* Lemon yellow — bright, electric, NOT gold */
  --lemon:     #FFE600;
  --lemon-2:   #FFF14D;
  --lemon-3:   #FFC700;
  --lemon-glow: rgba(255,230,0,0.35);

  /* Trading colors — LIGHTNING bright */
  --up:        #00FF88;
  --up-2:      #4DFFA8;
  --up-glow:   rgba(0,255,136,0.55);
  --down:      #FF1744;
  --down-2:    #FF5277;
  --down-glow: rgba(255,23,68,0.55);

  /* Shadows */
  --sh-soft:   0 12px 40px -12px rgba(0,0,0,0.6);
  --sh-deep:   0 30px 60px -20px rgba(0,0,0,0.8);
  --sh-yellow: 0 8px 32px var(--lemon-glow);
}

*{ box-sizing: border-box; margin: 0; padding: 0;}
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, select, textarea{ font-family: inherit; color: inherit;}
a{ color: inherit; text-decoration: none;}
img, svg{ display: block; max-width: 100%;}

.mono{ font-family: 'JetBrains Mono', 'Geist Mono', monospace; font-variant-numeric: tabular-nums;}

/* =====================================================================
   BRAND
   ===================================================================== */
.brand{ display: flex; align-items: center; gap: 10px;}
.brand-mark{
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--lemon) 0%, var(--lemon-3) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px var(--lemon-glow);
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.brand-mark svg{ width: 18px; height: 18px; color: #1a1500; z-index: 1;}
.brand-mark::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shine 4s ease-in-out infinite;
}
@keyframes shine{ 0%,100%{transform: translateX(-100%);} 50%{transform: translateX(100%);}}
.brand-name{ font-size: 19px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink);}
.brand-name .dot{ color: var(--lemon);}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; cursor: pointer;
  font-weight: 600; font-size: 14px; letter-spacing: .2px;
  border: 0; transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--lemon) 0%, var(--lemon-3) 100%);
  color: #1a1500; font-weight: 700;
  box-shadow: 0 6px 20px var(--lemon-glow);
  position: relative; overflow: hidden;
}
.btn-primary::before{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  transform: translateX(-150%);
  animation: shine 3s ease-in-out infinite;
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 28px var(--lemon-glow);}
.btn-primary:disabled{ opacity: .55; cursor: not-allowed; transform: none;}
.btn-ghost{ background: transparent; color: var(--ink-2);}
.btn-ghost:hover{ color: var(--ink); background: rgba(255,255,255,.04);}
.btn-outline{
  color: var(--ink); background: transparent;
  border: 1px solid var(--line-2);
}
.btn-outline:hover{ background: rgba(255,255,255,.04); border-color: var(--ink-2);}

/* =====================================================================
   FORM FIELDS
   ===================================================================== */
.field{
  background: var(--bg-3);
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: 12px 14px; transition: all .2s;
}
.field:focus-within{
  border-color: var(--lemon);
  box-shadow: 0 0 0 4px rgba(255,230,0,0.08);
}
.field .lbl{
  font-size: 10px; font-weight: 600;
  color: var(--ink-3); letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea{
  width: 100%; background: transparent; border: 0; outline: 0;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.field select option{ background: var(--bg-3); color: var(--ink);}

/* =====================================================================
   TOAST
   ===================================================================== */
.toast-wrap{
  position: fixed; bottom: 16px; right: 16px; left: 16px;
  display: flex; flex-direction: column-reverse; gap: 8px;
  z-index: 1000; pointer-events: none;
}
@media (min-width: 600px){
  .toast-wrap{ left: auto; max-width: 360px;}
}
.toast{
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--sh-deep);
  animation: toastIn .25s ease; pointer-events: all;
}
.toast.ok{ border-left: 3px solid var(--up);}
.toast.err{ border-left: 3px solid var(--down);}
.toast.info{ border-left: 3px solid var(--lemon);}
.toast .ttl{ font-weight: 600; font-size: 13px;}
.toast .msg{ font-size: 12px; color: var(--ink-2); margin-top: 2px;}
@keyframes toastIn{ from{transform: translateY(20px); opacity: 0;} to{transform: translateY(0); opacity: 1;}}

/* =====================================================================
   SPINNER
   ===================================================================== */
.spinner{
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--line-2); border-top-color: var(--lemon);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg);} }

/* Selection */
::selection{ background: var(--lemon); color: #1a1500;}

/* Scrollbars */
::-webkit-scrollbar{ width: 10px; height: 10px;}
::-webkit-scrollbar-track{ background: var(--bg-2);}
::-webkit-scrollbar-thumb{ background: var(--bg-4); border-radius: 5px;}
::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,.2);}
