:root{
  --blue:#1e86ff;
  --green:#17c964;
  --black:#0c0e12;
  --panel: rgba(17,21,32,0.85);
  --panel-2: rgba(19,26,40,0.82);
  --stroke: rgba(255,255,255,0.12);
  --text:#e9eefc;
}

/* Background video stack */
#video-bg{ position: fixed; inset: 0; z-index: 0; overflow: hidden; background:#000; }
#cryptoVideo{
  position:absolute; top:50%; left:50%;
  min-width:100%; min-height:100%;
  transform:translate(-50%,-50%);
  object-fit:cover; pointer-events:none;
  opacity:0; transition: opacity 1.5s ease-in-out; z-index:0;
}
.video-overlay{ position:absolute; inset:0; background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.65)); z-index:1; }

/* Topbar */
.topbar{ position:fixed; top:0; left:0; right:0; height:64px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; background: rgba(12,14,18,.85); border-bottom:1px solid var(--stroke); z-index: 5;}
.brand{ display:flex; align-items:center; gap:12px; color:#fff; }
.logo{ height:34px; }
.brand-name{ font-weight:800; letter-spacing:.2px; }
.hamburger{ width:44px; height:44px; display:grid; place-items:center; background:transparent; border:1px solid var(--stroke); border-radius:10px; cursor:pointer; }
.hamburger span{ display:block; width:20px; height:2px; background:#e7ecf5; margin:3px 0; border-radius:2px; }

/* Slide-out menu */
.right-menu{ position:fixed; top:0; right:0; bottom:0; width:min(86vw,360px); background:#0f1523; border-left:1px solid var(--stroke); transform:translateX(100%); transition:transform .25s ease; z-index:6; padding:16px 12px;}
.right-menu.open{ transform:translateX(0); }
.close-menu{ align-self:flex-end; width:42px; height:42px; border-radius:10px; background:transparent; border:1px solid var(--stroke); color:#fff; }
.menu-list{ list-style:none; padding:12px 8px; margin:8px 0; display:grid; gap:8px; }
.menu-list a{ display:flex; align-items:center; gap:12px; padding:12px 14px; color:#eef3ff; text-decoration:none; border-radius:12px; background:#0f1728; border:1px solid var(--stroke); }

/* Content wrapper */
.content{ position:relative; z-index:2; padding-top:96px; }

/* HERO */
.hero{
  width:min(1000px, 92vw); margin: 8vh auto 12vh;
  background: var(--panel); color: var(--text);
  border:1px solid var(--stroke); border-radius:20px;
  padding: 28px 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  text-align:center;
  backdrop-filter: blur(10px);
}
.hero h1{ font-size: clamp(22px, 3.4vw, 36px); line-height:1.25; margin:0 0 10px; font-weight:800; }
.hero .sub{ opacity:.92; margin:6px 0; }
.hero-cta{ margin-top:16px; }
.btn{ display:inline-flex; align-items:center; gap:10px; padding:12px 18px; border-radius:12px; text-decoration:none; border:1px solid transparent; }
.btn-primary{ background: var(--blue); color:#fff; font-weight:700; }
.small-note{ margin-top:10px; font-size:.92rem; opacity:.95; }
.link-blue{ color: #76adff; text-decoration: underline; }

/* Education */
.edu{
  width:min(1000px, 92vw); margin: 0 auto 32px;
  background: var(--panel-2); color: var(--text);
  border:1px solid var(--stroke); border-radius:20px; padding: 22px 22px;
  backdrop-filter: blur(10px);
}
.edu h2{ margin:0 0 12px; font-size: clamp(18px, 2.6vw, 26px); }
.edu-list{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.edu-list li{ display:flex; gap:12px; align-items:flex-start; padding:10px 12px; border-radius:12px; background:#101826; border:1px solid var(--stroke); }
.edu-list i{ color:#78f1b4; margin-top:3px; }

/* Reveal animation */
.reveal-on-scroll{ opacity:0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal-on-scroll.show{ opacity:1; transform: translateY(0); }

/* Ratings + Ticker section */
.ratings-and-market{ width:min(1100px, 94vw); margin: 24px auto 60px; display:grid; gap:16px; grid-template-columns: 340px 1fr; }
@media (max-width: 980px){ .ratings-and-market{ grid-template-columns: 1fr; } }

.rating-box{
  background: var(--panel); color: var(--text);
  border:1px solid var(--stroke); border-radius:18px; padding:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  opacity:0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease;
  backdrop-filter: blur(10px);
}
.rating-box.in{ opacity:1; transform: translateY(0); }
.rating-head{ display:flex; align-items:center; gap:12px; margin-bottom:6px; }
.avatar{ width:48px; height:48px; border-radius:50%; object-fit:cover; border:1px solid var(--stroke); }
.rb-name{ font-weight:700; }
.rb-stars i{ color:#ffd365; margin-right:2px; }
.rb-text{ margin:8px 2px 4px; }

/* Ticker wrap */
.ticker-wrap{
  background: var(--panel); border:1px solid var(--stroke);
  border-radius:18px; padding: 8px 6px;
  min-height: 72px;
}
/* ===== Loader ===== */
#loader {
  position: fixed;
  inset: 0;
  background: #0c0e12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

#loader.fade-out {
  opacity: 0;
}

.loader-ring {
  width: 240px;
  height: 240px;
  border: 8px solid rgba(30,134,255,0.15);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 2s linear infinite;
  margin-bottom: 20px;
}

.loader-logo {
  width: 200px;
  height: auto;
  animation: pulse 3s ease-in-out infinite;
}

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

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  color: #aab4c6;
  font-size: 14px;
  padding: 16px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(12,14,18,0.9);
  margin-top: 60px;
}
/* ===== Signup Page ===== */
.signup-container, .verify-container {
  background: #fff;
  color: #222;
  width: 400px;
  max-width: 90%;
  margin: 100px auto;
  padding: 30px 35px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
  z-index: 10;
}

.signup-container h2, .verify-container h2 {
  margin-bottom: 20px;
  color: #111;
}

.signup-form input, .verify-form input, select {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.signup-form button, .verify-form button {
  width: 100%;
  background: #007bff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.signup-form button:hover, .verify-form button:hover {
  background: #0056b3;
}

.password-box {
  position: relative;
}

#strength {
  font-size: 13px;
  display: block;
  text-align: left;
  margin-top: 5px;
}

.checkbox {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin: 15px 0;
}

.checkbox a.terms {
  color: #007bff;
  text-decoration: none;
  margin-left: 3px;
}

.small-text {
  margin-top: 10px;
  font-size: 14px;
}

.blue { color: #007bff; text-decoration: none; }
.red { color: red; text-decoration: none; }
.flash {
  margin-top: 15px;
  font-weight: bold;
  color: #007bff;
}
.input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.input-box i {
  position: absolute;
  left: 12px;
  color: #007bff;
  font-size: 16px;
}

.input-box input, 
.input-box select {
  width: 100%;
  margin: 10px 0;
  padding: 12px 12px 12px 38px; /* space for icon */
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.signup-form button i {
  margin-right: 6px;
}
.auth-body {
  background: #f4f6fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.auth-header {
  text-align: center;
  margin-top: 40px;
}

.auth-logo {
  width: 120px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 10px;
}
/* ===== Dashboard layout ===== */
.dash-top{
  display:flex; justify-content:flex-end; align-items:center;
  gap:12px; padding:10px 16px; margin-top:-10px;
}
.right-actions{ display:flex; align-items:center; gap:12px; }

.trade-btn{
  background:#16a34a; color:#fff; border:none; border-radius:10px;
  padding:10px 14px; font-weight:700; display:inline-flex; gap:8px; align-items:center;
  box-shadow:0 8px 20px rgba(22,163,74,.25); cursor:pointer;
}

.profile-wrap{ position:relative; }
.profile-btn{
  background:transparent; border:1px solid var(--stroke); color:#fff; border-radius:12px;
  width:44px; height:44px; display:grid; place-items:center; cursor:pointer;
}
.profile-menu{
  position:absolute; right:0; top:52px; min-width:180px; background:#0f1728; border:1px solid var(--stroke);
  border-radius:12px; padding:8px; display:none; z-index:20;
}
.profile-menu.open{ display:block; }
.profile-menu a{ display:flex; gap:10px; align-items:center; padding:10px; color:#e7ecf5; text-decoration:none; border-radius:10px; }
.profile-menu a:hover{ background:#131c2e; }

.app-list{ margin:12px 0 6px; }
.app-title{ color:#aab4c6; margin:6px 2px 8px; font-weight:700; }
.app-link{
  display:flex; align-items:center; gap:10px; color:#e7ecf5; text-decoration:none;
  padding:10px 12px; border:1px solid var(--stroke); border-radius:12px; background:#0f1728; margin:6px 0;
}

.dash-main{ width:min(1200px,94vw); margin: 8px auto 60px; display:grid; gap:18px; }

.panel{
  background: var(--panel); color: var(--text);
  border:1px solid var(--stroke); border-radius:18px; padding:16px;
  backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.panel-title{ font-weight:800; margin-bottom:8px; display:flex; gap:10px; align-items:center; }

.kpis{ display:grid; gap:16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px){ .kpis{ grid-template-columns: 1fr; } }

.kpi{
  background: linear-gradient(180deg, rgba(30,134,255,.18), rgba(30,134,255,.09));
  border:1px solid var(--stroke); border-radius:16px; padding:16px;
}
.kpi-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.kpi-title{ font-weight:800; display:flex; gap:8px; align-items:center; }
.cur-btn{
  background:#0c0e12; color:#fff; border:1px solid var(--stroke); border-radius:10px;
  width:36px; height:36px; cursor:pointer;
}
.amount{ font-size: clamp(20px, 3.2vw, 30px); font-weight:900; }
.sub{ opacity:.95; margin-top:6px; }

/* TV container */
.tv-embed{ width:100%; height:480px; }

/* Toasts */
#toastArea{ position:fixed; right:16px; bottom:16px; z-index:2000; display:flex; flex-direction:column; gap:8px; }
.toast{
  display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:12px;
  border:1px solid var(--stroke); background:#0f1728; color:#e7ecf5;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  transform: translateY(10px); opacity:0; transition: .25s ease;
}
.toast.in{ transform: translateY(0); opacity:1; }
.toast.ok{ border-color: rgba(16,185,129,.4); }
.toast.warn{ border-color: rgba(244,114,182,.4); }