:root {
  --bg: #0e0e0e;
  --surface: #131313;
  --card: rgba(42, 42, 42, 0.6);

  --border: rgba(132, 148, 149, 0.2);
  --border-light: rgba(132, 148, 149, 0.4);

  /* MAIN COLORS (CYBER NOIR STYLE) */
  --accent: #00f0ff;
  /* neon cyan */
  --accent-glow: rgba(0, 240, 255, 0.4);

  --accent2: #d05bff;
  /* neon purple */
  --accent3: #7df4ff;
  /* light cyan */

  --text: #e5e2e1;
  --muted: #b9cacb;

  --mono: 'Space Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ─── PAGES ─── */
.page {
  display: none;
  min-height: 100vh;
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background: var(--bg);
  z-index: 1;
  padding-top: 70px;
}

.page.active {
  display: block;
}

#page-login.active,
#page-signup.active {
  display: flex !important;
  z-index: 500;
  align-items: flex-start;
  justify-content: center;
}

#page-bot.active {
  display: flex;
  flex-direction: column;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease, backdrop-filter 0.2s ease;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
  cursor: pointer;
}

.nav-logo span {
  color: var(--text);
  opacity: 0.5;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-btn {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.1s ease-out, background-color 0.1s ease-out, color 0.1s ease-out, border-color 0.1s ease-out;
  text-transform: uppercase;
  letter-spacing: 1px;
  will-change: transform, background-color;
}

.nav-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

#nav-dropdown .nav-btn:hover {
  transform: translateX(4px);
}

.nav-btn.cta {
  background: var(--accent);
  color: #000;
  border: 1px solid transparent;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.nav-btn.cta:hover {
  background: #00ff88;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.6), 0 0 10px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ─── ORBS ─── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.25;
  animation: float 10s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) scale(1.05) rotate(10deg);
  }

  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

/* ─── LANDING ─── */
#page-landing {
  min-height: 100vh;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  animation-duration: 12s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent3) 0%, transparent 70%);
  bottom: 50px;
  left: -150px;
  animation-duration: 15s;
  animation-direction: alternate-reverse;
}

.hero {
  text-align: center;
  padding: 60px 20px 80px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(0, 255, 136, 0.05);
}

.hero h1 {
  font-size: clamp(42px, 8vw, 92px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 28px;
  color: var(--text);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 36px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-weight: 700;
}

.btn-hero.primary {
  background: var(--accent);
  color: #050508;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.btn-hero.primary:hover {
  background: #00e07a;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 255, 136, 0.4);
}

.btn-hero.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-hero.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 240, 255, 0.05);
  transform: translateY(-2px);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 40px;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: inset 0 1px 0 0 var(--border-light), 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

.feature-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-6px) scale(1.02);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 136, 0.1);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.feature-card a {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  margin-top: 12px;
  display: inline-block;
}

.feature-card a:hover {
  text-decoration: underline;
}

/* ─── AUTH PAGES ─── */
#page-login,
#page-signup {
  min-height: 100vh;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.auth-orb1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -200px;
}

.auth-orb2 {
  width: 400px;
  height: 400px;
  background: var(--accent3);
  bottom: -100px;
  left: -100px;
}

.auth-box {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 1px 0 0 var(--border-light), 0 40px 80px rgba(0, 0, 0, 0.6);
}

.auth-logo {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
}

.auth-box label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.auth-box input[type="email"],
.auth-box input[type="password"],
.auth-box input[type="text"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 15px 20px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  margin-bottom: 20px;
  outline: none;
  transition: all 0.3s;
}

.auth-box input:focus {
  border-color: var(--accent);
  background: rgba(0, 255, 136, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.auth-submit {
  width: 100%;
  background: var(--accent);
  color: #050508;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.4s;
  margin-top: 4px;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.auth-submit:hover {
  background: #00e07a;
  box-shadow: 0 15px 35px rgba(0, 255, 136, 0.4);
  transform: translateY(-2px);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

.auth-footer a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.interests-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.interest-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  color: var(--muted);
}

.interest-chip:hover {
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--text);
}

.interest-chip.selected {
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.06);
  color: var(--text);
}

/* ─── DASHBOARD ─── */
#page-dashboard {
  padding-top: 70px;
  /* NO min-height: 100vh — this was causing the gap */
}

.dash-header {
  padding: 32px 40px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.dash-header h2 span {
  color: var(--accent);
}

/* Search input inside dash-header */
#search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  width: 260px;
  transition: all 0.2s;
}

#search-input:focus {
  border-color: var(--accent);
  background: rgba(0, 255, 136, 0.05);
}

#search-input::placeholder {
  color: var(--muted);
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 255, 136, 0.06);
}

/* ─── KEY FIX: grid has no min-height, shrinks to content ─── */
.hackathon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 24px 40px;
  /* removed any min-height */
}

