:root {
  --bg-color: #04060a;
  --glass-bg: rgba(18, 22, 34, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.12);
  
  --accent-gold: #e2b714;
  --accent-cyan: #00e1ff;
  --accent-green: #00ff73;
  --accent-purple: #a600ff;
  --danger: #ff2a55;
  
  --text-main: #f0f4f8;
  --text-muted: #7b8a9e;
}

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

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, .brand-title, .balance-amount, .brand-symbol {
  font-family: 'Orbitron', sans-serif;
}

.hidden { display: none !important; }

/* === SHINY GLASSMORPHISM & ROUNDED 3D UI === */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.glass-card {
  background: linear-gradient(145deg, rgba(28, 34, 50, 0.8) 0%, rgba(12, 16, 26, 0.8) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-highlight);
  border-left: 1px solid var(--glass-highlight);
  border-right: 1px solid rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(0,0,0,0.8);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.05);
}

.round-card { border-radius: 32px; }
.pill-panel { border-radius: 999px; }

/* Rounded Pill Buttons with Shiny Depth */
.pill-btn {
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px 24px;
}

.shiny {
  position: relative;
  overflow: hidden;
}

.shiny::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: all 0.5s;
}
.shiny:hover::after { left: 150%; }

.pill-btn:active {
  transform: scale(0.96);
  box-shadow: inset 0 6px 15px rgba(0,0,0,0.6) !important;
}

.btn-primary { background: linear-gradient(180deg, #00d2ff 0%, #206ab5 100%); box-shadow: 0 6px 0 #13467b, 0 10px 20px rgba(0, 210, 255, 0.2), inset 0 2px 4px rgba(255,255,255,0.4); }
.btn-gold { background: linear-gradient(180deg, #f2c94c 0%, #b28900 100%); box-shadow: 0 6px 0 #735800, 0 10px 20px rgba(242, 201, 76, 0.2), inset 0 2px 4px rgba(255,255,255,0.5); color: #111; text-shadow: none; font-weight: 800;}
.btn-cyan { background: linear-gradient(180deg, #00e1ff 0%, #008899 100%); box-shadow: 0 6px 0 #00505b, 0 10px 20px rgba(0, 225, 255, 0.2), inset 0 2px 4px rgba(255,255,255,0.4); }
.btn-purple { background: linear-gradient(180deg, #b833ff 0%, #6f00b3 100%); box-shadow: 0 6px 0 #3d0066, 0 10px 20px rgba(184, 51, 255, 0.2), inset 0 2px 4px rgba(255,255,255,0.4); }

/* === LAYOUT === */
.screen-container { display: flex; justify-content: center; align-items: center; min-height: 100dvh; padding: 16px; }
.auth-card { width: 100%; max-width: 380px; padding: 40px 24px; text-align: center; }

.brand-symbol { font-size: 3.5rem; color: var(--accent-purple); text-shadow: 0 0 20px rgba(166, 0, 255, 0.6); margin-bottom: 8px; line-height: 1;}
.subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; letter-spacing: 1px; }

.input-container { margin-bottom: 16px; }
.input-container input {
  width: 100%;
  padding: 18px 24px;
  border-radius: 999px;
  border: 1px solid var(--glass-highlight);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
  outline: none;
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.5);
  transition: all 0.3s;
}
.input-container input:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 225, 255, 0.05);
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.5), 0 0 15px rgba(0, 225, 255, 0.2);
}

.btn-primary { width: 100%; font-size: 1.1rem; }
.error-msg { color: var(--danger); font-size: 0.85rem; margin-top: 16px; font-weight: 600; min-height: 20px; }

/* Dashboard */
.app-layout { max-width: 700px; margin: 0 auto; width: 100%; padding-bottom: 24px;}
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; margin: 16px 16px 0 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; }
.brand-icon { color: var(--accent-purple); font-size: 1.4rem;}

.glass-btn { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.08); border: none; padding: 10px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; cursor: pointer;}
.glass-btn:active { background: rgba(255,255,255,0.04); }

.mobile-grid { display: flex; flex-direction: column; gap: 16px; padding: 16px; }

/* Hero */
.hero-card { padding: 32px 24px; text-align: center; }
.section-title { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }
.balance-amount { font-size: 3rem; font-weight: 900; color: #fff; margin: 8px 0 24px 0; text-shadow: 0 4px 15px rgba(0,0,0,0.5); }

.yield-breakdown { display: flex; justify-content: center; gap: 16px; background: rgba(0,0,0,0.3); padding: 16px; border-radius: 24px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.4);}
.yield-item { display: flex; flex-direction: column; align-items: center; flex: 1;}
.y-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px;}
.y-value { font-size: 1.1rem; font-weight: 800; }
.cyan { color: var(--accent-cyan); text-shadow: 0 0 10px rgba(0,225,255,0.4); }
.purple { color: var(--accent-purple); text-shadow: 0 0 10px rgba(166,0,255,0.4); }
.gold { color: var(--accent-gold); }

/* Asset Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--glass-border); padding: 1px; overflow: hidden; }
.asset-box { background: var(--glass-bg); padding: 20px; display: flex; align-items: center; gap: 12px; }
.asset-icon { font-size: 1.8rem; }
.asset-info { display: flex; flex-direction: column; }
.asset-title { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.asset-info strong { font-size: 1.2rem; font-weight: 800; }

/* Action Center */
.action-center { padding: 24px; }
.panel-title { font-size: 1.1rem; font-weight: 700; color: #fff; text-align: center;}
.mb-10 { margin-bottom: 12px; }

.energy-display { text-align: center; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; background: rgba(0,0,0,0.3); padding: 12px; border-radius: 999px;}
.energy-display strong { font-size: 1.1rem; margin-left: 8px;}

.action-list { display: flex; flex-direction: column; gap: 20px; }
.action-row { display: flex; flex-direction: column; gap: 10px; }
.action-desc { background: rgba(0,0,0,0.2); border-left: 3px solid var(--glass-highlight); padding: 12px 16px; border-radius: 0 16px 16px 0; font-size: 0.75rem; color: #b0c0d0; line-height: 1.5;}
.action-desc strong { color: #fff; }

/* Leaderboard */
.panel-header { text-align: center; padding: 24px 16px 16px 16px; }
.sub-label { font-size: 0.7rem; color: var(--text-muted); display: block; margin-top: 4px;}

.modern-table { width: 100%; border-collapse: collapse; }
.modern-table td { padding: 16px; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.03); vertical-align: middle;}

/* Realtime Online Dot System */
.user-meta { display: flex; align-items: center; gap: 8px; }
.online-dot { width: 10px; height: 10px; background: var(--accent-green); border-radius: 50%; box-shadow: 0 0 10px var(--accent-green); animation: pulse 2s infinite; }
.offline-dot { width: 10px; height: 10px; background: rgba(255,255,255,0.1); border-radius: 50%; }

@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }

.active-row { background: rgba(255,255,255,0.03); font-weight: 700; }

