/* ==========================================================================
   therealbonz.com - Cyber-Glass Theme & Layout Styles (v1.1.0 with Auth & CMS)
   ========================================================================== */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121d;
  --bg-card: rgba(16, 23, 38, 0.75);
  --bg-card-hover: rgba(22, 33, 54, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.25);
  --border-hover: rgba(139, 92, 246, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --neon-cyan: #00f0ff;
  --neon-violet: #8b5cf6;
  --neon-pink: #ff007f;
  --neon-emerald: #10b981;
  --neon-amber: #f59e0b;
  --neon-rose: #f43f5e;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --cube-size: 260px;
  --cube-half: 130px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.06) 0%, transparent 45%),
    linear-gradient(to bottom, #07090e, #0b101b);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Visibility classes */
.admin-only {
  display: none !important;
}

body.is-admin .admin-only {
  display: inline-flex !important;
}

.text-cyan { color: var(--neon-cyan); }
.text-violet { color: var(--neon-violet); }
.text-emerald { color: var(--neon-emerald); }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
}

.header-container {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
}

.brand-name .highlight {
  color: var(--neon-cyan);
}

.brand-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

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

.admin-badge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--neon-emerald);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.42rem 0.85rem;
  border-radius: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #00a8ff 100%);
  color: #040812;
  box-shadow: 0 2px 14px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 2px 14px rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-glass:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
  background: rgba(0, 240, 255, 0.08);
}

