/* ============================================================
   CYBER LIFE ORGANIZER - CYBERPUNK STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  --cyan:       #00f5ff;
  --cyan-dim:   #00bfff;
  --green:      #00ff41;
  --green-dim:  #00cc33;
  --purple:     #bf00ff;
  --purple-dim: #9900cc;
  --red:        #ff003c;
  --orange:     #ff6600;
  --yellow:     #ffcc00;

  --bg-void:    #02030a;
  --bg-dark:    #050a14;
  --bg-panel:   rgba(0,245,255,0.04);
  --bg-card:    rgba(0,20,40,0.7);
  --bg-glass:   rgba(0,245,255,0.07);

  --border:     rgba(0,245,255,0.2);
  --border-hot: rgba(0,245,255,0.6);

  --text-pri:   #e0f8ff;
  --text-sec:   #7ab8cc;
  --text-mute:  #3a6070;

  --font-mono:  'Share Tech Mono', monospace;
  --font-hud:   'Orbitron', monospace;
  --font-body:  'Rajdhani', sans-serif;

  --glow-cyan:  0 0 10px #00f5ff, 0 0 30px rgba(0,245,255,0.3);
  --glow-green: 0 0 10px #00ff41, 0 0 30px rgba(0,255,65,0.3);
  --glow-purple:0 0 10px #bf00ff, 0 0 30px rgba(191,0,255,0.3);
  --glow-red:   0 0 10px #ff003c, 0 0 30px rgba(255,0,60,0.3);

  --sidebar-w:  260px;
  --radius:     4px;
  --radius-lg:  8px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ─── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-void);
  color: var(--text-pri);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: rgba(0,245,255,0.3); color: #fff; }

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ─── CANVAS BACKGROUND ─────────────────────────────────── */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── LOADING SCREEN ────────────────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-void);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; }

.loading-logo {
  font-family: var(--font-hud);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 4px;
  animation: pulse 1.5s ease-in-out infinite;
}
.loading-bar-container {
  width: 300px;
  height: 3px;
  background: rgba(0,245,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 2px;
  animation: loadBar 2.5s ease-out forwards;
}
@keyframes loadBar { from { width: 0 } to { width: 100% } }
.loading-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-sec);
  letter-spacing: 2px;
  animation: fadeText 0.5s ease-in-out infinite alternate;
}
@keyframes fadeText { from { opacity: 0.4 } to { opacity: 1 } }

/* ─── LAYOUT ────────────────────────────────────────────── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ─── SIDEBAR ───────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: rgba(2,5,15,0.96);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--transition);
  backdrop-filter: blur(20px);
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-logo-text {
  font-family: var(--font-hud);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 2px;
}
.sidebar-logo-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-mute);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--glow-cyan);
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name {
  font-family: var(--font-hud);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-rank {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--green);
  letter-spacing: 2px;
}

.sidebar-xp {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.xp-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-sec);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.xp-bar-track {
  height: 4px;
  background: rgba(0,245,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 2px;
  transition: width 0.8s ease;
  box-shadow: var(--glow-cyan);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.nav-section-label {
  padding: 8px 20px 4px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-mute);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all var(--transition);
  border-left: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sec);
  letter-spacing: 0.5px;
  position: relative;
}
.nav-item:hover {
  background: rgba(0,245,255,0.06);
  color: var(--cyan);
  border-left-color: var(--cyan);
}
.nav-item.active {
  background: rgba(0,245,255,0.1);
  color: var(--cyan);
  border-left-color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,245,255,0.5);
}
.nav-item .nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 0.55rem;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.streak-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange);
}
.streak-fire { font-size: 1.2rem; animation: flamePulse 1s ease-in-out infinite; }
@keyframes flamePulse {
  0%,100% { transform: scale(1) rotate(-5deg); }
  50% { transform: scale(1.2) rotate(5deg); }
}

/* ─── MAIN CONTENT ──────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── TOPBAR ────────────────────────────────────────────── */
.topbar {
  height: 60px;
  background: rgba(2,5,15,0.9);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  transition: all var(--transition);
}
.topbar-title {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.topbar-search {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
}
.topbar-search input {
  background: rgba(0,245,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px 6px 34px;
  color: var(--text-pri);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  width: 200px;
  outline: none;
  transition: border-color var(--transition);
}
.topbar-search input:focus { border-color: var(--cyan); }
.search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-mute);
  font-size: 0.85rem;
}
.topbar-clock {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  letter-spacing: 2px;
  white-space: nowrap;
}
.topbar-xp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--yellow);
  letter-spacing: 1px;
}

