/* ChatGPTLogin — AI directory theme. Layout and behavior stay in finderorg.css. */
:root {
  --ink: #16142a;
  --muted: #5c5878;
  --paper: #f4f3fb;
  --panel: #ffffff;
  --line: #e3e0f2;
  --accent: #5b4dff;
  --accent-2: #0ea5e9;
  --office: #5b4dff;
  --database: #0ea5e9;
  --business: #7c3aed;
  --daily: #0891b2;
  --shadow: 0 16px 40px rgba(55, 40, 120, 0.08);
  --radius: 18px;
  --font-display: "Sora", "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --max: 1160px;
  --tool-ink: #16142a;
  --tool-muted: #5c5878;
  --tool-panel: #f7f6fd;
  --tool-line: #e3e0f2;
  --tool-accent: #5b4dff;
  --tool-accent-soft: #eeeaff;
  --tool-header: #241f4a;
  --ai-grad: linear-gradient(135deg, #5b4dff 0%, #7c3aed 48%, #0ea5e9 100%);
}

html[data-theme="dark"] {
  --ink: #f4f2ff;
  --muted: #b7b3d4;
  --paper: #0c0b16;
  --panel: #161427;
  --line: #2c2848;
  --accent: #9b8cff;
  --accent-2: #67e8f9;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  --tool-ink: #f4f2ff;
  --tool-muted: #b7b3d4;
  --tool-panel: #1c1833;
  --tool-line: #2c2848;
  --tool-accent: #9b8cff;
  --tool-accent-soft: #2a2450;
  --tool-header: #0c0b16;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(91, 77, 255, 0.16), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
    linear-gradient(180deg, #f7f6ff 0%, var(--paper) 42%, #eef2ff 100%);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(91, 77, 255, 0.28), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(14, 165, 233, 0.16), transparent 50%),
    linear-gradient(180deg, #090814 0%, var(--paper) 46%, #0b0a14 100%);
  color: var(--ink);
}

a { color: var(--accent); }
.site-header {
  background: rgba(247, 246, 255, 0.86);
  border-bottom: 1px solid rgba(227, 224, 242, 0.95);
  backdrop-filter: blur(16px);
}
html[data-theme="dark"] .site-header {
  background: rgba(12, 11, 22, 0.86);
  border-bottom-color: rgba(44, 40, 72, 0.95);
}
.brand-mark,
.site-header .brand-mark {
  background: var(--ai-grad) !important;
  color: #fff !important;
  border-radius: 14px !important;
  font-family: var(--font-display) !important;
  font-size: .78rem !important;
  letter-spacing: .04em;
  box-shadow: 0 10px 22px rgba(91, 77, 255, 0.35) !important;
}
.brand-text strong,
.site-header .brand-text strong,
.site-header .brand-name,
.page-heading,
.dir-hero h1,
.dir-section-head h2,
.section-head h2,
.footer-brand,
.cat-card .label,
.dir-modal-head h2,
.dir-profile-hero-copy h1 {
  font-family: var(--font-display);
}
.site-nav a { color: var(--ink); }
.site-nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ai-grad);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(91, 77, 255, 0.28);
}
.nav-dropdown-menu a:hover { background: rgba(91, 77, 255, 0.08); }
.theme-toggle,
.nav-toggle {
  border-radius: 12px;
}

.dir-hero {
  padding: 3.6rem 0 2.8rem;
  border-bottom: 0;
  background:
    radial-gradient(640px 280px at 18% 0%, rgba(91, 77, 255, 0.2), transparent 60%),
    radial-gradient(520px 240px at 88% 20%, rgba(14, 165, 233, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 70%);
}
html[data-theme="dark"] .dir-hero {
  background:
    radial-gradient(640px 280px at 12% 0%, rgba(91, 77, 255, 0.32), transparent 60%),
    radial-gradient(480px 240px at 90% 10%, rgba(14, 165, 233, 0.18), transparent 55%),
    transparent;
}
.dir-hero-inner { max-width: 980px; }
.dir-hero .brand-signal {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .85rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: rgba(91, 77, 255, 0.1);
  color: var(--accent);
  letter-spacing: .08em;
  font-size: .72rem;
}
.dir-hero h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.dir-home .dir-hero h1 {
  max-width: 16em;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
}
.dir-hero-lead { font-size: 1.08rem; max-width: 42rem; }

.ai-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}
.ai-highlights li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .7rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.ai-highlights i { color: var(--accent); }

.dir-search-home,
.dir-search-browse {
  grid-template-columns: minmax(0, 1.7fr) minmax(160px, .7fr) auto;
  padding: .55rem;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(55, 40, 120, 0.1);
}
.ai-tool-pricing {
  margin: .45rem 0 0;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
}
.home-cat-card { cursor: pointer; }
.dir-search input,
.dir-search select {
  border-radius: 12px;
  border-color: var(--line);
  background: #f7f6fd;
  color: var(--ink);
}
html[data-theme="dark"] .dir-search input,
html[data-theme="dark"] .dir-search select {
  background: #100e1e;
  color: var(--ink);
  border-color: var(--line);
}
.dir-hero .btn-primary,
.dir-hero .btn-accent,
.btn-accent,
.btn-primary {
  background: var(--ai-grad);
  color: #fff;
  border: 0;
  border-radius: 12px;
}
.dir-hero .btn-primary:hover,
.dir-hero a.btn-primary:hover,
.dir-hero .btn-accent:hover,
a.btn-accent:hover,
.btn-primary:hover,
a.btn-primary:hover {
  background: var(--ai-grad);
  color: #fff;
  filter: brightness(1.06);
}
.dir-hero .btn-secondary,
.btn-secondary {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dir-hero .btn-secondary:hover,
.dir-hero a.btn-secondary:hover,
.btn-secondary:hover {
  background: #f3f1ff;
  color: var(--accent);
  border-color: #cfc8ff;
}
html[data-theme="dark"] .dir-hero .btn-secondary,
html[data-theme="dark"] .dir-hero a.btn-secondary,
html[data-theme="dark"] .btn-secondary {
  background: #1d1933;
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] .dir-hero .btn-secondary:hover,
html[data-theme="dark"] .dir-hero a.btn-secondary:hover {
  background: #262246;
  color: #d7d2ff;
  border-color: var(--accent);
}

.cat-card,
.home-cat-card,
.tool-card,
.blog-card,
.dir-card,
.biz-panel,
.pricing-card {
  border-radius: 18px;
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.cat-card { border-top: 0; }
.cat-card .icon,
.tool-card-icon,
.dir-rank,
.dir-modal-avatar,
.dir-profile-avatar {
  background: var(--ai-grad);
  color: #fff;
  border-radius: 14px;
}
.tool-card-icon {
  background: rgba(91, 77, 255, 0.12);
  color: var(--accent);
}
.home-cat-card:hover,
.tool-card:hover,
.dir-card:hover,
.blog-card:hover {
  transform: translateY(-3px);
  border-color: #cfc8ff;
  box-shadow: 0 18px 36px rgba(91, 77, 255, 0.12);
}
.tool-access-badge.is-free { background: #eeeaff; color: #4c3fd4; }
.tool-access-badge.is-pro { background: #e0f7ff; color: #0369a1; }

.dir-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.ai-tool-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  position: relative;
  overflow: hidden;
}
.ai-tool-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--ai-grad);
}
.ai-tool-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: var(--ai-grad);
  box-shadow: 0 8px 18px rgba(91, 77, 255, 0.25);
}
.dir-cat,
.dir-status-active,
.dir-open-pill {
  background: #eeeaff;
  color: #4338ca;
}
.dir-verified { background: #e0f7ff; color: #0369a1; }
.dir-card-meta .dir-loc { background: rgba(91, 77, 255, 0.08); }
.dir-card-links a {
  display: inline-flex;
  align-items: center;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #f4f2ff;
  color: var(--accent);
}
html[data-theme="dark"] .dir-card-links a { background: #221e3d; }
.dir-modal-backdrop { background: rgba(8, 7, 18, 0.62); }
html[data-theme="dark"] .dir-modal-panel { background: #161427; border-color: var(--line); }
.dir-modal-close { background: rgba(91, 77, 255, 0.14); }
.dir-modal-contact-icon { background: rgba(91, 77, 255, 0.14); color: var(--accent); }
.dir-modal-contact-value a,
html[data-theme="dark"] .dir-modal-contact-value a { color: var(--accent); }
html[data-theme="dark"] .dir-modal-side .dir-sidebar-card { background: #120f22; border-color: var(--line); }
.dir-profile-hero {
  background:
    radial-gradient(700px 240px at 8% -20%, rgba(91, 77, 255, 0.18), transparent 55%),
    transparent;
  border-bottom: 0;
}

.site-footer {
  background: #12101f;
  border-top: 0;
  color: #ece9ff;
  --footer-ink: #f4f2ff;
  --footer-muted: #c8c3e4;
}
html[data-theme="dark"] .site-footer {
  background: #080712;
  --footer-ink: #f4f2ff;
  --footer-muted: #c8c3e4;
}
.footer-copy .footer-disclaimer {
  margin: .45rem 0 0;
  max-width: 46rem;
  color: var(--footer-muted, #c8c3e4);
  font-size: .78rem;
  line-height: 1.45;
}
.footer-copy .footer-disclaimer a { color: inherit; text-decoration: underline; }
.tok-wide.tc-panel,
.tok-wide.tc-seo,
.tok-wide.tc-related { max-width: 1040px; }
.tok-note {
  margin: 0 0 1rem;
  padding: .75rem .9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--tool-accent-soft, #eeeaff);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}
.tok-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  margin: .9rem 0;
}
.tok-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .7rem .8rem;
  background: var(--panel);
}
.tok-stat span { display: block; color: var(--muted); font-size: .75rem; margin-bottom: .2rem; }
.tok-best td { background: rgba(91, 77, 255, 0.12); font-weight: 700; }
.tok-stat strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}
.tok-wide .tc-table td:nth-child(n+3),
.tok-wide .tc-table th:nth-child(n+3) {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .tok-stats { grid-template-columns: 1fr 1fr; }
}
.footer-grid a { color: var(--footer-ink); }
.footer-grid a:hover { color: #c4b5fd; }
.footer-social a {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.flash-success { background: #eeeaff; color: #3730a3; border-color: #ddd6fe; }
.page-section .container-narrow,
body.blog .page-section > .container,
html[data-theme="dark"] .page-section .container-narrow,
html[data-theme="dark"] body.blog .page-section > .container,
html[data-theme="dark"] .cat-card,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .pricing-card,
html[data-theme="dark"] .tool-card {
  background: var(--panel);
  border-color: var(--line);
}
.biz-panel,
.form-stack input,
.form-stack select,
.form-stack textarea,
.profile-container input,
.profile-container select,
.profile-container textarea {
  border-color: var(--line);
}
.hub-hero,
.tools-index-hero {
  background: transparent;
}

.account-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.account-hero-row h1 { margin-bottom: .45rem; }
.account-hero-row .dir-hero-lead { margin: 0; max-width: 40rem; }
.account-hero-row > div:first-child {
  flex: 1 1 28rem;
  min-width: 0;
}
.account-hero-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  flex: 0 0 auto;
  margin-bottom: .15rem;
}
.page-hero.account-hero > .container,
.account-form-wrap {
  width: min(860px, calc(100% - 2rem));
}
.account-form-wrap .dir-form-card,
.account-form-wrap .guest-guidelines {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.dir-form-card {
  padding: 1.35rem 1.4rem 1.5rem;
}
.account-form-wrap .guest-guidelines {
  margin: 0 0 1rem;
  padding: 1.35rem 1.4rem 1.45rem;
}
.account-form-wrap .dir-max-bid { margin-top: 0; }
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1rem;
}
.account-form h3 {
  margin: .2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.account-form hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: .35rem 0;
}
.account-form .form-stack label.dir-check input,
.account-form .form-stack label.guest-accept input {
  accent-color: var(--accent);
}
.account-form .guest-slug-field { min-width: 0; }
.account-form .guest-slug-prefix {
  background: rgba(91, 77, 255, 0.08);
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-form .guest-slug-hint code { background: rgba(91, 77, 255, 0.08); }
.page-hero-wide {
  padding-bottom: 1.75rem;
}
.page-hero-wide > .container {
  width: min(var(--max), calc(100% - 2rem));
}
.listing-section {
  padding-top: 1.5rem;
}
.listing-section .dir-count {
  margin-top: 0;
}
.dir-card-meta time {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
}
.page-hero {
  padding: 2.6rem 0 1.5rem;
}
.page-hero h1,
.page-hero .page-heading {
  max-width: none;
  margin: 0 0 .75rem;
}
.page-hero .dir-hero-lead a { font-weight: 700; }
.dir-section .container-narrow,
body.contact .container-narrow,
body.page .container-narrow,
body.blog-post .blog-main {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem 1.6rem;
}
.hub-toolbar .panel {
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(55, 40, 120, 0.1);
  background: var(--panel);
}
.pricing-grid { margin-top: .25rem; }
.pricing-card {
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.admin-card,
.dir-form-card,
.guest-guidelines,
.biz-panel {
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
}
body.user-listings .page-section,
body.user-guest-posts .page-section,
body.pricing .dir-section,
body.blog .dir-section,
body.tools-index .section-block {
  padding-top: 1.5rem;
}
.pagination .pagination-nav { padding: 0 .75rem; width: auto; }
@media (max-width: 800px) {
  .dir-results { grid-template-columns: 1fr; }
  .dir-hero h1 { max-width: none; }
  .dir-search-home,
  .dir-search-browse { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .account-form .guest-slug-prefix { max-width: 100%; }
}
