/* ===========================
   GDG Campus CSMU - Main CSS
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --google-blue: #4285F4;
  --google-red: #EA4335;
  --google-yellow: #FBBC04;
  --google-green: #34A853;
  --dark-bg: #0a0a0f;
  --dark-surface: #111118;
  --dark-card: #16161f;
  --dark-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.35);
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #0d0d1a 50%, #0a0f1a 100%);
  --glow-blue: 0 0 40px rgba(66, 133, 244, 0.3);
  --glow-red: 0 0 40px rgba(234, 67, 53, 0.3);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--google-blue);
  border-radius: 10px;
}

/* ===== CUSTOM CURSOR ===== */
@media (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button,
  [role="button"],
  .btn,
  .btn-auth,
  .filter-btn,
  .hamburger,
  .event-card-big,
  .team-card,
  .domain-card,
  input,
  textarea,
  select,
  label {
    cursor: auto;
  }
}

/* hide ring on touch devices */
@media (pointer: coarse) {}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1000;
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* frosted glass */
  background: rgba(8, 8, 16, 0.28);
  backdrop-filter: blur(40px) saturate(200%) brightness(1.05);
  -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.05);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 0 0 0.5px rgba(255, 255, 255, 0.04) inset,
    0 4px 30px rgba(0, 0, 0, 0.18);
  transition:
    top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s ease,
    background 0.5s ease,
    border-color 0.5s ease;
}

/* glossy top-edge highlight — hidden at full width, visible when pill */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.18) 30%,
      rgba(255, 255, 255, 0.28) 50%,
      rgba(255, 255, 255, 0.18) 70%,
      transparent);
  border-radius: 100px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* cursor-following glow border — hidden at full width */
.navbar::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 100px;
  padding: 1px;
  background: radial-gradient(180px circle at calc(var(--mx, 50%) * 1%) calc(var(--my, 50%) * 1%),
      rgba(66, 133, 244, 0.85) 0%,
      rgba(52, 168, 83, 0.45) 35%,
      rgba(251, 188, 4, 0.2) 55%,
      rgba(255, 255, 255, 0.04) 75%,
      transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease, background 0.08s ease;
}

/* fallback shimmer when cursor is off-navbar (scrolled only) */
.navbar.scrolled:not([data-cursor-over])::after {
  background: linear-gradient(135deg,
      rgba(66, 133, 244, 0.25),
      rgba(52, 168, 83, 0.1) 30%,
      rgba(255, 255, 255, 0.03) 50%,
      rgba(251, 188, 4, 0.1) 70%,
      rgba(234, 67, 53, 0.25));
  animation: navBorderShimmer 8s linear infinite;
}

@keyframes navBorderShimmer {
  0% {
    filter: hue-rotate(0deg);
    opacity: 0.7;
  }

  50% {
    filter: hue-rotate(180deg);
    opacity: 1;
  }

  100% {
    filter: hue-rotate(360deg);
    opacity: 0.7;
  }
}

.navbar.scrolled {
  top: 16px;
  width: min(92%, 1100px);
  height: 60px;
  padding: 0 20px;
  border-radius: 100px;
  border-bottom: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 16, 0.22);
  backdrop-filter: blur(48px) saturate(220%) brightness(1.08);
  -webkit-backdrop-filter: blur(48px) saturate(220%) brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 8px 40px rgba(0, 0, 0, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.18);
}

.navbar.scrolled::before {
  opacity: 1;
}

.navbar.scrolled::after {
  opacity: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

.logo-dot:nth-child(1) {
  background: var(--google-blue);
  animation-delay: 0s;
}

.logo-dot:nth-child(2) {
  background: var(--google-red);
  animation-delay: 0.2s;
}

.logo-dot:nth-child(3) {
  background: var(--google-yellow);
  animation-delay: 0.4s;
}

.logo-dot:nth-child(4) {
  background: var(--google-green);
  animation-delay: 0.6s;
}

@keyframes dotPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.8;
  }
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.logo-text span {
  color: var(--google-blue);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 50%;
  height: 1.5px;
  background: var(--google-blue);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a.active {
  color: #fff;
  background: rgba(66, 133, 244, 0.15);
  box-shadow: inset 0 0 0 1px rgba(66, 133, 244, 0.25);
}

.nav-links a.active::after {
  transform: translateX(-50%) scaleX(0);
}

/* ── Special Quizzes nav link ── */
.nav-links a.nav-quiz-link {
  color: #fff;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.18) 0%, rgba(52, 168, 83, 0.18) 100%);
  border: 1px solid rgba(66, 133, 244, 0.35);
  font-weight: 600;
  padding: 6px 14px 6px 10px;
  position: relative;
  overflow: hidden;
  gap: 5px;
  display: inline-flex;
  align-items: center;
}

.nav-links a.nav-quiz-link::before {
  content: '⚡';
  font-size: 0.75rem;
  line-height: 1;
}

.nav-links a.nav-quiz-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-15deg);
  animation: navQuizShimmer 2.8s ease-in-out infinite;
}

@keyframes navQuizShimmer {
  0% {
    left: -60%;
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  60% {
    left: 130%;
    opacity: 0;
  }

  100% {
    left: 130%;
    opacity: 0;
  }
}

.nav-links a.nav-quiz-link:hover {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.3) 0%, rgba(52, 168, 83, 0.3) 100%);
  border-color: rgba(66, 133, 244, 0.6);
  box-shadow: 0 0 16px rgba(66, 133, 244, 0.25);
  transform: translateY(-1px);
}

.nav-links a.nav-quiz-link.active {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.3) 0%, rgba(52, 168, 83, 0.25) 100%);
  border-color: rgba(66, 133, 244, 0.55);
  box-shadow: 0 0 20px rgba(66, 133, 244, 0.2);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
  width: 200px;
  height: 200px;
}

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

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: var(--google-blue);
  color: #fff;
  box-shadow: 0 4px 24px rgba(66, 133, 244, 0.4);
}

.btn-primary:hover {
  background: #5a95f5;
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(66, 133, 244, 0.55);
}

.btn-lg {
  padding: 15px 34px;
  font-size: 1rem;
  border-radius: 14px;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--google-blue);
  color: var(--google-blue);
  background: rgba(66, 133, 244, 0.08);
  transform: translateY(-3px);
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 120px 6% 90px;
  overflow: hidden;
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ── split grid ────────────────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── LEFT side ──────────────────────────────────────────────── */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(66, 133, 244, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.28);
  color: var(--google-blue);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease both;
  backdrop-filter: blur(8px);
}

.hero-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--google-blue);
  box-shadow: 0 0 8px rgba(66, 133, 244, 0.8);
  animation: blink 1.5s ease infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.15s both;
  letter-spacing: -0.02em;
}

