/* ==========================================================================
   EGEM3TH1US — CORE DESIGN SYSTEM & STYLESHEET
   Typography: Space Grotesk / Montserrat (Bold Uppercase Geometric Reference),
               JetBrains Mono (Cyber/Developer Monospace),
               Inter (High-Readability Body)
   ========================================================================== */

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

/* --- THEME DESIGN TOKENS --- */
:root,
:root[data-theme="dark"] {
  --bg-primary: #08090d;
  --bg-secondary: #0e111a;
  --bg-tertiary: #161b29;
  --bg-card: rgba(15, 19, 29, 0.72);
  --bg-card-hover: rgba(22, 28, 43, 0.88);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 42, 42, 0.45);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-heading: #ffffff;

  /* Reference photo inspired crimson red accent */
  --accent-red: #ff2638;
  --accent-red-glow: rgba(255, 38, 56, 0.35);
  --accent-red-subtle: rgba(255, 38, 56, 0.12);
  --accent-cyan: #00f0ff;
  --accent-gold: #e5b95c;

  --glass-blur: blur(16px);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(255, 38, 56, 0.25);

  --canvas-particle: rgba(240, 246, 255, 0.75);
  --canvas-line: rgba(255, 255, 255, 0.12);
  --canvas-mouse-line: rgba(255, 38, 56, 0.45);

  --terminal-bg: rgba(9, 11, 17, 0.95);
  --terminal-text: #e2e8f0;
}

:root[data-theme="light"] {
  --bg-primary: #f4f6fa;
  --bg-secondary: #e9eef5;
  --bg-tertiary: #dbe4ee;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.96);
  --border-color: rgba(0, 0, 0, 0.09);
  --border-color-hover: rgba(225, 29, 72, 0.5);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-heading: #090d16;

  --accent-red: #e11d48;
  --accent-red-glow: rgba(225, 29, 72, 0.25);
  --accent-red-subtle: rgba(225, 29, 72, 0.08);
  --accent-cyan: #0284c7;
  --accent-gold: #b45309;

  --glass-blur: blur(16px);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 35px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 0 30px rgba(225, 29, 72, 0.2);

  --canvas-particle: rgba(30, 41, 59, 0.7);
  --canvas-line: rgba(30, 41, 59, 0.1);
  --canvas-mouse-line: rgba(225, 29, 72, 0.4);

  --terminal-bg: rgba(250, 252, 255, 0.96);
  --terminal-text: #1e293b;
}

/* --- BASE BODY & SMOOTH SCROLL --- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- CANVAS & AMBIENT SPOTLIGHT --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-red-glow) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: 0.28;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

[data-theme="light"] #cursor-glow {
  opacity: 0.12;
  mix-blend-mode: multiply;
  background: radial-gradient(circle, var(--accent-red-glow) 0%, rgba(255, 255, 255, 0) 70%);
}

/* --- REALTIME HUD STATUS BAR --- */
.hud-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  user-select: none;
}

[data-theme="light"] .hud-bar {
  background: rgba(244, 246, 250, 0.88);
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hud-label {
  color: var(--text-muted);
}

.hud-val {
  color: var(--text-heading);
  font-weight: 600;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.hud-dot.pulsing {
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px #10b981; }
  50% { opacity: 0.4; transform: scale(0.85); box-shadow: none; }
}

/* --- HEADER / NAVIGATION BAR --- */
.site-header {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 900;
  transition: all 0.3s ease;
  padding: 0.85rem 1.5rem;
  background: transparent;
}

.site-header.scrolled {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 0.65rem 1.5rem;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* BRAND LOGO — User's Stylized Text Logo */
.brand-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-logo-img {
  height: 56px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.site-header.scrolled .brand-logo-img {
  height: 46px;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
}

.logo-dark-mode {
  display: block;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.32));
}

.logo-light-mode {
  display: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

[data-theme="light"] .logo-dark-mode {
  display: none;
}

[data-theme="light"] .logo-light-mode {
  display: block;
}

.accent-text,
.accent-red {
  color: var(--accent-red);
  text-shadow: 0 0 12px var(--accent-red-glow);
}

/* NAVIGATION LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  padding: 0.45rem 0.2rem;
  display: inline-flex;
  align-items: center;
}

.nav-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-red);
  margin-right: 0.35rem;
  opacity: 0.9;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-heading);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  transition: width 0.25s ease;
}

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

/* NAV ACTIONS (Audio, Theme, Terminal Trigger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: var(--glass-blur);
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-red-glow);
}

.theme-switch .sun-icon {
  display: none;
}
.theme-switch .moon-icon {
  display: block;
}

[data-theme="light"] .theme-switch .sun-icon {
  display: block;
}
[data-theme="light"] .theme-switch .moon-icon {
  display: none;
}

.btn-terminal-open {
  background: var(--accent-red-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
}

.btn-terminal-open .cmd-icon {
  color: var(--accent-red);
  font-weight: 800;
}

.btn-terminal-open:hover {
  border-color: var(--accent-red);
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 0 16px var(--accent-red-glow);
  transform: translateY(-2px);
}

.btn-terminal-open:hover .cmd-icon {
  color: #ffffff;
}

/* Mobile Toggle Hamburger */
.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.mobile-toggle-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-heading);
  transition: all 0.3s ease;
}

/* --- MAIN WRAPPER & SECTIONS --- */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 7rem 0 5rem 0;
  position: relative;
}

