/* ========================================================
   BacklinkBase Unified Design System (Black & Light Gray)
   ======================================================== */

:root {
  --bg: #09090b;
  --bg-subtle: #121215;
  --panel: #141417;
  --panel-hover: #1c1c21;
  --line: #27272a;
  --line-subtle: #1f1f23;
  --text: #fafafa;
  --text-sub: #a1a1aa;
  --text-muted: #71717a;
  
  --primary: #ffffff;
  --primary-contrast: #09090b;
  --primary-hover: #e4e4e7;
  
  --badge-bg: #222226;
  --badge-text: #e4e4e7;
  --badge-border: #2e2e33;
  
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

[data-theme="light"] {
  --bg: #f4f4f5;
  --bg-subtle: #ffffff;
  --panel: #ffffff;
  --panel-hover: #f9f9fb;
  --line: #e4e4e7;
  --line-subtle: #d4d4d8;
  --text: #09090b;
  --text-sub: #3f3f46;
  --text-muted: #71717a;
  
  --primary: #09090b;
  --primary-contrast: #ffffff;
  --primary-hover: #27272a;
  
  --badge-bg: #e4e4e7;
  --badge-text: #18181b;
  --badge-border: #d4d4d8;
  
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================
   Header & Navigation
   ======================================================== */
header, .top {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav, .topin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand, .logo {
  font-size: 21px;
  font-weight: 850;
  color: var(--text);
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.brand span, .logo span {
  color: var(--text-muted);
}
.logo img {
  height: 34px;
  width: auto;
  display: block;
}

.links, .nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.links a, .nav-links a, .nav a {
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
}
.links a:hover, .nav-links a:hover, .nav a:hover, .links a.active, .nav a.active {
  color: var(--text);
}

.theme-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
  flex-shrink: 0;
}
.theme-btn:hover {
  border-color: var(--text-muted);
}

.menu, .nav-toggle {
  display: none;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}
.menu svg, .nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  flex-direction: column;
  padding: 16px 20px 24px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  gap: 10px;
  z-index: 999;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mobile-nav.open {
  display: flex !important;
}
.mobile-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-nav a:hover {
  background: var(--panel);
}

/* ========================================================
   Buttons
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn, .btn.primary {
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: var(--primary);
}
.btn:hover, .btn.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.btn.secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}
.btn.secondary:hover {
  border-color: var(--text-muted);
  background: var(--panel-hover);
}
.btn.full { width: 100%; }

/* ========================================================
   Hero & Search
   ======================================================== */
.hero {
  text-align: center;
  padding: clamp(48px, 8vw, 84px) 0 32px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 850;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin: 16px 0;
  color: var(--text);
}
.hero h1 .gradient {
  color: var(--text-muted);
}
.hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-sub);
  max-width: 660px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.pill, .pill-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
}

.searchbox, .search-bar {
  display: flex;
  max-width: 620px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow);
}
.searchbox input, .search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  min-width: 0;
}
.searchbox input::placeholder, .search-bar input::placeholder {
  color: var(--text-muted);
}
.searchbox button, .search-bar button {
  padding: 10px 22px;
}

/* ========================================================
   Sections & Categories
   ======================================================== */
