/* ==========================================================================
   EvalPilot — TestedProp Design System & Stylesheet
   Modern, Dark Minimalist Aesthetic Inspired by testedprop.com
   High-converting, clean typography, electric lime accents, and verified trust.
   ========================================================================== */

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

:root {
  /* TestedProp Exact Color Tokens */
  --bg: #08090b;
  --surface: #0c0d10;
  --surface-2: #111317;
  --hover: #16181d;
  
  --line: #1f2228;
  --line-soft: #1a1d22;
  --line-strong: #262a31;
  
  --text: #f2f3f5;
  --text-2: #c9cdd4;
  --muted: #a9afb9;
  --quiet: #8a909b;
  
  /* Signature Electric Lime Accent */
  --accent: #d4f53c;
  --accent-hover: #e8ff7a;
  --accent-bg: #1f2a0a;
  --accent-line: #2a3a10;
  
  /* Alert & Status */
  --warn: #f5b544;
  --warn-bg: #2e2208;
  --warn-panel: #1a1408;
  --warn-line: #3a2a0c;
  --warn-text: #e6d3ae;
  
  --emerald: #4ade80;
  --emerald-bg: rgba(74, 222, 128, 0.12);
  --emerald-line: rgba(74, 222, 128, 0.4);

  /* Fonts */
  --sans: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Backward Compatibility Aliases for EvalPilot */
  --bg-main: var(--bg);
  --bg-surface: var(--surface);
  --bg-card: var(--surface);
  --bg-card-hover: var(--surface-2);
  --bg-input: var(--surface-2);
  --bg-alt: var(--surface-2);
  
  --border-subtle: var(--line-soft);
  --border-medium: var(--line);
  --border-accent: var(--accent-line);
  
  --text-main: var(--text);
  --text-muted: var(--text-2);
  --text-dim: var(--muted);
  --text-inverse: var(--bg);
  
  --accent-cyan: var(--accent);
  --accent-cyan-hover: var(--accent-hover);
  --accent-cyan-dim: var(--accent-bg);
  --accent-emerald: var(--accent);
  --accent-emerald-dim: var(--accent-bg);
  --accent-amber: var(--warn);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 999px;
  
  --container-max: 1200px;
  --header-h: 64px;
  color-scheme: dark;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

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

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

.mono {
  font-family: var(--mono);
}

.num {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 64px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title, .h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}

/* ==========================================================================
   TestedProp Dots Background
   ========================================================================== */
.dots {
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
  position: relative;
}

/* ==========================================================================
   Header & Navigation (TestedProp Style)
   ========================================================================== */
.site-header {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 11, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 0 16px rgba(212, 245, 60, 0.25);
}

.brand-mark svg {
  stroke: var(--bg);
}

.brand-name {
  color: var(--text);
}

.brand-name span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--hover);
}

.nav-link.active {
  color: var(--text);
  background: var(--surface-2);
}

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

.search-trigger-btn {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-trigger-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--hover);
}

.search-trigger-btn kbd {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  color: var(--quiet);
  font-family: var(--mono);
}

.compare-badge-btn {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compare-badge-btn:hover {
  border-color: var(--line-strong);
  color: var(--accent);
}

.badge-count {
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-full);
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
}

/* ==========================================================================
   Buttons (TestedProp Pill Buttons)
   ========================================================================== */
.btn {
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--hover);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(212, 245, 60, 0.35);
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--hover);
  border-color: var(--line-strong);
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 15px;
}

/* ==========================================================================
   Hero Section (TestedProp 2-Column Exact Layout)
   ========================================================================== */
.hero-section {
  padding-top: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.hero {
  display: flex;
  align-items: center;
  gap: 52px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 999 480px;
  min-width: 0;
}

.h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: #ffffff;
}

.h1 .soft {
  color: var(--quiet);
  font-weight: 700;
}

