/* 7S DApp · Swedish Hacker · Cyber Tech UI */
:root {
  --se-blue: #006AA7;
  --se-blue-dark: #004B78;
  --se-blue-glow: rgba(0, 163, 255, 0.6);
  --se-yellow: #FECC00;
  --se-yellow-dim: #C9A300;
  --se-yellow-glow: rgba(254, 204, 0, 0.4);
  --bg-primary: #050810;
  --bg-secondary: #0a1018;
  --bg-card: rgba(12, 20, 32, 0.85);
  --bg-card-solid: #0c1420;
  --bg-glass: rgba(10, 16, 24, 0.72);
  --border: rgba(0, 106, 167, 0.35);
  --border-bright: rgba(0, 255, 213, 0.5);
  --text-primary: #e8f4ff;
  --text-secondary: #7a9bb8;
  --text-muted: #4a6580;
  --accent-cyan: #00ffd5;
  --accent-green: #39ff14;
  --accent-red: #ff4757;
  --accent-orange: #ffa502;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --font-display: 'Orbitron', sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --nav-height: 60px;
  --bottom-nav-height: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-cyan: 0 0 20px rgba(0, 255, 213, 0.3), 0 0 40px rgba(0, 106, 167, 0.2);
  --glow-yellow: 0 0 20px rgba(254, 204, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.6;
}
body.loaded .app-wrapper { opacity: 1; transform: none; }

#particleCanvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.7;
}
.scanlines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 1px, transparent 1px, transparent 4px);
}
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.04;
  background-image:
    linear-gradient(rgba(0,106,167,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,106,167,0.5) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  transition: opacity 0.6s, visibility 0.6s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid var(--se-blue);
  box-shadow: var(--glow-cyan), inset 0 0 30px rgba(0,106,167,0.2);
  animation: loaderPulse 1.5s ease-in-out infinite;
  object-fit: cover;
}
.loader-text {
  font-family: var(--font-display); font-size: 1.2rem; color: var(--se-yellow);
  letter-spacing: 0.3em; animation: blink 1s step-end infinite;
}
.loader-bar {
  width: 200px; height: 2px; background: var(--border); border-radius: 1px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--se-blue), var(--accent-cyan));
  animation: loadProgress 1.2s ease-in-out forwards;
}
@keyframes loaderPulse { 0%,100%{box-shadow:var(--glow-cyan)} 50%{box-shadow:var(--glow-yellow)} }
@keyframes blink { 50%{opacity:0.3} }
@keyframes loadProgress { from{width:0} to{width:100%} }

.app-wrapper {
  position: relative; z-index: 2; min-height: 100dvh;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--nav-height);
  background: var(--bg-glass); backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; gap: 12px;
}
.header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--se-yellow), transparent);
  opacity: 0.5;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--se-blue);
  box-shadow: 0 0 12px var(--se-blue-glow);
  object-fit: cover;
}
.logo-text { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.2em; color: var(--se-yellow); }
.logo-sub { font-size: 0.55rem; color: var(--text-muted); letter-spacing: 0.15em; display: block; }

.wallet-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: rgba(0,106,167,0.15); border: 1px solid var(--se-blue);
  border-radius: 20px; color: var(--accent-cyan);
  font-family: var(--font-mono); font-size: 0.7rem; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
  position: relative; overflow: hidden;
}
.wallet-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(0,255,213,0.1), transparent);
  transform: translateX(-100%); transition: transform 0.5s;
}
.wallet-btn:hover::before { transform: translateX(100%); }
.wallet-btn:hover, .wallet-btn.connected {
  box-shadow: var(--glow-cyan); border-color: var(--accent-cyan);
}
.wallet-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.wallet-btn.connected .dot { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(0.85)} }

/* Main */
.main-content {
  flex: 1; padding: 16px;
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 20px);
  max-width: 520px; margin: 0 auto; width: 100%;
}
.section { display: none; animation: sectionIn 0.35s ease; }
.section.active { display: block; }
@keyframes sectionIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }

/* Hero */
.hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 20px; border: 1px solid var(--border);
  box-shadow: var(--glow-cyan);
}
.hero--showcase { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px 24px; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,8,16,0.4) 0%, rgba(5,8,16,0.75) 55%, rgba(5,8,16,0.95) 100%);
}
.hero-bg-blur {
  position: absolute; inset: -20px; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(24px) brightness(0.35) saturate(1.2);
  transform: scale(1.1);
}
.hero-corner { position: absolute; width: 20px; height: 20px; z-index: 4; border-color: var(--accent-cyan); border-style: solid; }
.hero-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.hero-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.hero-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.hero-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }
.hero-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.hero-overlay {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0; width: 100%;
}
.hero-overlay--center { margin-top: 8px; }

/* 3D Metallic Logo */
.logo-3d-showcase { position: relative; z-index: 2; width: 200px; height: 200px; margin-bottom: 8px; }
.logo-3d-orbit {
  position: absolute; inset: -16px; border-radius: 50%;
  border: 1px dashed rgba(0,255,213,0.15);
  animation: orbitSpin 20s linear infinite;
}
.logo-3d-orbit::before {
  content: ''; position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--se-yellow); box-shadow: 0 0 10px var(--se-yellow);
}
.logo-3d-stage { width: 100%; height: 100%; perspective: 900px; perspective-origin: 50% 50%; position: relative; }
.logo-3d-spinner { width: 100%; height: 100%; transform-style: preserve-3d; animation: logoRotate360 6s linear infinite; }
.logo-3d-coin { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; }
.logo-3d-face {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 3px solid rgba(180,200,220,0.5);
  box-shadow: inset 0 2px 8px rgba(255,255,255,0.35), inset 0 -4px 12px rgba(0,0,0,0.5), 0 0 30px rgba(0,163,255,0.35), 0 8px 32px rgba(0,0,0,0.6);
}
.logo-3d-face img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  filter: contrast(1.15) brightness(1.05) saturate(0.85); display: block;
}
.logo-3d-front { transform: translateZ(6px); }
.logo-3d-back  { transform: rotateY(180deg) translateZ(6px); }
.logo-3d-edge {
  position: absolute; inset: 0; border-radius: 50%; transform: translateZ(0);
  background: repeating-conic-gradient(from 0deg, #8a9bb0 0deg 8deg, #c8d4e0 8deg 12deg, #5a6a7a 12deg 20deg, #b0bec8 20deg 24deg);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.6);
}
.logo-metallic-overlay {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 30% 25%, rgba(255,255,255,0.45) 0%, transparent 55%), radial-gradient(ellipse 50% 30% at 75% 80%, rgba(0,106,167,0.25) 0%, transparent 50%), linear-gradient(160deg, rgba(255,255,255,0.12) 0%, transparent 40%, rgba(0,0,0,0.25) 100%);
  mix-blend-mode: overlay;
}
.logo-metallic-shine {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.55) 45%, rgba(255,255,255,0.15) 50%, transparent 65%);
  animation: metalShine 3s ease-in-out infinite;
}
.logo-metallic-shine--delay { animation-delay: 1.5s; }
.logo-3d-ring { position: absolute; border-radius: 50%; pointer-events: none; border: 1px solid rgba(0,163,255,0.3); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.logo-3d-ring--outer { width: 115%; height: 115%; border-color: rgba(254,204,0,0.2); animation: ringPulse 3s ease-in-out infinite; }
.logo-3d-ring--inner { width: 88%; height: 88%; border-style: dashed; animation: ringSpin 12s linear infinite reverse; }
.logo-3d-glow {
  position: absolute; inset: 10%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(0,163,255,0.25) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite; filter: blur(8px);
}
.logo-3d-floor {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  width: 70%; height: 12px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,163,255,0.3) 0%, transparent 70%);
  filter: blur(6px); animation: floorPulse 6s linear infinite;
}
@keyframes logoRotate360 { from{transform:rotateY(0deg)} to{transform:rotateY(360deg)} }
@keyframes metalShine { 0%,100%{opacity:0.3;transform:translateX(-30%) skewX(-10deg)} 50%{opacity:1;transform:translateX(30%) skewX(-10deg)} }
@keyframes ringPulse { 0%,100%{opacity:0.5;transform:translate(-50%,-50%) scale(1)} 50%{opacity:1;transform:translate(-50%,-50%) scale(1.03)} }
@keyframes ringSpin { from{transform:translate(-50%,-50%) rotate(0deg)} to{transform:translate(-50%,-50%) rotate(360deg)} }
@keyframes orbitSpin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes glowPulse { 0%,100%{opacity:0.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.08)} }
@keyframes floorPulse { 0%,100%{opacity:0.4;width:70%} 50%{opacity:0.8;width:55%} }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: rgba(0,106,167,0.3);
  border: 1px solid var(--se-blue); border-radius: 20px;
  font-size: 0.6rem; color: var(--accent-cyan); letter-spacing: 0.1em;
  margin-bottom: 8px; width: fit-content;
  animation: badgeGlow 3s ease-in-out infinite;
}
@keyframes badgeGlow { 0%,100%{box-shadow:none} 50%{box-shadow:0 0 12px rgba(0,255,213,0.3)} }
.hero-title {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--se-yellow);
  letter-spacing: 0.12em; text-shadow: 0 0 30px var(--se-yellow-glow);
}
.hero-desc { font-size: 0.7rem; color: var(--text-secondary); margin-top: 4px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center; }
.hero-tag {
  font-size: 0.55rem; padding: 3px 8px; border-radius: 4px;
  background: rgba(254,204,0,0.08); border: 1px solid rgba(254,204,0,0.25);
  color: var(--se-yellow); letter-spacing: 0.05em;
}