/* ─── PAGE SECTIONS ─────────────────────────────────────── */
.page-section {
  display: none;
  padding: 28px 24px;
  animation: fadeIn 0.3s ease;
  flex: 1;
}
.page-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.section-header {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-hud);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 2px;
}
.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-mute);
  letter-spacing: 2px;
  margin-left: auto;
}

/* ─── HERO DASHBOARD ────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-welcome {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.hero-welcome::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
  animation: scanline 3s linear infinite;
}
@keyframes scanline { from { background-position: -100% 0 } to { background-position: 200% 0 } }

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.hero-name {
  font-family: var(--font-hud);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-quote {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-sec);
  border-left: 2px solid var(--cyan);
  padding-left: 12px;
  line-height: 1.5;
  min-height: 40px;
  transition: opacity 0.5s ease;
}
.hero-stats-row {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat-val {
  font-family: var(--font-hud);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255,204,0,0.5);
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-mute);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* XP HERO CARD */
.xp-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(12px);
}
.rank-badge {
  text-align: center;
  padding: 16px;
  background: rgba(0,245,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.rank-icon { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.rank-name {
  font-family: var(--font-hud);
  font-size: 1.1rem;
  color: var(--green);
  text-shadow: var(--glow-green);
  letter-spacing: 3px;
}
.rank-level {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-mute);
  letter-spacing: 2px;
  margin-top: 4px;
}

.big-xp-bar { display: flex; flex-direction: column; gap: 6px; }
.xp-numbers {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-sec);
}
.xp-track {
  height: 8px;
  background: rgba(0,245,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 4px;
  transition: width 1s ease;
  box-shadow: var(--glow-cyan);
}

/* ─── STATS GRID ────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  border-color: var(--border-hot);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}
.stat-card-icon { font-size: 1.5rem; }
.stat-card-val {
  font-family: var(--font-hud);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
}
.stat-card-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-mute);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.stat-card-accent {
  position: absolute;
  bottom: 0; right: 0;
  width: 60px; height: 60px;
  opacity: 0.05;
  font-size: 3rem;
  line-height: 1;
}

/* ─── GLASS CARD ────────────────────────────────────────── */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all var(--transition);
}
.glass-card:hover { border-color: rgba(0,245,255,0.4); }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-header-icon { font-size: 1rem; }
.card-header-title {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.card-body { padding: 20px; }

/* ─── ROADMAP CARDS ─────────────────────────────────────── */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  backdrop-filter: blur(12px);
}
.roadmap-card:hover { border-color: rgba(0,245,255,0.4); box-shadow: 0 4px 30px rgba(0,245,255,0.08); }

.roadmap-card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.roadmap-card.expanded .roadmap-card-header { border-bottom-color: var(--border); }

.roadmap-icon {
  width: 40px; height: 40px;
  background: rgba(0,245,255,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.roadmap-card-info { flex: 1; }
.roadmap-card-title {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  color: var(--text-pri);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.roadmap-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.difficulty-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 1px;
}
.difficulty-badge.Beginner     { background: rgba(0,255,65,0.15); color: var(--green); border: 1px solid rgba(0,255,65,0.3); }
.difficulty-badge.Intermediate { background: rgba(255,204,0,0.15); color: var(--yellow); border: 1px solid rgba(255,204,0,0.3); }
.difficulty-badge.Advanced     { background: rgba(255,0,60,0.15); color: var(--red); border: 1px solid rgba(255,0,60,0.3); }

.roadmap-xp {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--yellow);
  margin-left: auto;
  white-space: nowrap;
}

.roadmap-progress-bar {
  height: 3px;
  background: rgba(0,245,255,0.1);
}
.roadmap-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.5s ease;
}

.roadmap-topics {
  display: none;
  padding: 12px 20px;
  gap: 6px;
  flex-direction: column;
}
.roadmap-card.expanded .roadmap-topics { display: flex; }

.topic-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  transition: background var(--transition);
  cursor: pointer;
}
.topic-item:hover { background: rgba(0,245,255,0.05); }
.topic-check {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  font-size: 0.6rem;
}
.topic-item.done .topic-check {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 6px rgba(0,255,65,0.4);
}
.topic-item.done .topic-check::after { content: '✓'; color: #000; }
.topic-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-sec);
  flex: 1;
  transition: color var(--transition);
}
.topic-item.done .topic-title { color: var(--text-mute); text-decoration: line-through; }
.topic-xp {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--yellow);
}

