/* ============================================================
   Indexly.online — Complete Stylesheet
   Mobile: No hamburger — direct horizontal scroll nav
   ============================================================ */

/* ============================================================
   1. ROOT VARIABLES
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-hover: #fafbff;
  --fg: #0f1222;
  --fg-2: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --primary: #4338ca;
  --primary-2: #6d28d9;
  --primary-hover: #3730a3;
  --primary-fg: #ffffff;

  --ok: #047857;
  --ok-bg: #ecfdf5;
  --warn: #b45309;
  --warn-bg: #f59e0b;
  --warn-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(16, 24, 40, 0.06), 0 2px 4px -1px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 10px 25px rgba(16, 24, 40, 0.08);
  --shadow-xl: 0 20px 40px rgba(16, 24, 40, 0.12);

  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--fg);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.bold { font-weight: 600; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.section { padding: 44px 0; }
.section-narrow { max-width: 720px; }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ============================================================
   3. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  position: relative;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.brand span { color: var(--primary); }

.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--fg); font-size: .95rem; padding: 4px 0; position: relative; }
.nav a:hover { color: var(--primary); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.1rem;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--fg);
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 1px 2px rgba(67, 56, 202, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  box-shadow: 0 4px 10px rgba(67, 56, 202, 0.25);
}

.btn-outline { background: #fff; border-color: var(--border); color: var(--fg); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--bg-soft); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #991b1b; }

.btn-warn { background: var(--warn-bg); color: #fff; }
.btn-warn:hover { background: #d97706; }

.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-xs { padding: 3px 8px; font-size: .75rem; }
.btn-lg { padding: 12px 20px; font-size: 1rem; }

.btn[disabled] { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ============================================================
   5. HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(1000px 400px at 80% -10%, rgba(109, 40, 217, .10), transparent 60%),
    radial-gradient(800px 300px at 0% 0%, rgba(67, 56, 202, .10), transparent 60%),
    var(--bg-soft);
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--border);
}

.hero-inner { max-width: 820px; }
.hero h1 { margin-bottom: .4em; }

.lede {
  font-size: 1.08rem;
  color: var(--fg-2);
  max-width: 640px;
  margin-bottom: 1.2em;
}

.hero-search {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-md);
  max-width: 640px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(67, 56, 202, 0.1);
}

.hero-search input {
  flex: 1;
  border: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  outline: none;
  background: transparent;
  color: var(--fg);
  min-width: 0;
}

.hero-search input::placeholder { color: var(--muted); }

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ============================================================
   6. CHIPS
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .85rem;
  color: var(--fg);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all .15s ease;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.chip-xs { padding: 3px 10px; font-size: .75rem; font-weight: 600; }

/* ============================================================
   7. SECTIONS
   ============================================================ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 { margin: 0; }
.section-head a { font-size: .9rem; font-weight: 500; white-space: nowrap; }
.section-head a:hover { text-decoration: none; color: var(--primary-hover); }

/* ============================================================
   8. GRIDS
   ============================================================ */
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.platform-tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.platform-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ============================================================
   9. CARD
   ============================================================ */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.card:hover { box-shadow: var(--shadow-lg); }

.card-head { display: flex; flex-direction: column; gap: 6px; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-title a { color: var(--fg); }
.card-title a:hover { color: var(--primary); text-decoration: none; }

.card-sub { margin: 0; font-size: .9rem; color: var(--muted); }

.card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0;
  font-size: .88rem;
}

.card-meta dt {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
  font-weight: 600;
}

.card-meta dd { margin: 0; font-weight: 500; color: var(--fg); }
.card-socials { display: flex; gap: 6px; flex-wrap: wrap; }

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   10. BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
}

.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: #a7f3d0; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: #fde68a; }
.badge-danger { background: var(--danger-bg); color: var(--danger); border-color: #fecaca; }
.badge-featured { background: linear-gradient(135deg, #ede9fe, #dbeafe); color: #3730a3; border-color: #c7d2fe; }
.badge-verified { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* ============================================================
   11. PLATFORM LOGO TILES
   ============================================================ */
.platform-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--fg);
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-height: 140px;
}

.platform-tile:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.platform-tile-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: #f8fafc;
  padding: 10px;
  overflow: hidden;
  flex-shrink: 0;
  transition: background .15s ease;
}

.platform-tile:hover .platform-tile-img { background: #eef2ff; }

.platform-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.platform-tile-name {
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
  word-break: break-word;
  transition: color .15s ease;
}

.platform-tile:hover .platform-tile-name { color: var(--primary); }

/* ============================================================
   12. LAYOUT WITH SIDEBAR
   ============================================================ */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.sidebar { position: sticky; top: 80px; }

.filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .85rem;
  color: var(--fg-2);
  font-weight: 500;
}

.filters input,
.filters select {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: .9rem;
  background: #fff;
  color: var(--fg);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.filters .checkbox { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; }
.filters .checkbox input { width: auto; cursor: pointer; accent-color: var(--primary); }
.filters-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 24px; }

/* ============================================================
   13. DETAIL PAGE
   ============================================================ */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.detail-list { display: flex; flex-direction: column; gap: 10px; margin: 0; }

.detail-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
}

