@import url("https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --card: #18181f;
  --border: #2a2a3a;
  --accent: #ff2d6b;
  --accent2: #00e5ff;
  --accent3: #ffe600;
  --text: #f0f0ff;
  --muted: #666680;
  --radius: 12px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Mono", monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── HEADER ── */
header {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  z-index: 100;
}

.logo {
  font-family: "Black Han Sans", sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  background: linear-gradient(90deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-badge {
  font-size: 10px;
  background: var(--accent);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ── SEARCH ── */
.search-wrap {
  padding: 40px 32px 20px;
  max-width: 860px;
  margin: 0 auto;
}

.search-title {
  font-family: "Black Han Sans", sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.search-title .highlight {
  color: var(--accent);
  display: block;
}

.search-box {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 6px 6px 20px;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: 16px;
  caret-color: var(--accent2);
}

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

.search-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.search-btn:hover {
  background: #ff0055;
  transform: translateY(-1px);
}
.search-btn:active {
  transform: translateY(0);
}

/* ── CONTACT MODAL ── */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 450px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.modal h2 {
  margin: 0;
  font-family: "Black Han Sans", sans-serif;
  color: var(--accent);
}
.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
}
#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: 14px;
}
#contactForm textarea {
  resize: vertical;
}
#contactForm button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-weight: 700;
}
#contactForm button:hover {
  background: #ff0055;
}

/* ── CONTACT PAGE ── */
.contact-page {
  background: var(--bg);
  color: var(--text);
  padding: 40px 20px;
  min-height: 100vh;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-back-link {
  text-decoration: none;
  color: var(--accent);
  font-family: "Space Mono", monospace;
  font-size: 14px;
}

.contact-title {
  margin-top: 30px;
  color: var(--accent);
  font-family: "Black Han Sans", sans-serif;
  font-size: 2rem;
}

.contact-description {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.contact-form-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-input,
.contact-textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.contact-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  align-self: flex-start;
  transition: background 0.2s;
}

.contact-button:hover {
  background: #ff0055;
}

.contact-status {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.contact-footer {
  margin: 40px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ── FULL CONTACT PAGE STYLES ── */
/* Background animations */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  animation: floatBlob 12s ease-in-out infinite alternate;
}

.blob-1 {
  width: 520px;
  height: 520px;
  background: var(--neon-pink);
  top: -120px;
  left: -100px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--neon-cyan);
  bottom: -80px;
  right: -80px;
  animation-delay: -4s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: var(--neon-yellow);
  top: 40%;
  left: 55%;
  animation-delay: -8s;
}

@keyframes floatBlob {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(30px, 40px) scale(1.08);
  }
}

/* Page wrapper */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 80px;
}

/* Header */
.contact-header {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
}

.logo {
  font-family: "Boogaloo", cursive;
  font-size: 2rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.logo span {
  background: var(--neon-yellow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-left: 28px;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--neon-cyan);
}

/* Hero section */
.hero {
  margin-top: 80px;
  text-align: center;
}

.tag-pill {
  display: inline-block;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--neon-cyan);
  font-size: 0.75rem;
  font-family: "Space Mono", monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  font-family: "Boogaloo", cursive;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-inline: auto;
  animation: fadeUp 0.7s 0.2s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main grid */
.contact-grid {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 28px;
  margin-top: 64px;
  animation: fadeUp 0.8s 0.35s ease both;
}

/* Info panel */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
}

.glass-card:hover {
  border-color: rgba(0, 245, 255, 0.25);
  transform: translateY(-3px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.icon-pink {
  background: rgba(255, 45, 120, 0.15);
}
.icon-cyan {
  background: rgba(0, 245, 255, 0.12);
}
.icon-yellow {
  background: rgba(255, 230, 0, 0.12);
}
.icon-green {
  background: rgba(57, 255, 20, 0.12);
}

.card-label {
  font-size: 0.7rem;
  font-family: "Space Mono", monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.card-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Social row */
.social-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sb-x {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
}

.sb-discord {
  background: #5865f2;
  color: #fff;
}
.sb-reddit {
  background: #ff4500;
  color: #fff;
}
.sb-insta {
  background: linear-gradient(
    135deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  color: #fff;
}

/* Form panel */
.form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--neon-pink),
    var(--neon-cyan),
    var(--neon-yellow)
  );
}

.form-title {
  font-family: "Boogaloo", cursive;
  font-size: 1.9rem;
  margin-bottom: 6px;
}

.form-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.75rem;
  font-family: "Space Mono", monospace;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  font-family: "Rubik", sans-serif;
  font-size: 0.95rem;
  padding: 13px 16px;
  width: 100%;
  outline: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
  resize: none;
}