.section-container {
  width: 100%;
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: left;
}

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--accent-red);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.tag-bracket {
  color: var(--text-muted);
}

/* Primary Section Titles — Geometric Uppercase */
.section-title {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-heading);
  line-height: 1.15;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red-glow);
  margin-top: 1rem;
}

/* --- GLASS PANEL COMPONENT --- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-panel:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem 0;
  position: relative;
}

.hero-content {
  max-width: 880px;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-red-subtle);
  border: 1px solid rgba(255, 38, 56, 0.28);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-heading);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 38, 56, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 38, 56, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 38, 56, 0); }
}

.badge-location {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* HERO HEADLINES — Reference: Bold Uppercase with letter spacing */
.hero-subtitle-top {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.title-row {
  font-family: 'Montserrat', 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-heading);
  line-height: 1;
}

.title-sub {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 3.2vw, 2.2rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  line-height: 1.2;
}

.hero-typewriter-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: var(--accent-red);
  background: var(--accent-red-subtle);
  border-left: 3px solid var(--accent-red);
  padding: 0.6rem 1.2rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.75rem;
  max-width: fit-content;
}

.hero-typewriter-box .prompt-sign {
  font-weight: 800;
  color: var(--text-muted);
}

.typewriter-text {
  font-weight: 500;
  color: var(--text-heading);
}

.cursor-blink {
  font-weight: 900;
  color: var(--accent-red);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 680px;
}

/* BUTTONS */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
  box-shadow: 0 4px 18px var(--accent-red-glow);
}

.btn-primary:hover {
  background: #ff4050;
  box-shadow: 0 6px 25px var(--accent-red-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-heading);
  border-color: var(--border-color);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.btn-ghost:hover {
  color: var(--accent-red);
  background: var(--accent-red-subtle);
  border-color: var(--border-color);
  transform: translateY(-2px);
}

/* SCROLL INDICATOR */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
}

.hero-scroll-indicator a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  transition: color 0.2s ease;
}

.hero-scroll-indicator a:hover {
  color: var(--accent-red);
}

.mouse-icon {
  width: 18px;
  height: 28px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.mouse-icon .wheel {
  width: 2px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 1px;
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; top: 4px; }
  100% { opacity: 0; top: 16px; }
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.about-card-main {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.card-header-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-color);
}

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.card-file-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.about-card-body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--text-heading);
  line-height: 1.35;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.code-quote {
  margin-top: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--accent-red-subtle);
  border-left: 3px solid var(--accent-red);
  border-radius: 0 8px 8px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-heading);
}

.about-stats-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-number {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -0.02em;
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: 0.2rem;
}

.stat-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- SKILLS SECTION --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.skill-category-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.category-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--accent-red-subtle);
  border: 1px solid rgba(255, 38, 56, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
}

.category-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
}

.category-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.skill-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

[data-theme="light"] .skill-tag {
  background: rgba(0, 0, 0, 0.03);
}

.skill-tag:hover {
  background: var(--accent-red-subtle);
  border-color: var(--accent-red);
  color: var(--text-heading);
  transform: translateY(-1px);
}

/* --- PROJECTS SECTION --- */
.project-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-heading);
  border-color: var(--border-color-hover);
}

.filter-btn.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-red-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.project-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.project-card.hidden {
  display: none;
}

.project-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.project-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-red);
}