/* typewriter word */
.hero-typewriter {
  display: inline-block;
  min-width: 2ch;
  background: linear-gradient(135deg, var(--google-blue), var(--google-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-typewriter::after {
  content: '|';
  position: absolute;
  right: -6px;
  top: 0;
  -webkit-text-fill-color: var(--google-blue);
  animation: blink 0.75s step-end infinite;
  font-weight: 300;
}

.hero-title .gdg-text {
  background: linear-gradient(135deg, var(--google-red), var(--google-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero subtitle — base (shared) ── */
.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* ── Hero subtitle — home split layout (left column) ── */
.hero-left .hero-subtitle {
  max-width: 460px;
  width: 100%;
  margin: 0 0 44px 0;
  text-align: left;
}

/* ── Hero subtitle — page heroes (events, etc.) ── */
.page-hero .hero-subtitle {
  max-width: 540px;
  width: 100%;
  margin: 0 auto 44px;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  animation: fadeInUp 0.8s ease 0.6s both;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 18px 28px;
  gap: 0;
  backdrop-filter: blur(8px);
}

.stat-item {
  text-align: center;
  padding: 0 20px;
}

.stat-item:first-child {
  padding-left: 0;
}

.stat-item:last-child {
  padding-right: 0;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--dark-border);
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--google-blue), var(--google-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ── RIGHT side ─────────────────────────────────────────────── */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.9s ease 0.3s both;
}

.hero-visual {
  position: relative;
  width: 440px;
  height: 440px;
  flex-shrink: 0;
}

/* glowing rings */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-ring-1 {
  width: 350px;
  height: 350px;
  border-color: rgba(66, 133, 244, 0.2);
  animation: ringPulse 4s ease-in-out infinite;
}

.hero-ring-2 {
  width: 440px;
  height: 440px;
  border-color: rgba(52, 168, 83, 0.14);
  animation: ringPulse 4s ease-in-out 1.5s infinite;
}

@keyframes ringPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

/* center card */
.hero-center-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 35%, rgba(30, 32, 52, 0.98) 60%, rgba(14, 14, 28, 0.98) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
  overflow: hidden;
  border: none;
  outline: 2px solid transparent;
  box-shadow:
    0 0 0 2px rgba(66, 133, 244, 0.35),
    0 0 40px rgba(66, 133, 244, 0.22),
    0 0 80px rgba(52, 168, 83, 0.10),
    inset 0 0 30px rgba(66, 133, 244, 0.06),
    0 24px 56px rgba(0, 0, 0, 0.6);
  animation: cardBorderSpin 6s linear infinite;
}

@keyframes cardBorderSpin {
  0% {
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.5), 0 0 50px rgba(66, 133, 244, 0.22), 0 0 80px rgba(52, 168, 83, 0.10), inset 0 0 30px rgba(66, 133, 244, 0.08), 0 24px 48px rgba(0, 0, 0, 0.5);
  }

  25% {
    box-shadow: 0 0 0 2px rgba(52, 168, 83, 0.5), 0 0 50px rgba(52, 168, 83, 0.22), 0 0 80px rgba(251, 188, 4, 0.10), inset 0 0 30px rgba(52, 168, 83, 0.08), 0 24px 48px rgba(0, 0, 0, 0.5);
  }

  50% {
    box-shadow: 0 0 0 2px rgba(251, 188, 4, 0.5), 0 0 50px rgba(251, 188, 4, 0.22), 0 0 80px rgba(234, 67, 53, 0.10), inset 0 0 30px rgba(251, 188, 4, 0.08), 0 24px 48px rgba(0, 0, 0, 0.5);
  }

  75% {
    box-shadow: 0 0 0 2px rgba(234, 67, 53, 0.5), 0 0 50px rgba(234, 67, 53, 0.22), 0 0 80px rgba(66, 133, 244, 0.10), inset 0 0 30px rgba(234, 67, 53, 0.08), 0 24px 48px rgba(0, 0, 0, 0.5);
  }

  100% {
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.5), 0 0 50px rgba(66, 133, 244, 0.22), 0 0 80px rgba(52, 168, 83, 0.10), inset 0 0 30px rgba(66, 133, 244, 0.08), 0 24px 48px rgba(0, 0, 0, 0.5);
  }
}

/* inner ambient glow layer */
.hero-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(66, 133, 244, 0.18) 0%, transparent 65%);
  pointer-events: none;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1.3;
  }
}

/* scan-line sweep */
.hero-card-scan {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}

.hero-card-scan::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.45), transparent);
  animation: scanLine 3s linear infinite;
  top: -2px;
}

@keyframes scanLine {
  0% {
    top: -2px;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

/* community badge */
.hero-card-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2px 9px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-logo-sub {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  margin-top: -4px;
}

.hero-logo-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-logo-dots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.hero-logo-dots .logo-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: dotPop 3s ease-in-out infinite;
  filter: drop-shadow(0 0 6px currentColor);
}

@keyframes dotPop {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px currentColor);
  }

  50% {
    transform: scale(1.25);
    filter: drop-shadow(0 0 10px currentColor);
  }
}

.hero-logo-dots .logo-dot:nth-child(1) {
  animation-delay: 0s;
}

.hero-logo-dots .logo-dot:nth-child(2) {
  animation-delay: 0.4s;
}

.hero-logo-dots .logo-dot:nth-child(3) {
  animation-delay: 0.75s;
}

.hero-logo-dots .logo-dot:nth-child(4) {
  animation-delay: 1.1s;
}

.hero-logo-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

.hero-card-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* orbit pills */
.orbit-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  --orbit-r: 185px;
  --glow-rgb: 66, 133, 244;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: orbit 12s linear infinite, pillGlow 12s linear infinite;
  z-index: 3;
  transition: color 0.3s;
}

@keyframes pillGlow {

  0%,
  83% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: var(--dark-card);
    border-color: rgba(var(--glow-rgb), 0.25);
    padding: 7px 14px;
  }

  90% {
    box-shadow: 0 0 0 2px rgba(var(--glow-rgb), 0.7),
      0 0 20px rgba(var(--glow-rgb), 0.45),
      0 0 50px rgba(var(--glow-rgb), 0.2),
      0 10px 40px rgba(0, 0, 0, 0.5);
    background: rgba(var(--glow-rgb), 0.12);
    border-color: rgba(var(--glow-rgb), 0.8);
    padding: 9px 18px;
  }

  95% {
    box-shadow: 0 0 0 2px rgba(var(--glow-rgb), 0.5),
      0 0 14px rgba(var(--glow-rgb), 0.3),
      0 8px 32px rgba(0, 0, 0, 0.4);
    background: rgba(var(--glow-rgb), 0.08);
    border-color: rgba(var(--glow-rgb), 0.6);
    padding: 8px 16px;
  }

  99%,
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: var(--dark-card);
    border-color: rgba(var(--glow-rgb), 0.25);
    padding: 7px 14px;
  }
}

@keyframes orbit {
  0% {
    transform: translate(-50%, -50%) rotate(-90deg) translateX(var(--orbit-r)) rotate(90deg) scale(1);
  }

  85% {
    transform: translate(-50%, -50%) rotate(216deg) translateX(var(--orbit-r)) rotate(-216deg) scale(1);
  }

  92% {
    transform: translate(-50%, -50%) rotate(241deg) translateX(var(--orbit-r)) rotate(-241deg) scale(1.4);
  }

  96% {
    transform: translate(-50%, -50%) rotate(256deg) translateX(var(--orbit-r)) rotate(-256deg) scale(1.18);
  }

  100% {
    transform: translate(-50%, -50%) rotate(270deg) translateX(var(--orbit-r)) rotate(-270deg) scale(1);
  }
}

@keyframes pillFloat {

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

  50% {
    transform: translateY(-8px);
  }
}

.orbit-pill-1 {
  animation-delay: 0s;
  --glow-rgb: 66, 133, 244;
  border-color: rgba(66, 133, 244, 0.25);
  color: #4285F4;
}

.orbit-pill-2 {
  animation-delay: -2s;
  --glow-rgb: 52, 168, 83;
  border-color: rgba(52, 168, 83, 0.25);
  color: #34A853;
}

.orbit-pill-3 {
  animation-delay: -4s;
  --glow-rgb: 234, 67, 53;
  border-color: rgba(234, 67, 53, 0.25);
  color: #EA4335;
}

.orbit-pill-4 {
  animation-delay: -6s;
  --glow-rgb: 251, 188, 4;
  border-color: rgba(251, 188, 4, 0.25);
  color: #FBBC04;
}

.orbit-pill-5 {
  animation-delay: -8s;
  --glow-rgb: 66, 133, 244;
  border-color: rgba(66, 133, 244, 0.25);
  color: #4285F4;
}

