/* ============================================================
   AllTools 2.0 — Y2K Cybercore / Anti-Design Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Inter:wght@400;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:          #000000;
  --bg-card:     #000000;
  --bg-input:    #111111;
  --bg-modal:    #000000;
  --bg-output:   #0a0a0a;
  --bg-hover:    #111111;

  --white:       #ffffff;
  --off-white:   #dddddd;
  --mid:         #888888;
  --dim:         #444444;
  --border:      rgba(255,255,255,0.3);
  --border-light:rgba(255,255,255,0.1);

  --accent:      #ccff00; /* Acid Green */
  --accent-warm: #ff00ff; /* Hot Pink */
  --accent-red:  #ff0055;

  --text-primary:   #ffffff;
  --text-secondary: #cccccc;
  --text-muted:     #777777;

  --font-display: 'Syncopate', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --r-sm:  0px; --r-md:  0px; --r-lg:  0px;
  --r-xl:  0px; --r-full: 999px;

  --dur:  0.2s;
  --ease: ease-in-out;
  --tr:   all var(--dur) var(--ease);
  
  color-scheme: dark;
}

/* ============================================================
   CUSTOM CURSOR (DESKTOP ONLY)
   ============================================================ */
@media (pointer: fine) {
  body, a, button, input, label, [role="button"], .tool-card { cursor: none !important; }
  .custom-cursor-dot, .custom-cursor-ring {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
    border-radius: 50%; transform: translate(-50%, -50%);
  }
  .custom-cursor-dot {
    width: 6px; height: 6px; background: var(--accent); margin: -3px 0 0 -3px;
  }
  .custom-cursor-ring {
    width: 34px; height: 34px; border: 2px solid var(--accent); margin: -17px 0 0 -17px;
    transition: width 0.2s, height 0.2s, margin 0.2s, background 0.2s;
  }
  .custom-cursor-ring.hovered {
    width: 50px; height: 50px; margin: -25px 0 0 -25px;
    background: rgba(204, 255, 0, 0.1); border-color: transparent;
  }
  .custom-cursor-dot.hovered { display: none; }
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; max-width: 100vw; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100vw;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  cursor: crosshair;
}
a, button, .category-pill, .tool-card, .recent-pill { cursor: crosshair !important; }
input, textarea, select { font-family: inherit; cursor: text; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--dim); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Chrome / Metallic Text Effect Utility */
.chrome {
  background: linear-gradient(to bottom, #ffffff 0%, #a0a0a0 50%, #505050 51%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--white);
  display: flex;
}
.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 20s linear infinite;
}
@keyframes scroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.nav-container {
  max-width: 1600px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  white-space: nowrap;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 900;
  color: var(--text-primary); text-transform: uppercase; letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-icon { color: var(--accent); animation: spin 4s linear infinite; }
.logo-text { position: relative; transition: all 0.2s; }
.logo:hover .logo-text { color: var(--accent-warm); text-shadow: 3px 3px 0 var(--accent); }

/* Nav links — single inline row, no wrapping */
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-input); border: 2px solid var(--border);
  padding: 8px 16px; width: 350px;
}
.nav-search:focus-within { border-color: var(--accent); }
.nav-search input {
  background: transparent; border: none; outline: none;
  color: var(--text-primary); font-size: 0.95rem; width: 100%;
  font-family: var(--font-mono); text-transform: uppercase;
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.tool-count-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mobile-search-btn {
  background: transparent; border: none; color: var(--white);
  font-size: 1.5rem; cursor: pointer; display: block;
}
.hamburger {
  background: transparent; border: none; color: var(--white);
  font-size: 1.5rem; display: none; cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: 1400px; margin: 60px auto; padding: 0 40px;
  text-align: center; position: relative;
}
.hero-content {
  display: flex; flex-direction: column; align-items: center;
}
.hero-title {
  font-family: var(--font-display); font-size: 5.5vw;
  font-weight: 700; line-height: 1; margin: 0 0 20px 0;
  text-transform: uppercase;
}
.hero-title span { color: transparent; -webkit-text-stroke: 2px var(--white); }
.hero-title .highlight { color: var(--accent); -webkit-text-stroke: 0; }
.hero-subtitle {
  font-size: 1.2rem; color: var(--text-secondary);
  max-width: 600px; line-height: 1.6; margin-bottom: 40px;
}
.sticker {
  position: absolute; top: 10%; right: 15%;
  background: var(--accent-warm); color: var(--bg);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 50%; transform: rotate(15deg);
  animation: spin 10s linear infinite; z-index: 10;
}
@keyframes spin { 100% { transform: rotate(375deg); } }

.hero-actions {
  display: flex; gap: 15px; margin-bottom: 60px; flex-wrap: wrap; justify-content: center;
}
.hero-search {
  display: flex; align-items: center;
  background: var(--bg-input); border: 2px solid var(--border);
  padding: 15px 25px; width: 400px; max-width: 100%;
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: 6px 6px 0 var(--accent); }
.hero-search input {
  background: transparent; border: none; outline: none; width: 100%;
  color: var(--text-primary); font-size: 1.1rem; font-family: var(--font-mono); text-transform: uppercase;
}
.search-clear {
  background: transparent; border: none; color: var(--text-secondary);
  font-size: 1.2rem; cursor: pointer; padding: 0 10px;
}
.btn-surprise {
  background: var(--accent); color: var(--bg);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  border: 2px solid var(--accent); padding: 15px 30px;
  cursor: pointer; text-transform: uppercase;
  transition: all 0.2s;
}
.btn-surprise:hover { background: var(--bg); color: var(--accent); }

.hero-stats {
  display: flex; gap: 20px; align-items: center;
  background: var(--border-light); padding: 15px 30px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--white); }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 700; }