.section, .page {
  padding: 36px 0 60px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-head h2, .page-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.section-head p, .page-sub {
  color: var(--text-sub);
  font-size: 14.5px;
  margin-top: 4px;
}
.visit {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
}
.visit:hover {
  text-decoration: underline;
}

.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.cat {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  transition: all 0.15s ease;
  display: block;
}
.cat:hover {
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cat b {
  display: block;
  font-size: 14px;
  font-weight: 750;
  color: var(--text);
}
.cat small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
}

/* ========================================================
   Cards Grid (Sites)
   ======================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 24px 0 40px;
}
.card, .site-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}
.card:hover, .site-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
  box-shadow: var(--shadow);
}
.card-head, .site-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.card-meta, .site-info {
  flex: 1;
  min-width: 0;
}
.favicon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
  padding: 4px;
}
.card-title, .site-title {
  font-size: 15.5px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.card-domain, .site-domain {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}
.badge, .tag {
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.card-desc, .site-desc {
  font-size: 13.5px;
  color: var(--text-sub);
  margin-bottom: 18px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.site-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.card-rank-wrap {
  display: inline-flex;
  align-items: center;
}
.visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  transition: all 0.15s;
}
.visit-btn:hover {
  background: var(--line);
}

/* Empty / Toolbar / Pagination */
.empty {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.toolbar input, .toolbar select {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
}
.toolbar input { flex: 1; min-width: 220px; }
.toolbar select { min-width: 180px; }
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.pagination button {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 14px;
}
.pagination button.active {
  background: var(--primary);
  color: var(--primary-contrast);
}

/* ========================================================
   Forms (Submit)
   ======================================================== */
.form-card, .form-wrap {
  max-width: 640px;
  margin: 20px auto 40px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.field label .req { color: #ef4444; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--text-muted);
}
.input-with-btn {
  display: flex;
  gap: 10px;
}
.input-with-btn input {
  flex: 1;
  min-width: 0;
}
.hint {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 6px;
}
.notice {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 13.5px;
  border: 1px solid transparent;
}
.notice.ok { background: #0f291e; color: #4ade80; border-color: #1b4d37; }
.notice.err { background: #2f1217; color: #f87171; border-color: #582129; }
.notice.info { background: #181c2b; color: #93c5fd; border-color: #263353; }
[data-theme="light"] .notice.ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
[data-theme="light"] .notice.err { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
[data-theme="light"] .notice.info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ========================================================
   FAQ / Q&A
   ======================================================== */
.faq-section {
  max-width: 760px;
  margin: 20px auto 60px;
}
.faq-section h2 {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.faq-section .faq-sub {
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 24px;
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.faq-q {
  font-size: 15px;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 6px;
}
.faq-q::before {
  content: "Q. ";
  color: var(--text-muted);
}
.faq-a {
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.55;
  padding-left: 20px;
}

/* ========================================================
   Blog
   ======================================================== */
.blog-header {
  text-align: center;
  margin: 40px auto 36px;
  max-width: 720px;
}
.blog-article {
  max-width: 760px;
  margin: 0 auto 60px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.blog-article h1 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 850;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-bottom: 24px;
}
.blog-content {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.75;
}
.blog-content h2 {
  font-size: 20px;
  font-weight: 750;
  color: var(--text);
  margin: 32px 0 12px;
}
.blog-content p { margin-bottom: 16px; }
.blog-content ul { margin: 12px 0 20px 24px; }
.blog-content li { margin-bottom: 8px; }
.blog-callout {
  background: var(--bg-subtle);
  border-left: 3px solid var(--text-muted);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 14px;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================================
   Footer
   ======================================================== */
footer, /* ========================================================
   Modern Polished Footer
   ======================================================== */
.foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--bg-subtle);
  padding: 56px 0 28px;
  width: 100%;
}
.footin {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.foot-brand-col {
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot-brand-col .brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.foot-brand-col .brand span {
  color: var(--text-muted);
}
.foot-about {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-sub);
  margin: 0;
}
.foot-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
  margin-top: 4px;
}
.foot-status-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}
.foot-links-grid {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
}
.foot-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.foot-col a {
  color: var(--text-sub);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
  line-height: 1.4;
}
.foot-col a:hover {
  color: var(--text);
  transform: translateX(2px);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.foot-note {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .foot {
    padding: 40px 0 24px;
  }
  .footin {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 28px;
  }
  .foot-brand-col {
    max-width: 100%;
  }
  .foot-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
  }
  .foot-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}


/* ========================================================
   Responsive Rules
   ======================================================== */

.mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .desktop-nav, nav.nav, .topin > nav, .links, .nav-links {
    display: none !important;
  }
  .mobile-actions {
    display: inline-flex !important;
  }
  .menu, .nav-toggle {
    display: inline-flex !important;
  }
  .topin {
    height: 60px;
    padding: 0 16px;
  }
  .brand, .logo {
    font-size: 19px;
  }
  .cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .searchbox, .search-bar { flex-direction: column; gap: 8px; background: transparent; border: none; padding: 0; box-shadow: none; }
  .searchbox input, .search-bar input { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
  .searchbox button, .search-bar button { width: 100%; border-radius: 10px; }
  .input-with-btn { flex-direction: column; gap: 8px; }
  .input-with-btn button { width: 100%; }
  .form-card, .form-wrap { padding: 20px 16px; margin: 16px auto 32px; }
  .blog-article { padding: 24px 18px; }
  .footin, footer .wrap > div:first-child { flex-direction: column; gap: 24px; }
  .foot-links { gap: 28px; }
}


.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}


/* Card Foot & Action Buttons */
.card-foot, .site-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  position: relative;
}
.card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  white-space: nowrap;
}
.action-btn:hover {
  background: var(--line);
  color: var(--text);
  border-color: var(--text-muted);
}
.action-btn.visit-btn {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.action-btn.visit-btn:hover {
  opacity: 0.88;
}

/* Share Popover */
.share-popover-wrap {
  position: relative;
  display: inline-block;
}
.share-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  gap: 3px;
  min-width: 145px;
  z-index: 50;
}
.share-popover.open {
  display: flex;
}
.share-popover-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.12s;
  box-sizing: border-box;
}
.share-popover-item:hover {
  background: var(--bg-subtle);
}
.share-popover-item.copied {
  color: #10b981;
}

/* Optional Support Section on Submit Page */
.support-card {
  max-width: 720px;
  margin: 32px auto 48px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.support-badge-pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 12px;
}
.support-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.support-header p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.support-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.support-item {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}
.support-item-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.support-icon {
  font-size: 20px;
  line-height: 1;
}
.support-item-head h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.support-item-head p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.badge-preview-box {
  margin: 12px 0;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.preview-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.backlink-badge-preview {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #09090b;
  color: #fff;
  border: 1px solid #27272a;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
[data-theme="light"] .backlink-badge-preview {
  background: #ffffff;
  color: #09090b;
  border-color: #e4e4e7;
}
.badge-dot {
  color: #10b981;
}
.snippet-box {
  margin-top: 12px;
}
.snippet-box label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.snippet-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.snippet-input-group textarea {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  resize: none;
}
.copy-notice {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #10b981;
  font-weight: 600;
}
.support-social-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Leaderboard Rank Badges */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  margin-right: 6px;
}
.rank-1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.rank-2 {
  background: linear-gradient(135deg, #9ca3af, #4b5563);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.rank-3 {
  background: linear-gradient(135deg, #b45309, #78350f);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.rank-n {
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
}