.orbit-pill-6 {
  animation-delay: -10s;
  --glow-rgb: 234, 67, 53;
  border-color: rgba(234, 67, 53, 0.25);
  color: #EA4335;
}

/* pill detail — hidden by default, revealed during orbit expand burst */
.pill-detail {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  margin-left: 0;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  vertical-align: middle;
  animation: pillDetailShow 12s linear infinite;
  letter-spacing: 0.2px;
}

.pill-detail::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.75em;
  background: currentColor;
  opacity: 0.35;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes pillDetailShow {

  0%,
  83% {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    transform: translateY(4px);
  }

  90%,
  95% {
    max-width: 140px;
    opacity: 1;
    margin-left: 7px;
    transform: translateY(0);
  }

  99%,
  100% {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    transform: translateY(-3px);
  }
}

@media (max-width: 900px) {
  .pill-detail {
    display: none;
  }
}

/* sync each detail's reveal to its pill's orbit phase */
.orbit-pill-1 .pill-detail {
  animation-delay: 0s;
}

.orbit-pill-2 .pill-detail {
  animation-delay: -2s;
}

.orbit-pill-3 .pill-detail {
  animation-delay: -4s;
}

.orbit-pill-4 .pill-detail {
  animation-delay: -6s;
}

.orbit-pill-5 .pill-detail {
  animation-delay: -8s;
}

.orbit-pill-6 .pill-detail {
  animation-delay: -10s;
}

/* ── orbs ───────────────────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--google-blue);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--google-red);
  top: 20%;
  right: -80px;
  animation-delay: 2s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: var(--google-green);
  bottom: -50px;
  left: 30%;
  animation-delay: 4s;
}

.orb-4 {
  width: 300px;
  height: 300px;
  background: var(--google-yellow);
  bottom: 10%;
  right: 20%;
  animation-delay: 1s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

/* ── scroll indicator ───────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-left {
    align-items: center;
  }

  .hero-subtitle {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-left .hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-right {
    order: -1;
  }

  .hero-visual {
    width: 310px;
    height: 310px;
  }

  .hero-ring-1 {
    width: 250px;
    height: 250px;
  }

  .hero-ring-2 {
    width: 310px;
    height: 310px;
  }

  .hero-center-card {
    width: 148px;
    height: 148px;
    border-radius: 50%;
  }

  .hero-logo-dots .logo-dot {
    width: 14px;
    height: 14px;
  }

  .orbit-pill {
    font-size: 0.68rem;
    padding: 5px 11px;
    --orbit-r: 130px;
  }
}

@media (max-width: 540px) {
  .hero-stats {
    padding: 12px 16px;
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    padding: 0 12px;
  }

  .hero-visual {
    width: 260px;
    height: 260px;
  }

  .hero-ring-1 {
    width: 200px;
    height: 200px;
  }

  .hero-ring-2 {
    width: 260px;
    height: 260px;
  }
}

/* ===== SECTIONS ===== */
section {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--google-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.highlight {
  background: linear-gradient(135deg, var(--google-blue), var(--google-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 100px 5%;
  background: var(--dark-surface);
  position: relative;
  overflow: hidden;
}

/* ── decorative background orbs ── */
.about-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
}

.about-bg-orb-1 {
  width: 380px;
  height: 380px;
  background: rgba(66, 133, 244, 0.10);
  top: -80px;
  left: -80px;
  animation: orb-drift 9s ease-in-out infinite alternate;
}

.about-bg-orb-2 {
  width: 280px;
  height: 280px;
  background: rgba(52, 168, 83, 0.09);
  bottom: 60px;
  right: 5%;
  animation: orb-drift 12s ease-in-out infinite alternate-reverse;
}

.about-bg-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(234, 67, 53, 0.07);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-drift 15s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(30px, 20px);
  }
}

.about-bg-orb-3 {
  animation-name: orb-drift-center;
}

@keyframes orb-drift-center {
  from {
    transform: translate(-50%, -50%);
  }

  to {
    transform: translate(calc(-50% + 24px), calc(-50% + 16px));
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-visual {
  position: relative;
}

.about-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-icon-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 28px 20px 22px;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.about-icon-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.about-icon-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-icon-card:nth-child(1)::after {
  background: #4285F4;
}

.about-icon-card:nth-child(2)::after {
  background: #EA4335;
}

.about-icon-card:nth-child(3)::after {
  background: #FBBC04;
}

.about-icon-card:nth-child(4)::after {
  background: #34A853;
}

.about-icon-card:hover::after {
  opacity: 1;
}

.about-icon-card:nth-child(1):hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 22px 55px rgba(66, 133, 244, 0.28);
  border-color: rgba(66, 133, 244, 0.35);
}

.about-icon-card:nth-child(2):hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 22px 55px rgba(234, 67, 53, 0.28);
  border-color: rgba(234, 67, 53, 0.35);
}

.about-icon-card:nth-child(3):hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 22px 55px rgba(251, 188, 4, 0.28);
  border-color: rgba(251, 188, 4, 0.35);
}

.about-icon-card:nth-child(4):hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 22px 55px rgba(52, 168, 83, 0.28);
  border-color: rgba(52, 168, 83, 0.35);
}

@keyframes float-icon {

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

  50% {
    transform: translateY(-9px) scale(1.08);
  }
}

.about-icon-card .icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
  animation: float-icon 3.2s ease-in-out infinite;
}

.about-icon-card:nth-child(2) .icon {
  animation-delay: 0.6s;
}

.about-icon-card:nth-child(3) .icon {
  animation-delay: 1.2s;
}

.about-icon-card:nth-child(4) .icon {
  animation-delay: 1.8s;
}

.about-icon-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.about-icon-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}

.pillar:hover {
  border-color: rgba(66, 133, 244, 0.30);
  background: rgba(66, 133, 244, 0.07);
  transform: translateX(10px);
  box-shadow: 0 8px 32px rgba(66, 133, 244, 0.12);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pillar-icon.blue {
  background: rgba(66, 133, 244, 0.15);
}

.pillar-icon.red {
  background: rgba(234, 67, 53, 0.15);
}

.pillar-icon.green {
  background: rgba(52, 168, 83, 0.15);
}

.pillar-icon.yellow {
  background: rgba(251, 188, 4, 0.15);
}

.pillar-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.pillar-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── About stats row ── */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 56px auto 0;
  position: relative;
  z-index: 1;
}

.about-stat-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.about-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.about-stat-card:nth-child(1)::before {
  background: #4285F4;
}

.about-stat-card:nth-child(2)::before {
  background: #EA4335;
}

.about-stat-card:nth-child(3)::before {
  background: #FBBC04;
}

.about-stat-card:nth-child(4)::before {
  background: #34A853;
}

.about-stat-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.about-stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.about-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