/* when grid is empty, collapse padding too */
.hackathon-grid:empty {
  padding: 0;
}

.hack-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 1px 0 0 var(--border-light), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hack-card:hover {
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateY(-6px) scale(1.02);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 136, 0.05);
}

.hack-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.hack-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.hack-card a {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  display: inline-block;
  margin-top: 12px;
}

.hack-card a:hover {
  text-decoration: underline;
}

.hack-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-weight: 700;
}

.hack-tag.online {
  background: rgba(0, 255, 136, 0.12);
  color: var(--accent);
}

.hack-tag.hybrid {
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent3);
}

.hack-tag.offline {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

/* ─── BOT PAGE ─── */
#page-bot {
  height: 100vh;
  padding-top: 70px;
  flex-direction: column;
}

.bot-header {
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
}

.bot-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.bot-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.bot-info p {
  font-size: 12px;
  color: var(--accent);
  font-family: var(--mono);
}

.bot-status {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  margin-left: auto;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.4
  }
}

.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.chat-area::-webkit-scrollbar {
  width: 4px;
}

.chat-area::-webkit-scrollbar-track {
  background: transparent;
}

.chat-area::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.msg {
  display: flex;
  gap: 12px;
  max-width: 680px;
  animation: msgIn 0.3s ease;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.msg.bot .msg-avatar {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.msg.user .msg-avatar {
  background: var(--accent3);
}

.msg-bubble {
  padding: 13px 17px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.msg.bot .msg-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px 16px 16px 16px;
}

.msg.user .msg-bubble {
  background: var(--accent);
  color: #080810;
  border-radius: 16px 4px 16px 16px;
  font-weight: 700;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: dot 1.2s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s
}

@keyframes dot {

  0%,
  60%,
  100% {
    transform: translateY(0)
  }

  30% {
    transform: translateY(-6px)
  }
}

.quick-prompts {
  display: flex;
  gap: 8px;
  padding: 0 32px 12px;
  overflow-x: auto;
  background: var(--surface);
}

.quick-prompts::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.quick-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 255, 136, 0.06);
}

.chat-input-wrap {
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  gap: 12px;
  align-items: center;
}

#chat-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

#chat-input:focus {
  border-color: var(--accent);
  background: rgba(0, 255, 136, 0.05);
  box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
}

#chat-input::placeholder {
  color: var(--muted);
}

.send-btn {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: #050508;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.send-btn:hover {
  background: #00e07a;
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
  transform: scale(1.05) translateY(-2px);
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--card);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 9998;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 300px;
}

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