.detail-row:last-child { border-bottom: 0; }
.detail-row dt { color: var(--muted); font-size: .85rem; margin: 0; font-weight: 500; }
.detail-row dd { margin: 0; color: var(--fg); }

/* ============================================================
   14. NOTICES
   ============================================================ */
.notice {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .9rem;
  margin: 12px 0 20px;
  border: 1px solid var(--border);
  line-height: 1.55;
}

.notice-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.notice-info strong { color: #1e3a8a; }
.notice-info p { margin: 0 0 6px; }
.notice-info p:last-child { margin-bottom: 0; }
.notice-info ol { margin: 0; padding-left: 1.4em; }

.notice-warn { background: var(--warn-soft); border-color: #fde68a; color: #78350f; }
.notice-warn strong { color: #78350f; }
.notice-warn p { margin: 0 0 6px; }
.notice-warn p:last-child { margin-bottom: 0; }
.notice-warn ul { margin: 6px 0 0; padding-left: 1.4em; }
.notice-warn li { margin-bottom: 4px; }

.error { color: var(--danger); }

/* ============================================================
   15. FORMS
   ============================================================ */
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--fg-2);
}

.stack input,
.stack textarea,
.stack select {
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: .95rem;
  background: #fff;
  color: var(--fg);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.stack input:focus,
.stack textarea:focus,
.stack select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.stack textarea { resize: vertical; min-height: 80px; font-family: inherit; }

/* ============================================================
   16. FEATURED CAMPAIGN CARDS
   ============================================================ */
.featured-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}

.featured-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.featured-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  overflow: hidden;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.featured-card:hover .featured-thumb img { transform: scale(1.04); }

.featured-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.featured-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-meta {
  margin: 0;
  font-size: .85rem;
  color: var(--fg-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   17. PROJECTS — Earn Money Cards
   ============================================================ */
.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.project-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.project-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  overflow: hidden;
}

.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.project-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, .95);
  color: #4338ca;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .03em;
}

.project-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-head { display: flex; gap: 12px; align-items: center; }

.project-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: #f3f4f6;
  padding: 6px;
  flex-shrink: 0;
}

.project-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  flex-shrink: 0;
}

.project-name {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}

.project-tagline {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-earn {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.earn-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #047857;
  font-weight: 700;
}

.earn-value { font-size: 1rem; font-weight: 700; color: #065f46; }

.project-earners {
  margin: 0;
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  font-size: .88rem;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-earners strong { font-weight: 700; color: #047857; }
.project-earners .muted { color: #047857; font-weight: 500; }

.project-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   18. PROJECT DETAIL PAGE
   ============================================================ */
.project-page-body { padding-bottom: 120px; }
.pd-wrap { max-width: 920px; margin: 0 auto; }

.pd-stats-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.pd-stats-bar.pd-stats-bar-3 { grid-template-columns: repeat(3, 1fr); }

.pd-stat { display: flex; align-items: center; gap: 14px; }

.pd-stat-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  flex-shrink: 0;
}

.pd-stat-label {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  margin-bottom: 2px;
}

.pd-stat-value { display: block; font-size: 1.05rem; font-weight: 700; color: var(--ok); }

.pd-hero {
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  color: #fff;
  overflow: hidden;
}

.pd-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pd-hero-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 240px; }

.pd-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  flex-shrink: 0;
}

.pd-logo-fallback {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: #fff;
  border-radius: 14px;
  flex-shrink: 0;
}

.pd-title { margin: 0; font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.25; }
.pd-tagline { margin: 6px 0 0; font-size: .95rem; color: rgba(255, 255, 255, .8); }

.pd-share {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
  flex-shrink: 0;
}

.pd-share:hover { background: rgba(255, 255, 255, .25); }

.pd-hero-banner { margin-top: 20px; border-radius: 12px; overflow: hidden; max-height: 320px; }
.pd-hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Accordion */
.pd-accordion {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.pd-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg-soft);
  list-style: none;
  user-select: none;
  transition: background .15s ease;
}

.pd-accordion > summary::-webkit-details-marker { display: none; }
.pd-accordion > summary:hover { background: #eef2ff; }

.pd-chev { transition: transform .2s ease; font-size: .9rem; color: var(--muted); }
.pd-accordion[open] .pd-chev { transform: rotate(180deg); }
.pd-accordion-body { padding: 20px; border-top: 1px solid var(--border); }
.pd-accordion-body h4 { margin: 0 0 10px; font-size: 1rem; font-weight: 700; color: var(--fg); }
.pd-accordion-body p { margin: 0 0 10px; color: var(--fg-2); line-height: 1.65; }

.pd-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: .95rem;
  color: var(--fg-2);
  line-height: 1.55;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: 10px;
  border: 1px dashed var(--border);
}

.pd-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px dashed var(--primary);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}