@media (max-width: 640px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Diagonal fly-in reveal variants ── */
.reveal-tl {
  opacity: 0;
  transform: translate(-52px, -52px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-tl.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-tr {
  opacity: 0;
  transform: translate(52px, -52px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-tr.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-bl {
  opacity: 0;
  transform: translate(-52px, 52px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-bl.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-br {
  opacity: 0;
  transform: translate(52px, 52px);
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-br.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== EVENTS SECTION (Home) ===== */
.events-home-section {
  padding: 100px 5%;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== EVENT CARD ===== */
.event-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  position: relative;
}

.event-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, transparent 55%);
  pointer-events: none;
  border-radius: 20px;
  z-index: 0;
}

.event-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.event-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.event-card-image .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  transition: transform 0.6s ease;
}

.event-card:hover .event-card-image .img-placeholder {
  transform: scale(1.1);
}

/* ── Event card SVG icon system ── */
.ec-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  animation: ec-float 4s ease-in-out infinite alternate;
  /* CSS individual transform for hover scale — composes with animation's translateY */
  scale: 1;
  transition: scale 0.35s cubic-bezier(0.4, 0, 0.2, 1), filter 0.35s ease;
}

.event-card:hover .ec-icon-wrap {
  scale: 1.16;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.35));
}

.ec-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  animation: ec-pulse 3s ease-out infinite;
  pointer-events: none;
}

.ec-ring-2 {
  inset: -18px;
  border-color: rgba(255, 255, 255, 0.1);
  animation-delay: 1.5s;
}

.ec-glow {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.38;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.event-card:hover .ec-glow {
  opacity: 0.72;
  transform: scale(1.4);
}

/* Per-category ring + glow colours */
.event-card[data-category="workshop"] .ec-glow {
  background: #4285F4;
}

.event-card[data-category="workshop"] .ec-ring {
  border-color: rgba(66, 133, 244, 0.5);
}

.event-card[data-category="hackathon"] .ec-glow {
  background: #EA4335;
}

.event-card[data-category="hackathon"] .ec-ring {
  border-color: rgba(234, 67, 53, 0.5);
}

.event-card[data-category="devfest"] .ec-glow {
  background: #34A853;
}

.event-card[data-category="devfest"] .ec-ring {
  border-color: rgba(52, 168, 83, 0.5);
}

.event-card[data-category="study"] .ec-glow {
  background: #4285F4;
}

.event-card[data-category="study"] .ec-ring {
  border-color: rgba(66, 133, 244, 0.5);
}

.event-card[data-category="talk"] .ec-glow {
  background: #9C27B0;
}

.event-card[data-category="talk"] .ec-ring {
  border-color: rgba(156, 39, 176, 0.5);
}

.event-card[data-category="community"] .ec-glow {
  background: #FBBC04;
}

.event-card[data-category="community"] .ec-ring {
  border-color: rgba(251, 188, 4, 0.5);
}

.ec-svg {
  width: 58px;
  height: 58px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* Per-icon special motion */
.event-card[data-category="devfest"] .ec-svg {
  animation: ec-spin-slow 14s linear infinite;
}

.event-card[data-category="hackathon"] .ec-svg {
  animation: ec-flicker 2.4s ease-in-out infinite;
}

/* Float stagger so cards bob asynchronously */
.event-card:nth-child(2) .ec-icon-wrap {
  animation-delay: 0.5s;
}

.event-card:nth-child(3) .ec-icon-wrap {
  animation-delay: 1.0s;
}

.event-card:nth-child(4) .ec-icon-wrap {
  animation-delay: 1.5s;
}

.event-card:nth-child(5) .ec-icon-wrap {
  animation-delay: 2.0s;
}

.event-card:nth-child(6) .ec-icon-wrap {
  animation-delay: 2.5s;
}

@keyframes ec-float {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-13px);
  }
}

@keyframes ec-pulse {
  0% {
    transform: scale(0.82);
    opacity: 0.72;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

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

@keyframes ec-flicker {

  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 4px rgba(234, 67, 53, 0.6)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  }

  50% {
    opacity: 0.82;
    filter: drop-shadow(0 0 18px rgba(234, 67, 53, 1)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  }
}

.event-type-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  z-index: 1;
}

.badge-workshop {
  background: rgba(66, 133, 244, 0.2);
  color: var(--google-blue);
  border: 1px solid rgba(66, 133, 244, 0.3);
}

.badge-hackathon {
  background: rgba(234, 67, 53, 0.2);
  color: var(--google-red);
  border: 1px solid rgba(234, 67, 53, 0.3);
}

.badge-devfest {
  background: rgba(251, 188, 4, 0.2);
  color: var(--google-yellow);
  border: 1px solid rgba(251, 188, 4, 0.3);
}

.badge-study {
  background: rgba(52, 168, 83, 0.2);
  color: var(--google-green);
  border: 1px solid rgba(52, 168, 83, 0.3);
}

.badge-talk {
  background: rgba(156, 39, 176, 0.2);
  color: #ce93d8;
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.badge-community {
  background: rgba(255, 87, 34, 0.2);
  color: #ff8a65;
  border: 1px solid rgba(255, 87, 34, 0.3);
}

.event-card-body {
  padding: 16px 20px 20px;
  position: relative;
  z-index: 1;
}

.event-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.event-date-row svg {
  width: 14px;
  height: 14px;
}

.event-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.38;
  transition: color 0.25s;
}

.event-card:hover .event-title {
  color: rgba(255, 255, 255, 0.95);
}

/* ── Hover panel — slides up from bottom ── */
.event-hover-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 22, 0.94);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px 16px;
  transform: translateY(101%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.event-card:hover .event-hover-panel {
  transform: translateY(0);
}

.ehp-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ehp-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ehp-tags span {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.71rem;
  color: rgba(255, 255, 255, 0.52);
}

.ehp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ehp-loc {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.36);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ehp-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--google-blue);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ehp-btn:hover {
  background: #5a95f5;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.45);
}

/* ── Event detail modal / popout ── */
#ev-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

#ev-modal-prev,
#ev-modal-next {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.18s, transform 0.18s, opacity 0.18s;
}

#ev-modal-prev:hover,
#ev-modal-next:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: scale(1.1);
}

#ev-modal-prev:disabled,
#ev-modal-next:disabled {
  opacity: 0.18;
  cursor: not-allowed;
  transform: none !important;
  pointer-events: none;
}

#ev-modal-prev svg,
#ev-modal-next svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 580px) {
  #ev-modal {
    gap: 8px;
    padding: 12px 8px;
  }

  #ev-modal-prev,
  #ev-modal-next {
    width: 36px;
    height: 36px;
  }

  #ev-modal-prev svg,
  #ev-modal-next svg {
    width: 16px;
    height: 16px;
  }
}

#ev-modal.open {
  opacity: 1;
  pointer-events: all;
}

#ev-modal-box {
  background: rgba(14, 14, 28, 0.96);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  position: relative;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#ev-modal.open #ev-modal-box {
  transform: translateY(0) scale(1);
}

#ev-modal-hero {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ev-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

#ev-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

#ev-modal-close svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.8);
}

#ev-modal-body {
  padding: 22px 26px 26px;
}

#ev-modal-badge {
  margin-bottom: 12px;
}

#ev-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

#ev-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

#ev-modal-meta span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

#ev-modal-desc {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.72;
  margin-bottom: 16px;
}

#ev-modal-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

#ev-modal-tags span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.5);
}

#ev-modal-cta {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 13px;
  background: var(--google-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

#ev-modal-cta:hover {
  background: #5a95f5;
  box-shadow: 0 8px 28px rgba(66, 133, 244, 0.45);
}

/* ===== TEAM SECTION ===== */
.team-section {
  padding: 100px 5%;
  background: var(--dark-surface);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
  position: relative;
}

.team-card:hover {
  transform: translateY(-10px);
  border-color: rgba(66, 133, 244, 0.4);
  box-shadow: 0 25px 60px rgba(66, 133, 244, 0.15);
}

.team-card-top {
  height: 80px;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.2), rgba(52, 168, 83, 0.2));
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--google-blue), var(--google-green));
  margin: -40px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 4px solid var(--dark-card);
  position: relative;
  z-index: 1;
  transition: var(--transition);
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.team-card:hover .team-avatar {
  transform: scale(1.1);
}

.team-card-body {
  padding: 0 20px 24px;
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.8rem;
  color: var(--google-blue);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.team-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.team-social-btn svg {
  pointer-events: none;
  flex-shrink: 0;
}

.team-social-btn:hover {
  background: rgba(66, 133, 244, 0.15);
  border-color: rgba(66, 133, 244, 0.3);
  color: var(--google-blue);
  transform: translateY(-3px);
}

/* ===== TECH STACK / DOMAINS ===== */
.domains-section {
  padding: 100px 5%;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.domain-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.domain-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--google-blue), var(--google-green));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.domain-card:hover {
  transform: translateY(-8px);
  border-color: rgba(66, 133, 244, 0.3);
  box-shadow: 0 20px 50px rgba(66, 133, 244, 0.12);
}