/* ─── TERMINAL ──────────────────────────────────────────── */
.terminal-container {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
}
.terminal-bar {
  padding: 8px 14px;
  background: #111;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green  { background: #28c940; }
.terminal-title {
  margin-left: 8px;
  font-size: 0.65rem;
  color: var(--text-mute);
  letter-spacing: 2px;
}
.terminal-body {
  padding: 16px;
  min-height: 300px;
  max-height: 450px;
  overflow-y: auto;
  font-size: 0.78rem;
  line-height: 1.8;
}
.terminal-line { color: var(--green); word-break: break-all; }
.terminal-line.cmd { color: var(--cyan); }
.terminal-line.warn { color: var(--yellow); }
.terminal-line.alert { color: var(--red); }
.terminal-line.success { color: var(--green); }
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--cyan);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: 0 } }

/* ─── COMMANDS SECTION ──────────────────────────────────── */
.command-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cmd-tab {
  padding: 6px 16px;
  background: rgba(0,245,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-sec);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 1px;
}
.cmd-tab.active, .cmd-tab:hover {
  background: rgba(0,245,255,0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}
.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}
.command-card {
  background: rgba(0,5,15,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all var(--transition);
  cursor: pointer;
}
.command-card:hover {
  border-color: var(--cyan);
  background: rgba(0,245,255,0.05);
  transform: translateX(3px);
}
.cmd-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  word-break: break-all;
}
.cmd-desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-mute);
  margin-top: 2px;
}
.copy-btn {
  background: rgba(0,245,255,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cyan);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 4px 8px;
  font-family: var(--font-mono);
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.copy-btn:hover { background: var(--cyan); color: #000; }
.copy-btn.copied { background: var(--green); border-color: var(--green); color: #000; }

/* ─── QUIZ SECTION ──────────────────────────────────────── */
.quiz-container {
  max-width: 700px;
  margin: 0 auto;
}
.quiz-category-select {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.quiz-cat-btn {
  padding: 8px 20px;
  background: rgba(0,245,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-sec);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all var(--transition);
}
.quiz-cat-btn.active {
  background: rgba(0,245,255,0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
}
.quiz-question {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-pri);
  margin-bottom: 20px;
  line-height: 1.5;
}
.quiz-q-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  padding: 12px 16px;
  background: rgba(0,245,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-sec);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}
.quiz-option:hover { border-color: var(--cyan); color: var(--text-pri); background: rgba(0,245,255,0.08); }
.quiz-option.correct { border-color: var(--green); background: rgba(0,255,65,0.1); color: var(--green); }
.quiz-option.wrong   { border-color: var(--red);   background: rgba(255,0,60,0.1);  color: var(--red); }
.quiz-option-letter {
  width: 24px; height: 24px;
  background: rgba(0,245,255,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  flex-shrink: 0;
}
.quiz-footer {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.quiz-score-display {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--yellow);
  margin-left: auto;
  letter-spacing: 1px;
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  padding: 8px 20px;
  border-radius: var(--radius);
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  color: #000;
  font-weight: 700;
}
.btn-primary:hover { box-shadow: var(--glow-cyan); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
}
.btn-outline:hover { background: rgba(0,245,255,0.1); box-shadow: var(--glow-cyan); }
.btn-danger {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
}
.btn-danger:hover { background: rgba(255,0,60,0.1); }

/* ─── DAILY TASKS ───────────────────────────────────────── */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.task-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all var(--transition);
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.task-item:hover { border-color: rgba(0,245,255,0.4); }
.task-item.completed {
  border-color: rgba(0,255,65,0.3);
  background: rgba(0,255,65,0.03);
}
.task-checkbox {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition);
  font-size: 0.7rem;
}
.task-item.completed .task-checkbox {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 8px rgba(0,255,65,0.4);
}
.task-item.completed .task-checkbox::after { content: '✓'; color: #000; }
.task-body { flex: 1; }
.task-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-pri);
  margin-bottom: 4px;
}
.task-item.completed .task-title { text-decoration: line-through; color: var(--text-mute); }
.task-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.task-category {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 2px;
}
.cat-networking  { background: rgba(0,191,255,0.15); color: var(--cyan-dim); }
.cat-pentesting  { background: rgba(255,0,60,0.15);  color: var(--red); }
.cat-soc         { background: rgba(191,0,255,0.15); color: var(--purple); }
.cat-linux       { background: rgba(0,255,65,0.15);  color: var(--green); }
.cat-scripting   { background: rgba(255,204,0,0.15); color: var(--yellow); }
.task-xp {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--yellow);
  margin-left: auto;
}

/* ─── LABS SECTION ──────────────────────────────────────── */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.lab-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
  backdrop-filter: blur(12px);
}
.lab-card:hover { border-color: rgba(0,245,255,0.4); transform: translateY(-2px); }
.lab-card.completed { border-color: rgba(0,255,65,0.4); background: rgba(0,255,65,0.03); }
.lab-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lab-title {
  font-family: var(--font-hud);
  font-size: 0.78rem;
  color: var(--text-pri);
  letter-spacing: 0.5px;
  flex: 1;
}
.lab-platform {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--purple);
  padding: 2px 8px;
  border: 1px solid rgba(191,0,255,0.3);
  border-radius: 2px;
}
.lab-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lab-btn {
  padding: 6px 14px;
  background: rgba(0,245,255,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 1px;
}
.lab-btn:hover { background: var(--cyan); color: #000; }
.lab-complete-btn {
  margin-left: auto;
  padding: 6px 14px;
  background: rgba(0,255,65,0.1);
  border: 1px solid rgba(0,255,65,0.3);
  border-radius: var(--radius);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all var(--transition);
}
.lab-card.completed .lab-complete-btn { background: rgba(0,255,65,0.2); }
.lab-complete-btn:hover { background: var(--green); color: #000; }

/* ─── ACHIEVEMENTS ──────────────────────────────────────── */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0.45;
  filter: grayscale(0.7);
}
.achievement-card.unlocked {
  opacity: 1;
  filter: none;
  border-color: rgba(255,204,0,0.5);
  box-shadow: 0 0 20px rgba(255,204,0,0.1);
}
.achievement-card.unlocked::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,204,0,0.05), transparent);
}
.ach-icon { font-size: 2rem; }
.ach-title {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  color: var(--yellow);
  letter-spacing: 1px;
}
.ach-desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-mute);
  line-height: 1.4;
}
.ach-xp-bonus {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--yellow);
}