.field::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.field:focus {
  border-color: var(--neon-cyan);
  background: rgba(0, 245, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.08);
}

textarea.field {
  min-height: 130px;
}

/* Topic chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--muted);
  transition: all 0.2s;
  user-select: text; /* allow copying chip labels */
}

.chip:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.chip.active {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: #000;
  font-weight: 700;
}

/* header back link (contact page) */
.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-right: 16px;
}
.back-link:hover {
  color: var(--yellow);
}

/* page title that appears next to logo on certain pages */
.page-title {
  margin-left: 8px;
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 500;
  display: none; /* visible only on narrow screens */
}

@media (max-width: 860px) {
  .page-title {
    display: inline-block;
  }
}

/* Submit button */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--neon-pink), #c020e0);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-family: "Boogaloo", cursive;
  font-size: 1.25rem;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1; /* ensure button sits above any positioned siblings */
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 45, 120, 0.4);
}

.submit-btn:hover::before {
  opacity: 1;
}

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

/* Cancel/back button - secondary styling */
.cancel-btn {
  padding: 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}
.cancel-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.submit-btn .btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn svg {
  transition: transform 0.25s;
}

.submit-btn:hover svg {
  transform: translateX(4px) rotate(-15deg);
}

/* Back link in contact header */
.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-right: 16px;
}
.back-link:hover {
  color: var(--yellow);
}

/* FAQ strip */
.faq-strip {
  width: 100%;
  max-width: 1100px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  animation: fadeUp 0.8s 0.5s ease both;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  cursor: pointer;
  transition:
    border-color 0.25s,
    transform 0.25s;
}

.faq-item:hover {
  border-color: rgba(255, 45, 120, 0.3);
  transform: translateY(-2px);
}

.faq-q {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-chevron {
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--neon-pink);
}

.faq-a {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-a {
  /* allow answers of variable length, transition works because max-height is large */
  max-height: 1000px;
}

/* Success overlay */
.success-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition:
    opacity 0.4s,
    transform 0.4s;
  z-index: 10;
}

.success-overlay.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.success-gif {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: bounce 1s ease infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-12px);
  }
}

.success-title {
  font-family: "Boogaloo", cursive;
  font-size: 2.2rem;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-msg {
  color: var(--muted);
  margin-top: 10px;
  font-size: 0.95rem;
}

.reset-link {
  margin-top: 22px;
  color: var(--neon-pink);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: "Rubik", sans-serif;
}

/* Floating badge */
.float-label {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--neon-yellow);
  color: #000;
  font-family: "Boogaloo", cursive;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(255, 230, 0, 0.4);
  animation: pulse 2.5s ease-in-out infinite;
  cursor: default;
  z-index: 99;
  pointer-events: none; /* do not block taps underneath */
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(255, 230, 0, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(255, 230, 0, 0.7);
  }
}

/* Responsive */
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .faq-strip {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  nav {
    display: none;
  }
}

/* ── GIF DETECTOR ── */
.detector-wrap {
  padding: 20px 32px;
  max-width: 860px;
  margin: 0 auto;
}

.detector-title {
  font-family: "Black Han Sans", sans-serif;
  font-size: clamp(24px, 4vw, 48px);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -1px;
  color: var(--accent2);
}

.detector-box {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 6px 6px 20px;
  transition: border-color 0.2s;
}

.detector-box:focus-within {
  border-color: var(--accent3);
  box-shadow: 0 0 0 3px rgba(255, 230, 0, 0.1);
}

.detector-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: 16px;
  caret-color: var(--accent3);
}

.detector-box input::placeholder {
  color: var(--muted);
}

.detector-btn {
  background: var(--accent3);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.detector-btn:hover {
  background: #ffcc00;
  transform: translateY(-1px);
}
.detector-btn:active {
  transform: translateY(0);
}

.detector-result {
  margin-top: 16px;
  padding: 16px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ── CHIPS ── */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 32px 32px;
  max-width: 860px;
  margin: 0 auto;
}

.chip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.chip:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

/* ── GRID ── */
.grid-wrap {
  padding: 0 24px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.gif-grid {
  columns: 4 220px;
  gap: 12px;
}

/* ── GIF CARD ── */
.gif-card {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gif-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.gif-card:hover .gif-overlay {
  opacity: 1;
}

.gif-card img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  aspect-ratio: auto;
}

/* ── ANIMATED EMOJI VARIANTS ──────────────────────────────────────────────── */

/* when searching for emoji we shrink the grid and cards */
.emoji-search .gif-grid {
  columns: 6 100px;
  gap: 8px;
}

.emoji-search .gif-card {
  margin-bottom: 8px;
}

.emoji-card .gif-overlay {
  display: none; /* no overlay actions on tiny cards */
}

/* ensure emoji images still look nice */
.emoji-card img {
  border-radius: 8px;
}

.gif-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  gap: 10px;
  border-radius: var(--radius);
}

.gif-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    opacity 0.15s;
  white-space: nowrap;
}