.toast .toast-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.toast .toast-title {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.toast .toast-msg {
  font-size: 13px;
  color: var(--muted);
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
}

.site-footer span {
  color: var(--accent);
}

body.light {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --accent: #0077cc;
  --accent2: #6d28d9;
  --accent3: #0369a1;
}

/* Light mode specific overrides */
body.light nav {
  background: rgba(240, 242, 245, 0.95);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

body.light .feature-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body.light .feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #0077cc;
}

body.light .auth-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

body.light .nav-btn {
  color: #0f172a;
}

body.light .nav-btn:hover {
  background: rgba(0, 119, 204, 0.08);
  color: #0077cc;
}

body.light #nav-dropdown {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body.light .filter-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

body.light .filter-pill.active {
  background: #0077cc;
  color: #ffffff;
  border-color: #0077cc;
}

body.light .filter-pill:hover {
  border-color: #0077cc;
  color: #0077cc;
}

body.light input,
body.light textarea,
body.light select {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.light input:focus,
body.light textarea:focus {
  border-color: #0077cc !important;
  background: #fff !important;
}

body.light .dash-header {
  background: #f0f2f5;
  border-bottom: 1px solid #e2e8f0;
}

body.light .dash-header h2 {
  color: #0f172a;
}

body.light .dash-header h2 span {
  color: #0077cc;
}

body.light .stat-num {
  color: #0077cc;
}

body.light .hackathon-grid .feature-card h3 {
  color: #0f172a;
}

body.light .hackathon-grid .feature-card p {
  color: #475569;
}

body.light .hackathon-grid .feature-card a {
  color: #0077cc;
}

body.light .btn-hero.primary {
  background: #0077cc;
  color: #ffffff;
}

body.light .btn-hero.secondary {
  border-color: #0077cc;
  color: #0077cc;
}

body.light .btn-hero.secondary:hover {
  background: rgba(0, 119, 204, 0.08);
}

body.light .hero h1 {
  color: #0f172a;
}

body.light .hero p {
  color: #475569;
}

body.light .highlight {
  color: #0077cc;
}

body.light .stats {
  background: rgba(0, 119, 204, 0.04);
  border-color: #e2e8f0;
}

body.light .stat-label {
  color: #475569;
}

body.light .site-footer {
  color: #64748b;
  border-top-color: #e2e8f0;
}

body.light .site-footer span {
  color: #0077cc;
}

body.light .toast {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

body.light .toast-title {
  color: #0f172a;
}

body.light .toast-msg {
  color: #475569;
}

body.light .chat-area {
  background: #f8fafc;
}

body.light .msg-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

body.light .msg.user .msg-bubble {
  background: #0077cc;
  color: #ffffff;
  border: none;
}

body.light .quick-chip {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

body.light .quick-chip:hover {
  border-color: #0077cc;
  color: #0077cc;
}

body.light .chat-input-wrap {
  background: #ffffff;
  border-top-color: #e2e8f0;
}

body.light #chat-input {
  background: #f8fafc !important;
  color: #0f172a !important;
}

body.light .send-btn {
  background: #0077cc;
}

body.light .conv-item {
  border-bottom-color: #e2e8f0;
}

body.light .conv-item:hover {
  background: rgba(0, 119, 204, 0.04);
}

body.light .conv-item.active {
  background: rgba(0, 119, 204, 0.08);
  border-left-color: #0077cc;
}

body.light .dm-msg.received .dm-bubble {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

body.light .dm-msg.sent .dm-bubble {
  background: #0077cc;
  color: #ffffff;
}

body.light .cal-day {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.light .cal-day.today {
  border-color: #0077cc;
  box-shadow: 0 0 12px rgba(0, 119, 204, 0.15);
}

body.light .cal-day-num {
  color: #64748b;
}

body.light .cal-day.today .cal-day-num {
  color: #0077cc;
}

body.light .idea-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.light .idea-card:hover {
  border-color: #0077cc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.light .tech-tag {
  background: rgba(0, 119, 204, 0.08);
  color: #0077cc;
  border-color: rgba(0, 119, 204, 0.2);
}

body.light .project-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.light .project-card:hover {
  border-color: #0077cc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.light .project-link-btn {
  color: #475569;
  border-color: #e2e8f0;
}

body.light .project-link-btn:hover {
  border-color: #0077cc;
  color: #0077cc;
}

body.light .orb-1 {
  background: radial-gradient(circle, rgba(0, 119, 204, 0.15), transparent 70%);
}

body.light .orb-2 {
  background: radial-gradient(circle, rgba(109, 40, 217, 0.1), transparent 70%);
}

body.light .hero-badge {
  background: rgba(0, 119, 204, 0.08);
  border-color: rgba(0, 119, 204, 0.2);
  color: #0077cc;
}

body.light .score-bar {
  background: rgba(0, 0, 0, 0.06);
}

body.light .interest-chip {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

body.light .interest-chip.selected {
  background: rgba(0, 119, 204, 0.1);
  border-color: #0077cc;
  color: #0077cc;
}

body.light #floating-bot {
  background: #0077cc;
  box-shadow: 0 4px 15px rgba(0, 119, 204, 0.4);
}

body.light #back-top {
  background: #0077cc;
  box-shadow: 0 4px 15px rgba(0, 119, 204, 0.4);
}

/* ─── MODALS ─── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.1);
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content::-webkit-scrollbar {
  width: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg);
}

.modal-open {
  overflow: hidden !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  nav {
    padding: 0 16px;
  }

  .hero {
    padding: 80px 16px 60px;
  }

  .stats {
    gap: 24px;
    margin: 0 16px;
  }

  .features {
    padding: 60px 16px;
  }

  .hackathon-grid {
    padding: 16px;
  }

  .dash-header {
    padding: 24px 16px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  #search-input {
    width: 100%;
  }

  .auth-box {
    padding: 32px 24px;
  }

  .chat-area {
    padding: 16px;
  }

  .chat-input-wrap {
    padding: 12px 16px;
  }

  .quick-prompts {
    padding: 0 16px 10px;
  }
}

.feature-card.urgent {
  border-color: rgba(239, 68, 68, 0.8) !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.3) !important;
  background: rgba(239, 68, 68, 0.05) !important;
}

.feature-card.soon {
  border-color: rgba(234, 179, 8, 0.8) !important;
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.3) !important;
  background: rgba(234, 179, 8, 0.05) !important;
}

/* ─── PAGE VISIBILITY ─── */
.page {
  display: none !important;
}

.page.active {
  display: block !important;
}

#page-login,
#page-signup {
  display: none !important;
}

#page-login.active,
#page-signup.active {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 500;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  padding-top: 70px;
  background: var(--bg);
}

#page-bot {
  display: none !important;
}

#page-bot.active {
  display: flex !important;
  flex-direction: column;
  height: 100vh;
  padding-top: 70px;
}

#page-dashboard {
  padding-top: 70px;
}

#page-profile {
  padding-top: 70px;
}

#page-teams {
  padding-top: 70px;
}