.project-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.project-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.project-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.project-tech-pills {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.project-tech-pills span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--accent-red-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.project-links {
  margin-top: auto;
}

.project-btn-detail {
  background: transparent;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.project-btn-detail:hover {
  color: var(--accent-red);
  transform: translateX(4px);
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.contact-info-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.contact-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.contact-item:hover {
  border-color: var(--border-color-hover);
}

.item-icon {
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-grow: 1;
}

.item-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.item-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-heading);
  text-decoration: none;
  transition: color 0.2s ease;
}

.item-value:hover {
  color: var(--accent-red);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  color: var(--accent-red);
  background: var(--accent-red-subtle);
}

/* Contact Form */
.contact-form-card {
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.25s ease;
}

[data-theme="light"] .form-input {
  background: rgba(255, 255, 255, 0.9);
}

.form-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 12px var(--accent-red-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
}

/* ==========================================================================
   FOOTER & TECH REFERENCE SECTION (CRITICAL USER SPECIFICATION)
   "sayfaya görüntü olsun diye kullandığın dillerin referansınıda ver footer kısmında"
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  margin-top: 5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 4rem 1.5rem 2rem 1.5rem;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Tech Reference Showcase Card */
.tech-reference-wrapper {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.tech-ref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.ref-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-heading);
}

.ref-sub-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tech-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

[data-theme="light"] .tech-card {
  background: rgba(255, 255, 255, 0.6);
}

.tech-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.tech-lang-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.badge-html {
  background: rgba(227, 76, 38, 0.15);
  color: #ff5722;
  border: 1px solid rgba(227, 76, 38, 0.3);
}

.badge-css {
  background: rgba(38, 77, 228, 0.15);
  color: #264de4;
  border: 1px solid rgba(38, 77, 228, 0.3);
}

.badge-js {
  background: rgba(247, 223, 30, 0.15);
  color: #eab308;
  border: 1px solid rgba(247, 223, 30, 0.3);
}

.tech-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.tech-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.tech-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tech-footer-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
}

.tech-footer-meta code {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-red);
  font-size: 0.72rem;
}

.ref-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ref-link:hover {
  color: var(--accent-red);
}

/* FOOTER BOTTOM BAR */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-heading);
}

.footer-copyright {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-motto {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-heading);
  opacity: 0.8;
}

.btn-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.btn-back-to-top:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-2px);
}

/* ==========================================================================
   INTERACTIVE CYBER TERMINAL MODAL
   ========================================================================== */
.terminal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.terminal-window {
  width: 100%;
  max-width: 820px;
  height: 520px;
  background: var(--terminal-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-red-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.3s ease, height 0.3s ease;
}

.terminal-window.maximized {
  max-width: 96vw;
  height: 92vh;
}

.terminal-modal-backdrop.active .terminal-window {
  transform: scale(1);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-color);
  user-select: none;
}

.terminal-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
}

.term-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.term-btn:hover { transform: scale(1.15); }
.term-close { background: #ef4444; }
.term-minimize { background: #f59e0b; }
.term-maximize { background: #10b981; }

.term-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.term-status-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #10b981;
  letter-spacing: 0.1em;
}

.pulse-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulseGreen 1.8s infinite;
}

.terminal-body {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--terminal-text);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.term-ascii-banner {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  line-height: 1.15;
  color: var(--accent-red);
  white-space: pre;
  overflow-x: auto;
  margin-bottom: 0.75rem;
  user-select: none;
}

.term-welcome {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.term-highlight {
  color: var(--accent-red);
  font-weight: 700;
}

.term-accent-bold {
  color: var(--accent-red);
  font-weight: 800;
  font-size: 1.05rem;
}

.term-link {
  color: var(--accent-red);
  text-decoration: underline;
}

.term-dim {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.cmd-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.neofetch-box {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  margin: 0.4rem 0;
}

.neofetch-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent-red);
  line-height: 1.1;
  margin: 0;
}

.neofetch-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-color);
}

.term-prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent-red);
  font-weight: 700;
  white-space: nowrap;
}

.term-input-field {
  flex-grow: 1;
  background: transparent;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--terminal-text);
  outline: none;
}

.cmd-kbd-badge {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  margin-left: 0.2rem;
  color: var(--accent-red);
}

.btn-terminal-open:hover .cmd-kbd-badge {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
}