.action-btn:hover {
  transform: scale(1.05);
}
.action-btn:active {
  transform: scale(0.97);
}

.btn-share-wa {
  background: #25d366;
  color: #fff;
}
.btn-share-tg {
  background: #229ed9;
  color: #fff;
}
.btn-share-fb {
  background: #1877f2;
  color: #fff;
}
.btn-share-messenger {
  background: #0084ff;
  color: #fff;
}
.btn-share-link {
  background: var(--accent3);
  color: #000;
}

.dl-row {
  display: flex;
  gap: 6px;
}
.btn-dl-gif {
  background: var(--accent);
  color: #fff;
}
.btn-dl-mp4 {
  background: var(--accent2);
  color: #000;
}

.gif-title {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── LOADING ── */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px;
  gap: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.2s infinite;
}
.dot:nth-child(2) {
  animation-delay: 0.2s;
  background: var(--accent2);
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
  background: var(--accent3);
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── EMPTY STATE ── */
.empty {
  text-align: center;
  padding: 80px;
  color: var(--muted);
  font-size: 14px;
}
.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 13px;
  z-index: 9998;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── MODAL ── */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 500;
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-bg.active {
  display: flex;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  max-width: 460px;
  width: 100%;
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal h2 {
  font-family: "Black Han Sans", sans-serif;
  font-size: 22px;
  margin-bottom: 6px;
}
.modal-sub {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 24px;
}

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

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
  background: var(--surface);
  color: var(--text);
}

.share-option:hover {
  border-color: currentColor;
  transform: translateY(-2px);
}

.so-wa {
  color: #25d366;
}
.so-tg {
  color: #229ed9;
}
.so-fb {
  color: #1877f2;
}
.so-messenger {
  color: #0a66c2;
}
.so-tw {
  color: #1da1f2;
}
.so-link {
  color: var(--accent3);
}
.so-sms {
  color: var(--accent);
}

.share-icon {
  font-size: 20px;
}

.share-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

/* suggestions shown below detector results */
.suggestions {
  margin-top: 12px;
}

.suggestions .chip {
  cursor: pointer;
}

.dl-section {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.dl-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.dl-btns {
  display: flex;
  gap: 10px;
}

.dl-big {
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dl-big:hover {
  transform: translateY(-2px);
}
.dl-gif-big {
  background: var(--accent);
  color: #fff;
}
.dl-mp4-big {
  background: var(--accent2);
  color: #000;
}

.modal-close {
  float: right;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-bottom: 8px;
}

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

.modal-gif-preview {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
  max-height: 240px;
  object-fit: cover;
}

/* ── LOAD MORE ── */
.load-more-wrap {
  text-align: center;
  margin-top: 32px;
}

.load-more {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.load-more:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 32px 32px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--accent2),
    var(--accent3),
    var(--accent)
  );
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

.footer-brand .logo-footer {
  font-family: "Black Han Sans", sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand .logo-footer span {
  background: linear-gradient(90deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 260px;
}

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

.footer-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.social-btn:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: "Black Han Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

.footer-col ul li a:hover {
  color: var(--accent2);
}

.footer-stats {
  display: flex;
  gap: 6px;
  flex-direction: column;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
}

.stat-pill .stat-val {
  font-family: "Black Han Sans", sans-serif;
  font-size: 14px;
  color: var(--accent2);
}

.stat-pill .stat-lbl {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}

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

.footer-copy {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

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

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legal-icon {
  width: 16px;
  height: 16px;
  display: block;
}

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

.footer-tenor {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  opacity: 0.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  header {
    padding: 16px 20px;
  }
  .logo {
    font-size: 24px;
  }
  .search-wrap,
  .detector-wrap,
  .chips {
    padding-left: 20px;
    padding-right: 20px;
  }
  .grid-wrap {
    padding: 0 16px 60px;
  }
  .gif-grid {
    columns: 2;
  }
  /* extra small screens: single column, larger spacing */
  @media (max-width: 480px) {
    .gif-grid {
      columns: 1;
      gap: 16px;
    }
    .gif-card {
      margin-bottom: 16px;
    }
    .modal-gif-preview {
      max-height: none;
    }
  }
  .search-title {
    font-size: 36px;
  }
  .search-box {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }
  .search-btn {
    align-self: stretch;
    padding: 14px;
  }
  .detector-box {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }
  .detector-btn {
    align-self: stretch;
    padding: 14px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .modal-bg {
    padding: 16px;
  }
  .modal {
    padding: 20px;
  }
  .share-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