.btn-danger-sm {
  background: rgba(244, 63, 94, 0.15);
  color: var(--neon-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
}

.btn-danger-sm:hover {
  background: rgba(244, 63, 94, 0.3);
}

.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-inline {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  margin-right: 0.35rem;
  vertical-align: -2px;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */

.main-content {
  flex: 1;
  max-width: 1340px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: rgba(16, 23, 38, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-emerald);
}

.status-dot.pulsating {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  to {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

.status-sep {
  opacity: 0.4;
}

.client-ip-text {
  color: var(--neon-cyan);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, #00f0ff 0%, #8b5cf6 50%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 1.15rem;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Section Common Headers */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon-violet);
  display: inline-block;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ==========================================================================
   3D Cube Interactive Section
   ========================================================================== */

.interactive-cube-section {
  background: linear-gradient(180deg, rgba(16, 23, 38, 0.4) 0%, rgba(13, 18, 29, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

.interactive-cube-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cube-controls {
  display: flex;
  gap: 0.5rem;
}

.cube-viewport-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 0 1.5rem;
}

.cube-canvas-wrapper {
  width: 100%;
  max-width: 500px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.cube-canvas-wrapper:active {
  cursor: grabbing;
}

.cube-scene {
  width: var(--cube-size);
  height: var(--cube-size);
  perspective: 1100px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.cube-face {
  position: absolute;
  width: var(--cube-size);
  height: var(--cube-size);
  border-radius: 16px;
  background: rgba(13, 20, 36, 0.88);
  border: 2px solid rgba(0, 240, 255, 0.4);
  box-shadow: inset 0 0 25px rgba(0, 240, 255, 0.15), 0 0 15px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cube-face:hover {
  border-color: var(--neon-cyan);
  box-shadow: inset 0 0 35px rgba(0, 240, 255, 0.3), 0 0 25px rgba(0, 240, 255, 0.4);
}

.face-front  { transform: rotateY(0deg) translateZ(var(--cube-half)); }
.face-back   { transform: rotateY(180deg) translateZ(var(--cube-half)); }
.face-right  { transform: rotateY(90deg) translateZ(var(--cube-half)); }
.face-left   { transform: rotateY(-90deg) translateZ(var(--cube-half)); }
.face-top    { transform: rotateX(90deg) translateZ(var(--cube-half)); }
.face-bottom { transform: rotateX(-90deg) translateZ(var(--cube-half)); }

.face-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.face-tag {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
}

.face-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin: 0.2rem 0;
}

.face-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.face-content p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.face-btn {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #040812;
  background: var(--neon-cyan);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.cube-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ==========================================================================
   Launchpad Grid
   ========================================================================== */

.launchpad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

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

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.card-badge-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--neon-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-violet {
  background: rgba(139, 92, 246, 0.12);
  color: var(--neon-violet);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--neon-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-rose {
  background: rgba(244, 63, 94, 0.12);
  color: var(--neon-rose);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.card-menu-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 4px;
}

.card-menu-btn:hover {
  color: var(--text-primary);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.card-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--neon-cyan);
  margin-bottom: 0.75rem;
}

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

.card-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.card-launch-btn {
  flex: 1;
}

/* ==========================================================================
   GitHub Repositories Hub
   ========================================================================== */

.repos-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.search-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}

.search-input-wrapper input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem 2.85rem 0.85rem 3rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrapper input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-chip.active {
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.repo-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.repo-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.repo-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.repo-name-link {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

.repo-name-link:hover {
  color: var(--neon-cyan);
}

.repo-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  flex: 1;
}

.repo-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.repo-meta-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.repo-lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.repo-stats {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.repo-stat-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ==========================================================================
   Server File & Folder Explorer (CMS) & Locked States
   ========================================================================== */

.server-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.locked-container {
  background: rgba(13, 18, 29, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.locked-box {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.locked-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-big-icon {
  width: 28px;
  height: 28px;
  stroke: var(--neon-violet);
}

.locked-box h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.locked-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.server-file-browser {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
}

.breadcrumbs-bar {
  background: rgba(16, 23, 38, 0.7);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow-x: auto;
}

.breadcrumb-item {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.breadcrumb-item:hover {
  color: var(--neon-cyan);
  background: rgba(255, 255, 255, 0.05);
}

.breadcrumb-sep {
  opacity: 0.4;
  margin: 0 0.15rem;
}

.file-list-container {
  padding: 0.5rem;
}

.file-item-row {
  display: grid;
  grid-template-columns: 28px 1fr 120px 160px;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: background 0.15s ease;
  cursor: pointer;
}

.file-item-row:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.file-item-row.is-dir .item-name {
  font-weight: 600;
  color: var(--text-primary);
}

.file-item-row.is-dir:hover .item-name {
  color: var(--neon-cyan);
}

.item-icon {
  display: flex;
  align-items: center;
}

.item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--neon-cyan);
}

.item-size, .item-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Admin Panel Tabs & Security UI
   ========================================================================== */

.admin-panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

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

.tab-btn.active {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.04);
}

.admin-panel-body {
  padding: 1.5rem 1.75rem;
}

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

.tab-content.active {
  display: flex;
}

.admin-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.admin-user-meta {
  display: flex;
  flex-direction: column;
}

.admin-user-name {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-user-created {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.panel-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0.5rem 0;
}

.sub-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sub-form h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.security-intro-box {
  background: rgba(16, 23, 38, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detected-ip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
}

.ip-chip .chip-del-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.ip-chip .chip-del-btn:hover {
  color: var(--neon-rose);
}

.inline-add-form {
  flex-direction: row;
  align-items: flex-end;
  gap: 0.65rem;
}

.flex-1 { flex: 1; }

.ip-check-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 23, 38, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.ip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-emerald);
}

.ip-dot.warning {
  background: var(--neon-amber);
}

.ip-dot.danger {
  background: var(--neon-rose);
}

/* ==========================================================================
   Modals & Forms
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-card {
  background: #0e1422;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.1);
  overflow: hidden;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card.modal-lg {
  max-width: 680px;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.modal-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon-badge svg {
  width: 22px;
  height: 22px;
  stroke: var(--neon-cyan);
}

.folder-badge {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
}

.folder-badge svg {
  stroke: var(--neon-violet);
}

.modal-title-group h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-title-group p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-form {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group label .required {
  color: var(--neon-pink);
}

.form-group label .optional {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

.input-with-prefix {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
}

.input-prefix {
  padding: 0.75rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid var(--border-subtle);
}

.input-with-prefix input {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.75rem 1rem;
}

.input-with-prefix input:focus {
  box-shadow: none;
}

.input-with-prefix:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-hint code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr;
  gap: 0.75rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

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

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

input:checked + .slider {
  background-color: var(--neon-cyan);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #040812;
}

.toggle-label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.toggle-label strong {
  font-weight: 600;
}

.toggle-label span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* Spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--neon-cyan);
  animation: spin 0.8s linear infinite;
}

.loading-spinner-wrapper {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem;
  gap: 1rem;
  color: var(--text-muted);
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
}

.toast {
  background: #0e1526;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: toast-slide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-success { border-left: 4px solid var(--neon-emerald); }
.toast-error { border-left: 4px solid var(--neon-rose); }
.toast-info { border-left: 4px solid var(--neon-cyan); }

@keyframes toast-slide {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #06080d;
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand .highlight {
  color: var(--neon-cyan);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
  .file-item-row {
    grid-template-columns: 24px 1fr 80px;
  }
  .file-item-row .item-date {
    display: none;
  }
}

@media (max-width: 600px) {
  :root {
    --cube-size: 200px;
    --cube-half: 100px;
  }
  .header-container {
    flex-wrap: wrap;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
}