/* Live ticker */
.live-ticker {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 16px;
  background: rgba(0,106,167,0.08); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); flex-shrink: 0; animation: pulse 1.5s infinite; }
.ticker-text { font-size: 0.65rem; color: var(--text-secondary); white-space: nowrap; animation: tickerScroll 20s linear infinite; }
@keyframes tickerScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.stat-card {
  background: var(--bg-card); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; position: relative; overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-bright); transform: translateY(-2px); box-shadow: var(--glow-cyan); }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--se-blue), var(--accent-cyan), var(--se-yellow));
}
.stat-icon { font-size: 1rem; margin-bottom: 4px; opacity: 0.7; }
.stat-label { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.stat-value { font-family: var(--font-display); font-size: 1rem; color: var(--accent-cyan); margin-top: 2px; }
.stat-value.yellow { color: var(--se-yellow); }
.stat-value.green { color: var(--accent-green); }
.stat-value.cyan { color: var(--accent-cyan); }

/* Section title */
.section-title {
  font-family: var(--font-display); font-size: 0.8rem; color: var(--se-yellow);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before { content: '//'; color: var(--se-blue); font-size: 0.9rem; }
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

/* Cards */
.card {
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px; margin-bottom: 12px; position: relative;
  transition: var(--transition);
}
.card::before, .card::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border-color: rgba(0,255,213,0.3); border-style: solid; pointer-events: none;
}
.card::before { top: 6px; left: 6px; border-width: 1px 0 0 1px; }
.card::after { bottom: 6px; right: 6px; border-width: 0 1px 1px 0; }
.card:hover { border-color: rgba(0,255,213,0.4); box-shadow: var(--glow-cyan); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.card-title { font-family: var(--font-display); font-size: 0.85rem; color: var(--text-primary); letter-spacing: 0.05em; }
.card-badge { font-size: 0.58rem; padding: 3px 8px; border-radius: 4px; background: rgba(0,106,167,0.25); color: var(--accent-cyan); border: 1px solid var(--se-blue); }
.card-badge.hot { background: rgba(254,204,0,0.12); color: var(--se-yellow); border-color: var(--se-yellow-dim); animation: badgeGlow 2s infinite; }
.card-badge.closed { background: rgba(255,71,87,0.12); color: var(--accent-red); border-color: var(--accent-red); }
.card-badge.live { background: rgba(57,255,20,0.1); color: var(--accent-green); border-color: var(--accent-green); }

/* Progress */
.progress-wrap { margin: 12px 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.62rem; color: var(--text-muted); margin-bottom: 6px; }
.progress-bar { height: 6px; background: rgba(0,106,167,0.15); border-radius: 3px; overflow: hidden; position: relative; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--se-blue), var(--accent-cyan), var(--se-yellow));
  border-radius: 3px; transition: width 0.8s ease; position: relative;
}
.progress-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer { from{transform:translateX(-100%)} to{transform:translateX(100%)} }

