/* ===== CRYPTO COIN - GLOBAL STYLES ===== */
/* Color Palette:
   Primary Green:      #5EFC8D
   Mint Cyan:          #8EF9F3
   Soft Blue:          #93BEE0
   Lavender Purple:    #8477D1
   Deep Muted Purple:  #6D5972
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --green: #5EFC8D;
  --green-dark: #3dd872;
  --green-glow: rgba(94, 252, 141, 0.3);
  --cyan: #8EF9F3;
  --cyan-dark: #5ee8df;
  --cyan-glow: rgba(142, 249, 243, 0.3);
  --blue: #93BEE0;
  --blue-dark: #6da3cc;
  --blue-light: rgba(147, 190, 224, 0.15);
  --purple: #8477D1;
  --purple-dark: #6a5cb8;
  --purple-glow: rgba(132, 119, 209, 0.3);
  --deep-purple: #6D5972;
  --deep-purple-dark: #4A3E4F;
  --deep-purple-darker: #362D3A;
  --bg-dark: #1a1225;
  --bg-card: rgba(109, 89, 114, 0.25);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --border-glass: rgba(255, 255, 255, 0.1);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-glow-green: 0 0 20px rgba(94, 252, 141, 0.3);
  --shadow-glow-purple: 0 0 20px rgba(132, 119, 209, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-primary);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit; font-size: inherit; color: inherit;
  border: none; outline: none; background: none;
}
button { cursor: pointer; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

/* ===== UTILITY CLASSES ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.text-green { color: var(--green); }
.text-purple { color: var(--purple); }
.text-cyan { color: var(--cyan); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.w-full { width: 100%; }
.hidden { display: none !important; }
.relative { position: relative; }

/* ===== GLASSMORPHISM ===== */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}
.glass-card {
  background: linear-gradient(135deg, rgba(109,89,114,0.3), rgba(132,119,209,0.1));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 249, 243, 0.3);
  box-shadow: var(--shadow-card);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-md); font-weight: 600;
  font-size: 0.95rem; transition: var(--transition); position: relative;
  overflow: hidden; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #0a1a0f; box-shadow: var(--shadow-glow-green);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(94,252,141,0.5); }
.btn-secondary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff; box-shadow: var(--shadow-glow-purple);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(132,119,209,0.5); }
.btn-outline {
  border: 2px solid var(--cyan); color: var(--cyan); background: transparent;
}
.btn-outline:hover { background: var(--cyan); color: var(--bg-dark); }
.btn-ghost { color: var(--text-secondary); padding: 8px 16px; }
.btn-ghost:hover { color: var(--cyan); background: rgba(142,249,243,0.1); border-radius: var(--radius-sm); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid transparent; border-top-color: currentColor; border-radius: 50%; animation: spin 0.6s linear infinite; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 8px; font-size: 0.9rem;
  font-weight: 500; color: var(--text-secondary);
}
.form-input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.07); border: 1px solid var(--border-glass);
  color: var(--text-primary); font-size: 0.95rem; transition: var(--transition);
}
.form-input:focus {
  border-color: var(--cyan); background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(142,249,243,0.15);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: #ff4757; }
.form-input.success { border-color: var(--green); }
.form-error { color: #ff4757; font-size: 0.8rem; margin-top: 4px; display: none; }
.form-error.show { display: block; }
.input-group { position: relative; }
.input-group .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1rem;
}
.input-group .form-input { padding-left: 42px; }
.input-group .input-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); cursor: pointer; background: none; border: none;
  font-size: 1rem; padding: 4px;
}
.input-group .input-toggle:hover { color: var(--cyan); }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; margin-top: 2px;
}
.password-strength { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); margin-top: 8px; overflow: hidden; }
.password-strength .bar { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; width: 0; }
.otp-inputs { display: flex; gap: 10px; justify-content: center; }
.otp-input {
  width: 50px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 700;
  border-radius: var(--radius-md); background: rgba(255,255,255,0.07);
  border: 2px solid var(--border-glass); color: var(--text-primary); transition: var(--transition);
}
.otp-input:focus { border-color: var(--cyan); background: rgba(255,255,255,0.1); }

