/* ═══════════════════════════════════════════════════════════════════════
   persecond.io — style.css
   Dark ambient theme, accent #1D9E75
═══════════════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font-sans); background: var(--bg); color: var(--text-1); min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 17px; }
body { min-height: 100vh; overflow-x: hidden; }

/* ── Variables ── */
:root {
  /* Backgrounds */
  --bg:           #07070f;
  --surface:      #0d0d1c;
  --card-bg:      #101020;
  --card-hover:   #13132a;
  --elevated:     #181830;

  /* Borders */
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(29, 158, 117, 0.35);
  --border-focus: rgba(29, 158, 117, 0.5);

  /* Accent */
  --accent:       #1D9E75;
  --accent-bright:#25c790;
  --accent-glow:  rgba(29, 158, 117, 0.18);
  --accent-subtle:rgba(29, 158, 117, 0.07);

  /* Text */
  --text-1:  #f2f2fc;
  --text-2:  #b8b8d8;
  --text-3:  #b1b1d7;

  /* Counter */
  --counter:      #ffffff;
  --counter-glow: rgba(29, 158, 117, 0.4);

  /* Category palette */
  --cat-billionaires: #F59E0B;
  --cat-tech:         #3B82F6;
  --cat-creators:     #EC4899;
  --cat-investors:    #8B5CF6;

  /* Radii */
  --r-card: 18px;
  --r-sm:   10px;
  --r-pill: 100px;

  /* Shadows */
  --shadow-card:  0 2px 20px rgba(0,0,0,0.45);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.65), 0 0 0 1px rgba(29,158,117,0.25);
  --shadow-modal: 0 24px 80px rgba(0,0,0,0.8);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, 'Courier New', monospace;

  --nav-h: 68px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Ambient background glow ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% -5%, rgba(29,158,117,0.08), transparent),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(29,158,117,0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════ NAVBAR ═══════════════════════════════ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.75rem;
  background: rgba(7, 7, 15, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.logo-bolt {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(29,158,117,0.6));
}

.logo-text {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.025em;
  line-height: 1;
}

.logo-tld { color: var(--accent); }

.nav-tagline {
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 900px) { .nav-tagline { display: none; } }

.page-timer {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin-top: 0.1rem;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.filter-tabs {
  display: flex;
  gap: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar { display: none; }

/* Mobile filter bar */
.mobile-filter-bar {
  display: none;
}

@media (max-width: 700px) {
  .mobile-filter-bar {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--nav-h);
    z-index: 99;
  }

  .filter-select {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    color: var(--text-1);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-sans);
    padding: 0.5rem 2.25rem 0.5rem 1rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238888b8' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
  }

  .filter-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
  }
}

.tab {
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-sans);
  padding: 0.35rem 0.875rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.tab:hover { color: var(--text-1); background: rgba(255,255,255,0.06); }

.tab.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(29,158,117,0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

/* Search */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.7rem;
  width: 15px;
  height: 15px;
  color: var(--text-3);
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-1);
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  padding: 0.45rem 2rem 0.45rem 2.1rem;
  width: 190px;
  outline: none;
  transition: all 0.2s var(--ease);
}

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

.search-input:focus {
  border-color: var(--accent);
  background: var(--card-bg);
  width: 230px;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-clear {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: color 0.15s;
}

.search-clear svg { width: 13px; height: 13px; }
.search-clear:hover { color: var(--text-1); }
.search-clear.hidden { display: none; }

/* Focus button */
.focus-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-sans);
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}

.focus-btn svg { width: 13px; height: 13px; }
.focus-btn span { display: none; }

@media (min-width: 1100px) { .focus-btn span { display: inline; } }

.focus-btn:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* Mobile nav adjustments */
@media (max-width: 640px) {
  .navbar { padding: 0 1rem; gap: 0.75rem; }
  .search-input { width: 130px; }
  .search-input:focus { width: 160px; }
}

/* ═══════════════════════════════ GRID ═══════════════════════════════ */

.main {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
  max-width: 1680px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.125rem;
}

@media (max-width: 640px) {
  .main { padding: 1rem; }
  .grid { grid-template-columns: 1fr; gap: 0.875rem; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════ CARD ═══════════════════════════════ */

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.375rem 1.5rem 1.25rem;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  overflow: hidden;
  animation: cardIn 0.45s var(--ease) both;
  outline: none;
  list-style: none;
}

/* top shine on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

/* ambient inner glow on hover */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(29,158,117,0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
  pointer-events: none;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.card:hover::before,
.card:focus-visible::before { opacity: 1; }
.card:hover::after,
.card:focus-visible::after  { opacity: 1; }

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

/* ── Card Header ── */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.card-identity {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.03em;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5), inset 0 -2px 6px rgba(0,0,0,0.2);
}

.card-info { min-width: 0; }

.card-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.25;
  margin-bottom: 0.175rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-company {
  font-size: 0.775rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: color 0.15s;
}

a.card-company:hover { color: var(--accent-bright); }

.card-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.card-live {
  position: absolute;
  top: 1.125rem;
  right: 1.25rem;
}

/* Live dot */
.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: livePulse 2.2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(29,158,117,0.6); }
  50%       { opacity: 0.85; box-shadow: 0 0 0 5px rgba(29,158,117,0); }
}