/* ── CALENDAR ── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day-header {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cal-day {
  min-height: 90px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  position: relative;
  transition: all 0.2s;
}

.cal-day:hover {
  border-color: var(--border-light);
}

.cal-day.today {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.cal-day.empty {
  background: transparent;
  border-color: transparent;
}

.cal-day-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.cal-day.today .cal-day-num {
  color: var(--accent);
  font-weight: 700;
}

.cal-event {
  font-size: 10px;
  font-family: var(--mono);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s;
}

.cal-event:hover {
  opacity: 0.8;
}

.cal-event.saved {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.cal-event.urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.cal-event.soon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cal-event.upcoming {
  background: rgba(208, 91, 255, 0.15);
  color: var(--accent2);
  border: 1px solid rgba(208, 91, 255, 0.3);
}

@media (max-width: 600px) {
  .cal-grid {
    gap: 2px;
  }

  .cal-day {
    min-height: 60px;
    padding: 4px;
  }

  .cal-event {
    font-size: 9px;
  }

  #calendar-grid {
    padding: 0 16px 40px;
  }
}

#page-calendar {
  padding-top: 70px !important;
}

/* ── SHOWCASE ── */
#page-showcase {
  padding-top: 70px !important;
}

#page-showcase .dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px;
  border-bottom: 1px solid var(--border);
}

#page-showcase .dash-header h2 {
  margin: 0;
}

#page-showcase .btn-hero.primary {
  flex-shrink: 0;
  white-space: nowrap;
  height: fit-content;
}

.project-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: rgba(208, 91, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(208, 91, 255, 0.1);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 20px 20px 0 0;
}

.tech-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 240, 255, 0.2);
  margin: 2px;
}

.project-links {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.project-link-btn {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  border: 1px solid var(--border-light);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.project-link-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-link-btn.github {
  border-color: rgba(255, 255, 255, 0.2);
}

.project-link-btn.demo {
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--accent);
}

/* ── DM EYE INDICATOR ── */
#page-messages {
  padding-top: 70px;
}

.eye-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  flex-shrink: 0;
}

.eye-svg {
  width: 18px;
  height: 18px;
}

.conv-item {
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.conv-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.conv-item.active {
  background: rgba(0, 240, 255, 0.06);
  border-left: 2px solid var(--accent);
}

.dm-msg {
  display: flex;
  flex-direction: column;
  max-width: 70%;
  animation: msgIn 0.2s ease;
}

.dm-msg.sent {
  align-self: flex-end;
  align-items: flex-end;
}

.dm-msg.received {
  align-self: flex-start;
  align-items: flex-start;
}

.dm-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.dm-msg.sent .dm-bubble {
  background: var(--accent);
  color: #050508;
  border-radius: 16px 16px 4px 16px;
}

.dm-msg.received .dm-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 16px 16px 16px 4px;
}

.dm-meta {
  font-size: 10px;
  color: var(--muted);
  font-family: var(--mono);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── AI TOOLS ── */
#page-ai-tools {
  padding-top: 70px;
}

.idea-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.idea-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.idea-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.score-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 4px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 1s ease;
}

.difficulty-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.difficulty-easy {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.difficulty-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.difficulty-hard {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.difficulty-expert {
  background: rgba(208, 91, 255, 0.15);
  color: var(--accent2);
  border: 1px solid rgba(208, 91, 255, 0.3);
}

#page-messages {
  padding-top: 70px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

#page-messages .dash-header {
  flex-shrink: 0;
}

#page-messages>div:last-of-type {
  flex: 1;
  overflow: hidden;
}

/* ── CUSTOM TRANSLATE BUTTON ── */
.lang-btn {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--muted);
  border-radius: 50px;
  padding: 0 12px;
  cursor: pointer;
  outline: none;
  height: 38px;
  width: auto;
  min-width: 90px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover,
.lang-btn:focus {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 240, 255, 0.06);
}

/* ── Hide ALL Google branding ── */
.goog-logo-link {
  display: none !important;
}

.goog-logo-link * {
  display: none !important;
}

.goog-te-gadget img {
  display: none !important;
}

.VIpgJd-ZVi9od-xl07Ob-lTBxed {
  display: none !important;
}

.VIpgJd-ZVi9od-aZ2wEe {
  display: none !important;
}

/* Hide top banner & fix body offset */
.goog-te-banner-frame {
  display: none !important;
}

.goog-te-balloon-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

body.light .hero h4,
body.light [style*="color:var(--accent2)"],
body.light [style*="color: var(--accent2)"] {
  color: #6d28d9 !important;
}

body.light h4 {
  color: #0f172a !important;
}

body.light h2 {
  color: #0f172a !important;
}

body.light h3 {
  color: #0f172a !important;
}

body.light p {
  color: #475569 !important;
}