/* ===== HEADER / NAVBAR ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(109,89,114,0.85); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(132,119,209,0.2);
  transition: var(--transition);
}
.header.scrolled { background: rgba(74,62,79,0.95); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; }
.logo-icon {
  width: 60px; height: 60px; max-height: 100%; border-radius: 12px;
  object-fit: contain; flex-shrink: 0;
}
.logo span { background: linear-gradient(135deg, var(--green), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.9rem;
  font-weight: 500; color: var(--text-secondary); transition: var(--transition);
}
.nav-links a:hover { color: var(--cyan); background: rgba(142,249,243,0.08); }
.nav-links a.active { color: var(--cyan); background: rgba(142,249,243,0.12); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-wallet {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: rgba(94,252,141,0.1); border: 1px solid rgba(94,252,141,0.2);
  border-radius: var(--radius-md); font-size: 0.85rem; font-weight: 600; color: var(--green);
}
.nav-user {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; cursor: pointer; position: relative;
}
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 220px;
  background: var(--deep-purple); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 8px; box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(-10px); transition: var(--transition);
}
.user-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text-secondary);
}
.user-dropdown a:hover { background: rgba(255,255,255,0.05); color: var(--cyan); }
.user-dropdown .divider { height: 1px; background: var(--border-glass); margin: 6px 0; }
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 4px; background: none; border: none;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none; position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
  background: rgba(26,18,37,0.98); backdrop-filter: blur(20px);
  z-index: 999; padding: 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.show { transform: translateX(0); }
.mobile-nav a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  font-size: 1.05rem; font-weight: 500; color: var(--text-secondary);
  border-radius: var(--radius-md); margin-bottom: 4px;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--cyan); background: rgba(142,249,243,0.08); }
.mobile-nav .mobile-nav-actions { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-glass); display: flex; flex-direction: column; gap: 12px; }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, var(--deep-purple), var(--deep-purple-dark));
  border-top: 1px solid rgba(132,119,209,0.15); padding: 72px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin: 16px 0 20px; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.footer-social a:hover { background: var(--purple); border-color: var(--purple); transform: translateY(-3px); }
.footer-col h4 { font-size: 1rem; margin-bottom: 20px; color: var(--cyan); font-weight: 600; }
.footer-col a { display: block; padding: 6px 0; color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--green); padding-left: 6px; }
.footer-newsletter { margin-top: 16px; }
.footer-newsletter .newsletter-form {
  display: flex; gap: 8px; margin-top: 12px;
}
.footer-newsletter .newsletter-form input {
  flex: 1; padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07); border: 1px solid var(--border-glass);
  color: var(--text-primary); font-size: 0.85rem;
}
.footer-newsletter .newsletter-form input:focus { border-color: var(--cyan); }
.footer-newsletter .newsletter-form button {
  padding: 10px 18px; border-radius: var(--radius-sm);
  background: var(--green); color: var(--bg-dark); font-weight: 600; font-size: 0.85rem;
  transition: var(--transition); white-space: nowrap;
}
.footer-newsletter .newsletter-form button:hover { background: var(--green-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--cyan); }

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; padding-top: 120px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(132,119,209,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(94,252,141,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(142,249,243,0.06) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; max-width: 650px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  background: rgba(94,252,141,0.1); border: 1px solid rgba(94,252,141,0.2);
  border-radius: 50px; font-size: 0.85rem; color: var(--green); font-weight: 500;
  margin-bottom: 24px; animation: pulse-glow 2s ease-in-out infinite;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; margin-bottom: 20px; line-height: 1.15; }
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--border-glass);
}
.hero-stat .stat-value { font-size: 1.8rem; font-weight: 800; font-family: var(--font-heading); color: var(--green); }
.hero-stat .stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.hero-visual {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  width: 550px; height: 550px; z-index: 1;
}
.hero-visual .floating-coin {
  width: 300px; height: 300px; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--green), var(--cyan), var(--purple));
  border-radius: 50%; animation: float 6s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 900; font-family: var(--font-heading);
  color: var(--bg-dark); box-shadow: 0 0 60px rgba(94,252,141,0.3), 0 0 120px rgba(142,249,243,0.15);
  text-align: center; padding: 20px; overflow: hidden; word-break: break-word;
}
.hero-visual .orbit {
  position: absolute; top: 50%; left: 50%; border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 50%; animation: spin-slow 20s linear infinite;
}
.hero-visual .orbit:nth-child(2) { width: 380px; height: 380px; margin-top: -190px; margin-left: -190px; }
.hero-visual .orbit:nth-child(3) { width: 480px; height: 480px; margin-top: -240px; margin-left: -240px; animation-duration: 30s; animation-direction: reverse; }
.orbit .orbit-dot {
  width: 10px; height: 10px; border-radius: 50%; position: absolute;
}
.orbit .orbit-dot:nth-child(1) { top: 0; left: 50%; transform: translate(-50%,-50%); background: var(--green); }
.orbit .orbit-dot:nth-child(2) { bottom: 0; right: 0; transform: translate(50%,50%); background: var(--purple); }

/* ===== PRICE TICKER ===== */
.price-ticker {
  background: linear-gradient(135deg, rgba(109,89,114,0.5), rgba(74,62,79,0.5));
  backdrop-filter: blur(20px); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px; margin: 28px auto 0; position: relative; z-index: 10;
  max-width: 900px;
}
.price-ticker .ticker-item { display: flex; align-items: center; gap: 12px; }
.ticker-item .ticker-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; color: var(--bg-dark);
}
.ticker-item .ticker-info .ticker-name { font-size: 0.8rem; color: var(--text-muted); }
.ticker-item .ticker-price { font-size: 1.3rem; font-weight: 700; }
.ticker-item .ticker-change {
  font-size: 0.8rem; font-weight: 600; padding: 2px 8px;
  border-radius: 4px; margin-left: 8px;
}
.ticker-change.up { color: var(--green); background: rgba(94,252,141,0.1); }
.ticker-change.down { color: #ff4757; background: rgba(255,71,87,0.1); }
.ticker-divider { width: 1px; height: 40px; background: var(--border-glass); }

/* ===== SECTIONS ===== */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-header .section-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px;
  background: rgba(132,119,209,0.15); border: 1px solid rgba(132,119,209,0.2);
  border-radius: 50px; font-size: 0.8rem; color: var(--purple); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); font-size: 1rem; }