/* Category badge */
.cat-badge {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.cat-Billionaires { background: rgba(245,158,11,0.12); color: #F59E0B; }
.cat-Tech         { background: rgba(59,130,246,0.12);  color: #3B82F6; }
.cat-Creators     { background: rgba(236,72,153,0.12);  color: #EC4899; }
.cat-Investors    { background: rgba(139,92,246,0.12);  color: #8B5CF6; }
.cat-Women        { background: rgba(251,113,133,0.12); color: #FB7185; }

/* ── Counter section ── */
.counter-section { margin: 0.25rem 0 1.125rem; }

.counter-label {
  font-size: 0.625rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.counter {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 1.9375rem);
  font-weight: 700;
  color: var(--counter);
  letter-spacing: -0.025em;
  line-height: 1;
  text-shadow: 0 0 28px var(--counter-glow);
  tabular-nums: ;
  font-variant-numeric: tabular-nums;
}

.per-sec-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.per-sec-label {
  font-size: 0.7rem;
  color: var(--text-3);
}

.per-sec-value {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-bright);
}

/* ── Card CTA ── */
.card-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.725rem;
  color: var(--text-3);
  transition: color 0.18s var(--ease);
  user-select: none;
}

.card-cta svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  transition: transform 0.18s var(--ease);
}

.card:hover .card-cta,
.card:focus-visible .card-cta { color: var(--accent); }
.card:hover .card-cta svg,
.card:focus-visible .card-cta svg { transform: translateX(3px); }

/* ═══════════════════════════════ SALARY BAR ══════════════════════════ */

.salary-bar {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 1.75rem;
}

.salary-bar-inner {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.salary-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.salary-bar-left svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.salary-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}

.salary-sublabel {
  font-size: 0.725rem;
  color: var(--text-3);
  margin-top: 0.1rem;
}

.salary-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.45rem 0.875rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

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

.salary-prefix,
.salary-suffix {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.salary-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-1);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  width: 110px;
  text-align: right;
  -moz-appearance: textfield;
}

.salary-input::-webkit-outer-spin-button,
.salary-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.compare-btn {
  background: var(--accent);
  border: none;
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-sans);
  padding: 0.55rem 1.375rem;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(29,158,117,0.3);
}

.compare-btn:hover { background: var(--accent-bright); box-shadow: 0 0 20px rgba(29,158,117,0.5); }

@media (max-width: 640px) {
  .salary-bar { padding: 0.75rem 1rem; }
  .salary-bar-inner { gap: 0.75rem; }
  .salary-sublabel { display: none; }
  .salary-input { width: 80px; }
}

/* ── Activity buttons ── */
.activity-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.activity-label {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.activity-buttons {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.activity-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 0.775rem;
  font-weight: 500;
  font-family: var(--font-sans);
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}

.activity-btn:hover {
  border-color: var(--accent);
  color: var(--text-1);
  background: var(--accent-subtle);
}

.activity-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(29,158,117,0.3);
}

/* ── Card activity banner ── */
.card-activity {
  margin: 0.75rem 0 0.25rem;
  border-radius: var(--r-sm);
  overflow: hidden;
}

.card-activity.hidden { display: none; }

.activity-banner {
  background: rgba(29,158,117,0.08);
  border: 1px solid rgba(29,158,117,0.2);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.875rem;
}

.activity-banner-row {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

.activity-banner-row strong {
  color: var(--text-1);
  font-weight: 700;
}

.activity-banner-name {
  color: var(--accent-bright);
  font-weight: 700;
}

.activity-banner-you {
  font-size: 0.725rem;
  color: var(--text-3);
  line-height: 1.5;
}

.activity-banner-you strong {
  color: var(--text-2);
}

.activity-multiple {
  color: var(--accent-bright);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ── Card comparison line ── */
.card-comparison {
  margin-top: 0.55rem;
  font-size: 0.725rem;
  font-weight: 500;
  color: var(--accent-bright);
  min-height: 1em;
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════ NO RESULTS ══════════════════════════ */

.no-results {
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.no-results.hidden { display: none; }

.no-results-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }

.no-results h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.5rem;
}

.no-results p { font-size: 0.875rem; color: var(--text-2); }

/* ═══════════════════════════════ MODAL ══════════════════════════════ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.2s var(--ease);
}

.modal-backdrop.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-modal);
  animation: modalIn 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.modal::-webkit-scrollbar { width: 5px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

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

.modal-close-btn {
  position: sticky;
  top: 1.125rem;
  float: right;
  margin: 1.125rem 1.125rem 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: all 0.18s var(--ease);
  z-index: 10;
  flex-shrink: 0;
}

.modal-close-btn svg { width: 14px; height: 14px; }
.modal-close-btn:hover { background: var(--elevated); color: var(--text-1); border-color: var(--text-2); }

/* Modal inner padding */
.modal-inner {
  padding: 0 1.75rem 1.75rem;
  clear: both;
}

/* Hero */
.modal-hero {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  padding: 0.5rem 0 1.375rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.modal-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4375rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6), inset 0 -2px 8px rgba(0,0,0,0.25);
  letter-spacing: -0.03em;
}

.modal-person-name {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.modal-person-sub {
  font-size: 0.825rem;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}

.modal-company-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: color 0.15s, border-color 0.15s;
}

.modal-company-link:hover { color: var(--accent-bright); border-color: var(--accent); }

/* Quote */
.modal-quote {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.375rem;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-1);
  line-height: 1.65;
  position: relative;
}

.modal-quote-mark {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  font-style: normal;
  line-height: 0.8;
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

/* Section label */
.modal-section-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.625rem;
}

/* Key points */
.modal-keypoint {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.875rem 1rem;
  margin-bottom: 0.625rem;
}

.modal-keypoint-row { display: flex; gap: 0.75rem; align-items: flex-start; }

.kp-icon { font-size: 1rem; flex-shrink: 0; line-height: 1.45; }

.kp-body { font-size: 0.875rem; color: var(--text-1); line-height: 1.55; }

.kp-label {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* Story divider */
.modal-story-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1.125rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.modal-story-heading::before,
.modal-story-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Story paragraphs */
.modal-story {
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--text-2);
}

.modal-story p { margin-bottom: 1rem; }
.modal-story p:last-child { margin-bottom: 0; }

/* Stats */
.modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.25rem 1rem;
  margin: 1.5rem 0 1rem;
}