/* ─── CHARTS ────────────────────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
}
.chart-title {
  font-family: var(--font-hud);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.chart-canvas-wrap {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── 6-MONTH ROADMAP ───────────────────────────────────── */
.month-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}
.month-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}
.month-card:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(0,245,255,0.08); }
.month-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.month-num {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hud);
  font-size: 1.1rem;
  font-weight: 900;
  color: #000;
  flex-shrink: 0;
}
.month-title {
  font-family: var(--font-hud);
  font-size: 0.82rem;
  color: var(--text-pri);
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.month-overview {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-mute);
  line-height: 1.4;
}
.month-body { display: none; padding: 0 20px 20px; }
.month-card.expanded .month-body { display: block; }
.week-block {
  margin-top: 14px;
  background: rgba(0,245,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.week-title {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.week-tasks { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.week-tasks li {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-sec);
  padding-left: 14px;
  position: relative;
}
.week-tasks li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.5rem;
  top: 5px;
}
.month-cert {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(191,0,255,0.08);
  border: 1px solid rgba(191,0,255,0.3);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--purple);
  letter-spacing: 1px;
}
.month-project {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(255,204,0,0.06);
  border: 1px solid rgba(255,204,0,0.2);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--yellow);
  letter-spacing: 1px;
}

/* ─── POMODORO ──────────────────────────────────────────── */
.pomodoro-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px;
}
.pomodoro-ring {
  width: 180px; height: 180px;
  position: relative;
}
.pomodoro-ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.pomodoro-ring circle.bg  { fill: none; stroke: rgba(0,245,255,0.1); stroke-width: 6; }
.pomodoro-ring circle.fg  {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 6px var(--cyan));
}
.pomodoro-time {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hud);
  font-size: 2rem;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}
.pomodoro-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-mute);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.pomodoro-controls { display: flex; gap: 12px; }