.stat-divider { width: 2px; height: 30px; background: var(--border); }

/* ============================================================
   MAIN CONTENT & CATEGORIES
   ============================================================ */
.main-content {
  max-width: 1400px; margin: 0 auto 100px; padding: 0 40px;
}
.categories-wrapper { 
  margin-bottom: 40px; 
  position: sticky; 
  top: 72px; 
  z-index: 90; 
  background: var(--bg); 
  padding: 15px 0; 
  border-bottom: 2px solid var(--border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.8);
}
.categories {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.category-pill {
  background: transparent; border: 2px solid var(--border);
  color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.9rem;
  padding: 8px 16px; cursor: pointer; text-transform: uppercase;
  transition: all 0.2s;
}
.category-pill:hover { border-color: var(--accent); color: var(--white); }
.category-pill.active {
  background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700;
}
.cat-count { opacity: 0.5; margin-left: 5px; }

.sidebar { width: 220px; flex-shrink: 0; }
.sidebar h2 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 20px; color: var(--accent); text-transform: uppercase; }
.category-list { display: flex; flex-direction: column; gap: 10px; }
.category-btn {
  background: transparent; border: 2px solid transparent; color: var(--text-primary);
  text-align: left; padding: 10px 15px; font-family: var(--font-mono); font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.category-btn:hover { background: var(--bg-card); border-left-color: var(--accent); }
.category-btn.active { background: var(--bg-card); border: 2px solid var(--accent); color: var(--accent); font-weight: bold; }

@media (max-width: 900px) {
  .sidebar { display: block !important; width: 100%; margin-bottom: 30px; }
  .category-list { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 15px; }
}
.cat-count { opacity: 0.5; margin-left: 5px; }

/* ============================================================
   TOOLS GRID
   ============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
}
.tool-card {
  background: var(--bg-card);
  padding: 30px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--accent); transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.tool-card:hover .card-bg { transform: translateY(0); }

.tool-card-inner {
  position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1;
  transition: color 0.3s;
}
.tool-card:hover .tool-card-inner { color: var(--bg); }

.tool-card-meta {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.tool-card-category {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  border: 1px solid currentColor; padding: 4px 8px; text-transform: uppercase;
}
.tool-card-icon { font-size: 3rem; margin-bottom: 15px; }
.tool-card-name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  text-transform: uppercase; margin-bottom: 10px; line-height: 1.2;
}
.tool-card-desc {
  font-size: 0.95rem; line-height: 1.5; color: var(--text-secondary);
  transition: color 0.3s;
}
.tool-card:hover .tool-card-desc { color: var(--bg); font-weight: 500; }

.fav-btn { z-index: 10; position: relative; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  z-index: 1000; display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-modal);
  border: 4px solid var(--accent);
  width: 90%; max-width: 800px; max-height: 90vh;
  display: flex; flex-direction: column;
  transform: translateY(20px); transition: transform 0.3s;
  box-shadow: 15px 15px 0 var(--accent);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  padding: 20px 30px; border-bottom: 2px solid var(--accent);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg);
}
.modal-title-group { display: flex; align-items: center; gap: 15px; }
.modal-icon { font-size: 2rem; }
.modal-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; margin: 0; }
.modal-description { color: var(--text-secondary); font-size: 0.9rem; margin-top: 5px; }
.modal-close, .modal-share {
  background: transparent; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: var(--accent-red); }
.modal-share:hover { color: var(--accent); }

.modal-body {
  padding: 30px; overflow-y: auto; flex: 1;
}

/* ============================================================
   TOOL UI CONTROLS
   ============================================================ */
.tool-io { display: flex; flex-direction: column; gap: 20px; }
.tool-label { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-secondary); text-transform: uppercase; display: block; margin-bottom: 8px; }
.io-input, .tool-input, .tool-textarea, .tool-select {
  background: var(--bg-input); border: 2px solid var(--border);
  color: var(--text-primary); padding: 12px 15px; font-family: var(--font-mono); font-size: 1rem;
  width: 100%; outline: none; transition: 0.2s;
}
.io-input:focus, .tool-input:focus, .tool-textarea:focus, .tool-select:focus {
  border-color: var(--accent);
}
.tool-output {
  background: var(--bg-output); border: 2px solid var(--border);
  color: var(--text-primary); padding: 15px; font-family: var(--font-mono); font-size: 1rem;
  width: 100%; min-height: 100px;
}
.btn {
  background: var(--border-light); color: var(--white);
  border: 2px solid var(--border); padding: 12px 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  cursor: pointer; text-transform: uppercase; transition: 0.2s;
}
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: var(--bg); color: var(--accent); }
.btn:hover:not(.btn-primary) { background: var(--white); color: var(--bg); border-color: var(--white); }

