/* APEX GLOBAL BROKERAGE — Shared Global Styles
   This file is intentionally additive. Existing page-level styles remain authoritative. */

:root{
  --bg-main:#0a0612;
  --bg-deep:#06020a;
  --bg-card:#140d21;
  --bg-card-hover:#1e1430;
  --accent-gold:#f59e0b;
  --accent-gold-glow:rgba(245,158,11,.30);
  --accent-purple:#a855f7;
  --accent-purple-glow:rgba(168,85,247,.30);
  --text-white:#fff;
  --text-muted:#a0aec0;
  --green-positive:#10b981;
  --green-glow:rgba(16,185,129,.30);
  --red-negative:#f43f5e;
  --red-glow:rgba(244,63,94,.30);
  --border-color:rgba(168,85,247,.15);
  --border-subtle:rgba(255,255,255,.08);
  --font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;width:100%;min-height:100%;font-family:var(--font-family);background:var(--bg-main);color:var(--text-white)}
button,input,select,textarea{font:inherit}
button{border:0}
a{color:inherit}
img{max-width:100%}
::selection{background:rgba(168,85,247,.35);color:#fff}
body.light-theme{
  --bg-main:#f7f7fb;
  --bg-deep:#ececf4;
  --bg-card:#fff;
  --bg-card-hover:#f4efff;
  --text-white:#17121f;
  --text-muted:#657080;
  --border-color:rgba(124,58,237,.18);
  --border-subtle:rgba(17,24,39,.10);
}
.apex-page-shell{
  width:100%;
  min-height:100vh;
  background:
    radial-gradient(circle at 80% 12%,rgba(168,85,247,.09),transparent 28%),
    radial-gradient(circle at 15% 70%,rgba(245,158,11,.06),transparent 26%),
    linear-gradient(180deg,var(--bg-main),var(--bg-deep));
}
.apex-simple-header{
  height:64px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid var(--border-subtle);background:rgba(10,6,18,.72);backdrop-filter:blur(14px);
}
.apex-brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.apex-brand img{height:34px;width:auto;object-fit:contain;filter:drop-shadow(0 0 10px var(--accent-gold-glow))}
.apex-brand-name{font-size:18px;font-weight:800;letter-spacing:.4px}
.apex-brand-name .gold{color:var(--accent-gold)}
.apex-brand-name .purple{color:#c084fc}
.apex-header-actions{display:flex;gap:8px;align-items:center}
.apex-icon-btn{
  width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.04);
  color:var(--text-white);border:1px solid var(--border-subtle);cursor:pointer;
}
.apex-main{width:min(100%,720px);margin:0 auto;padding:18px 20px 90px}
.apex-card{
  background:linear-gradient(135deg,rgba(20,13,33,.94),rgba(30,20,48,.68));
  border:1px solid var(--border-color);border-radius:18px;padding:18px;
  box-shadow:0 12px 32px rgba(0,0,0,.30);margin-bottom:14px;
}
.apex-title{font-size:20px;font-weight:800;margin:0 0 6px}
.apex-subtitle{font-size:12px;color:var(--text-muted);line-height:1.6;margin:0}
.apex-section-title{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.7px;margin:0 0 10px}
.apex-list{display:flex;flex-direction:column;gap:8px}
.apex-list-link{
  display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;
  border:1px solid var(--border-subtle);border-radius:14px;background:rgba(255,255,255,.025);
  text-decoration:none;transition:.18s ease;
}
.apex-list-link:hover{border-color:var(--accent-purple);background:var(--bg-card-hover)}
.apex-list-left{display:flex;align-items:center;gap:12px;min-width:0}
.apex-list-icon{
  width:36px;height:36px;border-radius:10px;display:grid;place-items:center;
  background:rgba(168,85,247,.12);color:#c084fc;flex:0 0 auto;
}
.apex-list-label{font-size:13px;font-weight:700}
.apex-list-meta{font-size:10px;color:var(--text-muted);margin-top:2px}
.apex-chevron{color:var(--text-muted)}
.apex-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 15px;
  border-radius:11px;cursor:pointer;text-decoration:none;font-weight:800;font-size:12px;
}
.apex-btn-primary{background:linear-gradient(135deg,#f59e0b,#d97706);color:#160d00;box-shadow:0 8px 22px rgba(245,158,11,.18)}
.apex-btn-secondary{background:rgba(168,85,247,.12);color:#d8b4fe;border:1px solid rgba(168,85,247,.22)}
.apex-btn-danger{background:rgba(244,63,94,.10);color:#fb7185;border:1px solid rgba(244,63,94,.22)}
.apex-field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.apex-field label{font-size:11px;font-weight:700;color:var(--text-muted)}
.apex-field input,.apex-field select,.apex-field textarea{
  width:100%;border:1px solid var(--border-subtle);border-radius:11px;padding:11px 12px;
  background:rgba(0,0,0,.18);color:var(--text-white);outline:none;
}
.apex-field input:focus,.apex-field select:focus,.apex-field textarea:focus{border-color:var(--accent-purple);box-shadow:0 0 0 3px rgba(168,85,247,.10)}
.apex-status{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800}
.apex-status-green{color:#34d399;background:rgba(16,185,129,.10)}
.apex-status-gold{color:#fbbf24;background:rgba(245,158,11,.10)}
.apex-status-red{color:#fb7185;background:rgba(244,63,94,.10)}
.apex-note{font-size:11px;color:var(--text-muted);line-height:1.65}
.apex-divider{height:1px;background:var(--border-subtle);margin:14px 0}
.apex-footer-nav{
  position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,720px);
  display:grid;grid-template-columns:repeat(5,1fr);padding:8px 8px max(8px,env(safe-area-inset-bottom));
  background:rgba(8,4,14,.92);border-top:1px solid var(--border-subtle);backdrop-filter:blur(18px);z-index:100;
}
.apex-footer-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;text-decoration:none;color:#8892a4;font-size:9px;font-weight:700;padding:6px 2px}
.apex-footer-nav a.active{color:var(--accent-gold)}
.apex-toast{
  position:fixed;left:50%;bottom:86px;transform:translate(-50%,15px);opacity:0;pointer-events:none;
  padding:10px 14px;border-radius:11px;background:#191225;border:1px solid var(--border-color);
  color:#fff;font-size:11px;font-weight:700;z-index:300;transition:.2s ease;
}
.apex-toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:480px){.apex-main{padding-left:14px;padding-right:14px}.apex-simple-header{padding:0 14px}}