.domain-card:hover::after {
  transform: scaleX(1);
}

.domain-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
  transition: transform 0.4s ease;
}

.domain-card:hover .domain-icon {
  transform: scale(1.2) rotate(5deg);
}

.domain-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.domain-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 5%;
  background: var(--dark-surface);
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 32px;
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(66, 133, 244, 0.05) 60deg, transparent 120deg);
  animation: rotateCta 10s linear infinite;
}

@keyframes rotateCta {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.cta-box>* {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

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

/* ===== FOOTER ===== */
footer {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  padding: 70px 5% 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: rgba(66, 133, 244, 0.15);
  border-color: rgba(66, 133, 244, 0.4);
  color: var(--google-blue);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col ul a:hover {
  color: var(--google-blue);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.gdg-colors-bar {
  display: flex;
  gap: 4px;
}

.gdg-colors-bar span {
  width: 20px;
  height: 4px;
  border-radius: 2px;
}

/* ===== EVENTS PAGE ===== */
.page-hero {
  padding: 120px 5% 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.filter-bar {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
  position: relative;
  z-index: 1;
  background: rgba(12, 12, 20, 0.65);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 7px 10px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(66, 133, 244, 0.18);
  border-color: rgba(66, 133, 244, 0.35);
  color: #fff;
  box-shadow: none;
}

.filter-btn.active {
  background: rgba(66, 133, 244, 0.24);
}

.events-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 100px;
  position: relative;
  z-index: 1;
}

/* ===== AUTH PAGES — SPLIT LAYOUT ===== */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── Left brand panel ── */
.auth-brand {
  position: relative;
  background: rgba(8, 8, 12, 0.78);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 52px;
  overflow: hidden;
}

.auth-brand-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-brand-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
  animation: orbFloat 12s ease-in-out infinite;
}

.auth-brand-orb:nth-child(1) {
  width: 420px;
  height: 420px;
  background: var(--google-blue);
  top: -120px;
  left: -100px;
  animation-delay: 0s;
}

.auth-brand-orb:nth-child(2) {
  width: 320px;
  height: 320px;
  background: var(--google-green);
  top: 35%;
  right: -80px;
  animation-delay: 4s;
}

.auth-brand-orb:nth-child(3) {
  width: 260px;
  height: 260px;
  background: var(--google-yellow);
  bottom: -60px;
  left: 20%;
  animation-delay: 8s;
  opacity: 0.12;
}

.auth-brand-orb--4 {
  width: 200px;
  height: 200px;
  background: var(--google-red);
  bottom: 12%;
  right: 15%;
  animation-delay: 2s;
  opacity: 0.1;
}

/* grid of subtle dots */
.auth-brand-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Floating tech pills */
/* ── Hover feature cards ── */
.brand-cards {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3;
  width: 210px;
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px 11px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  cursor: default;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: inset 4px 0 0 var(--card-color);
  will-change: transform;
}

.brand-card:hover {
  transform: translateX(-10px) scale(1.03);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 4px 0 0 var(--card-color),
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand-card-icon {
  font-size: 1.3rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-card:hover .brand-card-icon {
  transform: scale(1.15) rotate(-5deg);
}

.brand-card-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.brand-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-card-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.32s ease,
    opacity 0.28s ease,
    margin-top 0.28s ease;
}

.brand-card:hover .brand-card-desc {
  max-height: 60px;
  opacity: 1;
  margin-top: 4px;
}

/* staggered entrance animation */
.brand-card {
  animation: cardSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.brand-card:nth-child(1) {
  animation-delay: 0.1s;
}

.brand-card:nth-child(2) {
  animation-delay: 0.2s;
}

.brand-card:nth-child(3) {
  animation-delay: 0.3s;
}

.brand-card:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

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

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

/* Logo header */
.auth-brand-header {
  position: relative;
  z-index: 2;
  animation: fadeSlideUp 0.5s ease backwards;
  animation-delay: 0.05s;
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.auth-brand-logo .logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.auth-brand-logo .logo-text span {
  color: var(--google-blue);
}

/* Center hero */
.auth-brand-hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  animation: fadeSlideUp 0.55s ease backwards;
  animation-delay: 0.15s;
}

.brand-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--google-blue);
  margin-bottom: 22px;
}

.brand-headline {
  font-size: clamp(3rem, 4.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.brand-morphbox {
  overflow: hidden;
  height: clamp(3.6rem, 5.2vw, 5rem);
  display: flex;
  align-items: flex-end;
}

.brand-morphword {
  font-size: clamp(3rem, 4.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #4285F4 0%, #34A853 50%, #FBBC04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  will-change: transform, opacity;
}

.brand-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 28px;
  letter-spacing: 0.06em;
  line-height: 1.9;
}

/* Bottom footer */
.auth-brand-footer {
  position: relative;
  z-index: 2;
  animation: fadeSlideUp 0.55s ease backwards;
  animation-delay: 0.25s;
}

.brand-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.brand-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-stat-n {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-stat-l {
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.brand-stat-sep {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.brand-copyright {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.brand-copyright a {
  color: inherit;
  opacity: 0.65;
  text-decoration: none;
}

.brand-copyright a:hover {
  opacity: 1;
}

/* ── Live event pill ── */
.brand-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 168, 83, 0.1);
  border: 1px solid rgba(52, 168, 83, 0.28);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #34A853;
  margin-bottom: 26px;
  width: fit-content;
  animation: fadeSlideUp 0.5s ease backwards;
  animation-delay: 0.08s;
}

.brand-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34A853;
  flex-shrink: 0;
  animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.5);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.75);
    box-shadow: 0 0 0 4px rgba(52, 168, 83, 0);
  }
}



/* ══════════════════════════════════════════
   GOOGLE SIGN-IN NUDGE POPUP (home screen)
══════════════════════════════════════════ */
#gsi-popup {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 290px;
  background: rgba(16, 16, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 22px 20px 18px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 40px rgba(66, 133, 244, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  /* hidden by default */
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#gsi-popup.gsi-popup--show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#gsi-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

#gsi-popup-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.gsi-popup-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.gsi-popup-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.gsi-popup-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.gsi-popup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  margin-top: 6px;
  background: #fff;
  color: #1f1f1f;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.gsi-popup-cta:hover {
  background: #f1f3f4;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.gsi-popup-cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.gsi-popup-email {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.gsi-popup-email:hover {
  opacity: 1;
  color: #fff;
}

/* Community stats inside brand panel */
.auth-brand-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.auth-stat {
  display: flex;
  flex-direction: column;
}

.auth-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--google-blue), var(--google-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

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

/* Feature bullets */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.auth-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.fi-blue {
  background: rgba(66, 133, 244, 0.15);
}

.fi-green {
  background: rgba(52, 168, 83, 0.15);
}

.fi-yellow {
  background: rgba(251, 188, 4, 0.15);
}

.auth-brand-bottom {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  color: var(--text-muted);
}



/* ── Right form panel ── */
.auth-form-panel {
  background: rgba(10, 10, 15, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  overflow-y: auto;
  position: relative;
}

/* subtle mesh on form side */
.auth-form-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(66, 133, 244, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(52, 168, 83, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.auth-form-wrap {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

/* rainbow top accent bar */
.auth-form-wrap::before {
  content: '';
  display: block;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
  margin-bottom: 36px;
  animation: rainbowShift 6s ease infinite;
  background-size: 200% auto;
}

@keyframes rainbowShift {
  0% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }

  100% {
    background-position: 0% center;
  }
}

.auth-form-heading {
  margin-bottom: 6px;
}

.auth-form-heading h1 {
  font-size: 1.75rem;
  font-weight: 800;
}

.auth-form-heading p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Tabs ── */
.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 4px;
  margin: 28px 0 32px;
  border: 1px solid var(--dark-border);
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.auth-tab.active {
  background: var(--dark-card);
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.auth-tab:hover:not(.active) {
  color: var(--text-primary);
}

/* ── Google CTA (top) ── */
.btn-google-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 24px;
  letter-spacing: 0.2px;
}

.btn-google-main:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ── Divider ── */
.auth-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.auth-or span {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--dark-border);
}

/* ── Floating label inputs ── */
.form-field {
  position: relative;
  margin-bottom: 20px;
}

.form-field input,
.form-field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 22px 16px 8px 44px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  outline: none;
  line-height: 1;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--google-blue);
  background: rgba(66, 133, 244, 0.05);
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.12);
}

/* floating label */
.form-field label {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
  line-height: 1;
}

/* Move label up when input is focused or has content */
.form-field input:focus~label,
.form-field input:not(:placeholder-shown)~label,
.form-field select:focus~label,
.form-field select:not([value=""])~label {
  top: 10px;
  transform: none;
  font-size: 0.7rem;
  color: var(--google-blue);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* field icon */
.form-field .fi {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: color 0.25s;
}

.form-field:focus-within .fi {
  color: var(--google-blue);
}

/* password toggle inside field */
.form-field .pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  transition: color 0.2s;
}

.form-field .pw-toggle:hover {
  color: var(--text-primary);
}

/* password input needs right padding for toggle */
.form-field.has-toggle input {
  padding-right: 46px;
}

/* ── Password strength ── */
.pw-strength {
  margin-top: 8px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.pw-strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
}

.pw-strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.3s ease;
}

.pw-strength-bar.filled-1 {
  background: var(--google-red);
}

.pw-strength-bar.filled-2 {
  background: var(--google-yellow);
}

.pw-strength-bar.filled-3 {
  background: var(--google-blue);
}

.pw-strength-bar.filled-4 {
  background: var(--google-green);
}

.pw-strength-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 56px;
  text-align: right;
  transition: color 0.3s;
}

/* ── Options row ── */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  margin-top: -4px;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.83rem;
  color: var(--text-secondary);
  user-select: none;
}