.pd-steps li strong { color: var(--fg); font-weight: 700; display: block; margin-bottom: 4px; font-size: 1rem; }
.pd-steps li span.muted { font-size: .88rem; line-height: 1.55; color: var(--fg-2); display: block; }

.pd-info-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }

.pd-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #fef9c3;
  border-left: 4px solid var(--warn-bg);
  border-radius: 8px;
  font-size: .92rem;
  color: #78350f;
  line-height: 1.55;
}

.pd-info-icon { font-size: 1.1rem; flex-shrink: 0; }

.pd-faq-list { padding-left: 1.4em; margin: 0 0 12px; color: var(--fg-2); line-height: 1.7; }
.pd-faq-list li { margin-bottom: 6px; }

.pd-accordion-body p br { content: ""; display: block; margin: 2px 0; }

.pd-help-btn {
  display: block;
  text-align: center;
  padding: 16px;
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all .15s ease;
  margin-top: 14px;
}

.pd-help-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* Sticky CTA */
.pd-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #0f766e, #047857);
  padding: 14px 20px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .15);
  z-index: 30;
  color: #fff;
}

.pd-sticky-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pd-sticky-text { display: flex; flex-direction: column; gap: 2px; }
.pd-sticky-text strong { font-size: 1rem; font-weight: 700; }
.pd-sticky-text span { font-size: .85rem; color: rgba(255, 255, 255, .85); }

.pd-sticky-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-weight: 700;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, .35);
}

.pd-sticky-btn:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 6px 16px rgba(34, 197, 94, .45);
}

.pd-sticky-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex-shrink: 0; }
.pd-sticky-btn, .pd-sticky-btn-secondary { flex-shrink: 0; }

.pd-sticky-btn-secondary {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-weight: 600;
}

.pd-sticky-btn-secondary:hover { background: rgba(255, 255, 255, .25); color: #fff; }

/* ============================================================
   19. SUBMIT PROOF PAGE
   ============================================================ */
.proof-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.proof-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
  background: #f3f4f6;
  padding: 8px;
  flex-shrink: 0;
}

.proof-logo-fallback {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border-radius: 14px;
  flex-shrink: 0;
}

.proof-preview {
  padding: 12px;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.proof-preview-img {
  max-width: 100%;
  max-height: 300px;
  margin: 0 auto;
  border-radius: 8px;
  display: block;
}

input[type="file"] {
  padding: 12px;
  background: var(--bg-soft);
  border: 2px dashed var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: .9rem;
  width: 100%;
}

input[type="file"]:hover { border-color: var(--primary); background: #eef2ff; }

/* ============================================================
   20. ADMIN PANEL
   ============================================================ */
.admin-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 999px;
  vertical-align: middle;
  text-transform: uppercase;
}

.admin-body { background: #fbfbfd; }
.admin-body .site-header { background: rgba(255, 255, 255, .95); }
.admin-body .skeleton-block { min-height: 320px; }
.admin-body .container { max-width: 1300px; }

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.admin-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}

.admin-tabs button:hover { color: var(--primary); }
.admin-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); background: transparent; }

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-head h2 { margin: 0; }

.admin-head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.admin-head-actions input[type="search"] {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: .9rem;
  min-width: 240px;
  background: #fff;
  color: var(--fg);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.admin-head-actions input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }

.admin-filters .chip {
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: .85rem;
  font-weight: 500;
  transition: all .12s ease;
}