.updated {
  color: var(--quiet);
  font-size: 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.updated::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 26px;
  max-width: 580px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Our Codes Card (Hero Right Box)
   ========================================================================== */
.codes-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  flex: 520px;
  min-width: 0;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.codes-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.codes-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.code-row {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.code-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.code-row:last-child {
  padding-bottom: 0;
}

.row-firm {
  min-width: 0;
  min-height: 44px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.row-firm img {
  background: #ffffff;
  border-radius: 9px;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 2px;
  object-fit: contain;
}

.row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.row-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.row-firm:hover .row-name {
  color: var(--accent);
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 3px;
}

.offer {
  color: var(--accent);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
}

.valid {
  color: #86efac;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   Ticket & Copy Component (TestedProp Exact Shimmer & Glow)
   ========================================================================== */
.copy {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.ticket {
  border: 1.5px dashed var(--accent);
  background: var(--accent-bg);
  border-radius: 12px;
  flex: 1 0 auto;
  align-items: center;
  display: flex;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ticket:hover {
  box-shadow: 0 0 16px rgba(212, 245, 60, 0.3);
}

.code {
  letter-spacing: 0.08em;
  color: var(--text);
  user-select: all;
  white-space: nowrap;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
}

.shine {
  animation: shimmer 3.6s ease-in-out infinite;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(212, 245, 60, 0.35) 50%, transparent 70%);
  position: absolute;
  inset: 0;
  transform: translate(-120%);
}

.copy-btn {
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  flex: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  min-height: 44px;
  font-weight: 700;
  font-size: 13.5px;
  transition: transform 0.15s, background-color 0.2s, box-shadow 0.2s;
}

.copy-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 14px rgba(212, 245, 60, 0.4);
}

.copy-btn:active {
  transform: scale(0.96);
}

.icon-check {
  display: none;
}

.copied .icon-copy {
  display: none;
}

.copied .icon-check {
  display: inline;
  animation: pop 0.35s ease-out;
}

.copied .ticket {
  background: rgba(212, 245, 60, 0.25);
  border-style: solid;
}

.copied .copy-btn {
  background: #ffffff;
  color: #08090b;
}

@keyframes shimmer {
  0% { transform: translate(-120%); }
  40%, 100% { transform: translate(120%); }
}

@keyframes pop {
  0% { transform: scale(0.4); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Compact version for table */
.compact .ticket {
  min-height: 40px;
}
.compact .code {
  padding: 0 10px;
  font-size: 13.5px;
}
.compact .copy-btn {
  min-width: 84px;
  min-height: 40px;
  padding: 0 10px;
  font-size: 13px;
}

/* ==========================================================================
   TestedProp Table Cards Component
   ========================================================================== */
.table-wrap {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

table.table-cards {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-cards th {
  padding: 14px 18px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
}

.table-cards td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  font-size: 14px;
}

.table-cards tr:hover td {
  background: var(--surface-2);
}

.firm-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}

.firm {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.firm img {
  background: #ffffff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  padding: 2px;
  object-fit: contain;
}

/* Mobile Cards Transformation */
@media (max-width: 768px) {
  .table-cards-wrap {
    background: transparent;
    border: 0;
    overflow: visible;
  }

  .table-cards, .table-cards tbody, .table-cards tr {
    width: 100%;
    display: block;
  }

  .table-cards thead {
    display: none;
  }

  .table-cards tr {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .table-cards td {
    border-bottom: 0;
    border-top: 1px solid var(--line-soft);
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .table-cards td:first-child {
    border-top: 0;
    padding-top: 0;
    display: block;
  }

  .table-cards td::before {
    content: attr(data-label);
    color: var(--quiet);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    font-weight: 600;
  }

  .table-cards td:first-child::before,
  .table-cards td.action-cell::before {
    display: none;
  }

  .table-cards td.code-cell,
  .table-cards td.action-cell {
    display: block;
  }
}

/* ==========================================================================
   Cards & Grid Layouts (TestedProp Surface Aesthetic)
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

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

.firm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.firm-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.firm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.firm-card-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 11.5px;
  color: var(--quiet);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.spec-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.spec-val.accent {
  color: var(--accent);
}

/* Badges */
.badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-verified {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #86efac;
}

.badge-partner {
  background: var(--accent-bg);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}

.badge-demo {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn);
}

/* ==========================================================================
   Footer (TestedProp Style)
   ========================================================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 60px 0 36px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0;
  max-width: 380px;
  line-height: 1.6;
}

.footer-col-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-disclosure {
  font-size: 12px;
  color: var(--quiet);
  line-height: 1.6;
}

/* Search Modal */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.search-modal-backdrop.active {
  display: flex;
}

.search-modal-card {
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.search-modal-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
  font-size: 16px;
  color: var(--text);
  outline: none;
}

.search-modal-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .h1 {
    font-size: 32px;
  }
  .hero-section {
    padding-top: 36px;
    padding-bottom: 44px;
  }
}