.checkbox-wrap input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--google-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.forgot-link {
  font-size: 0.83rem;
  color: var(--google-blue);
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* ── Submit CTA ── */
.btn-auth {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.975rem;
  font-weight: 700;
  background: var(--google-blue);
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.2px;
}

.btn-auth::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-auth:hover {
  background: #5a95f5;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(66, 133, 244, 0.5);
}

.btn-auth:hover::after {
  opacity: 1;
}

.btn-auth:active {
  transform: translateY(0);
}

.btn-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Loading spinner inside button */
.btn-auth .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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

/* ── Footer link ── */
.auth-switch {
  text-align: center;
  margin-top: 26px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--google-blue);
  font-weight: 600;
  text-decoration: none;
}

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

/* ── Status message ── */
.auth-status-msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.845rem;
  font-weight: 500;
  margin-bottom: 18px;
  display: none;
  align-items: flex-start;
  gap: 10px;
  border-left: 3px solid transparent;
}

.auth-status-msg.show {
  display: flex;
  animation: statusIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.auth-status-msg.error {
  background: rgba(234, 67, 53, 0.1);
  border: 1px solid rgba(234, 67, 53, 0.25);
  border-left: 3px solid #EA4335;
  color: #f28b82;
  animation: statusIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) both,
    statusShake 0.38s ease 0.2s both;
}

.auth-status-msg.success {
  background: rgba(52, 168, 83, 0.1);
  border: 1px solid rgba(52, 168, 83, 0.25);
  border-left: 3px solid #34A853;
  color: #81c995;
}

.auth-status-msg svg {
  flex-shrink: 0;
  margin-top: 1px;
}

@keyframes statusIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

@keyframes statusShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px);
  }

  45% {
    transform: translateX(5px);
  }

  65% {
    transform: translateX(-3px);
  }

  85% {
    transform: translateX(3px);
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    display: none;
  }

  .auth-form-panel {
    padding: 100px 28px 48px;
    align-items: flex-start;
  }

  .auth-form-wrap {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .auth-form-panel {
    padding: 90px 20px 40px;
  }
}

/* ── keep old class names working for non-auth forms ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
  transition: color 0.3s;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--dark-border);
  border-radius: 12px;
  padding: 13px 16px 13px 44px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--google-blue);
  background: rgba(66, 133, 244, 0.05);
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
}

.form-input-wrap:focus-within .form-icon {
  color: var(--google-blue);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.password-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.password-toggle:hover {
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--dark-border);
}

.social-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--dark-border);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: translateY(-2px);
}

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

.auth-footer a {
  color: var(--google-blue);
  text-decoration: none;
  font-weight: 600;
}

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

/* ── Auth card (old, used by dashboard forms) ── */
.auth-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 28px;
  padding: 50px 44px;
  position: relative;
  overflow: hidden;
  animation: authSlideIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes authSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

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

.auth-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 4px;
  background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
  border-radius: 28px 28px 0 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

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


@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

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

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* stagger delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

.delay-6 {
  transition-delay: 0.6s;
}

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    width: min(92%, 1100px);
    background: rgba(12, 12, 20, 0.82);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  }

  .nav-links.open {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
  }

  .nav-cta {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-card {
    padding: 36px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .social-auth {
    grid-template-columns: 1fr;
  }
}

/* ===== LOADING ANIMATION ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-dots {
  display: flex;
  gap: 10px;
}

.loader-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: loaderBounce 1.2s ease infinite;
}

.loader-dot:nth-child(1) {
  background: var(--google-blue);
  animation-delay: 0s;
}

.loader-dot:nth-child(2) {
  background: var(--google-red);
  animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
  background: var(--google-yellow);
  animation-delay: 0.4s;
}

.loader-dot:nth-child(4) {
  background: var(--google-green);
  animation-delay: 0.6s;
}

@keyframes loaderBounce {

  0%,
  80%,
  100% {
    transform: scale(0.8) translateY(0);
    opacity: 0.5;
  }

  40% {
    transform: scale(1.2) translateY(-12px);
    opacity: 1;
  }
}

/* ===== FLOATING SHAPES ===== */
.floating-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
  animation: shapeFloat 12s ease-in-out infinite;
}

@keyframes shapeFloat {

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

  33% {
    transform: translateY(-20px) rotate(120deg);
  }

  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

/* ===== GLOWING DIVIDER ===== */
.glow-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--google-blue), var(--google-green));
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ===== GOOGLE COLORS BAR ===== */
.google-bar {
  display: flex;
  gap: 0;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 32px;
}

.google-bar span {
  flex: 1;
}

.google-bar .b {
  background: var(--google-blue);
}

.google-bar .r {
  background: var(--google-red);
}

.google-bar .y {
  background: var(--google-yellow);
}

.google-bar .g {
  background: var(--google-green);
}

/* ===== NOTIFICATION TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 340px;
}

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

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(52, 168, 83, 0.2);
  color: var(--google-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toast-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.toast-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== NAV USER STATE (logged-in) ===== */
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 5px 14px 5px 5px;
  border-radius: 50px;
  border: 1px solid var(--dark-border);
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
}

.nav-user-btn:hover {
  border-color: rgba(66, 133, 244, 0.4);
  background: rgba(66, 133, 244, 0.08);
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(66, 133, 244, 0.35);
  display: block;
}