.btn-hero-cli {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.cli-hint-badge {
  background: var(--accent-red-subtle);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* Floating Terminal FAB */
.floating-term-btn {
  position: fixed;
  bottom: 5.25rem;
  left: 1.75rem;
  z-index: 1500;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--accent-red-glow);
  transition: all 0.25s ease;
}

.floating-term-btn:hover {
  transform: translateY(-3px) scale(1.08);
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 8px 25px var(--accent-red-glow);
}

/* ==========================================================================
   PROJECT DETAILS MODAL
   ========================================================================== */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-box {
  width: 100%;
  max-width: 650px;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal-backdrop.active .project-modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent-red);
  background: var(--accent-red-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--accent-red);
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.modal-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.modal-details-grid h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.modal-features-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-features-list li::before {
  content: '▹ ';
  color: var(--accent-red);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--accent-red);
  color: var(--text-heading);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-red-glow);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .skills-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hud-item-fps {
    display: none;
  }

  .site-header {
    top: 28px;
    padding: 0.75rem 1rem;
  }

  .mobile-toggle-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .nav-links.mobile-open {
    transform: translateY(0);
  }

  .projects-grid,
  .skills-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .modal-details-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   ADMIN CMS & VISUAL IN-PLACE EDIT STYLES
   ========================================================================== */

/* HUD Admin Button */
.hud-item-admin {
  margin-left: auto;
}

.hud-admin-btn {
  background: var(--accent-red-subtle);
  border: 1px solid var(--border-color);
  color: var(--accent-red);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-admin-btn:hover {
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 0 10px var(--accent-red-glow);
}

/* Floating Admin Panel Trigger */
.floating-admin-btn {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--accent-red);
  color: var(--text-heading);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-red-glow);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-admin-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 10px 30px var(--accent-red-glow);
}

.floating-admin-btn .admin-btn-icon {
  font-size: 0.95rem;
  color: var(--accent-red);
  transition: color 0.2s ease;
}

.floating-admin-btn:hover .admin-btn-icon {
  color: #ffffff;
}

/* Floating Visual Edit Active Bar */
.visual-edit-bar {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 2500;
  background: linear-gradient(90deg, #1e1b4b, #431407);
  border-bottom: 2px solid var(--accent-red);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2rem;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  animation: slideDown 0.3s ease;
}

.visual-edit-bar.active {
  display: flex;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.visual-edit-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.edit-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2638;
  box-shadow: 0 0 8px #ff2638;
  animation: pulseDot 1.5s infinite;
}

.edit-bar-title {
  font-weight: 800;
  color: #ff4d5a;
  letter-spacing: 0.1em;
}

.edit-bar-hint {
  color: #cbd5e1;
  font-size: 0.72rem;
}

.btn-edit-finish {
  background: #10b981;
  border: none;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-edit-finish:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

/* In-Place Click-to-Edit Visual Indicators */
body.visual-edit-mode-active [data-cms-key] {
  position: relative;
  outline: 1.5px dashed var(--accent-red) !important;
  outline-offset: 4px;
  cursor: text !important;
  border-radius: 3px;
  transition: background-color 0.2s ease, outline-color 0.2s ease;
}

body.visual-edit-mode-active [data-cms-key]:hover {
  background-color: var(--accent-red-subtle);
  outline: 2px solid var(--accent-red) !important;
}

body.visual-edit-mode-active [data-cms-key]:focus {
  outline: 2px solid var(--accent-red) !important;
  background-color: var(--accent-red-subtle);
  box-shadow: 0 0 15px var(--accent-red-glow);
}

/* Admin Slide-Over Drawer */
.admin-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 90vw;
  height: 100vh;
  z-index: 3000;
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-color);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-drawer.active {
  transform: translateX(0);
}

.admin-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.25);
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-accent-badge {
  background: var(--accent-red);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.admin-header-title h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--text-heading);
}

.admin-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.admin-close-btn:hover {
  color: var(--accent-red);
}

/* Quick Mode Switcher in Drawer */
.admin-quick-toggle-box {
  padding: 1rem 1.5rem;
  background: var(--accent-red-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.toggle-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-heading);
}

