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

:root{
  --bg:#0f0f10;--card:#1e1e1f;--muted:#9a9a9a;--accent:#00ff88;
}
*{box-sizing:border-box}
body{margin:0;font-family:Poppins,system-ui,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:#fff}
.app{display:flex;min-height:100vh}

/* sidebar */
.sidebar{width:220px;background:#0d0d0d;padding:28px;border-right:1px solid rgba(255,255,255,0.05);display:flex;flex-direction:column;align-items:flex-start}
.brand{display:flex;align-items:center;gap:12px;margin-bottom:32px}
.logo{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--accent),#00ffd0)}
.brand h1{font-size:18px;margin:0;color:var(--accent)}
.nav{width:100%}
.nav a{display:flex;align-items:center;gap:12px;color:var(--muted);text-decoration:none;padding:12px 14px;border-radius:10px;margin-bottom:10px;font-size:15px;transition:background 0.2s,color 0.2s}
.nav a span.icon{font-size:18px;width:20px;text-align:center}
.nav a:hover{background:rgba(255,255,255,0.05);color:#fff}
.nav a.active{background:rgba(0,255,136,0.08);color:var(--accent)}

.content{flex:1;display:flex;flex-direction:column}
header,footer{background:#111;padding:16px;text-align:center;border-bottom:1px solid rgba(255,255,255,0.08)}
footer{border-top:1px solid rgba(255,255,255,0.08);border-bottom:none;margin-top:auto}
.ad-slot{min-height:90px;background:#1b1b1b;color:var(--muted);display:flex;align-items:center;justify-content:center;border-radius:10px}

main{flex:1;padding:32px;overflow:auto}
.card{background:var(--card);padding:32px;border-radius:16px;box-shadow:0 6px 20px rgba(0,0,0,0.6);max-width:900px;margin:auto}

h2{font-size:34px;margin:0 0 14px 0}
.note{color:var(--muted);margin-bottom:24px}

/* form */
form{display:flex;flex-direction:column;gap:20px}
.form-row{display:flex;align-items:flex-start;gap:20px;flex-wrap:wrap}
.form-row label{flex:0 0 160px;font-weight:600;padding-top:10px}
.form-row .field{flex:1}
input,textarea{width:100%;padding:12px 14px;border-radius:10px;border:1px solid rgba(255,255,255,0.08);background:#0b0b0b;color:#fff;font-size:15px}
textarea{min-height:120px;resize:vertical}
input[type=file]{padding:6px;background:#0b0b0b;color:#ccc}
.helper{font-size:13px;color:var(--muted);margin-top:6px}
.btn{background:linear-gradient(90deg,var(--accent),#00ffd0);color:#000;padding:12px 20px;border-radius:12px;border:none;font-weight:700;cursor:pointer;width:fit-content;margin-top:10px}

@media(max-width:768px){
  .sidebar{width:100%;flex-direction:row;align-items:center;justify-content:space-around;padding:12px}
  .brand{display:none}
  .nav{display:flex;flex-direction:row;gap:0;width:auto}
  .nav a{flex-direction:column;gap:4px;font-size:13px;padding:8px}
  .nav a span.icon{font-size:20px}
}

.thumb{width:64px;height:64px;border-radius:12px;object-fit:cover;background:#0b0b0b}


/* Responsive: collapsible sidebar for mobile */
.sidebar { transition: transform 0.25s ease; }
.sidebar.collapsed { transform: translateX(-100%); }
.mobile-toggle { display:none; position:fixed; left:12px; top:12px; z-index:60; background:var(--accent); color:#001; border-radius:8px; padding:8px; border:none; box-shadow:0 8px 20px rgba(0,0,0,0.6); }
@media(max-width:900px){
  .sidebar{position:fixed;left:0;top:0;bottom:0;z-index:50;height:100vh;overflow:auto;transform:translateX(0);width:220px}
  .content{margin-left:0;padding:18px}
  .mobile-toggle{display:block}
  /* adjust main layout cards to be full width */
  .card{margin:12px 0;max-width:100%}
  header .ad-slot, footer .ad-slot {min-height:60px}
}



/* === Mobile-first improvements === */

/* Ensure sidebar collapses and toggle is visible on small screens */
.mobile-toggle { display: none; position: fixed; left: 12px; top: 12px; z-index: 80; background: var(--accent); color: #001; border-radius: 10px; padding: 8px 10px; border: none; box-shadow: 0 8px 20px rgba(0,0,0,0.6); font-weight:700; }
.sidebar { transition: transform 0.28s ease, width 0.28s ease; }
.sidebar.collapsed { transform: translateX(-110%); }

/* Responsive layout */
@media (max-width: 1000px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 200px; z-index: 70; transform: translateX(-110%); background: linear-gradient(180deg,#0d0d0d,#070707); }
  .sidebar.open { transform: translateX(0); }
  .app { padding-left: 0; }
  .content { margin-left: 0; padding: 18px; }
  .mobile-toggle { display: block; }
  header .ad-slot, footer .ad-slot { min-height: 60px; padding: 10px; }
  .card { margin: 14px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
  .nav a span { display: none; } /* hide labels under icons */
  .nav a { justify-content: center; padding: 12px; }
  .brand h1 { display: none; }
}

/* Smaller screens: single-column grid */
@media (max-width: 640px) {
  #grid { grid-template-columns: 1fr !important; }
  .card { padding: 18px; border-radius: 12px; }
  .btn { width: 100%; display: block; text-align: center; }
  .form-row { flex-direction: column; }
  .form-row label { flex: 0 0 auto; width: 100%; padding-bottom: 6px; }
  header { padding: 20px 12px; }
  h2 { font-size: 22px; }
  .search-area input { font-size: 15px; padding: 12px; }
  .sidebar { width: 78px; }
  .sidebar .brand .logo { width: 36px; height: 36px; }
  .sidebar .nav a { width: 48px; height: 48px; border-radius: 10px; }
}

/* Accessibility: larger touch targets */
.nav a, .btn, .mobile-toggle { min-height: 44px; }

@media (max-width: 1000px) {
  .brand h1 { display: none; }   /* hide text label */
  .brand .logo { display: block !important; } /* ensure logo always shows */
}

@media (max-width: 640px) {
  .sidebar { width: 78px; }
  .sidebar .brand { display: flex; justify-content: center; } 
  .sidebar .brand .logo {
    width: 40px;
    height: 40px;
    display: block !important;
    margin: 0 auto;
  }
  .sidebar .nav a span { display: none; } /* keep only icons for nav */
}

.site-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #0b0b0b;
  padding: 4px;
}
.logo-fallback {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg,var(--accent),#00ffd0);
}
/* Latest Blogs Styling */
.latest-blogs a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: #1b1b1b;
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.25s ease, transform 0.2s ease;
}
.latest-blogs a:hover {
  background: #242424;
  color: var(--accent);
  transform: translateX(4px);
}
.latest-blogs img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.latest-blogs span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

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

.tool-card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tool-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.tool-info h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.tool-info .meta {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 10px;
}

.tool-info .desc {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 15px;
}

.tool-actions .btn {
    display: inline-block;
    padding: 8px 14px;
    background: #00ffb6;
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.tool-actions .btn:hover {
    background: #00cc92;
}

/* === Public site theme refresh === */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #637089;
  --accent: #2563eb;
  --accent-2: #14b8a6;
  --sidebar: #101828;
  --sidebar-soft: #1d2939;
  --border: #d8dfec;
  --shadow: 0 18px 48px rgba(16, 24, 40, 0.12);
}

body {
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #eef3fb 100%);
  color: var(--text);
}

.app {
  background: transparent;
}

.sidebar {
  background: linear-gradient(180deg, var(--sidebar) 0%, #0b1220 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 10px 0 30px rgba(16, 24, 40, 0.18);
}

.brand {
  width: 100%;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand h1 {
  color: #f8fafc;
}

.site-logo,
.logo-fallback,
.logo {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.logo-fallback,
.logo {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.nav a {
  color: #cbd5e1;
  border: 1px solid transparent;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav a.active {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(96, 165, 250, 0.34);
  color: #ffffff;
}

.content {
  min-width: 0;
}

header,
footer {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(18px);
}

.ad-slot {
  background: linear-gradient(135deg, #ffffff, var(--surface-soft));
  border: 1px dashed #b7c3d7;
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

main {
  padding: 34px;
}

.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 223, 236, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--text);
}

h2 {
  color: #0f172a;
  letter-spacing: 0;
}

.note,
.helper {
  color: var(--muted);
}

input,
textarea,
select,
#searchQ {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

input:focus,
textarea:focus,
select:focus,
#searchQ:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
  outline: none;
}

.btn,
.tool-actions .btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.btn:hover,
.tool-actions .btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #0f9f93);
}

.tab {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
}

.tab.active,
.tab:hover {
  background: #eaf1ff;
  border-color: #9db7f8;
  color: var(--accent);
}

#grid .card,
.tool-card {
  margin: 0;
  max-width: none;
  padding: 18px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.1);
}

#grid .card:hover,
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.16);
}

.thumb,
#grid img,
.tool-icon img {
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.latest-blogs a {
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
}

.latest-blogs a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.mobile-toggle {
  background: var(--accent);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

@media (max-width: 1000px) {
  .sidebar {
    background: linear-gradient(180deg, var(--sidebar) 0%, #0b1220 100%);
  }

  .content {
    padding: 0;
  }

  main {
    padding: 74px 18px 24px;
  }
}

@media (max-width: 640px) {
  .card {
    border-radius: 8px;
  }

  .tabs {
    gap: 8px !important;
  }

  .tab {
    flex: 1 1 auto;
    min-width: 132px;
  }
}

/* === Mobile responsive upgrade and trending features === */
.directory-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.directory-hero h2 {
  margin-bottom: 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(86px, 1fr));
  gap: 10px;
  min-width: 190px;
}

.hero-stats div {
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 5px;
}

.trending-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 14px;
  margin-bottom: 4px;
  scrollbar-width: thin;
}

.trend-chip {
  flex: 0 0 auto;
  border: 1px solid #bed0f8;
  background: #eef5ff;
  color: #1d4ed8;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 14px;
}

.trend-chip:hover {
  background: #dceafe;
}

.listing-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 150px;
  gap: 12px;
  margin-bottom: 16px;
}

.search-area {
  position: relative;
  margin-bottom: 0 !important;
}

.search-area i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-area input {
  width: 100%;
  min-height: 48px;
  border-radius: 8px !important;
  font-size: 16px;
  padding: 13px 14px 13px 42px !important;
}

#sortTools {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 700;
  padding: 0 12px;
}

.result-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0 12px;
}

#grid {
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)) !important;
  align-items: stretch;
}

.tool-result-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(216, 223, 236, .95);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .1);
  min-width: 0;
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tool-result-card:hover {
  border-color: #a8bdf4;
  box-shadow: 0 20px 46px rgba(16, 24, 40, .16);
  transform: translateY(-3px);
}

.tool-card-top {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.tool-card-top img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.tool-title-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.tool-logo-sm {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #0f172a;
}

.tool-title-wrap h3 {
  color: #0f172a;
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.category-pill,
.tool-badges span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 9px;
}

.category-pill {
  background: #eef5ff;
  color: #1d4ed8;
}

.tool-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tool-badges span {
  background: #ecfdf5;
  color: #047857;
}

.tool-badges span:first-child {
  background: #fff7ed;
  color: #c2410c;
}

.tool-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tool-actions-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
  padding: 11px 12px;
  text-decoration: none;
  flex: 1 1 128px;
  width: auto;
  white-space: nowrap;
}

.tool-actions-row .btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.secondary-action {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  color: #1d4ed8 !important;
  box-shadow: none !important;
}

.icon-action {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  flex: 0 0 44px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  width: 44px;
}

.tool-actions-row .icon-action {
  flex: 0 0 42px;
  height: 42px;
  width: 42px;
}

.icon-action:hover,
.icon-action.copied {
  background: #ecfdf5;
  color: #047857;
  transform: translateY(-1px);
}

.empty-state {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px dashed #b7c3d7;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  padding: 28px;
  text-align: center;
}

.rating-row {
  align-items: center;
  color: #c2410c;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.rating-row small {
  color: var(--muted);
  font-weight: 700;
}

.compare-tray {
  align-items: center;
  background: #0f172a;
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 20px 52px rgba(15, 23, 42, .28);
  color: #ffffff;
  display: flex;
  gap: 10px;
  left: 50%;
  padding: 10px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 90;
}

.compare-tray[hidden] {
  display: none;
}

.newsletter-box,
.status-checker {
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 24px;
  padding: 18px;
}

.newsletter-box h3,
.status-checker h3 {
  margin: 0 0 8px;
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.newsletter-form .btn {
  margin: 0;
}

.feature-list {
  color: var(--muted);
  margin: 8px 0 18px;
  padding-left: 20px;
}

.rating-panel,
.review-form,
.reviews-list {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 16px;
}

.star-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.star-actions button {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #c2410c;
  cursor: pointer;
  font-weight: 800;
  padding: 8px 10px;
}

.review-form input,
.review-form select,
.review-form textarea {
  margin-bottom: 10px;
}

.review-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 10px;
  padding: 12px;
}

.review-item p {
  color: var(--muted);
  margin: 6px 0 0;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  border-collapse: collapse;
  min-width: 560px;
  width: 100%;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px;
  text-align: left;
}

.seo-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
}

.seo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.seo-nav a {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
  padding: 9px 13px;
  text-decoration: none;
}

.seo-hero {
  margin-bottom: 22px;
}

.seo-hero h1 {
  color: #0f172a;
  font-size: 38px;
  margin: 0 0 8px;
}

.seo-hero p {
  color: var(--muted);
  max-width: 760px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.launch-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: stretch;
  margin: 0 0 18px;
  padding: 24px;
  border: 1px solid rgba(216, 223, 236, .9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .1);
}

.launch-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.launch-eyebrow {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.launch-copy h2 {
  max-width: 680px;
  margin: 8px 0 10px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.18;
}

.launch-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.launch-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.launch-stats div {
  display: flex;
  min-height: 108px;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid #d8dfec;
  border-radius: 8px;
  background: #f8fbff;
}

.launch-stats strong {
  color: #0f172a;
  font-size: 30px;
  line-height: 1;
}

.launch-stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.launch-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.launch-chip-row span {
  padding: 8px 11px;
  border: 1px solid #d8dfec;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

.launch-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(216, 223, 236, .95);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 36px rgba(16, 24, 40, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.launch-card:hover {
  border-color: #a8bdf4;
  box-shadow: 0 22px 50px rgba(16, 24, 40, .14);
  transform: translateY(-2px);
}

.launch-date-box {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8dfec;
  border-radius: 8px;
  background: #f8fbff;
}

.launch-date-box span {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.launch-date-box strong {
  color: #0f172a;
  font-size: 26px;
  line-height: 1.1;
}

.launch-card-body {
  min-width: 0;
}

.launch-card-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.launch-card-head img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #0f172a;
}

.launch-card h3 {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.launch-status {
  display: inline-flex;
  width: fit-content;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.launch-status.is-upcoming {
  background: #eef5ff;
  color: #1d4ed8;
}

.launch-status.is-live {
  background: #ecfdf5;
  color: #047857;
}

.launch-card p {
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.launch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.launch-meta span {
  padding: 7px 9px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.quiz-card {
  max-width: 680px;
}

.quiz-pro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 22px;
  align-items: stretch;
  margin: 0 0 18px;
  padding: 24px;
  border: 1px solid rgba(216, 223, 236, .9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .1);
}

.quiz-pro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-pro-copy h2 {
  max-width: 680px;
  margin: 8px 0 10px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.16;
}

.quiz-pro-copy p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.quiz-pro-steps {
  display: grid;
  gap: 10px;
}

.quiz-pro-steps div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d8dfec;
  border-radius: 8px;
  background: #f8fbff;
}

.quiz-pro-steps strong {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 18px;
}

.quiz-pro-steps span {
  color: #334155;
  font-weight: 900;
}

.quiz-shell {
  display: grid;
  grid-template-columns: minmax(0, 820px);
}

.quiz-form {
  display: grid;
  gap: 16px;
}

.quiz-section,
.quiz-result-card {
  padding: 20px;
  border: 1px solid rgba(216, 223, 236, .95);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 36px rgba(16, 24, 40, .08);
}

.quiz-section-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.quiz-section-head > span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef5ff;
  color: #1d4ed8;
  font-weight: 900;
}

.quiz-section h3,
.quiz-result-card h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.25;
}

.quiz-section p,
.quiz-result-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quiz-options label {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #d8dfec;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font-weight: 900;
}

.quiz-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-options label:has(input:checked) {
  border-color: #1d4ed8;
  background: #eef5ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px #1d4ed8;
}

.quiz-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quiz-select-grid label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 900;
}

.quiz-select-grid select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #d8dfec;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

.quiz-result-card {
  border-color: #a8bdf4;
  background: #f8fbff;
}

.quiz-result-card .launch-status {
  margin-bottom: 10px;
}

.quiz-actions {
  justify-content: flex-start;
}

.details-modal {
  align-items: center;
  background: rgba(15, 23, 42, .58);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 1000;
}

.details-dialog {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
  color: var(--text);
  max-height: min(720px, 92vh);
  max-width: 620px;
  overflow: auto;
  padding: 24px;
  position: relative;
  width: min(100%, 620px);
}

.details-dialog button[onclick="closeModal()"]:first-child {
  background: #f1f5f9 !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  color: #0f172a !important;
  font-size: 18px;
  height: 36px;
  line-height: 1;
  padding: 0 !important;
  position: absolute !important;
  right: 12px !important;
  top: 12px !important;
  width: 36px;
}

.modal-tool-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-right: 34px;
}

.modal-tool-head img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.modal-tool-head h2 {
  font-size: 25px;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}

.modal-desc {
  color: var(--muted);
  line-height: 1.65;
  margin: 18px 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.sidebar-open::after {
  background: rgba(15, 23, 42, .48);
  content: "";
  inset: 0;
  position: fixed;
  z-index: 60;
}

.sidebar {
  z-index: 70;
}

@media (max-width: 1000px) {
  .app {
    min-height: 100svh;
  }

  .sidebar {
    width: min(82vw, 320px);
    padding: 22px 18px;
  }

  .sidebar .brand {
    display: flex !important;
    margin-bottom: 20px;
  }

  .sidebar .nav {
    display: grid;
    gap: 8px;
    width: 100%;
  }

  .sidebar .nav a {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
  }

  .sidebar .nav a span {
    display: inline !important;
  }

  .mobile-toggle {
    align-items: center;
    display: inline-flex;
    font-size: 20px;
    height: 46px;
    justify-content: center;
    left: 14px;
    padding: 0;
    top: 14px;
    width: 46px;
    z-index: 80;
  }

  header {
    padding: 12px 12px 12px 72px;
  }

  main {
    padding-top: 20px;
  }

  .listing-toolbar {
    grid-template-columns: 1fr;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(245, 247, 251, .92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(216, 223, 236, .7);
    border-radius: 8px;
    margin: 0 -2px 16px;
    padding: 10px;
  }
}

@media (max-width: 720px) {
  main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card {
    padding: 18px;
  }

  .directory-hero {
    display: grid;
    gap: 16px;
  }

  .directory-hero h2 {
    font-size: 28px;
  }

  .hero-stats {
    min-width: 0;
    width: 100%;
  }

  .tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin-left: -18px;
    margin-right: -18px;
    overflow-x: auto;
    padding: 0 18px 12px;
  }

  .tab {
    flex: 0 0 auto;
    min-width: auto;
    white-space: nowrap;
  }

  #grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .tool-actions-row {
    display: flex;
    flex-wrap: wrap;
  }

  .icon-action {
    width: 42px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .compare-tray {
    bottom: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    justify-content: space-between;
  }

  footer > div {
    justify-content: center !important;
    padding: 0 12px !important;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .tool-actions-row .btn {
    flex: 1 1 100%;
  }

  .tool-actions-row .icon-action {
    flex: 1 1 42px;
  }

  .seo-shell {
    padding: 14px;
  }

  .seo-hero h1 {
    font-size: 28px;
  }

  .launch-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .launch-copy h2 {
    font-size: 23px;
  }

  .launch-stats {
    grid-template-columns: 1fr;
  }

  .launch-stats div {
    min-height: 86px;
  }

  .launch-grid {
    grid-template-columns: 1fr;
  }

  .launch-card {
    grid-template-columns: 1fr;
  }

  .launch-date-box {
    min-height: auto;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .launch-date-box strong {
    font-size: 20px;
  }

  .quiz-pro-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .quiz-pro-copy h2 {
    font-size: 24px;
  }

  .quiz-options,
  .quiz-select-grid {
    grid-template-columns: 1fr;
  }

  .quiz-section,
  .quiz-result-card {
    padding: 16px;
  }

  .quiz-section-head {
    grid-template-columns: 1fr;
  }

  .quiz-actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 420px) {
  .directory-hero h2 {
    font-size: 24px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .modal-tool-head {
    grid-template-columns: 1fr;
  }
}

/* Final mobile navigation override for the main directory page */
.sidebar-overlay {
  display: none;
}

@media (max-width: 900px) {
  body.sidebar-open {
    overflow: hidden;
  }

  .mobile-toggle {
    display: inline-flex !important;
    width: 56px !important;
    height: 56px !important;
    align-items: center !important;
    justify-content: center !important;
    top: max(12px, env(safe-area-inset-top)) !important;
    left: max(12px, env(safe-area-inset-left)) !important;
    padding: 0 !important;
    border-radius: 8px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 1 !important;
    z-index: 1200 !important;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    display: block;
    width: 100vw;
    height: 100vh;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, .58);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1100 !important;
    width: min(82vw, 320px) !important;
    max-width: calc(100vw - 54px) !important;
    height: 100dvh !important;
    padding: 88px 18px 24px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    background: #0b1220 !important;
    border-right: 1px solid rgba(148, 163, 184, .18) !important;
    box-shadow: 24px 0 80px rgba(15, 23, 42, .42) !important;
    transform: translateX(-105%) !important;
  }

  .sidebar.open {
    transform: translateX(0) !important;
  }

  .sidebar .brand {
    display: flex !important;
    width: 100% !important;
    margin: 0 0 22px !important;
  }

  .sidebar .site-logo {
    max-width: 132px !important;
    max-height: 48px !important;
    object-fit: contain !important;
  }

  .sidebar .nav {
    display: grid !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .sidebar .nav a {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    width: 100% !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    color: #cbd5e1 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
  }

  .sidebar .nav a.active {
    background: rgba(37, 99, 235, .22) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .35);
  }

  .sidebar .nav a i {
    width: 24px !important;
    text-align: center !important;
    font-size: 17px !important;
  }

  .sidebar .nav a span {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .sidebar > div {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  .sidebar-featured-list,
  #sidebar-featured {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  #sidebar-featured a {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 9px !important;
    border: 1px solid rgba(148, 163, 184, .12) !important;
    background: rgba(15, 23, 42, .92) !important;
    transform: none !important;
  }

  #sidebar-featured a:hover {
    transform: none !important;
  }

  #sidebar-featured img {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
  }

  #sidebar-featured span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .sidebar-ads {
    display: none !important;
  }

  .content {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  main {
    padding: 76px 12px 20px !important;
    overflow-x: hidden !important;
  }

  header {
    padding-left: 76px !important;
  }
}

@media (max-width: 380px) {
  .sidebar {
    width: min(88vw, 300px) !important;
    max-width: calc(100vw - 42px) !important;
  }
}
