/* ============================================
   Trust冷钱包 - 全站共享样式表
   深空蓝 → 极光紫 渐变色系 + 磨砂玻璃效果
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --deep-blue: #0a0e27;
  --space-blue: #0f1638;
  --aurora-purple: #6c3ce0;
  --aurora-light: #a855f7;
  --neon-blue: #3b82f6;
  --neon-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-gold: #f59e0b;
  --danger-red: #ef4444;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --glass-bg: rgba(15, 22, 56, 0.6);
  --glass-border: rgba(108, 60, 224, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  --card-hover: rgba(108, 60, 224, 0.15);
  --gradient-main: linear-gradient(135deg, #0a0e27 0%, #1a1145 50%, #0f1638 100%);
  --gradient-card: linear-gradient(135deg, rgba(108,60,224,0.1), rgba(59,130,246,0.05));
  --gradient-btn: linear-gradient(135deg, #6c3ce0, #3b82f6);
  --gradient-text: linear-gradient(90deg, #a855f7, #3b82f6, #06b6d4);
  --max-width: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  background: var(--gradient-main);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Particle Grid Background ---------- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(108,60,224,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,60,224,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Floating Particles */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--aurora-purple);
  border-radius: 50%;
  opacity: 0.4;
  animation: particleFloat linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-duration: 20s; animation-delay: 2s; width: 3px; height: 3px; background: var(--neon-blue); }
.particle:nth-child(3) { left: 40%; animation-duration: 18s; animation-delay: 4s; }
.particle:nth-child(4) { left: 55%; animation-duration: 22s; animation-delay: 1s; width: 5px; height: 5px; background: var(--neon-cyan); }
.particle:nth-child(5) { left: 70%; animation-duration: 16s; animation-delay: 3s; }
.particle:nth-child(6) { left: 85%; animation-duration: 19s; animation-delay: 5s; width: 3px; height: 3px; background: var(--aurora-light); }
.particle:nth-child(7) { left: 15%; animation-duration: 21s; animation-delay: 6s; }
.particle:nth-child(8) { left: 60%; animation-duration: 17s; animation-delay: 7s; width: 6px; height: 6px; background: var(--neon-blue); opacity: 0.2; }

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--gradient-card);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.glass-card:hover {
  border-color: rgba(108, 60, 224, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glass-shadow);
}

.glass-card:hover::before { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px; height: 40px;
  background: var(--gradient-btn);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-icon::after {
  content: '';
  width: 18px; height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  position: relative;
}

.logo-icon::before {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.logo-text span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--text-primary);
  background: rgba(108, 60, 224, 0.15);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(15, 22, 56, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 6px 16px;
  max-width: 260px;
  width: 100%;
  margin: 12px auto;
}

.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
  padding: 4px 0;
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--aurora-purple);
  font-size: 1rem;
  padding: 4px;
}

.search-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10, 14, 39, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

.search-overlay.active { display: flex; }

.search-overlay .search-text {
  color: var(--aurora-light);
  font-size: 1.1rem;
  animation: searchPulse 1.5s ease-in-out infinite;
}

@keyframes searchPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.search-overlay .close-search {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(108,60,224,0.15) 0%, transparent 70%);
  top: -100px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h2 {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 60, 224, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(108, 60, 224, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: rgba(108, 60, 224, 0.1);
  border-color: var(--aurora-purple);
}

/* ---------- Section ---------- */
.section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-title h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Grid Layouts ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Dashboard ---------- */
.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.dash-item {
  text-align: center;
  padding: 24px 16px;
}

.dash-item .dash-value {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
  font-family: 'Courier New', monospace;
}

.dash-item .dash-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dash-item .dash-change {
  font-size: 0.8rem;
  margin-top: 4px;
}

.dash-change.up { color: var(--accent-green); }
.dash-change.down { color: var(--danger-red); }

/* Price Animation */
@keyframes priceFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.price-animate {
  animation: priceFlicker 2s ease-in-out infinite;
}

/* ---------- News / Article Cards ---------- */
.article-card {
  display: flex;
  flex-direction: column;
}

.article-card .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin: -28px -28px 20px -28px;
  width: calc(100% + 56px);
}

.article-card .card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  background: rgba(108, 60, 224, 0.2);
  color: var(--aurora-light);
  width: fit-content;
}

.article-card .card-tag.security { background: rgba(239, 68, 68, 0.15); color: var(--danger-red); }
.article-card .card-tag.market { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.article-card .card-tag.tech { background: rgba(59, 130, 246, 0.15); color: var(--neon-blue); }
.article-card .card-tag.guide { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); }

.article-card h5 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
  color: var(--text-primary);
}