.toggle-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Switch UI */
.switch-ui {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-ui input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-ui {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: 0.3s;
}

.slider-ui::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider-ui {
  background-color: var(--accent-red);
}

input:checked + .slider-ui::before {
  transform: translateX(20px);
}

/* Tabs Navigation in Drawer */
.admin-tab-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-tab-nav::-webkit-scrollbar {
  display: none;
}

.admin-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.admin-tab-btn:hover {
  color: var(--text-heading);
}

.admin-tab-btn.active {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
  background: var(--accent-red-subtle);
}

/* Drawer Body & Forms */
.admin-drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.admin-tab-pane {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-tab-pane.active {
  display: flex;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-field label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

[data-theme="light"] .admin-input {
  background: rgba(255, 255, 255, 0.9);
}

.admin-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red-glow);
}

.admin-textarea {
  resize: vertical;
  min-height: 80px;
}

.admin-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.admin-row-3 {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  gap: 0.5rem;
}

.admin-section-subhead {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-top: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.35rem;
}

/* Color Swatches Grid */
.color-swatches-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.color-swatch {
  height: 34px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-swatch:hover {
  transform: scale(1.1);
  border-color: #ffffff;
}

.custom-color-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.custom-color-row input[type="color"] {
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  background: none;
}

/* Project Boxes in Drawer */
.admin-project-box {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-project-box h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-red);
}

/* ==========================================================================
   MENU MANAGER (DYNAMIC TOP NAVBAR MANAGER)
   ========================================================================== */
.admin-field-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.25rem;
}

.menu-mgr-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.menu-mgr-item-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.2s ease;
}

[data-theme="light"] .menu-mgr-item-card {
  background: rgba(0, 0, 0, 0.03);
}

.menu-mgr-item-card:hover {
  border-color: var(--accent-red);
}

.menu-mgr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-mgr-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--accent-red);
  font-weight: 700;
}

.menu-mgr-del-btn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.menu-mgr-del-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.menu-mgr-card-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.menu-mgr-mini-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.menu-mgr-mini-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.menu-mgr-input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 0.45rem 0.65rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

[data-theme="light"] .menu-mgr-input {
  background: #ffffff;
}

.menu-mgr-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red-glow);
}

.menu-add-box {
  background: var(--accent-red-subtle);
  border: 1px dashed var(--accent-red);
  border-radius: 8px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.menu-add-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--accent-red);
  letter-spacing: 0.08em;
}

.btn-add-menu-btn {
  background: var(--accent-red);
  color: #ffffff;
  border: 1px solid var(--accent-red);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--accent-red-glow);
  text-align: center;
}

.btn-add-menu-btn:hover {
  background: #ff4050;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--accent-red-glow);
}

.menu-mgr-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-secondary-flat {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-secondary-flat:hover {
  color: var(--text-heading);
  border-color: var(--text-secondary);
}

/* Action Buttons in Export Tab */
.admin-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: block;
}

.admin-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-2px);
}

.btn-export-html {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
  box-shadow: 0 4px 15px var(--accent-red-glow);
}

.btn-export-html:hover {
  background: #ff4050;
  color: #ffffff;
}

.btn-import-label {
  cursor: pointer;
}

.btn-danger {
  color: #ef4444;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

/* ==========================================================================
   CONTACT SECTION EXTENSIONS
   ========================================================================== */
.link-arrow-btn {
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.link-arrow-btn:hover {
  color: var(--accent-red);
  transform: translateX(3px);
}

/* ==========================================================================
   MINI MUSIC PLAYER BAR (DOCKABLE & EXPANDABLE)
   ========================================================================== */
.music-player-bar {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 1500;
  width: auto;
  min-width: 270px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 38, 56, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

.music-player-bar.expanded {
  border-radius: 16px;
  min-width: 320px;
  max-width: 360px;
  padding: 1.25rem;
}

.player-minimized {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 0.6rem;
}

.music-player-bar.expanded .player-minimized {
  display: none;
}

.player-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-red-subtle);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.player-toggle-btn:hover {
  transform: scale(1.1);
  background: var(--accent-red);
  color: #ffffff;
}

.player-mini-info {
  display: flex;
  flex-direction: column;
  max-width: 130px;
  overflow: hidden;
}

.player-mini-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-heading);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.player-mini-artist {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Equalizer Bars */
.mini-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  margin: 0 0.3rem;
}

.eq-bar {
  width: 2px;
  background: var(--accent-red);
  border-radius: 1px;
  height: 4px;
  transition: height 0.2s ease;
}

.mini-equalizer.playing .bar-1 { animation: eqBounce 0.8s infinite ease-in-out alternate; }
.mini-equalizer.playing .bar-2 { animation: eqBounce 0.6s infinite ease-in-out alternate 0.2s; }
.mini-equalizer.playing .bar-3 { animation: eqBounce 0.9s infinite ease-in-out alternate 0.4s; }
.mini-equalizer.playing .bar-4 { animation: eqBounce 0.7s infinite ease-in-out alternate 0.1s; }

@keyframes eqBounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

.player-btn-play-mini {
  background: var(--accent-red);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--accent-red-glow);
  transition: transform 0.2s ease;
}

