:root {
  --bg: #05060d;
  --text: #eef2ff;
  --muted: rgba(220, 225, 255, 0.72);
  --cyan: #2ecbff;
  --blue: #4f7cff;
  --violet: #a855f7;
  --orange: #ff6b4a;
  --glass: rgba(16, 18, 34, 0.62);
  --stroke: rgba(140, 160, 255, 0.22);
  --glow-blue: 0 0 28px rgba(46, 203, 255, 0.35);
  --glow-violet: 0 0 28px rgba(168, 85, 247, 0.35);
  --glow-orange: 0 0 28px rgba(255, 107, 74, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", "Poppins", system-ui, sans-serif;
  background: #05060d;
  color: #eef2ff;
  min-height: 100vh;
}

body.neon-home {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  text-align: left;
  padding: 0;
  overflow-x: hidden;
}

.neon-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 15% 10%, rgba(88, 40, 180, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 45% at 85% 20%, rgba(30, 90, 255, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(180, 40, 120, 0.25), transparent 55%),
    linear-gradient(180deg, #070814 0%, #05060d 55%, #04040a 100%);
}

.neon-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(120, 80, 255, 0.08) 50%, transparent 60%),
    linear-gradient(250deg, transparent 35%, rgba(46, 203, 255, 0.07) 48%, transparent 62%);
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translateX(-2%) translateY(0);
  }
  to {
    transform: translateX(2%) translateY(-1%);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.home-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2rem;
}

.hero {
  text-align: center;
  padding: 0.75rem 0 1.25rem;
}

.hero-title {
  font-family: "Outfit", "Orbitron", sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 0.65rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 0 28px rgba(46, 203, 255, 0.35);
}

.hero-title span {
  color: #7ddcff;
  -webkit-text-fill-color: #7ddcff;
  background: none;
  text-shadow: 0 0 22px rgba(46, 203, 255, 0.55);
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.55rem;
  text-shadow: 0 0 12px rgba(46, 203, 255, 0.4);
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 560px;
  margin: 1.75rem auto 0;
}

.home-stats div {
  background: rgba(16, 18, 34, 0.55);
  border: 1px solid rgba(140, 160, 255, 0.18);
  border-radius: 16px;
  padding: 0.85rem 0.5rem;
}

.home-stats strong {
  display: block;
  font-size: 1.2rem;
  color: #fff;
}

.home-stats span {
  font-size: 0.78rem;
  color: var(--muted);
}

.how-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.how-card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 1.05rem 1.1rem;
}

.how-card span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(46, 203, 255, 0.18);
  color: #7dd3fc;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
}

.how-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.how-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-cta,
.create-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: #041018;
  cursor: pointer;
  background: linear-gradient(90deg, #22d3ee, #3b82f6 55%, #6366f1);
  box-shadow: var(--glow-blue);
  transition: transform 0.2s, filter 0.2s;
}

.hero-cta:hover,
.create-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
}

.location-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.location-panel-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.use-maps-link {
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.use-maps-link:hover {
  text-decoration: underline;
}

.city-select,
.neon-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(140, 160, 255, 0.28);
  background: rgba(8, 10, 22, 0.85);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}

.city-select option {
  background: #12142a;
  color: #fff;
}

.city-select:focus,
.neon-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(46, 203, 255, 0.15);
}

.neon-textarea {
  resize: vertical;
  min-height: 5rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-align: center;
}

.categories-section {
  margin: 2rem 0 1.25rem;
}

.category-grid,
.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.box,
.category-box {
  position: relative;
  min-height: 280px;
  border-radius: 22px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  font: inherit;
  background-color: #111;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}

.box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 20%, rgba(5, 6, 16, 0.88) 100%);
  z-index: 0;
}

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

.box:hover {
  transform: translateY(-6px) scale(1.01);
}

.category-box.selected {
  border-color: #fff;
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

.category-box h2 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.box-hint {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
}

.theme-sports {
  background: url("6e8dee8c367438760a633db5c84c1e39.jpg") center/cover no-repeat;
  box-shadow: var(--glow-blue);
}
.theme-sports .card-link {
  color: #7dd3fc;
}
.theme-sports.selected {
  box-shadow: 0 0 0 2px #2ecbff, var(--glow-blue);
}

.theme-profession {
  background: url("profession.jpeg") center/cover no-repeat;
  box-shadow: var(--glow-violet);
}
.theme-profession .card-link {
  color: #d8b4fe;
}
.theme-profession.selected {
  box-shadow: 0 0 0 2px #a855f7, var(--glow-violet);
}

.theme-events {
  background: url("images.jpeg") center/cover no-repeat;
  box-shadow: var(--glow-orange);
}
.theme-events .card-link {
  color: #fdba74;
}
.theme-events.selected {
  box-shadow: 0 0 0 2px #ff6b4a, var(--glow-orange);
}

.option-step .section-title {
  text-align: left;
  font-size: 1.1rem;
}

.create-panel .hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.create-panel .section-title {
  text-align: left;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.group-actions {
  margin-top: 1rem;
}

.create-btn {
  margin: 0;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.trust-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.trust-item span {
  font-size: 1.25rem;
}

.trust-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.trust-item p {
  font-size: 0.82rem;
  color: var(--muted);
}

.joke-panel {
  margin-top: 0.25rem;
}

.joke-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.joke-title {
  margin: 0;
  text-align: left;
  font-size: 1.15rem;
}

.joke-refresh {
  margin: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 203, 255, 0.45);
  background: rgba(46, 203, 255, 0.1);
  color: #7dd3fc;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.joke-refresh:hover {
  background: rgba(46, 203, 255, 0.2);
}

.joke-body {
  text-align: left;
}

.joke-setup {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.55rem;
  line-height: 1.45;
}

.joke-punchline {
  font-size: 1.1rem;
  font-weight: 600;
  color: #c084fc;
  line-height: 1.4;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}

.joke-loading {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .category-grid,
  .container,
  .trust-bar,
  .how-row,
  .home-stats {
    grid-template-columns: 1fr;
  }

  .box,
  .category-box {
    min-height: 220px;
  }
}