/* ============================================================
   MOBILE & RESPONSIVE
   ============================================================ */
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 300px; height: 100%;
  background: var(--bg-card); border-left: 2px solid var(--accent);
  z-index: 999; padding: 80px 30px 30px; overflow-y: auto; transition: right 0.3s;
}
.mobile-menu.open { right: 0; }
.mobile-menu-link {
  display: block; width: 100%; text-align: left; padding: 15px 0;
  background: transparent; border: none; border-bottom: 1px solid var(--border);
  color: var(--text-primary); font-family: var(--font-display); font-size: 1rem;
  text-transform: uppercase; cursor: pointer;
}
.mobile-menu-link:hover { color: var(--accent); }

.mobile-menu-toggle { display: none; }
.sidebar-close { display: none; }
.sidebar-overlay { display: none; }

@media (max-width: 900px) {
  .nav-search { display: none; }
  .mobile-search-btn, .hamburger { display: block; }
  .hero-title { font-size: 10vw; }
  .sticker { width: 80px; height: 80px; font-size: 0.8rem; }
  .hero-search { width: 100%; }
  .nav-container {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }
  .logo { font-size: 1.4rem !important; }
  .nav-right { display: flex; align-items: center; gap: 10px; }
  
  .hamburger { display: block; font-size: 2rem; cursor: pointer; color: var(--accent); }
  
  /* Sidebar Overlay (Click to close) */
  .sidebar-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7); z-index: 1000; cursor: pointer;
  }
  .mobile-menu-toggle:checked ~ .sidebar-overlay { display: block; }
  
  .nav-links {
    position: fixed;
    top: 0; left: -100%;
    width: 280px; height: 100vh;
    background: var(--bg);
    border-right: 2px solid var(--accent);
    z-index: 1001; /* above overlay */
    display: flex; flex-direction: column !important;
    padding: 80px 30px 30px !important;
    transition: left 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  }
  
  /* Close Button inside Sidebar */
  .sidebar-close {
    position: absolute; top: 20px; right: 25px;
    font-size: 2rem; color: var(--accent); cursor: pointer;
    display: block !important;
  }
  .mobile-menu-toggle:checked ~ .nav-links {
    left: 0;
    transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
  }

  /* Make Recent, New, and Categories scrollable on mobile */
  .recent-pills, .categories {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
  }
  .recent-pills::-webkit-scrollbar, .categories::-webkit-scrollbar { display: none; }
  .recent-pill, .category-pill { flex-shrink: 0; }
  .nav-links a {
    font-size: 1.2rem !important;
    white-space: nowrap;
  }
  .mobile-menu-toggle:checked ~ .nav-links {
    left: 0;
  }
}
@media (max-width: 600px) {
  .hero { padding: 0 20px; margin: 30px auto; }
  .main-content { padding: 0 20px; margin-bottom: 50px; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .stat-divider { display: none; }
  .tools-grid { grid-template-columns: 1fr; }
  
  /* Generic fixes for inline flex containers on mobile */
  div[style*="display: flex"] {
    flex-wrap: wrap;
  }
  
  /* Scale down massive headers */
  h1 { font-size: 2rem !important; }
  .hero-title { font-size: 12vw !important; }
  
  /* Fix inputs on mobile */
  .bbs-input-area, .ai-input-area {
    flex-wrap: wrap;
  }
  .bbs-input-area input, .ai-input-area input {
    width: 100%;
    order: 2;
  }
  .bbs-input-area button, .ai-input-area button {
    width: 100%;
    order: 3;
    padding: 15px !important;
  }
  
  /* Fix News Feed on mobile */
  .news-item { flex-direction: column; gap: 0; }
  .news-score { 
    border-right: none; border-bottom: 2px solid var(--border); 
    padding: 15px; flex-direction: row; gap: 10px; 
    min-width: auto;
  }
  .news-item:hover .news-score { border-bottom-color: var(--bg); border-right-color: transparent; }

  /* Stop text from splitting into 3 lines on mobile */
  .footer-logo { font-size: 1.5rem !important; white-space: nowrap; }
  .logo-text { white-space: nowrap; }
  .matrix-header { font-size: 1.1rem !important; flex-wrap: wrap; gap: 10px; }
  .matrix-header span { white-space: nowrap; }
}

/* ============================================================
   MISSING COMPONENTS (Recent, Footer, Toast)
   ============================================================ */
.recent-section { margin-bottom: 40px; }
.recent-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.recent-label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: var(--accent); }
.recent-clear { background: transparent; border: none; color: var(--text-secondary); font-family: var(--font-mono); cursor: pointer; }
.recent-clear:hover { color: var(--accent-red); }
.recent-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.recent-pill {
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--white); font-family: var(--font-mono); font-size: 0.9rem;
  padding: 8px 16px; cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.recent-pill:hover { border-color: var(--accent); background: var(--bg); color: var(--accent); }

