/* NEXUS v3 - Trust Ecosystem Design System */
:root {
  --trust-green: #00c853;
  --trust-yellow: #ffc107;
  --trust-red: #ff5252;
  --trust-blue: #2196f3;
  --primary: #00d4ff;
  --primary-dark: #00a8cc;
  --secondary: #7c4dff;
  --accent: #ff6b35;
  --success: #00e676;
  --warning: #ffab00;
  --danger: #ff1744;
  --bg-dark: #0a0e1a;
  --bg-card: rgba(15, 20, 35, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --text: #f0f4ff;
  --text-muted: #8892b0;
  --border: rgba(255, 255, 255, 0.08);
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c4dff 100%);
  --gradient-trust: linear-gradient(135deg, #00c853 0%, #00e676 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
  --nav-height: 70px;
  --container-width: 1400px;
  --font-main: 'Inter', -apple-system, sans-serif;
  --font-display: 'Space Grotesk', var(--font-main);
}
[dir="rtl"] { direction: rtl; text-align: right; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background: var(--bg-dark); color: var(--text); line-height: 1.7; overflow-x: hidden; }
.bg-cosmos { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at 20% 20%, rgba(124, 77, 255, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 50%), linear-gradient(180deg, #0a0e1a 0%, #0d1225 100%); z-index: -2; }
.stars { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent), radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.6), transparent), radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.7), transparent); background-size: 200px 200px; animation: starFloat 100s linear infinite; z-index: -1; opacity: 0.6; }
@keyframes starFloat { from { transform: translateY(0); } to { transform: translateY(-200px); } }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
a { color: var(--primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--text); }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: rgba(10, 14, 26, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: 1000; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.nav-logo { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; list-style: none; gap: 8px; align-items: center; }
.nav-links a { padding: 8px 16px; border-radius: 8px; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-glass); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }
.lang-switch { position: relative; }
.lang-btn { background: var(--bg-glass); border: 1px solid var(--border); color: var(--text); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; }
.lang-dropdown { position: absolute; top: 100%; right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 8px; min-width: 150px; display: none; box-shadow: var(--shadow-md); z-index: 100; }
.lang-switch:hover .lang-dropdown { display: block; }
.lang-dropdown a { display: block; padding: 8px 12px; color: var(--text-muted); border-radius: 6px; font-size: 0.9rem; }
.lang-dropdown a:hover { background: var(--bg-glass); color: var(--text); }
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: calc(var(--nav-height) + 60px) 20px 80px; }
.hero-mega { min-height: 100vh; background: radial-gradient(ellipse at center top, rgba(0, 212, 255, 0.1) 0%, transparent 60%); }
.hero-logo { font-family: var(--font-display); font-size: clamp(3rem, 10vw, 6rem); font-weight: 900; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 20px; letter-spacing: -2px; }
.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin-bottom: 40px; }
.hero-badge { display: inline-block; background: var(--gradient-primary); color: #000; padding: 8px 20px; border-radius: 30px; font-weight: 600; font-size: 0.9rem; margin-bottom: 20px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background: var(--gradient-primary); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); color: #000; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #000; }
.btn-trust { background: var(--gradient-trust); color: #000; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 60px 0; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 30px 20px; text-align: center; }
.stat-value { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge { display: inline-block; background: rgba(0, 212, 255, 0.1); color: var(--primary); padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; letter-spacing: 1px; }
.section-title { display: flex; align-items: center; justify-content: center; gap: 12px; }
.section-title span { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-desc { color: var(--text-muted); max-width: 600px; margin: 20px auto 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 30px; transition: all 0.4s ease; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-glow); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.card-title { font-size: 1.4rem; font-weight: 700; }
.card-badge { background: var(--gradient-primary); color: #000; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.card-badge-trust { background: var(--gradient-trust); }
.card-badge-warning { background: var(--warning); }
.card-badge-danger { background: var(--danger); color: #fff; }
.card-desc { color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.card-features { list-style: none; margin-bottom: 24px; }
.card-features li { padding: 8px 0; padding-left: 28px; position: relative; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.card-features li:last-child { border-bottom: none; }
.card-features li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: bold; }
.card-featured { border-color: var(--primary); background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(124, 77, 255, 0.05) 100%); }
.card-featured::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-primary); }
.card-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.spec-item { background: var(--bg-glass); padding: 12px; border-radius: 10px; }
.spec-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.spec-value { font-weight: 600; color: var(--text); }
.nexus-score { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-glass); border-radius: 12px; margin-bottom: 20px; }
.nexus-score-value { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: #000; }
.nexus-score-high { background: var(--gradient-trust); }
.nexus-score-mid { background: var(--warning); }
.nexus-score-low { background: var(--danger); }
.nexus-score-info { flex: 1; }
.nexus-score-label { font-size: 0.85rem; color: var(--text-muted); }
.nexus-score-text { font-weight: 600; }
.regulation-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.reg-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: rgba(0, 200, 83, 0.1); border: 1px solid var(--trust-green); border-radius: 6px; font-size: 0.75rem; color: var(--trust-green); font-weight: 600; }
.reg-badge-warning { background: rgba(255, 193, 7, 0.1); border-color: var(--warning); color: var(--warning); }
.reg-badge-danger { background: rgba(255, 82, 82, 0.1); border-color: var(--danger); color: var(--danger); }
.table-wrapper { overflow-x: auto; margin: 30px 0; border-radius: 16px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--bg-card); }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: rgba(0, 212, 255, 0.05); font-weight: 600; color: var(--text); position: sticky; top: 0; }
tr:hover { background: var(--bg-glass); }
td:first-child { font-weight: 600; }
.conclusion-box { background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 77, 255, 0.05) 100%); border: 2px solid var(--primary); border-radius: 20px; padding: 30px; margin: 40px 0; }
.conclusion-box h2 { font-size: 1.3rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.conclusion-item p { color: var(--text-muted); line-height: 1.8; }
.conclusion-item strong { color: var(--text); }
.definition-box { background: var(--bg-card); border-left: 4px solid var(--primary); border-radius: 0 16px 16px 0; padding: 30px; margin: 40px 0; }
.definition-box h2 { font-size: 1.2rem; color: var(--primary); margin-bottom: 12px; }
.definition-box p { color: var(--text-muted); }
.warning-box { background: rgba(255, 82, 82, 0.1); border: 1px solid var(--danger); border-radius: 16px; padding: 24px; margin: 30px 0; }
.warning-box h3 { color: var(--danger); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.warning-box p { color: var(--text-muted); }
.scam-alert { background: linear-gradient(135deg, rgba(255, 23, 68, 0.15) 0%, rgba(255, 82, 82, 0.1) 100%); border: 2px solid var(--danger); border-radius: 20px; padding: 30px; margin: 40px 0; }
.scam-alert h2 { color: var(--danger); display: flex; align-items: center; gap: 12px; }
.expert-card { display: flex; gap: 20px; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.expert-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; }
.expert-info h4 { margin-bottom: 4px; }
.expert-title { color: var(--primary); font-size: 0.9rem; margin-bottom: 8px; }
.expert-bio { color: var(--text-muted); font-size: 0.9rem; }
.expert-credentials { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.credential { background: var(--bg-glass); border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; color: var(--text-muted); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-question { padding: 20px 24px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: "+"; font-size: 1.5rem; color: var(--primary); transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 20px; color: var(--text-muted); display: none; }
.faq-item.active .faq-answer { display: block; }
.cta-section { text-align: center; padding: 80px 40px; margin: 60px 0; background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 77, 255, 0.08) 100%); border-radius: 30px; border: 1px solid var(--border); }
.tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 30px; }
.tool-input { width: 100%; padding: 14px 18px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 1rem; margin-bottom: 16px; }
.tool-input:focus { outline: none; border-color: var(--primary); }
.tool-select { width: 100%; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 1rem; margin-bottom: 16px; cursor: pointer; }
.tool-result { background: var(--bg-glass); border-radius: 12px; padding: 20px; margin-top: 20px; }
.tool-result-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--primary); }
.academy-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.academy-nav a { padding: 12px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 30px; color: var(--text-muted); font-weight: 500; }
.academy-nav a:hover, .academy-nav a.active { background: var(--gradient-primary); color: #000; border-color: transparent; }
.progress-bar { width: 100%; height: 8px; background: var(--bg-glass); border-radius: 4px; overflow: hidden; margin: 20px 0; }
.progress-fill { height: 100%; background: var(--gradient-primary); border-radius: 4px; transition: width 0.5s ease; }
.quiz-container { max-width: 700px; margin: 0 auto; }
.quiz-progress { margin-bottom: 30px; }
.quiz-question { font-size: 1.3rem; margin-bottom: 30px; text-align: center; }
.quiz-options { display: grid; gap: 16px; }
.quiz-option { padding: 20px 24px; background: var(--bg-card); border: 2px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.3s; text-align: left; }
.quiz-option:hover { border-color: var(--primary); transform: translateX(5px); }
.quiz-option.selected { border-color: var(--primary); background: rgba(0, 212, 255, 0.1); }
.quiz-result { text-align: center; padding: 40px; }
.quiz-result h3 { font-size: 1.5rem; margin-bottom: 20px; }
.persona-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.persona-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-align: center; cursor: pointer; transition: all 0.3s; }
.persona-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.persona-icon { font-size: 3rem; margin-bottom: 16px; }
.persona-name { font-weight: 600; margin-bottom: 8px; }
.persona-desc { font-size: 0.85rem; color: var(--text-muted); }
.persona-tags { display: flex; gap: 6px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.persona-tag { background: var(--bg-glass); padding: 4px 10px; border-radius: 12px; font-size: 0.7rem; color: var(--text-muted); }
footer { background: rgba(5, 8, 15, 0.95); border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { margin-bottom: 20px; color: var(--text); }
.footer-col a { display: block; color: var(--text-muted); padding: 6px 0; font-size: 0.9rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; }
.disclaimer { background: var(--bg-glass); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin: 40px 0; color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding-top: calc(var(--nav-height) + 40px); }
  .hero-logo { font-size: 3rem; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn-lg { width: 100%; }
  .expert-card { flex-direction: column; text-align: center; }
  .expert-avatar { margin: 0 auto; }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s ease forwards; }

/* Share Buttons */
.share-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0; justify-content: center; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.3s; color: #fff; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0,0,0,0.3); color: #fff; }
.share-btn-x { background: #000; }
.share-btn-facebook { background: #1877f2; }
.share-btn-line { background: #00c300; }
.share-btn-telegram { background: #0088cc; }
.share-btn-copy { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }

/* Feedback Widget */
.feedback-widget { position: fixed; bottom: 20px; right: 20px; z-index: 999; }
.feedback-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--gradient-primary); border: none; color: #000; font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-md); transition: all 0.3s; }
.feedback-btn:hover { transform: scale(1.1); }
.feedback-panel { position: absolute; bottom: 70px; right: 0; width: 320px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: none; box-shadow: var(--shadow-md); }
.feedback-panel.active { display: block; }
.feedback-panel h4 { margin-bottom: 16px; }
.feedback-panel textarea { width: 100%; height: 100px; padding: 12px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 8px; color: var(--text); resize: none; margin-bottom: 12px; }
.feedback-panel textarea:focus { outline: none; border-color: var(--primary); }
.feedback-stars { display: flex; gap: 8px; margin-bottom: 16px; }
.feedback-star { font-size: 1.5rem; cursor: pointer; opacity: 0.3; transition: opacity 0.2s; }
.feedback-star.active, .feedback-star:hover { opacity: 1; }

/* Floating CTA */
.floating-cta { position: fixed; bottom: 90px; right: 20px; z-index: 998; }
.floating-cta a { display: flex; align-items: center; gap: 8px; padding: 14px 24px; background: var(--gradient-primary); color: #000; border-radius: 30px; font-weight: 600; box-shadow: var(--shadow-glow); text-decoration: none; transition: all 0.3s; }
.floating-cta a:hover { transform: translateY(-3px); }

/* OG Image styling */
.og-hero-image { width: 100%; max-width: 800px; border-radius: 20px; margin: 30px auto; display: block; box-shadow: var(--shadow-lg); }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.testimonial-text { color: var(--text-muted); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.testimonial-info { flex: 1; }
.testimonial-name { font-weight: 600; }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

/* Live Counter Animation */
.live-counter { font-family: var(--font-display); font-size: 2rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Comparison highlight */
.highlight-row { background: rgba(0, 212, 255, 0.1) !important; }
.highlight-cell { color: var(--primary); font-weight: 700; }

/* Breadcrumb */
.breadcrumb { padding: 12px 0; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb .bc-link { color: var(--primary); text-decoration: none; }
.breadcrumb .bc-link:hover { text-decoration: underline; }
.breadcrumb .bc-sep { margin: 0 8px; opacity: 0.5; }
.breadcrumb .bc-current { color: var(--text); }

/* Table of Contents */
.toc-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin: 30px 0; }
.toc-header { font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; color: var(--primary); }
.toc-list { margin: 0; padding-left: 24px; }
.toc-list li { margin: 8px 0; }
.toc-list a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.toc-list a:hover { color: var(--primary); }

/* Enhanced Conclusion Box */
.conclusion-box { background: linear-gradient(135deg, rgba(0,212,255,0.1) 0%, rgba(0,255,136,0.1) 100%); border: 2px solid var(--primary); border-radius: 20px; padding: 30px; margin: 40px 0; position: relative; }
.conclusion-badge { position: absolute; top: -14px; left: 24px; background: var(--gradient-primary); color: #000; padding: 6px 16px; border-radius: 20px; font-weight: 700; font-size: 0.85rem; }
.conclusion-box h2 { margin-top: 10px; margin-bottom: 20px; font-size: 1.4rem; }
.conclusion-points { margin: 0 0 20px 0; padding-left: 0; list-style: none; }
.conclusion-points li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid var(--border); }
.conclusion-points li:last-child { border-bottom: none; }
.conclusion-points li::before { content: "✓"; position: absolute; left: 0; color: var(--trust-green); font-weight: 700; }

/* Enhanced Definition Box */
.definition-box { background: var(--bg-card); border-left: 4px solid var(--secondary); border-radius: 0 16px 16px 0; padding: 24px 30px; margin: 30px 0; }
.definition-box h2 { color: var(--secondary); font-size: 1.2rem; margin-bottom: 12px; }
.def-text { line-height: 1.8; margin-bottom: 12px; }
.def-related { font-size: 0.9rem; color: var(--text-muted); }
.def-related a { color: var(--primary); }

/* Update Info */
.update-info { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); margin: 20px 0; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.update-info time { color: var(--text); font-weight: 500; }

/* Author Box (E-E-A-T) */
.author-box { display: flex; gap: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin: 40px 0; }
.author-avatar { width: 80px; height: 80px; background: var(--gradient-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; flex-shrink: 0; }
.author-info { flex: 1; }
.author-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.author-info h4 { margin: 0 0 4px 0; font-size: 1.1rem; }
.author-title { color: var(--primary); font-size: 0.9rem; margin-bottom: 8px; }
.author-bio { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.author-credentials { display: flex; gap: 8px; flex-wrap: wrap; }
.credential { background: rgba(0,212,255,0.1); color: var(--primary); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }

/* Related Articles */
.related-section { margin: 50px 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.related-card { display: flex; flex-direction: column; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-decoration: none; transition: all 0.3s; }
.related-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.related-cat { font-size: 0.75rem; color: var(--primary); text-transform: uppercase; font-weight: 600; }
.related-title { color: var(--text); font-weight: 500; line-height: 1.4; }

/* Enhanced Comparison Table */
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th { background: var(--bg-glass); padding: 16px 12px; text-align: left; font-weight: 600; border-bottom: 2px solid var(--primary); position: sticky; top: 0; z-index: 10; }
.comparison-table td { padding: 16px 12px; border-bottom: 1px solid var(--border); }
.comparison-table tr:hover { background: rgba(0,212,255,0.05); }
.comparison-table tr[data-score="9"], .comparison-table tr[data-score="9.5"], .comparison-table tr[data-score="9.4"], .comparison-table tr[data-score="9.3"], .comparison-table tr[data-score="9.2"] { background: rgba(0,200,83,0.08); }

/* Ranking Badge */
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 700; font-size: 0.9rem; }
.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #000; }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #fff; }
.rank-other { background: var(--bg-glass); color: var(--text-muted); }

/* Source Citation */
.source-citation { font-size: 0.85rem; color: var(--text-muted); margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.source-citation a { color: var(--primary); }

/* Academy Navigation */
.academy-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; padding: 16px; background: var(--bg-card); border-radius: 12px; }
.academy-nav a { padding: 10px 20px; background: var(--bg-glass); border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; transition: all 0.2s; }
.academy-nav a:hover, .academy-nav a.active { background: var(--gradient-primary); color: #000; }

/* Key Points Summary */
.key-points { background: rgba(0,212,255,0.08); border-radius: 16px; padding: 24px; margin: 30px 0; }
.key-points h3 { margin-bottom: 16px; font-size: 1.1rem; }
.key-points ul { margin: 0; padding-left: 20px; }
.key-points li { margin: 10px 0; line-height: 1.6; }

/* Print styles */
@media print { .nav, .feedback-widget, .floating-cta, .share-buttons, .toc-section { display: none !important; } }

/* Accessibility */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* High contrast mode */
@media (prefers-contrast: high) { :root { --border: rgba(255,255,255,0.3); --text-muted: #aab; } }

/* ===== NEW FEATURE STYLES ===== */

/* Toast Notifications */
.toast { position: fixed; top: 20px; right: 20px; padding: 16px 24px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); z-index: 10000; transform: translateX(120%); transition: transform 0.3s ease; font-weight: 500; }
.toast.show { transform: translateX(0); }
.toast-success { border-color: var(--trust-green); background: rgba(0,200,83,0.15); }
.toast-warning { border-color: var(--warning); background: rgba(255,165,0,0.15); }
.toast-info { border-color: var(--primary); background: rgba(0,212,255,0.15); }

/* 1. Dark Mode Toggle */
.theme-toggle { position: fixed; top: 80px; right: 20px; z-index: 999; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg-card); font-size: 1.2rem; cursor: pointer; transition: all 0.3s; }
.theme-toggle:hover { transform: scale(1.1); border-color: var(--primary); }
[data-theme="light"] { --bg-main: #f5f7fa; --bg-card: #ffffff; --bg-glass: rgba(0,0,0,0.05); --text: #1a1a2e; --text-muted: #666; --border: rgba(0,0,0,0.1); }
[data-theme="light"] .bg-cosmos, [data-theme="light"] .stars { opacity: 0.1; }

/* 2. Bookmarks */
.bookmark-btn { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--bg-glass); cursor: pointer; font-size: 1rem; opacity: 0.5; transition: all 0.2s; z-index: 5; }
.bookmark-btn:hover, .bookmark-btn.active { opacity: 1; background: rgba(0,212,255,0.2); }
.bookmark-btn.active { color: var(--primary); }
.bookmarks-panel { position: fixed; top: 130px; right: 20px; z-index: 998; }
.bookmarks-toggle { background: var(--bg-card); border: 1px solid var(--border); border-radius: 30px; padding: 10px 16px; cursor: pointer; font-size: 0.9rem; }
.bookmarks-list { position: absolute; top: 50px; right: 0; width: 250px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; max-height: 300px; overflow-y: auto; display: none; }
.bookmarks-list.active { display: block; }
.bookmark-item { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }

/* 3. Comparison Tool */
.compare-btn { position: absolute; top: 16px; right: 56px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--bg-glass); cursor: pointer; font-size: 1rem; opacity: 0.5; transition: all 0.2s; z-index: 5; }
.compare-btn:hover, .compare-btn.active { opacity: 1; background: rgba(255,165,0,0.2); }
.compare-btn.active { color: var(--warning); }
.compare-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-card); border-top: 1px solid var(--border); padding: 12px 24px; display: flex; align-items: center; justify-content: center; gap: 16px; z-index: 1000; }

/* 4. Price Ticker */
.price-ticker { background: var(--bg-glass); border-bottom: 1px solid var(--border); padding: 8px 0; overflow: hidden; white-space: nowrap; }
.ticker-inner { display: flex; gap: 40px; justify-content: center; animation: ticker 30s linear infinite; }
.ticker-item { display: inline-flex; gap: 8px; font-size: 0.85rem; }
.ticker-symbol { color: var(--text-muted); }
.ticker-price { color: var(--trust-green); font-weight: 600; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 5. Progress Tracker */
.progress-tracker { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; }
.progress-header { font-weight: 600; margin-bottom: 12px; }
.progress-bar-container { height: 8px; background: var(--bg-glass); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.progress-bar-fill { height: 100%; background: var(--gradient-primary); border-radius: 4px; transition: width 0.5s ease; }
.progress-items { display: flex; gap: 16px; font-size: 1.2rem; }
.progress-items span { opacity: 0.3; }
.progress-items span.done { opacity: 1; }

/* 6. Notifications */
.notification-bell { position: fixed; top: 180px; right: 20px; z-index: 998; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg-card); cursor: pointer; font-size: 1.2rem; }
.notif-badge { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.notification-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 10001; }
.notif-content { background: var(--bg-card); border-radius: 16px; padding: 24px; max-width: 400px; width: 90%; }
.notif-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.notif-title { font-weight: 600; margin-bottom: 4px; }
.notif-text { font-size: 0.9rem; color: var(--text-muted); }
.notif-time { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* 7. User Reviews Mini */
.user-reviews-mini { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.reviews-summary { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.review-count { color: var(--text-muted); }
.review-form { width: 100%; }
.review-form textarea { width: 100%; padding: 12px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 8px; color: var(--text); margin-bottom: 8px; min-height: 60px; resize: none; }

/* 8. Gamification */
.gamification-panel { position: fixed; bottom: 20px; left: 20px; z-index: 999; }
.gam-toggle { background: var(--gradient-primary); color: #000; padding: 12px 20px; border-radius: 30px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-glow); }
.gam-details { position: absolute; bottom: 60px; left: 0; width: 280px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: none; }
.gam-details.active { display: block; }
.gam-details h4 { margin-bottom: 16px; }
.gam-progress { height: 8px; background: var(--bg-glass); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.gam-bar { height: 100%; background: var(--gradient-primary); }
.gam-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.gam-badges .badge { background: rgba(0,212,255,0.1); padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; }
.gam-actions { margin-top: 16px; font-size: 0.85rem; }
.gam-actions ul { margin: 8px 0 0 16px; color: var(--text-muted); }

/* 9. Chatbot */
.chatbot { position: fixed; bottom: 20px; right: 90px; z-index: 999; }
.chatbot-toggle { width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--gradient-primary); color: #000; font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-glow); transition: transform 0.3s; }
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-window { position: absolute; bottom: 70px; right: 0; width: 340px; height: 450px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: none; flex-direction: column; }
.chatbot-window.active { display: flex; }
.chatbot-header { background: var(--gradient-primary); color: #000; padding: 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.chatbot-header button { background: none; border: none; font-size: 1.2rem; cursor: pointer; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bot-msg, .user-msg { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; }
.bot-msg { background: var(--bg-glass); border-radius: 16px 16px 16px 4px; align-self: flex-start; }
.user-msg { background: var(--primary); color: #000; border-radius: 16px 16px 4px 16px; align-self: flex-end; }
.chatbot-quick { padding: 8px 16px; display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); }
.chatbot-quick button { padding: 6px 12px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 16px; font-size: 0.8rem; cursor: pointer; color: var(--text); }
.chatbot-quick button:hover { border-color: var(--primary); }
.chatbot-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.chatbot-input input { flex: 1; padding: 10px 16px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 20px; color: var(--text); }
.chatbot-input button { padding: 10px 20px; background: var(--gradient-primary); border: none; border-radius: 20px; color: #000; font-weight: 600; cursor: pointer; }

/* Scam Checker Results */
.scam-safe { padding: 16px; background: rgba(0,200,83,0.15); border: 1px solid var(--trust-green); border-radius: 12px; margin-top: 16px; }
.scam-danger { padding: 16px; background: rgba(255,82,82,0.15); border: 1px solid var(--danger); border-radius: 12px; margin-top: 16px; }
.scam-unknown { padding: 16px; background: rgba(255,165,0,0.15); border: 1px solid var(--warning); border-radius: 12px; margin-top: 16px; }

/* Quiz Styles */
.quiz-progress { font-size: 0.9rem; color: var(--primary); margin-bottom: 8px; }
.quiz-question { font-size: 1.3rem; margin-bottom: 24px; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option { padding: 16px 24px; background: var(--bg-glass); border: 2px solid var(--border); border-radius: 12px; cursor: pointer; text-align: left; font-size: 1rem; color: var(--text); transition: all 0.2s; }
.quiz-option:hover { border-color: var(--primary); background: rgba(0,212,255,0.1); }
.quiz-result { text-align: center; }
.result-badge { display: inline-block; background: var(--gradient-primary); color: #000; padding: 8px 20px; border-radius: 20px; font-weight: 600; margin-bottom: 16px; }
.quiz-result h3 { margin-bottom: 12px; }
.quiz-result p { color: var(--text-muted); margin-bottom: 24px; }

/* Calculator */
.calc-form { display: grid; gap: 16px; max-width: 400px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: 0.9rem; color: var(--text-muted); }
.calc-field input { padding: 12px 16px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 1rem; }
.calc-result { padding: 20px; background: rgba(0,212,255,0.1); border-radius: 12px; margin-top: 16px; }
.calc-result p { margin: 8px 0; }

/* Mobile Responsive for new features */
@media (max-width: 768px) {
  .theme-toggle { top: auto; bottom: 160px; right: 12px; }
  .bookmarks-panel { top: auto; bottom: 210px; right: 12px; }
  .notification-bell { top: auto; bottom: 260px; right: 12px; }
  .chatbot { bottom: 12px; right: 12px; }
  .chatbot-window { width: 300px; height: 400px; right: -70px; }
  .gamification-panel { bottom: 12px; left: 12px; }
  .gam-details { width: 250px; }
  .price-ticker .ticker-inner { justify-content: flex-start; padding-left: 20px; }
  .compare-bar { flex-direction: column; gap: 8px; padding: 8px 16px; }
}

/* ============================================
   9 USER ACTIVATION FEATURES STYLES
   ============================================ */

/* 1. Activity Feed */
#activity-feed { position: fixed; bottom: 100px; left: 20px; z-index: 9999; }
.activity-popup { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); transform: translateX(-120%); transition: transform 0.4s cubic-bezier(0.68,-0.55,0.265,1.55); max-width: 320px; }
.activity-popup.show { transform: translateX(0); }
.activity-icon { font-size: 1.5rem; }
.activity-text { font-size: 0.85rem; color: var(--text); }
.activity-meta { font-size: 0.75rem; color: var(--text-muted); }
.activity-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; }

/* 2. Level Badge */
#level-badge { position: fixed; top: 80px; right: 20px; background: var(--bg-card); border: 2px solid var(--primary); border-radius: 16px; padding: 12px 16px; z-index: 9998; min-width: 150px; }
.level-icon { font-size: 1.5rem; margin-right: 8px; }
.level-name { font-weight: 700; color: var(--text); }
.level-xp { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.level-progress { height: 4px; background: var(--bg-glass); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.level-progress div { height: 100%; background: var(--gradient-primary); transition: width 0.3s; }

/* XP Popup */
.xp-popup { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--gradient-primary); color: #000; padding: 20px 30px; border-radius: 16px; font-size: 1.5rem; font-weight: 700; text-align: center; animation: xpPop 2s ease forwards; z-index: 10000; }
@keyframes xpPop { 0% { opacity: 0; scale: 0.5; } 20% { opacity: 1; scale: 1.1; } 30% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -100%); } }

/* 3. Achievement System */
.achievement-popup { position: fixed; top: 100px; left: 50%; transform: translateX(-50%) translateY(-100px); background: linear-gradient(135deg, #1a1a2e, #16213e); border: 2px solid #FFD700; border-radius: 20px; padding: 20px 30px; display: flex; align-items: center; gap: 16px; z-index: 10001; opacity: 0; transition: all 0.5s cubic-bezier(0.68,-0.55,0.265,1.55); }
.achievement-popup.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.achievement-icon { font-size: 3rem; }
.achievement-title { font-size: 0.8rem; color: #FFD700; text-transform: uppercase; }
.achievement-name { font-size: 1.2rem; font-weight: 700; color: #fff; }
.achievement-desc { font-size: 0.85rem; color: var(--text-muted); }

#achievements-panel { display: flex; flex-wrap: wrap; gap: 8px; }
.achievement-item { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--bg-glass); border-radius: 8px; font-size: 0.85rem; }
.achievement-item.locked { opacity: 0.4; filter: grayscale(1); }
.achievement-item.unlocked { border: 1px solid var(--primary); }

/* 4. Daily Checkin */
.checkin-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 10002; opacity: 0; transition: opacity 0.3s; }
.checkin-modal.show { opacity: 1; }
.checkin-content { background: var(--bg-card); border-radius: 24px; padding: 40px; text-align: center; max-width: 400px; }
.checkin-header { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.checkin-streak { color: var(--primary); font-size: 1.2rem; margin-bottom: 24px; }
.checkin-days { display: flex; gap: 8px; margin-bottom: 24px; justify-content: center; }
.checkin-day { padding: 12px 8px; background: var(--bg-glass); border-radius: 8px; font-size: 0.8rem; min-width: 45px; }
.checkin-day.active { background: var(--gradient-primary); color: #000; }
.checkin-claim { width: 100%; }

/* 5. Compare Tool */
#compare-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-card); border-top: 1px solid var(--border); padding: 16px; display: flex; align-items: center; justify-content: center; gap: 20px; transform: translateY(100%); transition: transform 0.3s; z-index: 9997; }
#compare-bar.active { transform: translateY(0); }
.compare-count { font-weight: 600; }
.compare-count span { color: var(--primary); font-size: 1.2rem; }
[data-compare] { cursor: pointer; }
[data-compare].selected { border-color: var(--secondary) !important; box-shadow: 0 0 0 2px var(--secondary); }
.compare-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 10002; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.compare-modal.show { opacity: 1; pointer-events: auto; }
.compare-content { background: var(--bg-card); border-radius: 24px; padding: 40px; max-width: 90vw; max-height: 80vh; overflow: auto; position: relative; }
.compare-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* 6. Personalized Recommendations */
#personalized-recs { background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(0,255,136,0.1)); border-radius: 20px; padding: 24px; margin: 30px 0; }
.rec-header { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.rec-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.rec-card { background: var(--bg-card); border-radius: 12px; padding: 16px; border: 1px solid var(--border); }

/* 7. Bookmark Button */
[data-bookmark] { cursor: pointer; transition: all 0.2s; }
[data-bookmark]::before { content: "☆"; margin-right: 4px; }
[data-bookmark].bookmarked::before { content: "★"; color: #FFD700; }

/* 8. Price Alert */
.alert-confirm { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: var(--trust-green); color: #000; padding: 12px 24px; border-radius: 8px; font-weight: 600; animation: slideDown 0.3s ease; z-index: 10000; }
@keyframes slideDown { from { transform: translateX(-50%) translateY(-100%); } to { transform: translateX(-50%) translateY(0); } }

#alert-form { display: grid; gap: 12px; max-width: 400px; }
#alert-form select, #alert-form input { padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-glass); color: var(--text); }

/* 9. Community Vote */
[data-votes] { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.vote-up, .vote-down { cursor: pointer; padding: 6px 12px; border-radius: 6px; background: var(--bg-glass); transition: all 0.2s; }
.vote-up:hover { background: rgba(0,200,83,0.2); }
.vote-down:hover { background: rgba(255,107,107,0.2); }
.vote-ratio { font-size: 0.85rem; color: var(--trust-green); font-weight: 600; }

/* Floating CTA */
#floating-cta { position: fixed; bottom: 20px; right: 20px; z-index: 9996; transform: translateY(100px); opacity: 0; transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55); }
#floating-cta.show { transform: translateY(0); opacity: 1; }
.floating-btn { display: inline-block; background: var(--gradient-primary); color: #000; padding: 16px 24px; border-radius: 50px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 40px rgba(0,212,255,0.4); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Feedback Widget */
#feedback-widget { position: fixed; bottom: 20px; left: 20px; z-index: 9996; }
.feedback-toggle { width: 50px; height: 50px; border-radius: 50%; background: var(--gradient-secondary); border: none; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.feedback-panel { position: absolute; bottom: 60px; left: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; width: 280px; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s; }
#feedback-widget.open .feedback-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.feedback-header { font-weight: 700; margin-bottom: 12px; }
.feedback-stars { margin-bottom: 12px; }
.feedback-stars .star { font-size: 1.5rem; color: #555; cursor: pointer; transition: color 0.2s; }
.feedback-stars .star.active, .feedback-stars .star:hover { color: #FFD700; }
.feedback-panel textarea { width: 100%; height: 80px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-glass); color: var(--text); resize: none; margin-bottom: 12px; }
.feedback-submit { width: 100%; }

/* Mobile Responsive */
@media (max-width: 768px) {
  #level-badge { top: auto; bottom: 80px; right: 10px; padding: 8px 12px; min-width: auto; }
  #activity-feed { left: 10px; bottom: 150px; }
  .activity-popup { max-width: 280px; padding: 10px 12px; }
  #floating-cta { right: 10px; bottom: 80px; }
  .floating-btn { padding: 12px 16px; font-size: 0.9rem; }
  #feedback-widget { left: 10px; bottom: 140px; }
  .checkin-content { padding: 24px; margin: 20px; }
  .checkin-days { flex-wrap: wrap; }
}

/* ============================================
   ADVANCED FEATURES - PHASE 2 STYLES
   ============================================ */

/* Language Switcher */
#lang-switcher { position: fixed; top: 20px; right: 80px; z-index: 9999; }
.lang-current { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.lang-dropdown { position: absolute; top: 100%; right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 8px; margin-top: 8px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s; min-width: 150px; }
#lang-switcher.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; transition: background 0.2s; }
.lang-option:hover { background: var(--bg-glass); }
.lang-option.active { background: var(--primary); color: #000; }

/* Price Ticker */
#price-ticker { background: var(--bg-glass); border-bottom: 1px solid var(--border); overflow: hidden; white-space: nowrap; padding: 8px 0; }
.ticker-track { display: inline-block; animation: ticker 30s linear infinite; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 24px; font-size: 0.85rem; }
.ticker-symbol { font-weight: 600; color: var(--text); }
.ticker-price { color: var(--text-muted); }
.ticker-change { font-weight: 600; }
.ticker-change.up { color: var(--trust-green); }
.ticker-change.down { color: var(--warning-red); }

/* Reading Progress */
#reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--bg-glass); z-index: 10000; }
.progress-fill { height: 100%; background: var(--gradient-primary); width: 0; transition: width 0.1s; }

/* Exit Intent Popup */
.exit-popup { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 10003; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.exit-popup.show { opacity: 1; pointer-events: auto; }
.exit-content { background: var(--bg-card); border-radius: 24px; padding: 40px; text-align: center; max-width: 400px; position: relative; }
.exit-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.exit-icon { font-size: 4rem; margin-bottom: 16px; }
.exit-content h2 { margin-bottom: 12px; }
.exit-content p { color: var(--text-muted); margin-bottom: 20px; }
.exit-skip { background: none; border: none; color: var(--text-muted); cursor: pointer; margin-top: 16px; text-decoration: underline; }

/* Scroll to Top */
#scroll-top { position: fixed; bottom: 100px; right: 20px; width: 50px; height: 50px; border-radius: 50%; background: var(--gradient-primary); border: none; color: #000; font-size: 1.5rem; cursor: pointer; z-index: 9995; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
#scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#scroll-top:hover { transform: scale(1.1); }

/* Live Chat */
#live-chat { position: fixed; bottom: 20px; right: 80px; z-index: 9997; }
.chat-toggle { background: var(--gradient-secondary); border: none; padding: 12px 20px; border-radius: 50px; color: #000; font-weight: 600; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.chat-window { position: absolute; bottom: 60px; right: 0; width: 320px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s; }
#live-chat.open .chat-window { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-header { background: var(--gradient-primary); color: #000; padding: 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.chat-minimize { background: none; border: none; color: #000; font-size: 1.2rem; cursor: pointer; }
.chat-messages { height: 250px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { padding: 10px 14px; border-radius: 12px; max-width: 85%; font-size: 0.9rem; }
.chat-msg.bot { background: var(--bg-glass); align-self: flex-start; }
.chat-msg.user { background: var(--primary); color: #000; align-self: flex-end; }
.chat-input { display: flex; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; padding: 12px 16px; background: transparent; border: none; color: var(--text); }
.chat-input button { background: var(--primary); border: none; padding: 12px 16px; color: #000; font-weight: 600; cursor: pointer; }

/* Service Status */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.status-online { background: var(--trust-green); box-shadow: 0 0 8px var(--trust-green); }
.status-maintenance { background: var(--warning-yellow); }
.status-offline { background: var(--warning-red); }
.status-text { font-size: 0.85rem; color: var(--text-muted); }
.status-latency { font-size: 0.75rem; color: var(--text-muted); margin-left: 8px; }

/* Countdown Timer */
[data-countdown] { display: flex; gap: 16px; justify-content: center; margin: 20px 0; }
.cd-item { display: flex; flex-direction: column; align-items: center; background: var(--bg-glass); padding: 16px 20px; border-radius: 12px; }
.cd-num { font-size: 2rem; font-weight: 700; color: var(--primary); }
.cd-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* Table of Contents (Auto) */
.toc-list { counter-reset: toc; }
.toc-list li { counter-increment: toc; }
.toc-list li::before { content: counter(toc) ". "; color: var(--primary); font-weight: 600; }
.toc-list li.toc-sub { margin-left: 20px; }
.toc-list li.toc-sub::before { content: "- "; }

/* Mobile Responsive for New Features */
@media (max-width: 768px) {
  #lang-switcher { top: auto; bottom: 20px; right: 10px; }
  #price-ticker { font-size: 0.75rem; }
  .ticker-item { padding: 0 12px; }
  #live-chat { bottom: 80px; right: 10px; }
  .chat-window { width: 280px; }
  [data-countdown] { gap: 8px; }
  .cd-item { padding: 12px 14px; }
  .cd-num { font-size: 1.5rem; }
}

/* RTL Support for Arabic */
[dir="rtl"] #lang-switcher { left: 80px; right: auto; }
[dir="rtl"] .lang-dropdown { left: 0; right: auto; }
[dir="rtl"] #live-chat { left: 80px; right: auto; }
[dir="rtl"] .chat-window { left: 0; right: auto; }
[dir="rtl"] #scroll-top { left: 20px; right: auto; }
[dir="rtl"] #feedback-widget { left: auto; right: 10px; }
[dir="rtl"] #floating-cta { left: 20px; right: auto; }

/* ============================================
   PHASE 3 - NEW USER ACTIVATION FEATURES
   ============================================ */

/* 19. Trading Simulator */
#trading-sim { position: fixed; bottom: 160px; right: 20px; z-index: 9996; }
.sim-toggle { background: linear-gradient(135deg, #4ecdc4, #44a08d); border: none; padding: 12px 20px; border-radius: 50px; color: #fff; font-weight: 600; cursor: pointer; box-shadow: 0 4px 20px rgba(78, 205, 196, 0.4); }
.sim-panel { position: absolute; bottom: 60px; right: 0; width: 320px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s; }
#trading-sim.open .sim-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.sim-header { background: linear-gradient(135deg, #4ecdc4, #44a08d); color: #fff; padding: 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.sim-close { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }
.sim-balance { padding: 20px; text-align: center; border-bottom: 1px solid var(--border); }
.sim-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.sim-amount { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.sim-trade { padding: 16px; }
.sim-pair, .sim-amount-input { width: 100%; padding: 10px; margin-bottom: 10px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.sim-buttons { display: flex; gap: 10px; }
.sim-buy, .sim-sell { flex: 1; padding: 12px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.sim-buy { background: var(--trust-green); color: #fff; }
.sim-sell { background: var(--warning-red); color: #fff; }
.sim-positions { padding: 16px; border-top: 1px solid var(--border); }
.sim-positions h4 { margin-bottom: 10px; font-size: 0.9rem; }
.sim-pos-list { max-height: 120px; overflow-y: auto; }
.sim-pos-item { display: flex; justify-content: space-between; padding: 8px; background: var(--bg-glass); border-radius: 6px; margin-bottom: 6px; font-size: 0.85rem; }
.sim-empty { color: var(--text-muted); font-size: 0.85rem; text-align: center; }
.sim-pnl { padding: 16px; border-top: 1px solid var(--border); text-align: center; font-weight: 600; }
.sim-pnl-value.profit { color: var(--trust-green); }
.sim-pnl-value.loss { color: var(--warning-red); }

/* 20. Referral System */
.referral-box { background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 107, 0.1)); border: 1px solid rgba(255, 215, 0, 0.3); border-radius: 16px; padding: 24px; margin: 30px 0; text-align: center; }
.referral-box h3 { margin-bottom: 8px; }
.referral-box p { color: var(--text-muted); margin-bottom: 16px; }
.ref-code-box { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.ref-code { background: var(--bg-glass); padding: 12px 24px; border-radius: 8px; font-family: monospace; font-size: 1.2rem; font-weight: 700; letter-spacing: 2px; }
.ref-copy { background: var(--primary); border: none; padding: 12px 16px; border-radius: 8px; color: #000; font-weight: 600; cursor: pointer; }
.ref-link { display: flex; gap: 10px; max-width: 400px; margin: 0 auto 16px; }
.ref-link input { flex: 1; padding: 10px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.85rem; }
.ref-link-copy { background: var(--bg-glass); border: 1px solid var(--border); padding: 10px 16px; border-radius: 8px; color: var(--text); cursor: pointer; }
.ref-count { color: var(--text-muted); font-size: 0.9rem; }

/* 21. Notification Center */
#notification-center { position: fixed; top: 20px; left: 20px; z-index: 9999; }
.notif-toggle { background: var(--bg-card); border: 1px solid var(--border); padding: 10px 14px; border-radius: 50px; color: var(--text); cursor: pointer; position: relative; }
.notif-badge { position: absolute; top: -4px; right: -4px; background: var(--warning-red); color: #fff; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.notif-panel { position: absolute; top: 50px; left: 0; width: 320px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s; max-height: 400px; }
#notification-center.open .notif-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.notif-header { padding: 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.notif-clear { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 0.85rem; }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--border); }
.notif-item.unread { background: rgba(79, 172, 254, 0.05); }
.notif-icon { font-size: 1.5rem; }
.notif-content { flex: 1; }
.notif-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.notif-message { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.notif-time { font-size: 0.75rem; color: var(--text-muted); }
.notif-empty { padding: 40px; text-align: center; color: var(--text-muted); }
.notif-toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-100%); background: var(--bg-card); border: 1px solid var(--primary); padding: 12px 24px; border-radius: 50px; opacity: 0; transition: all 0.3s; z-index: 10004; }
.notif-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* 22. Social Proof Counter */
.social-proof { display: flex; justify-content: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.sp-item { text-align: center; }
.sp-num { display: block; font-size: 2rem; font-weight: 700; color: var(--primary); }
.sp-label { font-size: 0.85rem; color: var(--text-muted); }

/* 23. Service Filter */
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 16px; background: var(--bg-glass); border-radius: 12px; margin-bottom: 20px; }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-size: 0.9rem; color: var(--text-muted); }
.filter-group select { padding: 8px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); }

/* 24. User Dashboard Modal */
.dashboard-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 10003; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.dashboard-modal.show { opacity: 1; pointer-events: auto; }
.dashboard-content { background: var(--bg-card); border-radius: 24px; padding: 32px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; position: relative; }
.dashboard-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.dash-stat { text-align: center; padding: 16px; background: var(--bg-glass); border-radius: 12px; }
.dash-stat-num { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.dash-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.dashboard-section { margin-top: 20px; }
.dashboard-section h3 { font-size: 1rem; margin-bottom: 12px; }
.dash-bookmarks, .dash-achievements { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-bookmark, .dash-achievement { background: var(--bg-glass); padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; }
.dash-profile { background: var(--bg-glass); padding: 12px; border-radius: 8px; }

/* 25. Tutorial */
.tutorial-highlight { position: relative; z-index: 10002; box-shadow: 0 0 0 4px var(--primary), 0 0 20px rgba(79, 172, 254, 0.5); border-radius: 8px; }
.tutorial-tooltip { position: fixed; background: var(--bg-card); border: 2px solid var(--primary); border-radius: 16px; padding: 20px; max-width: 300px; z-index: 10003; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.tutorial-message { margin-bottom: 12px; line-height: 1.6; }
.tutorial-progress { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.tutorial-actions { display: flex; gap: 10px; justify-content: flex-end; }
.tutorial-skip { background: none; border: 1px solid var(--border); padding: 8px 16px; border-radius: 8px; color: var(--text-muted); cursor: pointer; }
.tutorial-next { background: var(--primary); border: none; padding: 8px 16px; border-radius: 8px; color: #000; font-weight: 600; cursor: pointer; }

/* 26. Challenges */
#challenges { position: fixed; bottom: 220px; right: 20px; z-index: 9996; }
.challenges-toggle { background: linear-gradient(135deg, #f093fb, #f5576c); border: none; padding: 12px 20px; border-radius: 50px; color: #fff; font-weight: 600; cursor: pointer; box-shadow: 0 4px 20px rgba(245, 87, 108, 0.4); }
.challenges-panel { position: absolute; bottom: 60px; right: 0; width: 320px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s; }
#challenges.open .challenges-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.challenges-header { background: linear-gradient(135deg, #f093fb, #f5576c); color: #fff; padding: 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.challenges-close { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; }
.challenges-list { max-height: 300px; overflow-y: auto; }
.challenge-item { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-bottom: 1px solid var(--border); }
.challenge-item.done { background: rgba(0, 255, 136, 0.05); }
.challenge-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.challenge-desc { font-size: 0.8rem; color: var(--text-muted); }
.challenge-reward { text-align: right; }
.challenge-xp { font-weight: 600; color: var(--primary); }
.challenge-progress { font-size: 0.75rem; color: var(--text-muted); }

/* 27. Micro-Interactions */
.btn { position: relative; overflow: hidden; }
.btn-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.4); transform: scale(0); animation: ripple 0.6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

/* Mobile Responsive for Phase 3 */
@media (max-width: 768px) {
  #trading-sim, #challenges { bottom: auto; top: 50%; right: 10px; transform: translateY(-50%); }
  .sim-panel, .challenges-panel { bottom: auto; top: 50px; right: 0; }
  #notification-center { top: auto; bottom: 20px; left: 10px; }
  .notif-panel { bottom: 50px; top: auto; }
  .social-proof { gap: 20px; }
  .sp-num { font-size: 1.5rem; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   PHASE 4 - MORE USER ACTIVATION FEATURES
   ============================================ */

/* 28. Risk Calculator */
.risk-calculator { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin: 30px 0; }
.risk-calculator h3 { margin-bottom: 16px; }
.calc-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.calc-row label { font-size: 0.9rem; }
.calc-row input { width: 120px; padding: 8px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 8px; color: var(--text); text-align: right; }
.calc-btn { width: 100%; padding: 12px; background: var(--primary); border: none; border-radius: 8px; color: #000; font-weight: 600; cursor: pointer; margin-top: 12px; }
.calc-result { margin-top: 20px; padding: 16px; background: var(--bg-glass); border-radius: 12px; }
.result-item { display: flex; justify-content: space-between; margin-bottom: 8px; }
.result-item span:last-child { font-weight: 600; color: var(--primary); }

/* 29. Market Sentiment */
.sentiment-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin: 20px 0; }
.sentiment-header { font-weight: 600; margin-bottom: 16px; }
.sentiment-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sent-pair { width: 80px; font-size: 0.85rem; }
.sent-bar { flex: 1; height: 8px; background: var(--warning-red); border-radius: 4px; overflow: hidden; }
.sent-bull { height: 100%; background: var(--trust-green); transition: width 0.5s; }
.sent-text { width: 80px; text-align: right; font-size: 0.8rem; }
.sent-text.bull { color: var(--trust-green); }
.sent-text.bear { color: var(--warning-red); }
.sentiment-update { font-size: 0.75rem; color: var(--text-muted); margin-top: 12px; }

/* 30. Economic Calendar */
.eco-calendar { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin: 30px 0; }
.eco-header { font-weight: 600; margin-bottom: 16px; }
.eco-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.eco-item:last-child { border-bottom: none; }
.eco-time { width: 50px; font-size: 0.85rem; color: var(--text-muted); }
.eco-flag { font-size: 1.2rem; }
.eco-event { flex: 1; font-size: 0.9rem; }
.eco-impact { font-size: 1rem; }
.impact-high { background: rgba(255,107,107,0.1); border-radius: 8px; }

/* 31. Personalization Modal */
.persona-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 10005; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.persona-modal.show { opacity: 1; pointer-events: auto; }
.persona-content { background: var(--bg-card); border-radius: 24px; padding: 32px; max-width: 400px; width: 90%; text-align: center; }
.persona-content h2 { margin-bottom: 8px; }
.persona-content p { color: var(--text-muted); margin-bottom: 24px; }
.persona-questions { text-align: left; }
.persona-q { margin-bottom: 16px; }
.persona-q label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.persona-q select { width: 100%; padding: 10px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.persona-submit { width: 100%; padding: 14px; background: var(--primary); border: none; border-radius: 8px; color: #000; font-weight: 600; cursor: pointer; margin-top: 16px; }
.persona-skip { background: none; border: none; color: var(--text-muted); margin-top: 12px; cursor: pointer; }

/* 32. Quick Compare */
.quick-compare-btn { position: fixed; bottom: 280px; right: 20px; background: linear-gradient(135deg, #667eea, #764ba2); border: none; padding: 12px 20px; border-radius: 50px; color: #fff; font-weight: 600; cursor: pointer; z-index: 9996; box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4); }
.compare-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); display: flex; align-items: center; justify-content: center; z-index: 10005; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.compare-modal.show { opacity: 1; pointer-events: auto; }
.compare-content { background: var(--bg-card); border-radius: 24px; padding: 32px; max-width: 500px; width: 90%; position: relative; }
.compare-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.compare-select { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0; }
.compare-select select { padding: 10px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.compare-run { width: 100%; padding: 12px; background: var(--primary); border: none; border-radius: 8px; color: #000; font-weight: 600; cursor: pointer; }
.compare-result-table { width: 100%; margin-top: 20px; border-collapse: collapse; }
.compare-result-table th, .compare-result-table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: center; }
.compare-result-table .winner { color: var(--trust-green); font-weight: 600; }

/* 33. News Feed */
.news-feed-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin: 30px 0; }
.news-header { font-weight: 600; margin-bottom: 16px; }
.news-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; }
.news-cat { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; text-transform: uppercase; margin-bottom: 6px; }
.cat-crypto { background: rgba(79, 172, 254, 0.2); color: var(--primary); }
.cat-fx { background: rgba(0, 255, 136, 0.2); color: var(--trust-green); }
.cat-promo { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
.news-title { font-weight: 500; margin-bottom: 4px; font-size: 0.95rem; }
.news-meta { font-size: 0.75rem; color: var(--text-muted); }

/* 34. Progress Tracker */
.progress-tracker { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin: 30px 0; }
.progress-header { font-weight: 600; margin-bottom: 12px; }
.progress-bar-container { width: 100%; height: 10px; background: var(--bg-glass); border-radius: 5px; overflow: hidden; margin-bottom: 8px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--trust-green)); transition: width 0.5s; }
.progress-text { text-align: right; font-size: 0.85rem; color: var(--primary); margin-bottom: 16px; }
.progress-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.9rem; }
.progress-item.done { color: var(--trust-green); }

/* 35. Feedback Widget */
.feedback-widget { position: fixed; bottom: 100px; left: 20px; z-index: 9996; }
.feedback-toggle { background: var(--bg-card); border: 1px solid var(--border); width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.feedback-panel { position: absolute; bottom: 60px; left: 0; width: 280px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s; }
.feedback-widget.open .feedback-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.feedback-header { padding: 14px; background: var(--bg-glass); display: flex; justify-content: space-between; align-items: center; }
.feedback-close { background: none; border: none; color: var(--text-muted); cursor: pointer; }
.feedback-body { padding: 16px; }
.feedback-body p { margin-bottom: 12px; }
.feedback-emoji { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; }
.feedback-emoji button { background: var(--bg-glass); border: 2px solid transparent; width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: all 0.2s; }
.feedback-emoji button.selected { border-color: var(--primary); background: rgba(79, 172, 254, 0.2); }
.feedback-text { width: 100%; padding: 10px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 8px; color: var(--text); resize: none; height: 60px; margin-bottom: 12px; }
.feedback-submit { width: 100%; padding: 10px; background: var(--primary); border: none; border-radius: 8px; color: #000; font-weight: 600; cursor: pointer; }

/* 36. Smart Search */
.smart-search { position: relative; margin-left: auto; }
.search-input { padding: 8px 16px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 20px; color: var(--text); width: 200px; transition: width 0.3s; }
.search-input:focus { width: 280px; outline: none; border-color: var(--primary); }
.search-results { position: absolute; top: 100%; right: 0; width: 280px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 8px; }
.search-result-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; transition: background 0.2s; }
.search-result-item:hover { background: var(--bg-glass); }
.search-no-result { padding: 16px; text-align: center; color: var(--text-muted); }

/* Mobile Responsive for Phase 4 */
@media (max-width: 768px) {
  .quick-compare-btn { bottom: auto; top: 50%; right: 10px; }
  .feedback-widget { bottom: 70px; left: 10px; }
  .feedback-panel { width: 260px; }
  .search-input { width: 140px; }
  .search-input:focus { width: 200px; }
  .compare-select { flex-direction: column; }
}

/* ========================================
   DESIGN UPGRADE - PREMIUM FEATURES
   ======================================== */

/* 1. TYPOGRAPHY UPGRADE - Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  /* Enhanced Color Palette */
  --gold-bright: #ffd700;
  --gold-dark: #b8860b;
  --gold-glow: rgba(255, 215, 0, 0.3);
  --space-black: #0a0a0f;
  --space-deep: #050508;
  --nebula-purple: #1a0a2e;
  --star-white: #f0f0ff;
  --accent-cyan: #00d4ff;
  --accent-magenta: #ff00ff;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Noto Sans JP', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-body);
}

h1, h2, h3, .nav-logo, .hero-badge, .btn {
  font-family: var(--font-display);
}

code, .spec-value, .nexus-score-value {
  font-family: var(--font-mono);
}

/* 2. ENHANCED GLASS MORPHISM */
.card {
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 215, 0, 0.02) 100%);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 215, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 3. PREMIUM BUTTON EFFECTS */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-dark) 100%);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 10px 30px rgba(255, 215, 0, 0.4),
    0 0 20px rgba(255, 215, 0, 0.2);
}

/* 4. SCROLL REVEAL ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.card, .conclusion-box, .definition-box, .faq-item {
  animation: fadeInUp 0.6s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

/* 5. ENHANCED HERO SECTION */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  background: linear-gradient(135deg, #fff 0%, var(--gold-bright) 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* 6. NEXUS SCORE GLOW EFFECT */
.nexus-score-value {
  position: relative;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.nexus-score-high::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite;
  z-index: -1;
}

/* 7. ENHANCED NAVIGATION */
.nav {
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.98) 0%, rgba(10, 10, 15, 0.9) 100%);
}

.nav-links a {
  position: relative;
  overflow: hidden;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--accent-cyan));
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* 8. PREMIUM FAQ ACCORDION */
.faq-question {
  position: relative;
  padding-right: 40px;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold-bright);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

/* 9. FLOATING PARTICLES ENHANCEMENT */
.stars::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 10% 20%, rgba(255, 215, 0, 0.4) 0%, transparent 50%),
    radial-gradient(1px 1px at 30% 60%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
    radial-gradient(1px 1px at 70% 30%, rgba(255, 0, 255, 0.2) 0%, transparent 50%),
    radial-gradient(2px 2px at 90% 80%, rgba(255, 215, 0, 0.5) 0%, transparent 50%);
  pointer-events: none;
  animation: float 20s linear infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-10px) translateX(5px); }
  50% { transform: translateY(-5px) translateX(-5px); }
  75% { transform: translateY(-15px) translateX(3px); }
}

/* 10. CONCLUSION/DEFINITION BOX PREMIUM */
.conclusion-box, .definition-box {
  position: relative;
  overflow: hidden;
}

.conclusion-box::before, .definition-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-bright), var(--accent-cyan), var(--accent-magenta));
}

.conclusion-badge {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-dark) 100%);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* 11. SMOOTH SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--space-deep);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dark));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-bright);
}

/* 12. LINK HOVER EFFECTS */
a:not(.btn):not(.nav-logo) {
  position: relative;
  transition: color 0.3s ease;
}

a:not(.btn):not(.nav-logo):hover {
  color: var(--gold-bright);
}

/* 13. CARD RANK BADGES */
.rank-badge {
  position: relative;
  overflow: hidden;
}

.rank-1 {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4a 50%, #ffd700 100%);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.rank-2 {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 50%, #c0c0c0 100%);
}

.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #daa06d 50%, #cd7f32 100%);
}

/* 14. LOADING STATE */
@keyframes skeletonShimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.loading {
  background: linear-gradient(90deg, var(--glass-bg) 0%, rgba(255,255,255,0.05) 50%, var(--glass-bg) 100%);
  background-size: 200px 100%;
  animation: skeletonShimmer 1.5s infinite;
}

/* 15. RESPONSIVE ENHANCEMENTS */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .card {
    margin-bottom: 20px;
  }
  
  .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
  }
}

/* 16. DARK MODE ENHANCEMENTS */
@media (prefers-color-scheme: dark) {
  :root {
    --space-black: #000005;
  }
}

/* 17. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