.admin-filters .chip:hover { border-color: var(--primary); color: var(--primary); }
.admin-filters .chip-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-filters .chip-active:hover { color: #fff; }

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-table-wrap .admin-table { border: 0; border-radius: 0; min-width: 960px; box-shadow: none; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 11px 14px;
  text-align: left;
  font-size: .88rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table th {
  background: var(--bg-soft);
  font-weight: 600;
  white-space: nowrap;
  color: var(--fg-2);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr { transition: background .12s ease; }
.admin-table tbody tr:hover { background: var(--bg-hover); }

.admin-table select {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: .82rem;
  background: #fff;
  color: var(--fg);
  max-width: 140px;
  cursor: pointer;
}

.admin-table select:focus { outline: none; border-color: var(--primary); }

.admin-flags { white-space: nowrap; }

.admin-flags label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 10px;
  font-size: .85rem;
  cursor: pointer;
  user-select: none;
}

.admin-flags input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.admin-actions { white-space: nowrap; }
.admin-actions .btn { margin-right: 4px; margin-bottom: 2px; }
.admin-actions .btn:last-child { margin-right: 0; }

/* ============================================================
   21. SKELETON LOADING
   ============================================================ */
.skeleton,
.skeleton-block {
  background: linear-gradient(90deg, #eef1f5 0%, #f6f8fb 50%, #eef1f5 100%);
  background-size: 200% 100%;
  animation: sk 1.2s ease-in-out infinite;
  border-radius: var(--radius);
  min-height: 140px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

@keyframes sk {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   22. EMPTY STATES
   ============================================================ */
.empty-state {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.empty-state h2 { margin-bottom: .4em; font-size: 1.3rem; }
.empty-state p { margin-bottom: 8px; color: var(--fg-2); }

/* ============================================================
   23. TOASTS
   ============================================================ */
.toast-host {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
  pointer-events: none;
  max-width: 90vw;
}

.toast {
  background: #111827;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: all .25s ease;
  box-shadow: var(--shadow-lg);
  max-width: 100%;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast-info { background: #111827; }
.toast-error { background: var(--danger); }

/* ============================================================
   24. FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 36px 0;
  margin-top: 48px;
}

.footer-inner { display: flex; flex-direction: column; gap: 14px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--fg-2); font-size: .9rem; font-weight: 500; }
.footer-nav a:hover { color: var(--primary); }

/* ============================================================
   25. SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: #fff;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  z-index: 200;
}

.skip-link:focus { left: 12px; top: 12px; outline: 2px solid var(--primary); }

/* ============================================================
   26. PROSE
   ============================================================ */
.prose { max-width: 720px; line-height: 1.7; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose p, .prose li { color: var(--fg-2); }
.prose ol, .prose ul { padding-left: 1.5em; }
.prose li { margin-bottom: 6px; }
.prose a { font-weight: 500; }

/* ============================================================
   27. DASHBOARD HEADER + STATS
   ============================================================ */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dash-header h1 { margin: 0 0 4px; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.dash-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-xs);
}

.dash-stat-label {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}

.dash-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.1;
}

.dash-stat-value.ok { color: var(--ok); }
.dash-stat-value.warn { color: var(--warn); }

/* ============================================================
   28. RESPONSIVE — Tablet (max-width: 960px)
   ============================================================ */
@media (max-width: 960px) {
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; order: -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .platform-tiles { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .pd-stats-bar.pd-stats-bar-3 { grid-template-columns: 1fr 1fr; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   29. RESPONSIVE — Mobile (max-width: 720px)
   Mobile nav rules live in responsive.css ONLY.
   ============================================================ */
@media (max-width: 720px) {
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 15px; }
  .container { padding: 0 14px; }

  /* Header — mobile layout handled in responsive.css */
  .site-header { height: auto; }

  /* Hero */
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: 1.5rem; line-height: 1.25; }
  .hero .lede { font-size: .95rem; }

  .hero-search { flex-direction: column; padding: 8px; gap: 6px; }
  .hero-search input { padding: 12px 14px; font-size: 1rem; }
  .hero-search .btn { width: 100%; padding: 12px; }

  .hero-cta { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-cta .btn { width: 100%; padding: 14px; }

  /* Section */
  .section { padding: 28px 0; }
  .section-head h2 { font-size: 1.15rem; }
  .section-head a { font-size: .85rem; }

  /* Cards */
  .card { padding: 16px; border-radius: 12px; }
  .card-meta { grid-template-columns: 1fr; gap: 8px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card-foot .btn { width: 100%; }

  /* Platform tiles */
  .platform-tiles { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  .platform-tile { padding: 14px 8px 12px; min-height: 110px; }
  .platform-tile-img { width: 60px; height: 60px; border-radius: 12px; padding: 8px; }
  .platform-tile-name { font-size: .78rem; }

  /* Featured & Projects */
  .featured-body { padding: 12px 14px 14px; }
  .featured-name { font-size: .92rem; }
  .featured-meta { font-size: .78rem; }

  .project-body { padding: 14px 16px 16px; }
  .project-name { font-size: .95rem; }
  .project-earn { padding: 8px 12px; }
  .earn-value { font-size: .9rem; }

  /* Project detail */
  .pd-stats-bar { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .pd-stats-bar.pd-stats-bar-3 { grid-template-columns: 1fr; }
  .pd-stat { gap: 10px; }
  .pd-stat-icon { width: 40px; height: 40px; font-size: 1.15rem; }
  .pd-stat-label { font-size: .7rem; }
  .pd-stat-value { font-size: .95rem; }

  .pd-hero { padding: 18px 16px; }
  .pd-title { font-size: 1.15rem; }
  .pd-tagline { font-size: .85rem; }
  .pd-logo, .pd-logo-fallback { width: 48px; height: 48px; border-radius: 10px; }

  .pd-accordion > summary { padding: 14px 16px; font-size: .92rem; }
  .pd-accordion-body { padding: 14px; }
  .pd-steps li { padding: 12px 14px; gap: 10px; }
  .pd-steps li::before { width: 24px; height: 24px; font-size: .78rem; }
  .pd-steps li strong { font-size: .92rem; }
  .pd-steps li span.muted { font-size: .82rem; }

  /* Sticky CTA */
  .pd-sticky-cta {
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .pd-sticky-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .pd-sticky-text {
    text-align: center;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    align-items: center;
  }
  .pd-sticky-text strong { font-size: .9rem; }
  .pd-sticky-text span { font-size: .78rem; }
  .pd-sticky-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .pd-sticky-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 8px;
    font-size: .8rem;
    white-space: nowrap;
  }
  .pd-sticky-btn-secondary { flex: 1 1 42%; }
  .pd-sticky-btn { flex: 1 1 58%; }
  .project-page-body { padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }

  /* Forms */
  .stack { gap: 12px; }
  .stack input, .stack textarea, .stack select { padding: 12px 14px; font-size: 1rem; }

  /* Filters */
  .layout-with-sidebar { grid-template-columns: 1fr; gap: 16px; }
  .sidebar { position: static; order: -1; }
  .filters { padding: 16px; gap: 12px; }

  /* Admin */
  .admin-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .admin-tabs button { white-space: nowrap; flex-shrink: 0; }
  .admin-head { flex-direction: column; align-items: stretch; }
  .admin-head-actions { width: 100%; }
  .admin-head-actions input[type="search"] { flex: 1; min-width: 0; width: 100%; }
  .admin-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Dashboard */
  .dash-header { flex-direction: column; align-items: stretch; }
  .dash-header .btn { width: 100%; }
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-stat { padding: 12px; }
  .dash-stat-value { font-size: 1.25rem; }

  /* Notices */
  .notice { padding: 12px 14px; font-size: .85rem; }
  .notice-warn ul { padding-left: 1.2em; }

  /* Proof page */
  .proof-header { flex-direction: column; align-items: flex-start; }

  /* Footer */
  .site-footer { padding: 24px 0; margin-top: 32px; }
  .footer-inner { gap: 12px; }
  .footer-nav { gap: 12px; }
  .footer-nav a { font-size: .82rem; }
}

/* ============================================================
   30. RESPONSIVE — Small Mobile (max-width: 380px)
   ============================================================ */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  h1 { font-size: 1.25rem; }
  .hero h1 { font-size: 1.3rem; }
  .section { padding: 24px 0; }

  .platform-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .platform-tile { padding: 12px 6px 10px; min-height: 100px; }
  .platform-tile-img { width: 52px; height: 52px; }
  .platform-tile-name { font-size: .72rem; }

  .pd-sticky-actions .btn { font-size: .72rem; padding: 10px 4px; }

  .dash-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   31. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   32. PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-search, .hero-cta,
  .quick-cats, .btn, .pd-sticky-cta, .ad-container {
    display: none !important;
  }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}