/* ===== FEATURES GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.feature-card {
  background: linear-gradient(135deg, rgba(109,89,114,0.2), rgba(132,119,209,0.08));
  backdrop-filter: blur(10px); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); padding: 36px 28px; transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(142,249,243,0.2); box-shadow: var(--shadow-card); }
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.feature-icon.green { background: rgba(94,252,141,0.12); color: var(--green); }
.feature-icon.purple { background: rgba(132,119,209,0.12); color: var(--purple); }
.feature-icon.cyan { background: rgba(142,249,243,0.12); color: var(--cyan); }
.feature-icon.blue { background: rgba(147,190,224,0.12); color: var(--blue); }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== COMMISSION DIAGRAM ===== */
.commission-section { position: relative; }
.commission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.commission-level {
  background: linear-gradient(135deg, rgba(109,89,114,0.3), rgba(132,119,209,0.1));
  border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
  padding: 28px 18px; text-align: center; transition: var(--transition);
  position: relative; overflow: hidden;
}
.commission-level:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 0 20px rgba(142,249,243,0.15); }
.commission-level .level-num {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.commission-level:nth-child(1) .level-num { background: rgba(94,252,141,0.15); color: var(--green); }
.commission-level:nth-child(2) .level-num { background: rgba(142,249,243,0.15); color: var(--cyan); }
.commission-level:nth-child(3) .level-num { background: rgba(147,190,224,0.15); color: var(--blue); }
.commission-level:nth-child(4) .level-num { background: rgba(132,119,209,0.15); color: var(--purple); }
.commission-level:nth-child(5) .level-num { background: rgba(109,89,114,0.3); color: var(--text-primary); }
.commission-level:nth-child(6) .level-num { background: rgba(94,252,141,0.15); color: var(--green); }
.commission-level .level-percent { font-size: 1.6rem; font-weight: 800; font-family: var(--font-heading); margin: 8px 0; }
.commission-level .level-label { font-size: 0.8rem; color: var(--text-muted); }

/* ===== INVESTMENT PLAN ===== */
.invest-plan {
  background: linear-gradient(135deg, rgba(132,119,209,0.2), rgba(109,89,114,0.3));
  border: 1px solid rgba(132,119,209,0.2); border-radius: var(--radius-xl);
  padding: 56px; position: relative; overflow: hidden;
}
.invest-plan::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(94,252,141,0.08), transparent 70%);
}
.invest-plan-content { position: relative; z-index: 2; }
.invest-plan h3 { font-size: 1.8rem; margin-bottom: 16px; }
.invest-plan-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 28px 0; }
.invest-feature { display: flex; align-items: center; gap: 12px; }
.invest-feature .check { width: 28px; height: 28px; border-radius: 50%; background: rgba(94,252,141,0.12); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.invest-feature span { font-size: 0.95rem; color: var(--text-secondary); }

/* ===== LIVE FEED ===== */
.live-feed { max-height: 400px; overflow-y: auto; padding-right: 8px; }
.live-feed::-webkit-scrollbar { width: 4px; }
.live-feed::-webkit-scrollbar-track { background: transparent; }
.live-feed::-webkit-scrollbar-thumb { background: var(--border-glass); border-radius: 2px; }
.feed-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--radius-md); margin-bottom: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid transparent;
  transition: var(--transition); animation: fadeInUp 0.5s ease-out;
}
.feed-item:hover { border-color: var(--border-glass); background: rgba(255,255,255,0.05); }
.feed-item .feed-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.feed-item .feed-info { flex: 1; }
.feed-item .feed-info .feed-text { font-size: 0.9rem; color: var(--text-secondary); }
.feed-item .feed-info .feed-text strong { color: var(--text-primary); }
.feed-item .feed-time { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.feed-item .feed-amount { font-weight: 700; white-space: nowrap; }
.feed-item .feed-amount.positive { color: var(--green); }
.feed-item .feed-amount.negative { color: #ff4757; }

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 90px 20px 40px; position: relative;
}
.auth-page::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(132,119,209,0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 70%, rgba(94,252,141,0.06) 0%, transparent 50%);
}
.auth-card {
  width: 100%; max-width: 440px; position: relative; z-index: 2;
  background: linear-gradient(135deg, rgba(147,190,224,0.12), rgba(132,119,209,0.08));
  backdrop-filter: blur(20px); border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl); padding: 44px 36px;
}
.auth-card .auth-header { text-align: center; margin-bottom: 32px; }
.auth-card .auth-header h2 { font-size: 1.6rem; margin-bottom: 8px; }
.auth-card .auth-header p { color: var(--text-secondary); font-size: 0.9rem; }
.auth-tabs { display: flex; background: rgba(255,255,255,0.05); border-radius: var(--radius-md); padding: 4px; margin-bottom: 24px; }
.auth-tab {
  flex: 1; padding: 10px; text-align: center; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.auth-tab.active { background: rgba(142,249,243,0.12); color: var(--cyan); }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-glass); }
.auth-divider span { font-size: 0.8rem; color: var(--text-muted); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-secondary); }
.auth-footer a { color: var(--cyan); font-weight: 600; }
.auth-footer a:hover { color: var(--green); }

/* ===== STEP WIZARD ===== */
.step-wizard { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 32px; }
.step-item { display: flex; align-items: center; gap: 0; }
.step-circle {
  width: 36px; height: 36px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-weight: 700;
  font-size: 0.85rem; border: 2px solid var(--border-glass);
  color: var(--text-muted); transition: var(--transition);
}
.step-item.active .step-circle { border-color: var(--cyan); color: var(--cyan); background: rgba(142,249,243,0.1); }
.step-item.completed .step-circle { border-color: var(--green); background: var(--green); color: var(--bg-dark); }
.step-line { width: 60px; height: 2px; background: var(--border-glass); margin: 0 8px; transition: var(--transition); }
.step-item.completed + .step-item .step-line,
.step-line.completed { background: var(--green); }

/* ===== DASHBOARD ===== */
.dashboard { padding-top: 100px; padding-bottom: 60px; min-height: 100vh; }
.dash-welcome { margin-bottom: 40px; }
.dash-welcome h1 { font-size: 1.8rem; margin-bottom: 4px; }
.dash-welcome p { color: var(--text-secondary); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 40px; }
.wallet-card {
  background: linear-gradient(135deg, rgba(109,89,114,0.3), rgba(132,119,209,0.15));
  border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
  padding: 28px; position: relative; overflow: hidden;
}
.wallet-card::after {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%; opacity: 0.1;
}
.wallet-card.vc-card { border-left: 3px solid var(--green); }
.wallet-card.vc-card::after { background: var(--green); }
.wallet-card.usdt-card { border-left: 3px solid var(--cyan); }
.wallet-card.usdt-card::after { background: var(--cyan); }
.wallet-card.invest-card { border-left: 3px solid var(--purple); }
.wallet-card.invest-card::after { background: var(--purple); }
.wallet-card.bonus-card { border-left: 3px solid var(--blue); }
.wallet-card.bonus-card::after { background: var(--blue); }
.wallet-card .card-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.wallet-card .card-value { font-size: 1.8rem; font-weight: 800; font-family: var(--font-heading); }
.wallet-card .card-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.wallet-card .card-sub .up { color: var(--green); }

/* ===== QUICK ACTIONS ===== */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 40px; }
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-glass);
  transition: var(--transition); cursor: pointer; text-decoration: none;
}
.quick-action:hover { background: rgba(255,255,255,0.08); border-color: var(--cyan); transform: translateY(-3px); }
.quick-action .qa-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.quick-action .qa-label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); text-align: center; }