/* Info rows */
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(0,106,167,0.15); font-size: 0.72rem; }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); }
.info-value { color: var(--text-primary); font-weight: 500; }
.info-value.highlight { color: var(--accent-green); }
.info-value.cyan { color: var(--accent-cyan); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 20px; border: none; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); letter-spacing: 0.06em;
  text-transform: uppercase; position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--se-blue), var(--se-blue-dark));
  color: var(--text-primary); border: 1px solid var(--se-blue);
}
.btn-primary:hover:not(:disabled) { box-shadow: var(--glow-cyan); transform: translateY(-2px); }
.btn-accent {
  background: linear-gradient(135deg, var(--se-yellow-dim), var(--se-yellow));
  color: var(--bg-primary); border: 1px solid var(--se-yellow);
}
.btn-accent:hover:not(:disabled) { box-shadow: var(--glow-yellow); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--accent-cyan); border: 1px solid rgba(0,255,213,0.4); }
.btn-outline:hover:not(:disabled) { background: rgba(0,255,213,0.08); box-shadow: var(--glow-cyan); }
.btn-ghost { background: rgba(0,106,167,0.1); color: var(--text-secondary); border: 1px solid var(--border); font-size: 0.65rem; padding: 10px; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; }
.btn-group { display: flex; gap: 8px; margin-top: 12px; }
.btn-group .btn { flex: 1; }
.node-amount-btn.active { background: rgba(254,204,0,0.12); border-color: var(--se-yellow); color: var(--se-yellow); box-shadow: var(--glow-yellow); }

/* Input */
.input-group { margin-bottom: 12px; }
.input-label { display: block; font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; }
.input-field {
  width: 100%; padding: 12px 14px; background: rgba(0,106,167,0.06);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-primary); font-family: var(--font-mono); font-size: 0.82rem;
  transition: var(--transition);
}
.input-field:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(0,255,213,0.1), var(--glow-cyan); }
.input-field::placeholder { color: var(--text-muted); }

/* Package cards */
.package-grid { display: flex; flex-direction: column; gap: 12px; }
.package-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; position: relative; overflow: hidden;
  transition: var(--transition);
}
.package-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--se-blue), var(--accent-cyan));
}
.package-card.featured { border-color: rgba(254,204,0,0.4); }
.package-card.featured::before { background: linear-gradient(90deg, var(--se-yellow-dim), var(--se-yellow), var(--accent-orange)); }
.package-card:hover { transform: translateY(-3px); box-shadow: var(--glow-cyan); }
.package-amount { font-family: var(--font-display); font-size: 2rem; color: var(--se-yellow); line-height: 1; text-shadow: 0 0 20px var(--se-yellow-glow); }
.package-amount span { font-size: 0.85rem; color: var(--text-muted); }
.package-rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.rate-item { text-align: center; padding: 10px 6px; background: rgba(0,106,167,0.08); border: 1px solid rgba(0,106,167,0.2); border-radius: var(--radius); }
.rate-num { font-family: var(--font-display); font-size: 0.95rem; color: var(--accent-green); }
.rate-label { font-size: 0.52rem; color: var(--text-muted); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Flow steps */
.flow-steps { margin: 12px 0; }
.flow-step { display: flex; gap: 12px; position: relative; }
.flow-step:not(:last-child)::after { content:''; position:absolute; left:15px; top:34px; bottom:-4px; width:1px; background:linear-gradient(180deg,var(--se-blue),transparent); }
.flow-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--se-blue), var(--se-blue-dark));
  border: 1px solid var(--accent-cyan); color: var(--text-primary);
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1;
  box-shadow: 0 0 10px rgba(0,106,167,0.4);
}
.flow-content { padding-bottom: 16px; }
.flow-title { font-size: 0.75rem; color: var(--text-primary); font-weight: 600; }
.flow-desc { font-size: 0.62rem; color: var(--text-muted); margin-top: 2px; }