.stat-item { text-align: center; }

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.625rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Book link */
.modal-book-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--accent-subtle);
  border: 1px solid rgba(29,158,117,0.2);
  border-radius: var(--r-sm);
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--text-1);
  transition: all 0.18s var(--ease);
}

.modal-book-link:hover {
  background: rgba(29,158,117,0.12);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.book-text-sub {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-2);
  margin-bottom: 0.2rem;
}

.book-text-main { font-size: 0.875rem; font-weight: 500; }

.modal-book-link svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* ═══════════════════════════════ FOCUS MODE ══════════════════════════ */

.focus-overlay {
  position: fixed;
  inset: 0;
  background: #040409;
  z-index: 300;
  overflow-y: auto;
  animation: fadeIn 0.3s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.focus-overlay.hidden { display: none; }

.focus-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.125rem 1.75rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(4, 4, 9, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10;
}

.focus-brand {
  display: flex;
  align-items: center;
  gap: 0.425rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.focus-bolt { width: 18px; height: 18px; filter: drop-shadow(0 0 5px rgba(29,158,117,0.5)); }

.focus-tld { color: var(--accent); }

.focus-tagline {
  font-size: 0.8125rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  flex: 1;
}

.focus-header-right { display: flex; align-items: center; gap: 1rem; }

.focus-esc-hint {
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@media (max-width: 640px) { .focus-esc-hint { display: none; } }

.focus-exit-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-sans);
  padding: 0.4rem 0.875rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}

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

/* Focus grid */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.875rem;
  padding: 1.5rem 1.75rem;
}

@media (max-width: 640px) {
  .focus-grid { grid-template-columns: 1fr 1fr; gap: 0.625rem; padding: 1rem; }
}

.focus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1.25rem 1.25rem 1.125rem;
}

.focus-card-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.focus-avatar {
  width: 36px !important;
  height: 36px !important;
  font-size: 0.75rem !important;
  flex-shrink: 0;
}

.focus-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.focus-counter {
  font-family: var(--font-mono);
  font-size: clamp(1.125rem, 3.5vw, 1.5rem);
  font-weight: 700;
  color: var(--counter);
  letter-spacing: -0.025em;
  line-height: 1;
  text-shadow: 0 0 20px rgba(29,158,117,0.28);
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.focus-per-sec {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════ FOOTER ═════════════════════════════ */

.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.7rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════ SCROLLBAR ═══════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ═══════════════════════════════ UTILITIES ═══════════════════════════ */
.hidden { display: none !important; }
