/* Supero Indexer — Modern dark SaaS theme */
:root {
  --bg: #0b0f19;
  --bg-elevated: #121826;
  --bg-card: #161e2e;
  --border: #243044;
  --text: #e8edf5;
  --text-muted: #8b9bb4;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.35);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary-hover); text-decoration: none; }
a:hover { color: #a5b4fc; }

img { max-width: 100%; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-icon { font-size: 1.4rem; }
.logo-text span { color: var(--primary); }

.nav-main { display: flex; align-items: center; gap: 1.25rem; }
.nav-main > a:not(.btn) { color: var(--text-muted); font-size: .9rem; font-weight: 500; }
.nav-main > a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.2rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem; border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease; text-decoration: none;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; box-shadow: 0 0 20px var(--primary-glow); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: .4rem .9rem; font-size: .825rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, var(--primary-glow), transparent);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: .35rem 1rem; border-radius: 999px; font-size: .8rem;
  color: var(--text-muted); margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero h1 .highlight { color: var(--primary); }
.hero-sub {
  font-size: 1.15rem; color: var(--text-muted); max-width: 620px;
  margin: 0 auto 2rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { font-size: 1.85rem; font-weight: 700; margin-bottom: .5rem; }
.section-title p { color: var(--text-muted); max-width: 540px; margin: 0 auto; }

/* Cards / Features */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.feature-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature-card p { font-size: .9rem; color: var(--text-muted); }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-elevated); color: var(--text-muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
td { background: var(--bg-card); }
tr:last-child td { border-bottom: none; }
.check { color: var(--success); }
.cross { color: var(--danger); }

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem;
  align-items: stretch;
}
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; position: relative;
  display: flex; flex-direction: column;
}
.price-card.popular { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.price-card .popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700;
  padding: .25rem .75rem; border-radius: 999px; text-transform: uppercase;
}
.price-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.price-card .price { font-size: 2.25rem; font-weight: 800; margin: .75rem 0 .25rem; }
.price-card .price span { font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.price-card .credits { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.25rem; }
.price-card ul { list-style: none; margin-bottom: 1.5rem; flex: 1; }
.price-card ul li { padding: .35rem 0; font-size: .875rem; color: var(--text-muted); }
.price-card ul li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: .75rem; overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  padding: 1rem 1.25rem; text-align: left; font-size: .95rem; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-family: inherit;
}
.faq-q:hover { color: var(--primary-hover); }
.faq-a {
  padding: 0 1.25rem;
  color: var(--text-muted);
  font-size: .9rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .25s ease, opacity .2s ease, padding .2s ease;
}
.faq-item.open .faq-a {
  max-height: 400px;
  opacity: 1;
  padding: 0 1.25rem 1.1rem;
}
.faq-item.open .faq-q span { transform: rotate(45deg); display: inline-block; }
.faq-q span { transition: transform .2s; }

/* Forms */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .35rem; color: var(--text-muted); }
.form-control {
  width: 100%; padding: .7rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text);
  font-size: .95rem; font-family: inherit; transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }

/* Auth pages */
.auth-page { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card {
  width: 100%; max-width: 420px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: .35rem; }
.auth-card .subtitle { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: .875rem; color: var(--text-muted); }

/* Dashboard layout */
.dash-layout { display: flex; min-height: calc(100vh - 64px); }
.dash-sidebar {
  width: 240px; background: var(--bg-elevated); border-right: 1px solid var(--border);
  padding: 1.5rem 0; flex-shrink: 0;
}
.dash-sidebar a {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem 1.25rem; color: var(--text-muted); font-size: .9rem; font-weight: 500;
}
.dash-sidebar a:hover, .dash-sidebar a.active { color: var(--text); background: rgba(99,102,241,.1); }
.dash-sidebar a.active { border-right: 3px solid var(--primary); }
.dash-sidebar .sidebar-label {
  padding: .75rem 1.25rem .35rem; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); font-weight: 600;
}
.dash-content { flex: 1; padding: 1.75rem 2rem; overflow-x: auto; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem; }
.dash-header h1 { font-size: 1.5rem; font-weight: 700; }

.credit-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: .4rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.credit-pill .num { color: var(--primary); }