/* Referral */
.ref-levels { display: flex; flex-direction: column; gap: 6px; }
.ref-level {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: rgba(0,106,167,0.06); border-radius: var(--radius);
  border-left: 3px solid var(--se-blue); transition: var(--transition);
}
.ref-level.active { border-left-color: var(--accent-green); background: rgba(57,255,20,0.06); box-shadow: inset 0 0 20px rgba(57,255,20,0.05); }
.ref-level-num { font-family: var(--font-display); font-size: 0.7rem; color: var(--se-yellow); min-width: 28px; }
.ref-level-info { flex: 1; }
.ref-level-name { font-size: 0.72rem; }
.ref-level-req { font-size: 0.58rem; color: var(--text-muted); }
.ref-level-rate { font-family: var(--font-display); font-size: 0.9rem; color: var(--accent-cyan); }

/* Ranking */
.rank-table { width: 100%; border-collapse: collapse; font-size: 0.68rem; }
.rank-table th { text-align: left; padding: 10px 8px; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border); background: rgba(0,106,167,0.06); }
.rank-table td { padding: 10px 8px; border-bottom: 1px solid rgba(0,106,167,0.1); }
.rank-table tr:hover td { background: rgba(0,106,167,0.05); }
.rank-num { font-family: var(--font-display); color: var(--se-yellow); font-weight: 700; }
.rank-num.top3 { color: var(--accent-orange); text-shadow: 0 0 10px rgba(255,165,2,0.5); }

/* Community */
.community-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.community-item {
  padding: 12px 8px; background: rgba(0,106,167,0.06);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center; font-size: 0.65rem; transition: var(--transition); cursor: default;
}
.community-item:hover { border-color: var(--accent-cyan); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,106,167,0.2); }
.community-flag { font-size: 1.1rem; margin-bottom: 4px; }
.community-name { color: var(--text-primary); font-size: 0.68rem; }
.community-pool { font-size: 0.55rem; color: var(--accent-cyan); margin-top: 3px; }

/* Distribution */
.distribution-bar { display: flex; height: 28px; border-radius: var(--radius); overflow: hidden; margin: 12px 0; border: 1px solid var(--border); }
.dist-segment { display: flex; align-items: center; justify-content: center; font-size: 0.55rem; font-weight: 700; color: var(--bg-primary); }
.dist-tech { background: var(--accent-orange); width: 1%; min-width: 28px; }
.dist-node { background: var(--se-blue); width: 2%; min-width: 32px; }
.dist-pool { background: linear-gradient(90deg, var(--accent-green), #2ecc71); flex: 1; }

/* Gallery / Protocol images */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
.gallery-item {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  position: relative; transition: var(--transition);
  background: var(--bg-card-solid);
}
.gallery-item:hover { border-color: var(--accent-cyan); box-shadow: var(--glow-cyan); transform: scale(1.01); }
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(5,8,16,0.95));
  font-size: 0.65rem; color: var(--accent-cyan); letter-spacing: 0.1em;
  display: flex; align-items: center; justify-content: space-between;
}
.gallery-label span:last-child { color: var(--text-muted); font-size: 0.55rem; }