.nav-username {
  font-size: 0.875rem;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-signout-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(234, 67, 53, 0.1);
  border: 1px solid rgba(234, 67, 53, 0.25);
  color: var(--google-red);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.nav-signout-btn:hover {
  background: var(--google-red);
  color: white;
}

/* ===== FORM STATUS / INLINE FEEDBACK ===== */
.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.error {
  background: rgba(234, 67, 53, 0.1);
  border: 1px solid rgba(234, 67, 53, 0.25);
  color: #f28b82;
}

.form-status.success {
  background: rgba(52, 168, 83, 0.1);
  border: 1px solid rgba(52, 168, 83, 0.25);
  color: #81c995;
}

/* ===== PASSWORD STRENGTH BAR ===== */
.password-strength-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.password-strength-bar>div {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.4s ease, background 0.4s ease;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-body {
  background: var(--dark-bg);
}

.dashboard-main {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  padding-top: 96px;
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

/* Sidebar */
.dashboard-sidebar {
  background: rgba(14, 14, 20, 0.85);
  border-right: 1px solid var(--dark-border);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: calc(100vh - 70px);
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  backdrop-filter: blur(16px);
}

.sidebar-avatar-wrap {
  text-align: center;
  padding: 28px 16px 24px;
  margin-bottom: 8px;
}

.sidebar-avatar-ring {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
}

.sidebar-avatar-ring-glow {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(#4285F4 0%, #34A853 33%, #FBBC04 66%, #EA4335 85%, #4285F4 100%);
  animation: spinRing 5s linear infinite;
  z-index: 0;
}

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

.sidebar-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--dark-bg);
  display: block;
  background: var(--dark-bg);
  position: relative;
  z-index: 1;
}

.sidebar-initials {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--google-blue), var(--google-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  z-index: 1;
}

.sidebar-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.sidebar-role {
  font-size: 0.78rem;
  color: var(--google-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(66, 133, 244, 0.08);
  color: var(--google-blue);
  box-shadow: inset 3px 0 0 var(--google-blue);
}

.sidebar-link.active {
  font-weight: 600;
}

.sidebar-logout {
  margin-top: auto;
  color: var(--google-red) !important;
}

.sidebar-logout:hover {
  background: rgba(234, 67, 53, 0.1) !important;
  color: var(--google-red) !important;
}

/* Dashboard Content */
.dashboard-content {
  padding: 40px;
  overflow-y: auto;
}

/* Welcome header */
.dash-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--dark-border);
  animation: fadeSlideUp 0.45s ease both;
}

.dash-welcome-greeting {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.dash-welcome-name {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.dash-welcome-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(66, 133, 244, 0.12);
  border: 1px solid rgba(66, 133, 244, 0.28);
  color: #4285F4;
}

/* Quick overview strip */
.dash-overview-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.5s ease 0.1s both;
}

.dash-ov-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dash-ov-item:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

.dash-ov-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--oc, #4285F4) 14%, transparent);
  color: var(--oc, #4285F4);
  margin-bottom: 6px;
  flex-shrink: 0;
}

.dash-ov-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: capitalize;
  line-height: 1.2;
}

.dash-ov-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
}

.dash-section {
  animation: fadeSlideUp 0.5s ease 0.05s both;
}

.dash-section-header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--dark-border);
}

.dash-section-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.dash-section-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dash-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--dark-border);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 18px;
  transition: border-color 0.22s ease, background 0.22s ease;
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4285F4 0%, #34A853 50%, #FBBC04 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.dash-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

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

.dash-card-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--dark-border);
  color: var(--text-muted);
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
}

.info-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.info-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Dashboard responsive */
@media (max-width: 900px) {
  .dashboard-main {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
    min-height: unset;
    border-right: none;
    border-bottom: 1px solid var(--dark-border);
    flex-direction: row;
    flex-wrap: wrap;
    padding: 20px;
    gap: 12px;
    align-items: center;
  }

  .sidebar-avatar-wrap {
    text-align: left;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
  }

  .sidebar-avatar-ring {
    width: 54px;
    height: 54px;
    margin: 0;
  }

  .sidebar-avatar,
  .sidebar-initials {
    width: 48px;
    height: 48px;
  }

  .sidebar-initials {
    font-size: 1.1rem;
  }

  .sidebar-name {
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 0;
  }

  .dashboard-content {
    padding: 24px 16px;
  }

  .dash-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dash-overview-row {
    grid-template-columns: 1fr 1fr;
  }

  .profile-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== QUIZ PAGE ===== */

.quiz-main {
  min-height: 100vh;
  padding: 110px 24px 60px;
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.quiz-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

/* ── Lobby ── */
.quiz-lobby-header {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeSlideUp 0.45s ease both;
}

.quiz-lobby-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff 0%, rgba(255, 255, 255, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.quiz-lobby-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Quiz card ── */
.qcard {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 0.5s ease both;
}

.qcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--qc, #4285F4);
  opacity: 0;
  transition: opacity 0.22s;
}

.qcard:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-3px);
}

.qcard:hover::before {
  opacity: 1;
}

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

.qcard-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.qcard-badge {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 50px;
  background: color-mix(in srgb, var(--qc, #4285F4) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--qc, #4285F4) 35%, transparent);
  color: var(--qc, #4285F4);
}

.qcard-badge--new {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.qcard-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}

.qcard-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.qcard-meta {
  display: flex;
  gap: 14px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.qcard-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.qcard-progress-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.qcard-start {
  margin-top: 6px;
  background: color-mix(in srgb, var(--btn-accent, #4285F4) 18%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--btn-accent, #4285F4) 40%, transparent) !important;
  color: var(--btn-accent, #4285F4) !important;
  font-size: 0.82rem !important;
  padding: 10px 0 !important;
}

.qcard-start:hover {
  background: color-mix(in srgb, var(--btn-accent, #4285F4) 28%, transparent) !important;
}

/* ── Active quiz ── */
.quiz-active {
  max-width: 680px;
  margin: 0 auto;
  animation: fadeSlideUp 0.4s ease both;
}

.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 14px;
}

.quiz-exit {
  background: rgba(234, 67, 53, 0.1);
  border: 1px solid rgba(234, 67, 53, 0.25);
  color: #EA4335;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s;
  white-space: nowrap;
}

.quiz-exit:hover {
  background: rgba(234, 67, 53, 0.2);
}

.quiz-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex: 1;
}

.quiz-counter {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quiz-timer {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.quiz-progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.quiz-progress-bar-outer {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.quiz-progress-bar-inner {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.quiz-score-live {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.quiz-q-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px 28px 24px;
}

.quiz-q-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.quiz-q-text {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  margin-bottom: 24px;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.quiz-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
}

.quiz-opt:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(3px);
}

.quiz-opt--correct {
  background: rgba(52, 168, 83, 0.15) !important;
  border-color: #34A853 !important;
  color: #34A853 !important;
}

.quiz-opt--wrong {
  background: rgba(234, 67, 53, 0.13) !important;
  border-color: #EA4335 !important;
  color: #EA4335 !important;
}

.quiz-feedback {
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 24px;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 0 4px;
}

.quiz-feedback--correct {
  color: #34A853;
}

.quiz-feedback--wrong {
  color: #EA4335;
}

.quiz-next {
  width: 100%;
  justify-content: center;
}

/* ── Result ── */
.quiz-result {
  max-width: 480px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 40px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}

.quiz-result-icon {
  font-size: 3.5rem;
  line-height: 1;
  animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes bounceIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.quiz-result-grade {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.quiz-result-quiz {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.quiz-result-score-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 8px 0;
}

.quiz-result-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.quiz-result-pct span {
  font-size: 0.9rem;
  opacity: 0.6;
  font-weight: 500;
  margin-left: 1px;
}

.quiz-result-stats {
  display: flex;
  gap: 28px;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: 100%;
  justify-content: center;
}

.quiz-result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qrs-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.qrs-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.quiz-result-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.quiz-result-actions .btn-auth {
  flex: 1;
  justify-content: center;
}

.quiz-retry {
  background: color-mix(in srgb, var(--btn-accent) 18%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--btn-accent) 40%, transparent) !important;
  color: var(--btn-accent) !important;
}

.quiz-home {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text-secondary) !important;
}

/* ── Quiz page login prompt ── */
.quiz-login-prompt {
  max-width: 520px;
  margin: 60px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding: 48px 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
}

.qlp-icon {
  font-size: 3.2rem;
  line-height: 1;
  animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.qlp-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
}

.qlp-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 380px;
}

.qlp-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 4px 0;
}

.qlp-track {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--qc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--qc) 35%, transparent);
  color: var(--qc);
}

.qlp-google-btn-wrap {
  margin-top: 4px;
  align-self: stretch;
}

.qlp-google-btn-wrap .btn-google-main {
  margin-bottom: 0;
}

.qlp-email-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.qlp-email-link:hover {
  color: #4285F4;
}

/* ── Dashboard quiz empty state ── */
.dash-quiz-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 56px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.dash-quiz-empty-icon {
  font-size: 3rem;
  line-height: 1;
}

.dash-quiz-empty h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.dash-quiz-empty p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 340px;
  margin: 0;
  line-height: 1.6;
}

/* ── Dashboard quiz score grid ── */
.dash-quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.dash-qscore-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--qc, #4285F4);
  border-radius: 16px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, border-color 0.2s;
}

.dash-qscore-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--qc) 60%, transparent);
}

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

.dash-qscore-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.dash-qscore-grade {
  font-size: 1.1rem;
}

.dash-qscore-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
}

