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

:root {
  --bg: #0d0c14;
  --surface: #16151f;
  --surface-2: #1d1c28;
  --border: #26253a;
  --border-hover: #35344a;
  --accent: #e8a020;
  --accent-dim: rgba(232, 160, 32, 0.12);
  --accent-glow: rgba(232, 160, 32, 0.07);
  --text: #f0eef8;
  --text-muted: #8a88a0;
  --text-faint: #3e3d52;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
  text-align: center;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 65% 45% at 50% 0%, rgba(232,160,32,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(120,80,200,0.06) 0%, transparent 60%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-inner {
  max-width: 620px;
  width: 100%;
  position: relative;
}

.hero-logo {
  height: 46px;
  width: auto;
  display: block;
  margin: 0 auto 56px;
  opacity: 0.95;
  filter: hue-rotate(218deg) saturate(1.8) brightness(1.1);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 20px;
}

.accent {
  background: linear-gradient(135deg, #fcd34d 0%, #e8a020 50%, #c96f0a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 52px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* SEARCH */
.search-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px;
  margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.search-row input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.04em;
}

.search-row input::placeholder {
  color: var(--text-faint);
}

.search-row input:focus {
  border-color: var(--accent);
}

.search-row button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: linear-gradient(135deg, #fcd34d 0%, #e8a020 55%, #c96f0a 100%);
  color: #0d0c14;
  border: none;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.search-row button svg {
  width: 14px;
  height: 14px;
}

.search-row button:hover {
  opacity: 0.88;
}

.search-row button:active {
  transform: scale(0.97);
}

.search-hints {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-hints span {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hint-chip {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.hint-chip:hover {
  border-color: #e8a020;
  background: var(--accent-glow);
  background-image: none;
  color: #fcd34d;
}

/* RESULT */
.result {
  border-radius: 3px;
  padding: 20px 22px;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
}

.result.hidden {
  display: none;
}

.result.loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.result.loading::before {
  content: '';
  width: 15px;
  height: 15px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

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

.result.found {
  border-color: rgba(232,160,32,0.25);
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #fcd34d, #c96f0a) 1;
  background: var(--accent-glow);
}

.result.found h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.result.found p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.support-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.support-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.support-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(232,160,32,0.3);
  border-radius: 3px;
  padding: 6px 12px;
  transition: all 0.15s;
}

.support-link:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.copy-btn svg {
  width: 13px;
  height: 13px;
}

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

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.report-wrap {
  position: relative;
}

.report-btn {
  background: transparent;
  border: none;
  font-size: 0.72rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-faint);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.report-btn:hover {
  color: var(--text-muted);
}

.report-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  min-width: 220px;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.report-popup p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.report-option {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 6px;
  transition: all 0.15s;
}

.report-option:last-child {
  margin-bottom: 0;
}

.report-option:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.report-popup.hidden {
  display: none;
}

.result .source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fcd34d, #c96f0a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result .source-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, #fcd34d, #c96f0a);
  border-radius: 50%;
  flex-shrink: 0;
}

.result.not-found {
  border-left: 3px solid #ef4444;
  background: rgba(239,68,68,0.04);
  border-color: rgba(239,68,68,0.2);
}

.result.not-found p {
  font-size: 0.87rem;
  color: #f87171;
  line-height: 1.6;
}

/* RECENT */
.recent-section {
  padding: 52px 24px 20px;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.recent-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 10px;
}

.recent-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  color: var(--text);
  transition: all 0.15s;
}

.recent-list li:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* PAGE LAYOUT */
.page-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-main {
  flex: 1;
  min-width: 0;
  max-width: 900px;
}

/* AD SLOTS - hidden until AdSense approved */
.ad-slot {
  display: none;
}

/* Uncomment and replace contents when AdSense approved:
.ad-slot--banner {
  display: flex;
  max-width: 728px;
  height: 90px;
  margin: 24px auto 0;
}

.ad-slot--leaderboard {
  display: flex;
  max-width: 728px;
  height: 90px;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .ad-slot--sidebar {
    display: flex;
    width: 160px;
    min-height: 600px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
  }
}
*/

/* ABOUT */
.about-section {
  padding: 80px 24px 100px;
}

.about-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.about-left h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--text);
}

.about-right p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-right p:last-child {
  margin-bottom: 0;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.88rem;
}

/* CRM BANNER */
.crm-banner {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  background-image: radial-gradient(ellipse at 100% 50%, rgba(232,160,32,0.07) 0%, transparent 60%);
  padding: 36px 24px;
}

.crm-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.crm-banner-text {
  flex: 1;
}

.crm-banner-headline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.crm-banner-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.crm-banner-btn {
  display: inline-block;
  white-space: nowrap;
  padding: 13px 24px;
  background: linear-gradient(135deg, #fcd34d 0%, #e8a020 55%, #c96f0a 100%);
  color: #0d0c14;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.crm-banner-btn:hover { opacity: 0.88; }
.crm-banner-btn:active { transform: scale(0.97); }

.crm-banner-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s;
}

.crm-banner-link:hover { opacity: 0.75; }

@media (max-width: 640px) {
  .crm-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .crm-banner-btn {
    width: 100%;
    text-align: center;
  }
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 22px 24px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 0.78rem;
  color: var(--text-faint);
}

footer a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: var(--accent);
}

/* TABLET */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ad-slot--leaderboard,
  .ad-slot--banner {
    max-width: 100%;
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* MOBILE */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    min-height: -webkit-fill-available;
    padding: 48px 20px 60px;
    align-items: flex-start;
    padding-top: 52px;
  }

  .hero-logo {
    height: 36px;
    margin-bottom: 36px;
  }

  h1 {
    font-size: 2.1rem;
    letter-spacing: -1px;
    margin-bottom: 14px;
  }

  .hero-sub {
    font-size: 0.92rem;
    margin-bottom: 32px;
  }

  .search-wrap {
    padding: 14px;
    border-radius: 6px;
  }

  .search-row {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

  .search-row input {
    font-size: 16px;
    padding: 14px 14px;
    width: 100%;
  }

  .search-row button {
    justify-content: center;
    padding: 14px;
    font-size: 0.9rem;
    width: 100%;
    min-height: 48px;
  }

  .search-hints {
    gap: 6px;
  }

  .hint-chip {
    padding: 6px 10px;
    font-size: 0.72rem;
    min-height: 34px;
  }

  .result {
    padding: 16px 18px;
    text-align: left;
  }

  .recent-section {
    padding: 36px 20px 16px;
  }

  .recent-list li {
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  .about-section {
    padding: 48px 20px 64px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 40px;
  }

  .ad-slot--leaderboard,
  .ad-slot--banner {
    display: none;
  }

  .footer-inner {
    gap: 16px;
  }
}