.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--accent); color: var(--bg);
  padding: 15px 30px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  border: 2px solid var(--bg); box-shadow: 6px 6px 0 var(--border);
  opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1; visibility: visible;
}

.footer {
  border-top: 2px solid var(--border); background: var(--bg-input);
  padding: 60px 40px; margin-top: 100px; text-align: center;
}
.footer-logo {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: -2px;
  display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 20px;
}
.footer-logo:hover .logo-text { color: var(--accent-warm); text-shadow: 4px 4px 0 var(--accent); }
.footer-social { margin-bottom: 30px; }
.footer-social-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white); font-family: var(--font-mono); border: 1px solid var(--border); padding: 10px 20px;
}
.footer-social-link:hover { border-color: var(--accent); color: var(--accent); }
.footer-tagline { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 30px; }
.footer-links { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; font-family: var(--font-mono); color: var(--mid); }
.footer-links .dot { color: var(--dim); }
.footer-credits { color: var(--dim); font-size: 0.9rem; font-family: var(--font-mono); }

/* ============================================================
   MOBILE SEARCH OVERLAY
   ============================================================ */
.mobile-search-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg); z-index: 2000;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.mobile-search-overlay.open { opacity: 1; visibility: visible; }
.mobile-search-header {
  display: flex; align-items: center; padding: 20px; border-bottom: 2px solid var(--border);
}
.mobile-search-close {
  background: transparent; border: none; color: var(--white); font-size: 1.5rem; margin-right: 15px; cursor: pointer;
}
.mobile-search-input {
  background: transparent; border: none; outline: none; color: var(--white); font-size: 1.2rem;
  font-family: var(--font-mono); width: 100%; text-transform: uppercase;
}
.mobile-search-results {
  flex: 1; overflow-y: auto; padding: 20px;
}
.mobile-search-empty {
  color: var(--text-secondary); text-align: center; margin-top: 40px; font-family: var(--font-mono);
}
.mobile-search-result-item {
  display: flex; align-items: center; gap: 15px; padding: 15px;
  border-bottom: 1px solid var(--border-light); cursor: pointer;
}
.mobile-search-result-item:hover { background: var(--bg-hover); }
.mobile-search-result-icon { font-size: 1.5rem; }
.mobile-search-result-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }
.mobile-search-result-cat { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }

/* ============================================================
   CRT MODE & SETTINGS UI
   ============================================================ */
.crt-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9998; display: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
}
.crt-overlay.active { display: block; }
body.crt-active { animation: textShadow 1.6s infinite; }