/* ===== CHART AREA ===== */
.chart-container {
  background: linear-gradient(135deg, rgba(109,89,114,0.2), rgba(132,119,209,0.08));
  border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 40px;
}
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 14px; }
.chart-header h3 { font-size: 1.1rem; }
.chart-tabs { display: flex; gap: 4px; background: rgba(255,255,255,0.05); padding: 3px; border-radius: var(--radius-sm); }
.chart-tab {
  padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.8rem;
  font-weight: 500; color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.chart-tab.active { background: rgba(142,249,243,0.12); color: var(--cyan); }
.chart-canvas { width: 100%; height: 250px; }

/* ===== TABLES ===== */
.table-container {
  background: linear-gradient(135deg, rgba(109,89,114,0.2), rgba(132,119,209,0.08));
  border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 40px;
}
.table-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; flex-wrap: wrap; gap: 14px; }
.table-header h3 { font-size: 1.1rem; }
.table-filters { display: flex; gap: 4px; }
.table-filter {
  padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.8rem;
  font-weight: 500; color: var(--text-muted); cursor: pointer; transition: var(--transition);
  background: none; border: none;
}
.table-filter.active { background: rgba(142,249,243,0.12); color: var(--cyan); }
.table-filter:hover { color: var(--text-primary); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th {
  text-align: left; padding: 14px 24px; font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-glass); white-space: nowrap;
}
.data-table td {
  padding: 14px 24px; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.03);
  white-space: nowrap;
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}
.status-badge.pending { background: rgba(255,193,7,0.12); color: #ffc107; }
.status-badge.approved { background: rgba(94,252,141,0.12); color: var(--green); }
.status-badge.rejected { background: rgba(255,71,87,0.12); color: #ff4757; }
.status-badge.completed { background: rgba(142,249,243,0.12); color: var(--cyan); }

/* Investor Badge */
.investor-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 50px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.3px; white-space: nowrap;
}
.investor-badge--new {
  background: rgba(255,71,87,0.14); color: #ff4757;
  border: 1px solid rgba(255,71,87,0.25);
}
.investor-badge--active {
  background: rgba(94,252,141,0.14); color: var(--green);
  border: 1px solid rgba(94,252,141,0.25);
}
.sidebar-badge-wrap { margin-top: 4px; }

.type-badge { font-size: 0.8rem; font-weight: 600; }
.type-badge.buy { color: var(--green); }
.type-badge.sell { color: #ff4757; }
.type-badge.convert { color: var(--cyan); }
.type-badge.withdraw { color: var(--purple); }

/* ===== REFERRAL SECTION ===== */
.referral-box {
  background: linear-gradient(135deg, rgba(132,119,209,0.2), rgba(94,252,141,0.08));
  border: 1px solid rgba(132,119,209,0.2); border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 40px;
}
.referral-link-box {
  display: flex; gap: 8px; margin-top: 12px;
}
.referral-link-box input {
  flex: 1; padding: 12px 14px; border-radius: var(--radius-md);
  background: rgba(0,0,0,0.2); border: 1px solid var(--border-glass);
  color: var(--text-primary); font-size: 0.85rem; font-family: monospace;
}
.referral-link-box button { white-space: nowrap; }

/* ===== ACCORDION ===== */
.accordion { margin-bottom: 40px; }
.accordion-item {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); margin-bottom: 8px; overflow: hidden;
}
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer; transition: var(--transition);
  width: 100%; background: none; border: none; color: var(--text-primary);
  text-align: left; font-weight: 600; font-size: 0.95rem;
}
.accordion-header:hover { background: rgba(255,255,255,0.03); }
.accordion-header i { transition: transform 0.3s; color: var(--text-muted); }
.accordion-item.open .accordion-header i { transform: rotate(180deg); }
.accordion-body {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.accordion-body-inner { padding: 0 20px 16px; color: var(--text-secondary); font-size: 0.9rem; }

/* ===== EXCHANGE PAGE ===== */
.exchange-container { max-width: 800px; margin: 0 auto; }
.exchange-toggle {
  display: flex; background: rgba(255,255,255,0.05); border-radius: var(--radius-md);
  padding: 4px; margin-bottom: 32px; max-width: 300px; margin-left: auto; margin-right: auto;
}
.exchange-toggle-btn {
  flex: 1; padding: 12px; text-align: center; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: var(--transition);
  background: none; border: none; color: var(--text-muted);
}
.exchange-toggle-btn.active { background: rgba(142,249,243,0.15); color: var(--cyan); }
.exchange-card {
  background: linear-gradient(135deg, rgba(109,89,114,0.25), rgba(132,119,209,0.1));
  backdrop-filter: blur(20px); border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl); padding: 36px;
}
.exchange-rate {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px; background: rgba(94,252,141,0.06); border: 1px solid rgba(94,252,141,0.15);
  border-radius: var(--radius-md); margin-bottom: 24px; font-size: 0.95rem;
}
.exchange-rate .rate-value { font-weight: 700; color: var(--green); font-size: 1.1rem; }
.exchange-result {
  background: rgba(0,0,0,0.15); border-radius: var(--radius-md);
  padding: 24px; margin: 24px 0;
}
.exchange-result .result-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  font-size: 0.9rem; color: var(--text-secondary);
}
.exchange-result .result-row.total { border-top: 1px solid var(--border-glass); padding-top: 12px; margin-top: 4px; font-weight: 700; color: var(--text-primary); font-size: 1rem; }

/* ===== CONVERT PAGE ===== */
.convert-container { max-width: 500px; margin: 0 auto; }
.convert-visual {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin: 20px 0;
}
.convert-visual .convert-coin {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.convert-visual .convert-coin .coin-circle {
  width: 60px; height: 60px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem;
}
.convert-visual .convert-coin:first-child .coin-circle { background: linear-gradient(135deg, var(--green), var(--cyan)); color: var(--bg-dark); }
.convert-visual .convert-coin:last-child .coin-circle { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: var(--bg-dark); }
.convert-visual .convert-arrow { font-size: 1.5rem; color: var(--text-muted); }

/* ===== WITHDRAWAL PAGE ===== */
.withdraw-container { max-width: 700px; margin: 0 auto; }
.withdraw-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px;
}
.withdraw-info-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 16px 20px;
}
.withdraw-info-card .info-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.withdraw-info-card .info-value { font-size: 1.2rem; font-weight: 700; }