.dash-qscore-pct {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 4px;
}

.dash-qscore-pct span {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.6;
}

.dash-qscore-bar-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
  margin: 4px 0 2px;
}

.dash-qscore-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.9s cubic-bezier(.4, 0, .2, 1);
}

.dash-qscore-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0;
}

.dash-qscore-retry {
  font-size: 0.75rem;
  color: var(--qc, #4285F4);
  text-decoration: none;
  font-weight: 600;
  margin-top: 4px;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.dash-qscore-retry:hover {
  opacity: 1;
}

/* ── Dashboard rank banner ── */
.dash-rank-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(52, 168, 83, 0.08) 100%);
  border: 1px solid rgba(66, 133, 244, 0.25);
  border-radius: 16px;
  margin-bottom: 20px;
}

.dash-rank-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-rank-medal {
  font-size: 2.2rem;
  line-height: 1;
}

.dash-rank-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 2px;
}

.dash-rank-pos {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1;
}

.dash-rank-pos span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.dash-rank-rating {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4285F4;
  padding: 4px 12px;
  background: rgba(66, 133, 244, 0.12);
  border: 1px solid rgba(66, 133, 244, 0.25);
  border-radius: 99px;
}

.dash-rank-rating span {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.7;
}

/* Leaderboard dropdown */
.dash-lb-details {
  flex-shrink: 0;
}

.dash-lb-details summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4285F4;
  list-style: none;
  padding: 6px 14px;
  border: 1px solid rgba(66, 133, 244, 0.3);
  border-radius: 99px;
  transition: background 0.15s;
  user-select: none;
}

.dash-lb-details summary:hover {
  background: rgba(66, 133, 244, 0.1);
}

.dash-lb-details[open] summary {
  margin-bottom: 10px;
}

.dash-lb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
}

.dash-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.82rem;
}

.dash-lb-row--me {
  background: rgba(66, 133, 244, 0.1);
  border-color: rgba(66, 133, 244, 0.3);
}

.dash-lb-rank {
  font-size: 1rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.dash-lb-name {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-lb-rating {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4285F4;
  flex-shrink: 0;
}

/* ── Quiz result rank pill ── */
.quiz-result-rank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.12) 0%, rgba(52, 168, 83, 0.08) 100%);
  border: 1px solid rgba(66, 133, 244, 0.3);
  border-radius: 14px;
  width: 100%;
}

.qrr-medal {
  font-size: 1.8rem;
  line-height: 1;
}

.qrr-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 2px;
}

.qrr-pos {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.qrr-pos span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .quiz-main {
    padding: 100px 16px 48px;
  }

  .quiz-grid {
    grid-template-columns: 1fr;
  }

  .quiz-q-wrap {
    padding: 20px 16px 18px;
  }

  .quiz-q-text {
    font-size: 1rem;
  }

  .quiz-topbar {
    flex-wrap: wrap;
  }
}

/* ===== EVENTS PAGE STATS BAR ===== */
.events-stats-bar {
  display: flex;
  gap: 0;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 50px;
}

.events-stat-item {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid var(--dark-border);
  transition: var(--transition);
}

.events-stat-item:last-child {
  border-right: none;
}

.events-stat-item:hover {
  background: rgba(66, 133, 244, 0.05);
}

.events-stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--google-blue), var(--google-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

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

/* ===== EVENTS PAGE BIG CARDS ===== */
.event-card-big {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  grid-template-columns: 180px 1fr;
  position: relative;
}

.event-card-big:hover {
  transform: translateY(-6px);
  border-color: rgba(66, 133, 244, 0.35);
  box-shadow: 0 24px 60px rgba(66, 133, 244, 0.18);
}

.event-card-big .event-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(66, 133, 244, 0.15) 0%, rgba(52, 168, 83, 0.1) 100%);
  padding: 32px 20px;
  border-right: 1px solid var(--dark-border);
  gap: 6px;
}

.event-card-big .date-day {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--google-blue), var(--google-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.event-card-big .date-month {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.event-card-big .date-year {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.event-card-big .event-info {
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-card-big .event-info-top {
  flex: 1;
}

.event-card-big .event-title-big {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s;
}

.event-card-big:hover .event-title-big {
  color: var(--google-blue);
}

.event-card-big .event-desc-big {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-big .event-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.event-card-big .event-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-card-big .event-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.event-card-big .event-loc svg {
  width: 14px;
  height: 14px;
}

.events-section-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0 5%;
  margin-bottom: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.events-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--dark-border);
}

/* ===== ACTIVE NAV LINK ===== */
a.active-link {
  color: var(--google-blue) !important;
}

/* ===== BTN DISABLED STATE ===== */
.btn-auth:disabled,
.btn-auth[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* ===== MOBILE DASHBOARD ===== */
@media (max-width: 640px) {
  .event-card-big {
    grid-template-columns: 1fr;
  }

  .event-card-big .event-date-block {
    flex-direction: row;
    padding: 18px 20px;
    border-right: none;
    border-bottom: 1px solid var(--dark-border);
    gap: 12px;
  }

  .event-card-big .date-day {
    font-size: 2rem;
  }

  .dash-card {
    padding: 20px 16px;
  }
}

/* ===== EVENT CARD HOVER POPOUT ===== */
.event-popout {
  position: fixed;
  z-index: 9500;
  width: 300px;
  background: var(--dark-card);
  border: 1px solid rgba(66, 133, 244, 0.25);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.88) translateY(8px);
  transform-origin: top left;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}

.event-popout.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.ep-hero {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
  flex-shrink: 0;
}

.ep-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, var(--dark-card));
  pointer-events: none;
}

.ep-badge {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 5;
  font-size: 0.68rem;
  padding: 3px 10px;
}

.ep-body {
  padding: 10px 14px 14px;
}

.ep-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 6px;
  white-space: normal;
}

.ep-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.ep-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.ep-meta-row svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--google-blue);
}

.ep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.ep-tag {
  background: rgba(66, 133, 244, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.2);
  color: rgba(66, 133, 244, 0.9);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 500;
}

.ep-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.6;
  text-align: center;
  padding-top: 6px;
  border-top: 1px solid var(--dark-border);
}