.article-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.article-card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(108, 60, 224, 0.1);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- Video Card ---------- */
.video-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.video-card .video-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.video-card .video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 200px;
  background: rgba(10, 14, 39, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.video-card:hover .video-overlay { opacity: 1; }
.video-card:hover .video-thumb { transform: scale(1.05); }

.play-btn {
  width: 60px; height: 60px;
  background: var(--gradient-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(108, 60, 224, 0.5);
  transition: var(--transition);
}

.play-btn::after {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.video-card:hover .play-btn { transform: scale(1.1); }

.video-card .video-info {
  padding: 20px;
}

.video-card .video-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.video-card .video-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ---------- Expert Card ---------- */
.expert-card {
  text-align: center;
  padding: 32px 20px;
}

.expert-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.expert-card h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.expert-card .expert-role {
  font-size: 0.82rem;
  color: var(--aurora-light);
  margin-bottom: 12px;
}

.expert-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Review Card ---------- */
.review-card {
  padding: 24px;
}

.review-stars {
  color: var(--accent-gold);
  font-size: 0.9rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-card blockquote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
  border-left: 3px solid var(--aurora-purple);
  padding-left: 16px;
}

.review-card .reviewer {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.review-card .reviewer strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Share Bar ---------- */
.share-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
}

.share-btn:hover {
  background: rgba(108, 60, 224, 0.15);
  color: var(--text-primary);
  border-color: var(--aurora-purple);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover { color: var(--aurora-light); }

.breadcrumb span { margin: 0 8px; }

/* ---------- Step Bar (Guide Page) ---------- */
.step-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.step-btn {
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  transition: var(--transition);
}

.step-btn.active, .step-btn:hover {
  background: var(--gradient-btn);
  color: #fff;
  border-color: transparent;
}

.step-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.step-content.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Security Layer Diagram ---------- */
.security-layers {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.security-layer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  position: relative;
}

.layer-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.layer-icon.l1 { background: linear-gradient(135deg, #6c3ce0, #a855f7); }
.layer-icon.l2 { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.layer-icon.l3 { background: linear-gradient(135deg, #10b981, #059669); }

.layer-content h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.layer-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* SVG Animation for Security Page */
.svg-anim {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: block;
}

.svg-anim .path-animate {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawPath 3s ease forwards infinite;
}

@keyframes drawPath {
  0% { stroke-dashoffset: 300; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -300; }
}

/* ---------- CSS Icons ---------- */
.icon-shield {
  width: 24px; height: 28px;
  position: relative;
  display: inline-block;
}

.icon-shield::before {
  content: '';
  position: absolute;
  width: 24px; height: 28px;
  border: 2px solid currentColor;
  border-radius: 2px 2px 12px 12px;
  clip-path: polygon(50% 0%, 100% 15%, 100% 65%, 50% 100%, 0% 65%, 0% 15%);
}

.icon-lock {
  width: 20px; height: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-lock::before {
  content: '';
  width: 14px; height: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
  position: absolute;
  bottom: 0;
}

.icon-lock::after {
  content: '';
  width: 10px; height: 8px;
  border: 2px solid currentColor;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  position: absolute;
  top: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: rgba(5, 7, 18, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0 20px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo { margin-bottom: 12px; }

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-col h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--aurora-light); }

.footer-bottom {
  border-top: 1px solid rgba(108, 60, 224, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Content Styles ---------- */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--text-primary);
}

.content-block h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

.content-block p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-block ul, .content-block ol {
  margin: 12px 0 20px 24px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

.content-block img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

/* ---------- Forum Card ---------- */
.forum-card {
  padding: 20px 24px;
}

.forum-card .forum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.forum-card .forum-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.forum-card .forum-stats {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.forum-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.forum-card .forum-tags {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.forum-tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  background: rgba(108, 60, 224, 0.15);
  color: var(--aurora-light);
}

/* ---------- Lazy Load ---------- */
img[data-src] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img[data-src].loaded { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dashboard { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 15px; overflow-x: hidden; }

  .header-inner { padding: 10px 16px; }

  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    border-left: 1px solid var(--glass-border);
    transform: translateX(100%);
    visibility: hidden;
  }

  .main-nav.open { transform: translateX(0); visibility: visible; }

  .main-nav a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 8px;
  }

  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 1.8rem; }
  .hero h2 { font-size: 1rem; }

  .section { padding: 40px 0; }
  .section-title h3 { font-size: 1.4rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .glass-card { padding: 20px; }
  .article-card .card-img {
    margin: -20px -20px 16px -20px;
    width: calc(100% + 40px);
    height: 160px;
  }

  .step-bar { gap: 6px; }
  .step-btn { padding: 8px 14px; font-size: 0.8rem; }

  .security-layer { flex-direction: column; text-align: center; }

  .share-bar { gap: 8px; }
  .share-btn { padding: 8px 14px; font-size: 0.8rem; }

  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .container { padding: 0 14px; }
  .hero h1 { font-size: 1.6rem; }
  .dashboard { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dash-item .dash-value { font-size: 1.4rem; }
  .logo-text { font-size: 1rem; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.hidden { display: none; }