/* ===== ADMIN PANEL ===== */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.admin-stat-card {
  background: linear-gradient(135deg, rgba(109,89,114,0.3), rgba(132,119,209,0.12));
  border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
  padding: 20px; display: flex; align-items: center; gap: 16px;
}
.admin-stat-card .stat-icon {
  width: 50px; height: 50px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.admin-stat-card .stat-info .stat-value { font-size: 1.5rem; font-weight: 800; }
.admin-stat-card .stat-info .stat-label { font-size: 0.8rem; color: var(--text-muted); }
.admin-controls {
  background: linear-gradient(135deg, rgba(109,89,114,0.2), rgba(132,119,209,0.08));
  border: 1px solid var(--border-glass); border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 40px;
}
.control-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.04); flex-wrap: wrap; gap: 12px; }
.control-row:last-child { border-bottom: 0; }
.control-label { font-weight: 500; }
.control-label small { display: block; font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.control-input {
  display: flex; align-items: center; gap: 8px;
}
.control-input input[type="number"], .control-input input[type="text"] {
  width: 120px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07); border: 1px solid var(--border-glass);
  color: var(--text-primary); text-align: center; font-weight: 600;
}
.control-input input:focus { border-color: var(--cyan); }
.range-slider { width: 200px; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); outline: none; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--purple); cursor: pointer; box-shadow: 0 0 10px rgba(132,119,209,0.4); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 440px;
  background: linear-gradient(135deg, var(--deep-purple), var(--deep-purple-dark));
  border: 1px solid var(--border-glass); border-radius: var(--radius-xl);
  padding: 32px; transform: scale(0.9); transition: transform 0.3s;
}
.modal-overlay.show .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h3 { font-size: 1.2rem; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); border: none; color: var(--text-muted); }
.modal-close:hover { background: rgba(255,71,87,0.15); color: #ff4757; }
.modal-body { color: var(--text-secondary); font-size: 0.95rem; }
.modal-footer { display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end; }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container { position: fixed; top: 90px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-radius: var(--radius-md); min-width: 300px; max-width: 420px;
  box-shadow: var(--shadow-card); transform: translateX(110%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); position: relative;
}
.toast.show { transform: translateX(0); }
.toast.success { background: linear-gradient(135deg, rgba(94,252,141,0.15), rgba(94,252,141,0.05)); border: 1px solid rgba(94,252,141,0.3); }
.toast.error { background: linear-gradient(135deg, rgba(255,71,87,0.15), rgba(255,71,87,0.05)); border: 1px solid rgba(255,71,87,0.3); }
.toast.info { background: linear-gradient(135deg, rgba(142,249,243,0.15), rgba(142,249,243,0.05)); border: 1px solid rgba(142,249,243,0.3); }
.toast.warning { background: linear-gradient(135deg, rgba(255,193,7,0.15), rgba(255,193,7,0.05)); border: 1px solid rgba(255,193,7,0.3); }
.toast .toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast.success .toast-icon { color: var(--green); }
.toast.error .toast-icon { color: #ff4757; }
.toast.info .toast-icon { color: var(--cyan); }
.toast.warning .toast-icon { color: #ffc107; }
.toast .toast-message { flex: 1; font-size: 0.9rem; }
.toast .toast-close { cursor: pointer; color: var(--text-muted); background: none; border: none; font-size: 1rem; padding: 2px; }
.toast .toast-progress { position: absolute; bottom: 0; left: 0; height: 3px; border-radius: 0 0 var(--radius-md) var(--radius-md); animation: toast-progress 4s linear forwards; }
.toast.success .toast-progress { background: var(--green); }
.toast.error .toast-progress { background: #ff4757; }
.toast.info .toast-progress { background: var(--cyan); }

/* ===== TOOLTIP ===== */
.tooltip { position: relative; }
.tooltip::after {
  content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px);
  left: 50%; transform: translateX(-50%) scale(0.8);
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--deep-purple-dark); border: 1px solid var(--border-glass);
  font-size: 0.75rem; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: all 0.2s;
}
.tooltip:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }

/* ===== LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-circle { border-radius: 50%; }
.skeleton-card { height: 120px; border-radius: var(--radius-lg); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  cursor: pointer; border: none; z-index: 999; box-shadow: var(--shadow-glow-purple);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--purple-dark); transform: translateY(-3px); }

/* ===== SUCCESS ANIMATION ===== */
.success-animation {
  text-align: center; padding: 40px 20px;
}
.success-checkmark {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--bg-dark);
  animation: success-pop 0.5s cubic-bezier(0.4,0,0.2,1);
}
.success-animation h3 { font-size: 1.4rem; margin-bottom: 8px; }
.success-animation p { color: var(--text-secondary); margin-bottom: 24px; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: 48px 20px;
}
.empty-state .empty-icon { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; opacity: 0.5; }
.empty-state h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }

/* ===== SESSION TIMEOUT ===== */
.session-warning {
  position: fixed; top: 0; left: 0; right: 0; padding: 12px 20px;
  background: linear-gradient(90deg, rgba(255,193,7,0.15), rgba(255,71,87,0.15));
  border-bottom: 1px solid rgba(255,193,7,0.3); z-index: 2001;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 0.9rem; transform: translateY(-100%); transition: transform 0.3s;
}
.session-warning.show { transform: translateY(0); }
.session-warning .warning-timer { font-weight: 700; color: #ffc107; }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden;
}
.progress-bar .progress-fill {
  height: 100%; border-radius: 4px; transition: width 0.6s ease;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

/* ===== ANIMATIONS ===== */
@keyframes float { 0%, 100% { transform: translate(-50%, -50%) translateY(0); } 50% { transform: translate(-50%, -50%) translateY(-20px); } }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-slow { 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(94,252,141,0.15); } 50% { box-shadow: 0 0 0 8px rgba(94,252,141,0); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes success-pop { 0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes toast-progress { from { width: 100%; } to { width: 0; } }
@keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE GRID UTILITIES ===== */
.r-grid { display: grid; gap: 16px; }
.r-grid-2 { grid-template-columns: repeat(2, 1fr); }
.r-grid-3 { grid-template-columns: repeat(3, 1fr); }
.r-grid-4 { grid-template-columns: repeat(4, 1fr); }
.r-grid-5 { grid-template-columns: repeat(5, 1fr); }
.r-flex { display: flex; flex-wrap: wrap; gap: 8px; }
.r-gap-sm { gap: 8px; }
.r-gap-md { gap: 12px; }
.r-gap-lg { gap: 16px; }
.r-mb-md { margin-bottom: 12px; }
.r-mb-lg { margin-bottom: 24px; }
.r-text-center { text-align: center; }
.r-text-sm { font-size: 0.85rem; }

/* ===== RESPONSIVE ===== */

/* --- Tablet landscape --- */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-charts-row { grid-template-columns: 1fr !important; }
  /* Responsive grid utilities */
  .r-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .r-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Tablet portrait & small landscape --- */
@media (max-width: 768px) {
  /* Global */
  html { font-size: 15px; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 28px; }
  .section-header h2 { font-size: 1.6rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* Responsive grid utilities */
  .r-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .r-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .r-grid-3 { grid-template-columns: 1fr 1fr; }
  .r-grid-2 { grid-template-columns: 1fr; }
  .commission-grid[style] { grid-template-columns: repeat(3, 1fr) !important; }

  /* Header */
  .header .container { height: 60px; }
  .nav-links { display: none; }
  .nav-actions { gap: 8px; }
  .nav-wallet { display: none !important; }
  .nav-actions .btn-sm { padding: 6px 14px; font-size: 0.82rem; }
  .mobile-toggle { display: flex; }
  .mobile-nav { display: block; top: 60px; }

  /* Hero */
  .hero { min-height: auto; padding: 80px 0 48px; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 1rem; margin-bottom: 24px; }
  .hero-badge { font-size: 0.8rem; padding: 5px 12px; margin-bottom: 18px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn-lg { padding: 12px 24px; font-size: 0.95rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; padding-top: 24px; }
  .hero-stat .stat-value { font-size: 1.4rem; }
  .hero-stat .stat-label { font-size: 0.78rem; }

  /* Price Ticker */
  .price-ticker { flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; margin-top: -20px; }
  .price-ticker .ticker-divider { width: 100%; height: 1px; }
  .ticker-item { justify-content: space-between; }
  .ticker-item .ticker-icon { width: 38px; height: 38px; font-size: 0.8rem; }
  .ticker-item .ticker-price { font-size: 1.1rem; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 24px 20px; }
  .feature-card:hover { transform: none; }

  /* Commission */
  .commission-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .commission-level { padding: 16px 10px; }
  .commission-level .level-percent { font-size: 1.3rem; }

  /* Invest Plan */
  .invest-plan { padding: 24px 16px; }
  .invest-plan h3 { font-size: 1.4rem; }
  .invest-plan-features { grid-template-columns: 1fr; gap: 14px; }

  /* Live Feed */
  .live-feed { max-height: 300px; }
  .live-feed-grid { grid-template-columns: 1fr !important; }
  .feed-item { padding: 10px 12px; gap: 10px; }
  .feed-item .feed-avatar { width: 32px; height: 32px; font-size: 0.7rem; }
  .feed-item .feed-info .feed-text { font-size: 0.82rem; }
  .feed-item .feed-amount { font-size: 0.85rem; }

  /* Footer */
  .footer { padding: 40px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  /* Auth Pages */
  .auth-page { padding: 70px 16px 32px; }
  .auth-card { padding: 28px 20px; border-radius: var(--radius-lg); }
  .auth-card .auth-header h2 { font-size: 1.35rem; }
  .otp-input { width: 44px; height: 50px; font-size: 1.2rem; }
  .step-wizard { gap: 0; }
  .step-line { width: 40px; }
  .step-circle { width: 32px; height: 32px; font-size: 0.8rem; }

  /* Dashboard */
  .dashboard { padding-top: 76px; padding-bottom: 32px; }
  .dash-welcome h1 { font-size: 1.4rem; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wallet-card { padding: 18px 16px; }
  .wallet-card .card-value { font-size: 1.4rem; }
  .wallet-card .card-label { font-size: 0.8rem; }
  .quick-actions { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .quick-action { padding: 14px 8px; gap: 8px; }
  .quick-action .qa-icon { width: 40px; height: 40px; font-size: 1rem; }
  .quick-action .qa-label { font-size: 0.78rem; }

  /* Charts */
  .chart-container { padding: 16px; }
  .chart-canvas { height: 200px; }
  .chart-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .chart-tabs { width: 100%; justify-content: space-between; }

  /* Dashboard inline grids */
  .invest-progress-stats { grid-template-columns: 1fr 1fr 1fr !important; gap: 12px !important; }
  .accordion-detail-grid { grid-template-columns: 1fr !important; }

  /* Tables */
  .table-header { padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .table-filters { width: 100%; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .data-table th, .data-table td { padding: 10px 14px; font-size: 0.82rem; }
  .table-scroll { -webkit-overflow-scrolling: touch; }

  /* Referral */
  .referral-box { padding: 18px 16px; }
  .referral-link-box { flex-direction: column; }
  .referral-link-box input { font-size: 0.8rem; }

  /* Accordion */
  .accordion-header { padding: 14px 16px; font-size: 0.9rem; }
  .accordion-body-inner { padding: 0 16px 14px; font-size: 0.85rem; }

  /* Exchange */
  .exchange-container { max-width: 100%; }
  .exchange-card { padding: 20px 16px; }
  .exchange-toggle { max-width: 100%; }
  .exchange-rate { padding: 12px; font-size: 0.85rem; gap: 8px; flex-wrap: wrap; justify-content: center; }
  .exchange-result { padding: 16px; }
  .exchange-result .result-row { font-size: 0.85rem; }

  /* Convert */
  .convert-container { max-width: 100%; }
  .convert-visual .convert-coin .coin-circle { width: 50px; height: 50px; font-size: 0.95rem; }
  .convert-visual { gap: 14px; }

  /* Withdraw */
  .withdraw-container { max-width: 100%; }
  .withdraw-info { grid-template-columns: 1fr; gap: 12px; }
  .withdraw-info-card { padding: 14px 16px; }
  .withdraw-info-card .info-value { font-size: 1.05rem; }

  /* Admin */
  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .admin-stat-card { padding: 16px; gap: 12px; }
  .admin-stat-card .stat-icon { width: 42px; height: 42px; font-size: 1.1rem; }
  .admin-stat-card .stat-info .stat-value { font-size: 1.2rem; }
  .admin-controls { padding: 18px 16px; }
  .control-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 0; }
  .control-input { width: 100%; flex-wrap: wrap; }
  .control-input input[type="number"], .control-input input[type="text"] { width: 100%; }
  .range-slider { width: 100%; }
  .admin-charts-row { grid-template-columns: 1fr !important; }

  /* Bonus Grid */
  .bonus-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bonus-card { padding: 16px; }
  .bonus-card .bonus-value { font-size: 1.1rem; }

  /* Modals */
  .modal-overlay { padding: 16px; }
  .modal { padding: 24px 20px; border-radius: var(--radius-lg); }
  .modal-header h3 { font-size: 1.05rem; }
  .modal-footer { flex-direction: column; }
  .modal-footer .btn { width: 100%; }

  /* Toasts */
  .toast-container { top: 70px; right: 12px; left: 12px; }
  .toast { min-width: auto; max-width: 100%; }

  /* Session Warning */
  .session-warning { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 16px; font-size: 0.82rem; }

  /* Back to top */
  .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; font-size: 1rem; }

  /* Glassmorphism hover - disable lift on touch devices */
  .glass-card:hover { transform: none; }

  /* Glass card spacing on mobile */
  .glass-card { padding: 18px 16px; }

  /* Stat-cards on mobile */
  .stats-grid { gap: 12px; }

  /* Form buttons side by side on mobile */
  .form-actions { flex-wrap: wrap; gap: 8px; }
  .form-actions .btn { flex: 1; min-width: 120px; }
}

/* --- Small phones --- */
@media (max-width: 480px) {
  /* Global */
  html { font-size: 14px; }
  .container { padding: 0 14px; }
  .section { padding: 36px 0; }
  .btn-lg { padding: 12px 20px; font-size: 0.95rem; }
  /* Responsive grid utilities */
  .r-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .r-grid-4 { grid-template-columns: 1fr 1fr; }
  .r-grid-3 { grid-template-columns: 1fr; }
  .r-grid-2 { grid-template-columns: 1fr; }
  .commission-grid[style] { grid-template-columns: repeat(2, 1fr) !important; }

  /* Header */
  .header .container { height: 56px; }
  .logo { font-size: 1.25rem; gap: 8px; }
  .logo-icon { width: 46px; height: 46px; border-radius: 10px; }
  .nav-actions .btn-sm { padding: 5px 10px; font-size: 0.78rem; }
  .mobile-nav { top: 56px; padding: 16px; }
  .mobile-nav a { padding: 12px 14px; font-size: 0.95rem; }

  /* Hero */
  .hero { padding: 70px 0 36px; }
  .hero h1 { font-size: 1.55rem; margin-bottom: 14px; }
  .hero p { font-size: 0.9rem; margin-bottom: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; padding-top: 20px; }
  .hero-stat .stat-value { font-size: 1.2rem; }
  .hero-stat .stat-label { font-size: 0.72rem; }

  /* Ticker */
  .price-ticker { padding: 14px; margin-top: -14px; border-radius: var(--radius-md); }
  .ticker-item .ticker-icon { width: 34px; height: 34px; font-size: 0.75rem; }
  .ticker-item .ticker-price { font-size: 1rem; }
  .ticker-item .ticker-change { font-size: 0.72rem; padding: 2px 6px; }

  /* Commission */
  .commission-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .commission-level { padding: 14px 8px; }
  .commission-level .level-num { width: 34px; height: 34px; font-size: 0.95rem; }
  .commission-level .level-percent { font-size: 1.2rem; }
  .commission-level .level-label { font-size: 0.72rem; }

  /* Invest Plan */
  .invest-plan { padding: 20px 14px; }
  .invest-plan h3 { font-size: 1.2rem; }

  /* Section Header */
  .section-header h2 { font-size: 1.35rem; }
  .section-header p { font-size: 0.88rem; }

  /* Dashboard */
  .dashboard { padding-top: 70px; }
  .dash-welcome h1 { font-size: 1.25rem; }
  .dash-grid { grid-template-columns: 1fr; gap: 10px; }
  .wallet-card { padding: 16px 14px; }
  .wallet-card .card-value { font-size: 1.3rem; }
  .quick-actions { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick-action { padding: 12px 6px; }
  .quick-action .qa-icon { width: 36px; height: 36px; font-size: 0.9rem; }
  .quick-action .qa-label { font-size: 0.72rem; }

  /* Auth */
  .auth-card { padding: 24px 16px; }
  .auth-card .auth-header h2 { font-size: 1.2rem; }
  .auth-tab { font-size: 0.82rem; padding: 8px; }
  .otp-inputs { gap: 5px; }
  .otp-input { width: 38px; height: 44px; font-size: 1rem; border-width: 1.5px; }
  .step-line { width: 24px; }
  .step-circle { width: 30px; height: 30px; font-size: 0.75rem; }
  .form-input { padding: 12px 14px; font-size: 0.9rem; }

  /* Exchange */
  .exchange-card { padding: 16px 14px; border-radius: var(--radius-lg); }
  .exchange-toggle-btn { font-size: 0.85rem; padding: 10px; }
  .exchange-rate .rate-value { font-size: 0.95rem; }
  .exchange-result .result-row { padding: 6px 0; font-size: 0.82rem; }

  /* Convert */
  .convert-visual .convert-coin .coin-circle { width: 44px; height: 44px; font-size: 0.85rem; }
  .convert-visual .convert-arrow { font-size: 1.2rem; }
  .convert-visual { gap: 10px; margin: 14px 0; }

  /* Admin */
  .admin-stats { grid-template-columns: 1fr; }
  .admin-stat-card { padding: 14px; }
  .admin-stat-card .stat-icon { width: 38px; height: 38px; font-size: 1rem; }
  .admin-stat-card .stat-info .stat-value { font-size: 1.1rem; }
  .admin-controls { padding: 16px 14px; }
  .control-input .btn-sm { width: 100%; }
  .bonus-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bonus-card .bonus-value { font-size: 1rem; }

  /* Tables */
  .data-table th, .data-table td { padding: 8px 10px; font-size: 0.78rem; }
  .table-header { padding: 12px 14px; }
  .table-filter { padding: 5px 10px; font-size: 0.75rem; }

  /* Modals */
  .modal { padding: 20px 16px; }
  .modal-header h3 { font-size: 1rem; }

  /* Footer */
  .footer-social a { width: 36px; height: 36px; }
  .footer-col h4 { margin-bottom: 14px; font-size: 0.92rem; }
  .footer-col a { font-size: 0.85rem; }
  .footer-newsletter .newsletter-form { flex-direction: column; }
  .footer-bottom { font-size: 0.78rem; }
  .footer-bottom-links { gap: 14px; }

  /* Toast */
  .toast { padding: 12px 14px; gap: 10px; }
  .toast .toast-message { font-size: 0.82rem; }

  /* Referral */
  .referral-link-box { flex-direction: column; }
  .referral-link-box input { font-size: 0.78rem; }

  /* Chart */
  .chart-canvas { height: 180px; }
  .chart-tab { padding: 5px 10px; font-size: 0.75rem; }

  /* Session warning */
  .session-warning { font-size: 0.78rem; padding: 8px 12px; }
  .session-warning .btn-sm { padding: 4px 10px; font-size: 0.75rem; }

  /* Progress bar label */
  .progress-bar { height: 6px; }
}

/* --- Extra small phones (320px) --- */
@media (max-width: 360px) {
  html { font-size: 13px; }
  .container { padding: 0 12px; }
  .hero h1 { font-size: 1.4rem; }
  .logo { font-size: 1.15rem; }
  .logo-icon { width: 40px; height: 40px; }
  .nav-actions .btn-sm { padding: 4px 8px; font-size: 0.72rem; }
  .otp-input { width: 34px; height: 40px; font-size: 0.9rem; }
  .step-line { width: 18px; }
  .commission-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stat .stat-value { font-size: 1rem; }
  .admin-stat-card { flex-direction: column; text-align: center; }
}

/* ===== PAGE TRANSITIONS ===== */
.page-content { animation: fadeIn 0.4s ease; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--deep-purple); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ===== BONUS CARDS ===== */
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.bonus-card {
  background: linear-gradient(135deg, rgba(132,119,209,0.15), rgba(109,89,114,0.2));
  border: 1px solid rgba(132,119,209,0.2); border-radius: var(--radius-lg); padding: 24px; text-align: center;
}
.bonus-card .bonus-icon { font-size: 1.5rem; margin-bottom: 8px; }
.bonus-card .bonus-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.bonus-card .bonus-value { font-size: 1.3rem; font-weight: 700; color: var(--purple); }

/* ===== DASHBOARD SIDEBAR ===== */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 70px;
}
.sidebar {
  width: 260px;
  min-width: 260px;
  background: linear-gradient(180deg, rgba(109,89,114,0.5) 0%, rgba(74,62,79,0.6) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(132,119,209,0.15);
  position: fixed;
  top: 70px;
  left: 0;
  bottom: 0;
  z-index: 900;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), width 0.3s;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(132,119,209,0.3); border-radius: 2px; }
.sidebar-header {
  padding: 20px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.sidebar-user-info .sidebar-user-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}
.sidebar-user-info .sidebar-user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.sidebar-nav {
  flex: 1;
  padding: 8px 0;
}
.sidebar-section {
  padding: 0 10px;
}
.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 16px 12px 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  margin-bottom: 2px;
  position: relative;
  text-decoration: none;
}
.sidebar-link:hover {
  color: var(--cyan);
  background: rgba(142,249,243,0.08);
}
.sidebar-link.active {
  color: var(--cyan);
  background: rgba(142,249,243,0.12);
  font-weight: 600;
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--cyan);
  border-radius: 0 3px 3px 0;
}
.sidebar-link .sidebar-icon {
  width: 20px;
  text-align: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.sidebar-link .sidebar-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(94,252,141,0.15);
  color: var(--green);
}
.sidebar-link .sidebar-badge.warn {
  background: rgba(255,193,7,0.15);
  color: #ffc107;
}
.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 8px 16px;
}
.sidebar-footer {
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #ff4757;
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.sidebar-logout:hover {
  background: rgba(255,71,87,0.1);
}
.sidebar-version {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 8px 0 0;
  opacity: 0.6;
}
.sidebar-admin-section .sidebar-link .sidebar-icon {
  color: var(--purple);
}

/* Dashboard Main Content */
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  min-height: calc(100vh - 70px);
  padding: 32px 28px 60px;
  max-width: calc(100% - 260px);
}
.dashboard-main .container {
  max-width: 1100px;
  padding: 0;
}

/* Sidebar with dashboard-layout overrides */
.dashboard-layout .dashboard {
  padding-top: 0;
  padding-bottom: 0;
}

/* Mobile sidebar toggle button - in header */
.sidebar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(132,119,209,0.3);
  font-size: 1rem;
  transition: var(--transition);
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  flex-shrink: 0;
}
.sidebar-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(132,119,209,0.5);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 899;
  opacity: 0;
  transition: opacity 0.3s;
}
.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

/* === Sidebar Responsive === */
@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
    min-width: 240px;
  }
  .dashboard-main {
    margin-left: 240px;
    max-width: calc(100% - 240px);
    padding: 28px 20px 50px;
  }
}

@media (max-width: 768px) {
  .dashboard-layout {
    padding-top: 60px;
  }
  .sidebar {
    top: 60px;
    width: 270px;
    min-width: 270px;
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    background: rgba(26,18,37,0.98);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .dashboard-main {
    margin-left: 0;
    max-width: 100%;
    padding: 20px 16px 50px;
  }
  .sidebar-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .dashboard-layout {
    padding-top: 56px;
  }
  .sidebar {
    top: 56px;
    width: 260px;
  }
  .dashboard-main {
    padding: 16px 14px 40px;
  }
}

/* ===== PAGE BANNER ===== */
.page-banner {
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(94,252,141,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(132,119,209,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-banner-content {
  position: relative; z-index: 2;
  max-width: 650px;
}
.page-banner-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 16px 0;
  line-height: 1.15;
}
.page-banner-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
}

/* ===== CRYPTO TICKER ===== */
.crypto-ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.crypto-ticker-card {
  background: linear-gradient(135deg, rgba(109,89,114,0.25), rgba(132,119,209,0.08));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.crypto-ticker-card:hover {
  border-color: rgba(142,249,243,0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.ticker-coin-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ticker-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.ticker-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.ticker-symbol {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.ticker-price-info {
  text-align: right;
}
.ticker-price {
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  transition: color 0.3s;
}
.ticker-price.ticker-flash {
  animation: tickerFlash 0.6s ease;
}
@keyframes tickerFlash {
  0% { opacity: 1; }
  30% { opacity: 0.5; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
.ticker-change {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 4px;
}
.ticker-change.up {
  color: var(--green);
  background: rgba(94,252,141,0.1);
}
.ticker-change.down {
  color: #ff4757;
  background: rgba(255,71,87,0.1);
}
.ticker-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
}
.dot-pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
  display: inline-block;
}

/* ===== RESPONSIVE - PAGE BANNER ===== */
@media (max-width: 768px) {
  .page-banner { padding: 90px 0 40px; }
  .page-banner-content h1 { font-size: 1.8rem; }
  .page-banner-content p { font-size: 0.95rem; }
  .crypto-ticker-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
  .crypto-ticker-card { padding: 12px; }
  .ticker-icon { width: 34px; height: 34px; font-size: 0.95rem; }
  .ticker-name { font-size: 0.82rem; }
  .ticker-price { font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .page-banner { padding: 80px 0 32px; }
  .page-banner-content h1 { font-size: 1.5rem; }
  .crypto-ticker-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .crypto-ticker-card { flex-direction: column; text-align: center; gap: 8px; }
  .ticker-coin-info { justify-content: center; }
  .ticker-price-info { text-align: center; }
}