@keyframes textShadow {
  0% { text-shadow: 0.438px 0 1px rgba(0,30,255,0.5), -0.438px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  5% { text-shadow: 2.792px 0 1px rgba(0,30,255,0.5), -2.792px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  10% { text-shadow: 0.029px 0 1px rgba(0,30,255,0.5), -0.029px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  15% { text-shadow: 0.402px 0 1px rgba(0,30,255,0.5), -0.402px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  20% { text-shadow: 3.479px 0 1px rgba(0,30,255,0.5), -3.479px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  25% { text-shadow: 1.612px 0 1px rgba(0,30,255,0.5), -1.612px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  30% { text-shadow: 0.701px 0 1px rgba(0,30,255,0.5), -0.701px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  35% { text-shadow: 3.896px 0 1px rgba(0,30,255,0.5), -3.896px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  40% { text-shadow: 3.87px 0 1px rgba(0,30,255,0.5), -3.87px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  45% { text-shadow: 2.231px 0 1px rgba(0,30,255,0.5), -2.231px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  50% { text-shadow: 0.08px 0 1px rgba(0,30,255,0.5), -0.08px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  55% { text-shadow: 2.375px 0 1px rgba(0,30,255,0.5), -2.375px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  60% { text-shadow: 2.202px 0 1px rgba(0,30,255,0.5), -2.202px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  65% { text-shadow: 2.863px 0 1px rgba(0,30,255,0.5), -2.863px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  70% { text-shadow: 0.488px 0 1px rgba(0,30,255,0.5), -0.488px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  75% { text-shadow: 1.894px 0 1px rgba(0,30,255,0.5), -1.894px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  80% { text-shadow: 0.083px 0 1px rgba(0,30,255,0.5), -0.083px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  85% { text-shadow: 0.097px 0 1px rgba(0,30,255,0.5), -0.097px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  90% { text-shadow: 3.443px 0 1px rgba(0,30,255,0.5), -3.443px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  95% { text-shadow: 2.284px 0 1px rgba(0,30,255,0.5), -2.284px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
  100% { text-shadow: 0.267px 0 1px rgba(0,30,255,0.5), -0.267px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
}

.cyber-settings-btn:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0 var(--accent); }

.cyber-settings-panel {
  position: fixed; top: 60px; right: 20px; width: 300px;
  background: var(--bg-card); border: 2px solid var(--accent);
  padding: 20px; z-index: 9901; box-shadow: 8px 8px 0 var(--accent);
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}
.cyber-settings-panel.open { transform: translateY(0); opacity: 1; pointer-events: all; }

.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.panel-header h3 { font-family: var(--font-display); font-size: 1rem; color: var(--accent); text-transform: uppercase; }
.panel-header button { background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

.panel-body label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); display: block; margin-bottom: 10px; }
.theme-colors { display: flex; gap: 10px; margin-bottom: 25px; }
.color-swatch { width: 30px; height: 30px; border: 2px solid var(--white); cursor: pointer; border-radius: var(--r-sm); transition: transform 0.2s; }
.color-swatch:hover { transform: scale(1.1); border-color: var(--accent); }

.toggle-row { display: flex; justify-content: space-between; align-items: center; }
.toggle-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }

/* ============================================================
   NEWS FEED (news.html)
   ============================================================ */
.news-feed {
  display: flex; flex-direction: column; gap: 15px;
}
.news-item {
  display: flex; align-items: stretch; gap: 20px;
  background: var(--bg-card); border: 2px solid var(--border);
  padding: 0; text-decoration: none; position: relative;
  transition: all 0.2s; overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
@keyframes slideUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.news-item:hover {
  background: var(--accent); border-color: var(--accent);
  transform: translateX(10px);
}
.news-score {
  background: var(--bg-input); border-right: 2px solid var(--border);
  padding: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-width: 100px;
}
.news-item:hover .news-score { background: var(--bg); border-right-color: var(--bg); }
.news-score-val {
  font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; color: var(--accent);
}
.news-score-label {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary);
}
.news-item:hover .news-score-label { color: var(--text-primary); }

.news-content {
  flex: 1; padding: 25px 0; display: flex; flex-direction: column; justify-content: center;
}
.news-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin: 0 0 10px 0;
  color: var(--text-primary); text-transform: uppercase; line-height: 1.3;
}
.news-item:hover .news-title { color: var(--bg); }
.news-meta {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-secondary);
  display: flex; flex-wrap: wrap; gap: 10px;
}
.news-item:hover .news-meta { color: var(--bg); font-weight: bold; }
.news-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 30px; font-size: 2rem; color: var(--border);
  transition: all 0.2s;
}
.news-item:hover .news-arrow { color: var(--bg); transform: translate(5px, -5px); }

/* ==========================================================================
   FEATURED TRADING CAROUSEL (FIRE ANIMATION)
   ========================================================================== */

#featured-trading {
  margin: 40px auto;
  width: 95%;
  max-width: 1400px;
  padding: 30px;
  background: var(--bg-card);
  position: relative;
  border-bottom: 2px solid #ff4500;
}

/* Real Fire Flames on Bottom */
.flame-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #ff4500;
  box-shadow: 
    0 -12px 12px #ff4500,
    0 -24px 20px #ff0000;
  filter: blur(6px);
  animation: blaze 0.8s infinite alternate;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

@keyframes blaze {
  0%   { transform: translate3d(0,0,0) scaleY(1); opacity: 0.8; }
  100% { transform: translate3d(0,-2px,0) scaleY(1.4); opacity: 1; }
}

.fire-title {
  text-align: center;
  font-size: 2.5rem;
  color: #ff4500;
  text-transform: uppercase;
  letter-spacing: 5px;
  text-shadow: 0 0 10px #ff0000, 0 0 20px #ff8c00;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-weight: 900;
  position: relative;
  z-index: 2;
}

.trading-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.trading-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px;
  flex: 1;
}

.trading-carousel::-webkit-scrollbar { display: none; } /* Hide scrollbar */
.trading-carousel { -ms-overflow-style: none; scrollbar-width: none; }

.trading-carousel .tool-card {
  min-width: 300px;
  flex-shrink: 0;
  border-bottom: 2px solid #ff4500 !important;
  border-left: none; border-right: none; border-top: none;
  box-shadow: none !important;
  overflow: hidden;
}
.flame-card::after {
  box-shadow: 0 -10px 10px #ff4500, 0 -20px 15px #ff0000, 0 -30px 20px #ff8c00;
  filter: blur(6px);
}
.flame-card .card-bg, .flame-card .tool-card-inner {
  position: relative;
  z-index: 2;
}

.trading-carousel .tool-card:hover {
  background: #ff4500;
  color: #000;
}
.trading-carousel .tool-card-desc {
  white-space: normal;
}

.carousel-btn {
  background: transparent;
  color: #ff4500;
  border: 2px solid #ff4500;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px 15px;
  font-family: var(--font-mono);
  transition: all 0.2s;
  box-shadow: 4px 4px 0 #ff0000;
}
.carousel-btn:hover {
  background: #ff4500;
  color: var(--bg);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #ff0000;
}
.carousel-btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

@media (max-width: 768px) {
  .fire-title { font-size: 1.8rem; }
  .carousel-btn { display: none; } /* On mobile, let them swipe */
}

/* ==========================================================================
   MEME STICKERS (FLOATING MARGINS)
   ========================================================================== */

.meme-sticker {
  position: fixed; /* fixed to viewport, never affects scroll height */
  font-size: 4rem;
  /* Creating a white die-cut sticker border with a drop shadow */
  filter: 
    drop-shadow(2px 0 0 white) 
    drop-shadow(0 2px 0 white) 
    drop-shadow(-2px 0 0 white) 
    drop-shadow(0 -2px 0 white)
    drop-shadow(4px 4px 5px rgba(0,0,0,0.5));
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: float-sticker 6s ease-in-out infinite;
  user-select: none;
}
.meme-sticker:hover {
  filter: 
    drop-shadow(2px 0 0 #ff4500) 
    drop-shadow(0 2px 0 #ff4500) 
    drop-shadow(-2px 0 0 #ff4500) 
    drop-shadow(0 -2px 0 #ff4500)
    drop-shadow(0 0 15px #ff4500);
}

@keyframes float-sticker {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}



/* ==========================================================================
   UNIQUE FEATURES CSS
   ========================================================================== */

/* --- CRT Terminal Mode --- */
@keyframes crt-flicker {
  0%   { opacity: 1; }
  50%  { opacity: 0.97; }
  100% { opacity: 1; }
}

body.crt-mode {
  background: #000 !important;
  color: #00ff50 !important;
  --accent: #00ff50 !important;
  --text-primary: #00ff50 !important;
  --text-secondary: #00cc40 !important;
  --bg-card: #000 !important;
  --bg-modal: #000 !important;
  --border: rgba(0,255,80,0.4) !important;
  animation: crt-flicker 0.12s infinite;
}
body.crt-mode * {
  font-family: 'JetBrains Mono', monospace !important;
  color: #00ff50 !important;
  border-color: rgba(0,255,80,0.4) !important;
}
body.crt-mode .tool-card {
  background: #000 !important;
  box-shadow: 0 0 8px rgba(0,255,80,0.3) !important;
}
body.crt-mode .tool-card:hover {
  background: rgba(0,255,80,0.1) !important;
  box-shadow: 0 0 20px rgba(0,255,80,0.6) !important;
}
body.crt-mode .navbar {
  background: #000 !important;
  border-bottom: 1px solid rgba(0,255,80,0.4) !important;
}
body.crt-mode .hero-title { text-shadow: 0 0 10px #00ff50 !important; }
body.crt-mode .cyber-btn, body.crt-mode button {
  background: #000 !important;
  color: #00ff50 !important;
  border-color: #00ff50 !important;
}

/* CRT Boot screen text */
#crt-boot p { animation: crt-type 0.01s; }

/* --- RAGE MODE --- */
@keyframes rage-shake {
  0%   { transform: translate(0,0) rotate(0deg); }
  20%  { transform: translate(-3px,3px) rotate(-0.5deg); }
  40%  { transform: translate(3px,-2px) rotate(0.5deg); }
  60%  { transform: translate(-2px,3px) rotate(-0.3deg); }
  80%  { transform: translate(3px,-1px) rotate(0.3deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}
@keyframes rage-spin {
  from { transform: rotate(0deg) scale(1.5); }
  to   { transform: rotate(360deg) scale(1.5); }
}
@keyframes rage-toast-anim {
  0%   { transform: translate(-50%,-50%) scale(0) rotate(-10deg); opacity:0; }
  50%  { transform: translate(-50%,-50%) scale(1.2) rotate(5deg); opacity:1; }
  100% { transform: translate(-50%,-50%) scale(1) rotate(0deg); opacity:1; }
}

body.rage-mode {
  animation: rage-shake 0.12s infinite !important;
  filter: hue-rotate(180deg) saturate(3) !important;
  will-change: transform;
}
body.rage-mode .hero { border-color: #ff0000 !important; }
body.rage-mode .navbar { background: #1a0000 !important; }

/* ============================================================
   TOOL OF THE DAY
   ============================================================ */
#tool-of-day {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 40px;
}

.tod-card {
  background: var(--bg-card);
  border: 3px solid var(--accent);
  box-shadow: 10px 10px 0 var(--border), 0 0 20px rgba(204, 255, 0, 0.3);
  padding: 35px 40px;
  position: relative;
  overflow: hidden;
  animation: pulsingBorder 3s infinite alternate;
}

@keyframes pulsingBorder {
  0% {
    border-color: var(--accent);
    box-shadow: 10px 10px 0 var(--border), 0 0 15px rgba(204, 255, 0, 0.2);
  }
  50% {
    border-color: #e6ff66;
    box-shadow: 10px 10px 0 var(--accent), 0 0 35px rgba(204, 255, 0, 0.6);
  }
  100% {
    border-color: var(--accent);
    box-shadow: 10px 10px 0 var(--border), 0 0 15px rgba(204, 255, 0, 0.2);
  }
}

.tod-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 15px;
  flex-wrap: wrap;
}

.tod-badge {
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tod-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tod-body {
  display: flex;
  align-items: center;
  gap: 35px;
}

.tod-icon {
  font-size: 4.5rem;
  line-height: 1;
  background: var(--bg-input);
  border: 2px solid var(--border);
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 5px 5px 0 var(--border);
}

.tod-details {
  flex: 1;
}

.tod-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  text-shadow: 2px 2px 0 #000;
}

.tod-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 800px;
  line-height: 1.6;
}

.tod-actions {
  display: flex;
  gap: 15px;
}

.tod-open-btn {
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 28px;
  border: 2px solid var(--accent);
  text-transform: uppercase;
  cursor: crosshair;
  transition: all 0.2s ease;
  box-shadow: 4px 4px 0 #000;
}

.tod-open-btn:hover {
  background: #000;
  color: var(--accent);
  box-shadow: 4px 4px 0 var(--accent);
  transform: translate(-2px, -2px);
}

@media (max-width: 768px) {
  #tool-of-day {
    padding: 0 20px;
    margin: 25px auto;
  }
  .tod-card {
    padding: 25px 20px;
  }
  .tod-body {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .tod-header {
    justify-content: center;
  }
}

/* ============================================================
   GUESTBOOK / THE WALL
   ============================================================ */
.wall-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 20px 60px;
}

.wall-header {
  margin-bottom: 40px;
  text-align: center;
}

.wall-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 4px 4px 0 var(--border), 0 0 20px rgba(204, 255, 0, 0.4);
  letter-spacing: 3px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.wall-subtitle {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wall-form-card {
  background: var(--bg-card);
  border: 3px solid var(--border);
  box-shadow: 10px 10px 0 var(--border);
  padding: 35px;
  margin-bottom: 50px;
  position: relative;
  transition: border-color 0.2s;
}

.wall-form-card:focus-within {
  border-color: var(--accent);
}

.wall-form-group {
  margin-bottom: 20px;
}

.wall-form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.wall-input, .wall-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 2px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 12px 16px;
  outline: none;
  transition: all 0.2s;
}

.wall-input:focus, .wall-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.2);
}

.wall-textarea {
  resize: vertical;
  min-height: 90px;
}

.wall-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 15px;
}

.wall-char-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.wall-submit-btn {
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  text-transform: uppercase;
  cursor: crosshair;
  transition: all 0.2s;
  box-shadow: 4px 4px 0 #000;
}

.wall-submit-btn:hover {
  background: #000;
  color: var(--accent);
  box-shadow: 4px 4px 0 var(--accent);
  transform: translate(-2px, -2px);
}

.wall-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
  gap: 15px;
}

.wall-stats {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: bold;
}

.wall-clear-btn {
  background: transparent;
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border: 2px solid var(--accent-red);
  text-transform: uppercase;
  cursor: crosshair;
  transition: all 0.2s;
}

.wall-clear-btn:hover {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 3px 3px 0 #000;
  transform: translate(-2px, -2px);
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.wall-msg-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  box-shadow: 6px 6px 0 var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s ease;
}

.wall-msg-card:hover {
  border-color: var(--accent);
  box-shadow: 8px 8px 0 var(--accent);
  transform: translate(-2px, -2px);
}

.wall-msg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
  gap: 10px;
}

.wall-msg-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  word-break: break-word;
}

.wall-msg-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.wall-msg-body {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
  word-break: break-word;
}

.wall-empty {
  text-align: center;
  padding: 60px 20px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border: 2px dashed var(--border);
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .wall-title {
    font-size: 2.5rem;
  }
  .wall-form-card {
    padding: 20px;
  }
  .wall-grid {
    grid-template-columns: 1fr;
  }
}

/* THEME: Blood Red */
body.theme-red { --accent: #ff2244; --accent-warm: #ff8800; }
/* THEME: Ocean */  
body.theme-ocean { --accent: #00d4ff; --accent-warm: #0088ff; }
/* THEME: Matrix */
body.theme-matrix { --accent: #00ff41; --accent-warm: #00cc33; }
/* THEME: Purple */
body.theme-purple { --accent: #cc44ff; --accent-warm: #ff44cc; }

/* Floating Theme Switcher Widget */
.theme-switcher-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9990;
  background: #000000;
  border: 2px solid var(--accent);
  box-shadow: 4px 4px 0px var(--accent);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.theme-switcher-label {
  color: var(--text-secondary);
  text-transform: uppercase;
}

.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #000;
  cursor: pointer;
  transition: transform 0.2s, outline 0.2s;
  padding: 0;
}

.theme-dot:hover {
  transform: scale(1.25);
}

.theme-dot.active {
  outline: 2px solid #ffffff;
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .theme-switcher-widget {
    bottom: 12px;
    right: 12px;
    padding: 6px 10px;
    gap: 8px;
    font-size: 0.65rem;
  }
  .theme-dot {
    width: 15px;
    height: 15px;
  }
}

/* ============================================================
   PERSONAL STATS & HACKER RANK PAGE STYLES
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.neon-stat-card {
  background: var(--bg-card);
  border: 3px solid var(--accent);
  box-shadow: 6px 6px 0px var(--accent);
  padding: 24px 20px;
  position: relative;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.neon-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 10px 0px var(--accent);
}

.neon-stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.neon-stat-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 15px rgba(204,255,0,0.3);
  line-height: 1;
  margin-bottom: 12px;
  word-break: break-word;
}

.neon-stat-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hacker-rank-card {
  background: var(--bg-card);
  border: 4px solid var(--accent);
  box-shadow: 10px 10px 0px var(--accent);
  padding: 35px;
  margin-bottom: 50px;
  position: relative;
}

.rank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.rank-badge {
  font-family: var(--font-display);
  background: var(--accent);
  color: #000000;
  font-weight: 900;
  padding: 6px 14px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 3px 3px 0px #ffffff;
}

.rank-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 10px;
}

.rank-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  max-width: 700px;
  line-height: 1.6;
}

.rank-progress-container {
  background: rgba(255,255,255,0.05);
  border: 2px solid var(--border);
  padding: 4px;
  position: relative;
  height: 28px;
  margin-bottom: 12px;
}

.rank-progress-bar {
  background: var(--accent);
  height: 100%;
  width: 0%;
  transition: width 0.6s ease;
  box-shadow: 0 0 10px var(--accent);
}

.rank-progress-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.top-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.top-tool-card {
  background: var(--bg-card);
  border: 3px solid var(--border);
  box-shadow: 6px 6px 0px var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s var(--ease);
}

.top-tool-card:hover {
  border-color: var(--accent);
  box-shadow: 8px 8px 0px var(--accent);
  transform: translateY(-3px);
}

.top-tool-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: bold;
  background: var(--accent);
  color: #000;
  padding: 2px 8px;
}

.top-tool-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.top-tool-icon {
  font-size: 2.2rem;
}

.top-tool-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.2;
}

.top-tool-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.top-tool-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.top-tool-btn {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 10px 16px;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.top-tool-btn:hover {
  background: var(--accent);
  color: #000000;
  box-shadow: 3px 3px 0px #ffffff;
}

.empty-top-tools {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 3px dashed var(--border);
  padding: 40px;
  text-align: center;
}