.player-btn-play-mini:hover {
  transform: scale(1.1);
}

/* Expanded Player */
.player-expanded {
  display: none;
  flex-direction: column;
  gap: 0.9rem;
}

.music-player-bar.expanded .player-expanded {
  display: flex;
}

.player-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-track-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent-red);
}

.player-close-expand-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.player-close-expand-btn:hover {
  color: var(--accent-red);
}

/* YouTube Embedded Player Video Frame */
.player-video-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #050608;
  border: 1px solid var(--border-color);
  height: 165px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.25rem;
}

.player-video-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
  display: block;
}

.player-track-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.player-cover-art {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.player-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-text-meta h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-heading);
}

.player-text-meta p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Progress scrubber */
.player-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.player-progress-bar {
  flex-grow: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .player-progress-bar {
  background: rgba(0, 0, 0, 0.1);
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-red);
  border-radius: 3px;
  transition: width 0.15s linear;
}

/* Controls */
.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.ctrl-btn:hover {
  color: var(--accent-red);
  background: var(--accent-red-subtle);
}

.ctrl-play-main {
  width: 36px;
  height: 36px;
  background: var(--accent-red);
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px var(--accent-red-glow);
}

.ctrl-play-main:hover {
  background: #ff4050;
  color: #ffffff;
  transform: scale(1.08);
}

.player-vol-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ctrl-vol-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.vol-slider {
  width: 55px;
  accent-color: var(--accent-red);
  cursor: pointer;
  height: 4px;
}

/* Playlist Drawer */
.player-playlist-drawer {
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 170px;
  overflow-y: auto;
}

.player-playlist-drawer.hidden {
  display: none;
}

.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.btn-add-track {
  background: var(--accent-red-subtle);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-track:hover {
  background: var(--accent-red);
  color: #ffffff;
}

.playlist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.76rem;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.playlist-item:hover,
.playlist-item.active {
  background: var(--accent-red-subtle);
  color: var(--text-heading);
}

.playlist-item.active {
  color: var(--accent-red);
  font-weight: 700;
}

.item-title-col {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-play-status {
  font-size: 0.65rem;
  color: var(--accent-red);
}

.item-duration {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FORTIFIED CYBER DEFENSE PROTOCOL (LEVEL 5 SECURITY GATE)
   ========================================================================== */
.security-gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(12px);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.security-gate-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.security-gate-window {
  width: 100%;
  max-width: 480px;
  background: rgba(10, 13, 20, 0.95);
  border: 1px solid var(--accent-red);
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px var(--accent-red-glow);
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.security-gate-backdrop.active .security-gate-window {
  transform: scale(1);
}

.gate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 38, 56, 0.08);
  border-bottom: 1px solid var(--border-color);
}

.gate-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-red);
}

.pulse-dot-red {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulseDot 1.5s infinite;
}

.gate-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.gate-close-btn:hover {
  color: var(--accent-red);
}

.gate-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.gate-scanner-visual {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-red-subtle);
  border: 1px solid var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.scanner-lock-icon {
  font-size: 1.6rem;
}

.scanner-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: scanLaser 2s infinite ease-in-out;
}

@keyframes scanLaser {
  0% { top: 0; opacity: 0.8; }
  50% { top: 100%; opacity: 1; }
  100% { top: 0; opacity: 0.8; }
}

.gate-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-heading);
}

.gate-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 380px;
}

.threat-status-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  display: flex;
  gap: 0.5rem;
}

.threat-label {
  color: var(--text-muted);
}

.threat-val {
  color: #10b981;
  font-weight: 700;
}

.gate-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.gate-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  gap: 0.5rem;
  transition: border-color 0.2s ease;
}

.gate-input-wrap:focus-within {
  border-color: var(--accent-red);
  box-shadow: 0 0 12px var(--accent-red-glow);
}

.gate-key-prefix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-red);
  white-space: nowrap;
}

.gate-key-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-heading);
}

.gate-btn-verify {
  background: var(--accent-red);
  border: 1px solid var(--accent-red);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px var(--accent-red-glow);
}

.gate-btn-verify:hover {
  background: #ff4050;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-red-glow);
}

.gate-footer-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.gate-footer-hint code {
  color: var(--accent-red);
}

.error-shake {
  animation: shake 0.35s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.admin-session-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