/* Evolution timeline */
.evolution-track {
  display: flex; gap: 0; overflow-x: auto; padding: 12px 0;
  scrollbar-width: none; -ms-overflow-style: none;
}
.evolution-track::-webkit-scrollbar { display: none; }
.evolution-step {
  flex-shrink: 0; text-align: center; padding: 0 12px; position: relative; min-width: 80px;
}
.evolution-step:not(:last-child)::after {
  content: ''; position: absolute; top: 14px; right: -6px; width: 12px; height: 1px;
  background: var(--se-blue);
}
.evolution-dot {
  width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 6px;
  background: rgba(0,106,167,0.2); border: 2px solid var(--se-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: var(--accent-cyan);
  transition: var(--transition);
}
.evolution-step.active .evolution-dot {
  background: rgba(254,204,0,0.15); border-color: var(--se-yellow);
  box-shadow: var(--glow-yellow); color: var(--se-yellow);
}
.evolution-step.done .evolution-dot { background: rgba(57,255,20,0.15); border-color: var(--accent-green); color: var(--accent-green); }
.evolution-label { font-size: 0.55rem; color: var(--text-muted); line-height: 1.3; }

/* My packages dashboard */
.my-packages { display: flex; flex-direction: column; gap: 10px; }
.my-pkg-card {
  padding: 14px; background: rgba(0,106,167,0.06);
  border: 1px solid var(--border); border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.my-pkg-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--se-blue));
}
.my-pkg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.my-pkg-amount { font-family: var(--font-display); font-size: 1.1rem; color: var(--se-yellow); }
.countdown { font-size: 0.65rem; color: var(--accent-cyan); font-family: var(--font-display); letter-spacing: 0.05em; }
.countdown.urgent { color: var(--accent-orange); animation: blink 1s step-end infinite; }

/* Terminal */
.terminal {
  background: rgba(0,0,0,0.4); border: 1px solid rgba(0,255,213,0.2);
  border-radius: var(--radius); padding: 12px; font-size: 0.65rem;
  margin: 12px 0; overflow-x: auto;
  box-shadow: inset 0 0 30px rgba(0,106,167,0.05);
}
.terminal-line { color: var(--text-muted); line-height: 1.9; }
.terminal-line .prompt { color: var(--accent-green); }
.terminal-line .cmd { color: var(--accent-cyan); }
.terminal-line .val { color: var(--se-yellow); }

/* Tail digit selector */
.tail-selector { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.tail-btn {
  padding: 8px 16px; background: rgba(0,106,167,0.1);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.75rem;
  cursor: pointer; transition: var(--transition);
}
.tail-btn.active, .tail-btn:hover { border-color: var(--se-yellow); color: var(--se-yellow); background: rgba(254,204,0,0.08); box-shadow: var(--glow-yellow); }

/* Feature icons row */
.feature-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 16px 0; }
.feature-item { text-align: center; padding: 10px 4px; }
.feature-icon {
  width: 36px; height: 36px; margin: 0 auto 6px;
  border-radius: 50%; background: rgba(0,106,167,0.15);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: var(--transition);
}
.feature-item:hover .feature-icon { border-color: var(--accent-cyan); box-shadow: var(--glow-cyan); transform: scale(1.1); }
.feature-label { font-size: 0.48rem; color: var(--text-muted); letter-spacing: 0.03em; line-height: 1.2; }