/* ─── NOTIFICATION ──────────────────────────────────────── */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.notif {
  background: rgba(0,5,20,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-width: 280px;
  max-width: 360px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  pointer-events: all;
  animation: slideIn 0.3s ease;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
.notif.removing { animation: slideOut 0.3s ease forwards; }
@keyframes slideOut { to { transform: translateX(100%); opacity: 0 } }
.notif-icon { font-size: 1.1rem; }
.notif-body { flex: 1; }
.notif-title {
  font-family: var(--font-hud);
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.notif-msg {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-sec);
}
.notif.success { border-color: rgba(0,255,65,0.4); }
.notif.success .notif-title { color: var(--green); }
.notif.warning { border-color: rgba(255,204,0,0.4); }
.notif.warning .notif-title { color: var(--yellow); }
.notif.error { border-color: rgba(255,0,60,0.4); }
.notif.error .notif-title { color: var(--red); }

/* ─── XP POPUP ──────────────────────────────────────────── */
.xp-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(0,5,20,0.95);
  border: 1px solid var(--yellow);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  font-family: var(--font-hud);
  font-size: 1rem;
  color: var(--yellow);
  z-index: 8000;
  animation: xpFloat 2s ease forwards;
  box-shadow: 0 0 20px rgba(255,204,0,0.2);
}
@keyframes xpFloat {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(-40px); opacity: 1; }
  100% { transform: translateY(-60px); opacity: 0; }
}

/* ─── CYBER ATTACK VISUALIZER ───────────────────────────── */
.attack-visualizer {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.attack-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.attack-node {
  background: rgba(0,245,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  position: relative;
}
.attack-node.attacker { border-color: rgba(255,0,60,0.4); }
.attack-node.defender { border-color: rgba(0,255,65,0.4); }
.attack-node-icon { font-size: 2rem; display: block; margin-bottom: 6px; }
.attack-node-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-mute);
  letter-spacing: 2px;
}
.attack-node-ip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red);
  margin-top: 4px;
}
.defender .attack-node-ip { color: var(--green); }
.packet-stream {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.packet-line {
  width: 100px;
  height: 2px;
  background: rgba(255,0,60,0.3);
  position: relative;
  overflow: hidden;
}
.packet-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  position: absolute;
  top: -3px; left: -8px;
  box-shadow: 0 0 6px var(--red);
  animation: packetFlow 1.5s linear infinite;
}
.packet-dot:nth-child(2) { animation-delay: 0.5s; }
.packet-dot:nth-child(3) { animation-delay: 1s; }
@keyframes packetFlow { from { left: -8px } to { left: 108px } }

.traffic-log {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.traffic-line {
  display: flex;
  gap: 8px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.traffic-time { color: var(--text-mute); flex-shrink: 0; }
.traffic-src  { color: var(--red); }
.traffic-dst  { color: var(--green); }
.traffic-prot { color: var(--cyan); }
.traffic-info { color: var(--text-mute); }

/* ─── SCAN LINE ANIMATION ───────────────────────────────── */
.scan-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,245,255,0.01) 2px,
    rgba(0,245,255,0.01) 4px
  );
}

/* ─── UTILITY ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-cyan   { color: var(--cyan); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-yellow { color: var(--yellow); }
.text-mute   { color: var(--text-mute); }
.font-mono   { font-family: var(--font-mono); }
.font-hud    { font-family: var(--font-hud); }
.pulse       { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.5 } }

/* ─── MOBILE RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    transform: translateX(-260px);
    width: 260px;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .hamburger { display: flex; }
  .topbar-search { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .page-section { padding: 16px; }
  .attack-grid { grid-template-columns: 1fr; }
}

/* ─── GLITCH EFFECT ─────────────────────────────────────── */
.glitch {
  position: relative;
  animation: glitch 4s infinite;
}
@keyframes glitch {
  0%, 94%, 100% { clip-path: none; transform: none; }
  95% { clip-path: inset(10% 0 85% 0); transform: translate(-3px, 0); }
  96% { clip-path: inset(50% 0 30% 0); transform: translate(3px, 0); }
  97% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 0); }
  98% { clip-path: none; transform: none; }
}

/* ─── SIDEBAR OVERLAY (MOBILE) ──────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99;
  backdrop-filter: blur(4px);
}
.sidebar-overlay.visible { display: block; }