/* Stats cards */
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.stat-card .label { font-size: .8rem; color: var(--text-muted); margin-bottom: .25rem; }
.stat-card .value { font-size: 1.5rem; font-weight: 700; }

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem;
}
.card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 1rem; }

/* Badges */
.badge {
  display: inline-block; padding: .2rem .55rem; border-radius: 999px;
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
}
.badge-success { background: rgba(34,197,94,.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,.15); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,.15); color: var(--danger); }
.badge-info { background: rgba(59,130,246,.15); color: var(--info); }
.badge-primary { background: rgba(99,102,241,.15); color: var(--primary); }
.badge-secondary { background: rgba(139,155,180,.15); color: var(--text-muted); }
.badge-muted { background: rgba(139,155,180,.1); color: var(--text-muted); }

/* Alerts */
.alert {
  padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem;
  font-size: .9rem; border: 1px solid;
}
.alert-success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: var(--success); }
.alert-error { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: var(--danger); }
.alert-info { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); color: var(--info); }
.alert-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); color: var(--warning); }

/* Domain checker results */
.dr-score {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; font-size: 1.4rem; font-weight: 800;
  border: 3px solid;
}
.dr-elite { border-color: #a855f7; color: #a855f7; }
.dr-strong { border-color: var(--success); color: var(--success); }
.dr-established { border-color: var(--info); color: var(--info); }
.dr-growing { border-color: var(--warning); color: var(--warning); }
.dr-new { border-color: var(--text-muted); color: var(--text-muted); }

.whois-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.whois-item label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.whois-item .val { font-size: .95rem; font-weight: 500; margin-top: .15rem; word-break: break-word; white-space: pre-line; }

/* Footer */
.site-footer {
  margin-top: auto; background: var(--bg-elevated); border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.footer-brand p { color: var(--text-muted); font-size: .875rem; margin-top: .75rem; max-width: 320px; }
.footer-links h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .75rem; }
.footer-links a { display: block; color: var(--text-muted); font-size: .875rem; padding: .25rem 0; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text-muted);
}

/* Code blocks */
pre, code {
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: .85rem;
}
pre {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem; overflow-x: auto;
  margin: .75rem 0;
}
code { background: var(--bg-elevated); padding: .15rem .4rem; border-radius: 4px; }

/* Pagination */
.pagination { display: flex; gap: .4rem; margin-top: 1.25rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: .4rem .75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: .85rem; color: var(--text-muted);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .nav-main { display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-elevated); flex-direction: column; padding: 1rem;
    border-bottom: 1px solid var(--border); gap: .5rem; }
  .nav-main.open { display: flex; }
  .nav-toggle { display: block; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border);
    display: flex; overflow-x: auto; padding: .5rem; gap: .25rem; }
  .dash-sidebar a { white-space: nowrap; border-right: none !important; }
  .dash-sidebar .sidebar-label { display: none; }
  .dash-content { padding: 1.25rem; }
}
@media (max-width: 560px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
}

/* Floating Telegram support button — fixed bottom-right, compact */
.telegram-float {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  left: auto !important;
  top: auto !important;
  z-index: 99999 !important;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  border-radius: 50% !important;
  background: #229ED9 !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 16px rgba(34, 158, 217, .4);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none !important;
  overflow: visible;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
}
.telegram-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(34, 158, 217, .55);
  color: #fff !important;
}
.telegram-float svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  fill: #fff !important;
  display: block !important;
  flex-shrink: 0;
}
.telegram-float .tg-tooltip {
  position: absolute;
  right: 56px;
  bottom: 50%;
  transform: translateY(50%);
  background: var(--bg-card, #1e1e2e);
  border: 1px solid var(--border, #333);
  color: var(--text, #fff);
  padding: .35rem .65rem;
  border-radius: 8px;
  font-size: .75rem !important;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  line-height: 1.3 !important;
}
.telegram-float:hover .tg-tooltip { opacity: 1; }
@media (max-width: 560px) {
  .telegram-float {
    right: 12px !important;
    bottom: 12px !important;
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }
  .telegram-float svg {
    width: 22px !important;
    height: 22px !important;
  }
}