/* Toast */
.toast-container { position: fixed; top: calc(var(--nav-height) + 12px); left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 400px; pointer-events: none; }
.toast { padding: 12px 16px; border-radius: var(--radius); font-size: 0.72rem; animation: slideDown 0.3s ease; pointer-events: auto; border: 1px solid; backdrop-filter: blur(10px); }
.toast.success { background: rgba(57,255,20,0.12); border-color: var(--accent-green); color: var(--accent-green); }
.toast.error { background: rgba(255,71,87,0.12); border-color: var(--accent-red); color: var(--accent-red); }
.toast.info { background: rgba(0,106,167,0.25); border-color: var(--se-blue); color: var(--accent-cyan); }
@keyframes slideDown { from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:none} }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); z-index: 200; display: none; align-items: flex-end; justify-content: center; padding: 16px; padding-bottom: calc(var(--safe-bottom) + 16px); }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-card-solid); border: 1px solid var(--border-bright); border-radius: var(--radius-lg) var(--radius-lg) 0 0; width: 100%; max-width: 520px; max-height: 88dvh; overflow-y: auto; animation: slideUp 0.35s ease; box-shadow: var(--glow-cyan); }
@keyframes slideUp { from{transform:translateY(100%);opacity:0} to{transform:none;opacity:1} }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg-card-solid); z-index: 1; }
.modal-title { font-family: var(--font-display); font-size: 0.85rem; color: var(--se-yellow); letter-spacing: 0.08em; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; padding: 4px; line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: var(--accent-red); }
.modal-body { padding: 16px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.92); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
.lightbox.open { display: flex; animation: fadeIn 0.3s ease; }
.lightbox img { max-width: 100%; max-height: 80dvh; border-radius: var(--radius); border: 1px solid var(--border-bright); box-shadow: var(--glow-cyan); }
.lightbox-title { margin-top: 12px; font-size: 0.75rem; color: var(--accent-cyan); letter-spacing: 0.1em; }
.lightbox-close { position: absolute; top: 16px; right: 16px; background: rgba(0,106,167,0.3); border: 1px solid var(--border); border-radius: 50%; width: 40px; height: 40px; color: var(--text-primary); font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.lightbox-close:hover { border-color: var(--accent-red); color: var(--accent-red); }

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: calc(var(--bottom-nav-height) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  background: var(--bg-glass); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
}
.bottom-nav::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent); opacity: 0.4;
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 8px; background: none; border: none; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.5rem; cursor: pointer; transition: var(--transition); min-width: 48px; letter-spacing: 0.02em; }
.nav-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; transition: var(--transition); }
.nav-item.active { color: var(--se-yellow); }
.nav-item.active svg { filter: drop-shadow(0 0 8px rgba(254,204,0,0.6)); transform: scale(1.1); }

/* More menu (mobile overflow nav) */
.more-menu { display: none; position: fixed; bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 8px); right: 16px; z-index: 99; background: var(--bg-card-solid); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; flex-direction: column; gap: 4px; box-shadow: var(--glow-cyan); }
.more-menu.open { display: flex; animation: slideUp 0.2s ease; }
.more-menu-btn { padding: 10px 16px; background: none; border: none; color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.72rem; cursor: pointer; text-align: left; border-radius: 6px; white-space: nowrap; transition: var(--transition); }
.more-menu-btn:hover { background: rgba(0,106,167,0.15); color: var(--se-yellow); }

/* Desktop nav */
.desktop-nav { display: none; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.desktop-nav-btn { padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.7rem; cursor: pointer; transition: var(--transition); letter-spacing: 0.03em; }
.desktop-nav-btn.active, .desktop-nav-btn:hover { border-color: var(--se-yellow); color: var(--se-yellow); background: rgba(254,204,0,0.06); box-shadow: var(--glow-yellow); }

/* Spinner */
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent-cyan); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to{transform:rotate(360deg)} }

/* Utilities */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.hidden { display: none !important; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.58rem; background: rgba(0,255,213,0.08); color: var(--accent-cyan); border: 1px solid rgba(0,255,213,0.25); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 16px 0; }
.empty-state { text-align: center; padding: 24px; color: var(--text-muted); font-size: 0.72rem; }
.empty-state-icon { font-size: 2rem; margin-bottom: 8px; opacity: 0.4; }

/* Tablet & Desktop */
@media (min-width: 768px) {
  .main-content { max-width: 900px; padding: 24px; padding-bottom: 32px; }
  .bottom-nav, .more-menu { display: none !important; }
  .desktop-nav { display: flex; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .package-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .community-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: 1 / -1; }
  .hero--showcase { min-height: 480px; padding: 36px 24px 28px; }
  .logo-3d-showcase { width: 240px; height: 240px; }
  .modal-overlay { align-items: center; padding-bottom: 16px; }
  .modal { border-radius: var(--radius-lg); }
  .feature-row { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1024px) {
  .main-content { max-width: 1100px; }
  .hero--showcase { min-height: 520px; }
  .logo-3d-showcase { width: 280px; height: 280px; }
}
