/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #ffffff;
  --bg-2:        #f9fafb;
  --bg-3:        #f3f4f6;
  --border:      #e5e7eb;
  --border-2:    #d1d5db;
  --text:        #111827;
  --text-2:      #374151;
  --text-3:      #6b7280;
  --text-4:      #9ca3af;
  --green:       #16a34a;
  --green-bg:    #dcfce7;
  --green-text:  #15803d;
  --green-dark:  #166534;
  --blue:        #2563eb;
  --blue-bg:     #dbeafe;
  --red:         #dc2626;
  --red-bg:      #fee2e2;
  --orange:      #ea580c;
  --orange-bg:   #ffedd5;
  --purple:      #7c3aed;
  --purple-bg:   #ede9fe;
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --shadow-sm:   0 1px 2px rgba(0,0,0,.05);
  --shadow:      0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl:   0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition:  150ms ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: var(--font); outline: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }

.hidden { display: none !important; }

/* ─── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.3px;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-spacer { flex: 1; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: -0.1px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-3);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-3); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--text); }

.btn-dark {
  background: var(--text);
  color: white;
  border: 1.5px solid var(--text);
}
.btn-dark:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.btn-green {
  background: var(--green);
  color: white;
  border: 1.5px solid var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22,163,74,.25);
}

.btn-lg { height: 44px; padding: 0 24px; font-size: 14.5px; border-radius: 12px; }
.btn-xl { height: 50px; padding: 0 32px; font-size: 15px; border-radius: 14px; }

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 72px 24px 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  background: var(--green-bg);
  border: 1px solid #bbf7d0;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green-text);
  letter-spacing: 0.2px;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 99px;
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 20px;
}

.hero h1 .underline-green {
  position: relative;
  display: inline-block;
}
.hero h1 .underline-green::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
}

.hero p {
  font-size: 16.5px;
  color: var(--text-3);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
}

.hero-feature-icon {
  width: 18px;
  height: 18px;
  background: var(--green-bg);
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--green);
  flex-shrink: 0;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-subtext {
  font-size: 12px;
  color: var(--text-4);
  margin-top: 12px;
}

/* ─── Main Layout ──────────────────────────────────────── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 100px;
}

/* ─── Toolbar ──────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.toolbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0 14px;
  min-width: 220px;
  transition: all var(--transition);
}
.toolbar-search:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(17,24,39,.07);
}
.toolbar-search-icon { color: var(--text-4); font-size: 14px; flex-shrink: 0; }
.toolbar-search input {
  flex: 1;
  background: none;
  border: none;
  font-size: 13.5px;
  color: var(--text);
}
.toolbar-search input::placeholder { color: var(--text-4); }

.toolbar-filter {
  height: 38px;
  padding: 0 14px;
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.toolbar-filter:hover { border-color: var(--text); color: var(--text); }
.toolbar-filter.active { background: var(--text); border-color: var(--text); color: white; }

.toolbar-sep {
  width: 1px; height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.toolbar-count {
  font-size: 13px;
  color: var(--text-3);
  margin-left: auto;
  flex-shrink: 0;
}

/* Category pills row */
.cat-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cat-pill {
  height: 30px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.cat-pill:hover { border-color: var(--border-2); color: var(--text); background: var(--bg-2); }
.cat-pill.active { background: var(--text); border-color: var(--text); color: white; }
.cat-pill-count {
  font-size: 10.5px;
  opacity: .6;
}
.cat-pill.active .cat-pill-count { opacity: .7; }

/* ─── Table Container ──────────────────────────────────── */
.table-container {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.prog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

/* Header */
.prog-table thead tr {
  background: var(--bg-2);
  border-bottom: 1.5px solid var(--border);
}

.prog-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.3px;
  white-space: nowrap;
  user-select: none;
}

.prog-table th.sortable {
  cursor: pointer;
}
.prog-table th.sortable:hover { color: var(--text); }
.prog-table th.sorted { color: var(--text); }

.th-inner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sort-icon {
  font-size: 10px;
  opacity: .5;
}
.sorted .sort-icon { opacity: 1; }

/* Rows */
.prog-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.prog-table tbody tr:last-child { border-bottom: none; }
.prog-table tbody tr:hover { background: var(--bg-2); }

.prog-table td {
  padding: 13px 14px;
  vertical-align: middle;
}

/* Name cell */
.td-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.prog-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.06);
}

.prog-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.prog-name {
  font-weight: 600;
  color: var(--text);
  font-size: 13.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.prog-url {
  font-size: 11.5px;
  color: var(--text-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* Commission cell */
.td-commission {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}

/* Pill badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.pill-green  { background: var(--green-bg);  color: var(--green-text); }
.pill-blue   { background: var(--blue-bg);   color: var(--blue); }
.pill-orange { background: var(--orange-bg); color: var(--orange); }
.pill-purple { background: var(--purple-bg); color: var(--purple); }
.pill-gray   { background: var(--bg-3);      color: var(--text-3); }
.pill-dark   { background: var(--text);      color: white; }

/* Yes/No cells */
.td-check {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}
.check-yes { color: var(--green); display: flex; align-items: center; gap: 4px; }
.check-no  { color: var(--text-4); display: flex; align-items: center; gap: 4px; }

/* Cookie cell */
.td-cookie {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}

/* Join cell */
.td-join { text-align: right; }

.join-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 13px;
  background: var(--text);
  color: white;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.join-btn:hover {
  background: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(22,163,74,.25);
}

/* Featured row highlight */
.prog-table tbody tr.row-featured {
  background: #fafffe;
}
.prog-table tbody tr.row-featured:hover { background: #f0fdf4; }

.featured-star {
  font-size: 10px;
  color: var(--orange);
}

/* ─── Empty State ──────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  display: none;
}
.empty-state.show { display: block; }
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 14px; color: var(--text-3); margin-bottom: 16px; }

/* ─── Submit CTA ───────────────────────────────────────── */
.submit-cta {
  background: var(--text);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.submit-cta-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.submit-cta-text p {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  max-width: 340px;
  line-height: 1.5;
}

.submit-cta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.price-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px 16px;
}
.price-badge .price {
  font-size: 20px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1;
}
.price-badge .price-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-top: 3px;
}

/* ─── Detail Modal ─────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.97) translateY(6px);
  transition: transform 200ms cubic-bezier(.34,1.56,.64,1);
  border: 1px solid var(--border);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 3px;
}

.modal-close {
  width: 28px; height: 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-3);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg-3); color: var(--text); }

.modal-body { padding: 0 24px 24px; }

/* ─── Forms ────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-input {
  width: 100%;
  height: 40px;
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0 12px;
  font-size: 13.5px;
  color: var(--text);
  transition: all var(--transition);
}
.form-input::placeholder { color: var(--text-4); }
.form-input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(17,24,39,.07);
}
.form-input.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.07); }

.form-textarea {
  width: 100%;
  min-height: 80px;
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--text);
  resize: vertical;
  transition: all var(--transition);
  line-height: 1.5;
}
.form-textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(17,24,39,.07);
}

.form-select {
  width: 100%;
  height: 40px;
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0 32px 0 12px;
  font-size: 13.5px;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236b7280' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: all var(--transition);
}
.form-select:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(17,24,39,.07); }
.form-select.error { border-color: var(--red); }

.form-error { font-size: 11.5px; color: var(--red); margin-top: 4px; display: none; }
.form-error.show { display: block; }
.form-hint { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ─── Auth Modal ───────────────────────────────────────── */
.auth-tabs {
  display: flex;
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 3px;
  gap: 3px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--transition);
}
.auth-tab.active {
  background: white;
  color: var(--text);
  box-shadow: var(--shadow);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-footer-text {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}
.auth-footer-text a { color: var(--green); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ─── Pricing Modal ────────────────────────────────────── */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.pricing-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: var(--bg);
}
.pricing-card:hover { border-color: var(--text); }
.pricing-card.selected { border-color: var(--text); background: var(--bg-2); }

.pricing-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 6px;
}
.pricing-price sup { font-size: 16px; vertical-align: super; letter-spacing: 0; }

.pricing-desc { font-size: 12px; color: var(--text-3); line-height: 1.45; }

.pricing-features { display: flex; flex-direction: column; gap: 7px; margin: 16px 0 20px; }
.pricing-feature { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.pricing-feature-icon { color: var(--green); font-size: 13px; flex-shrink: 0; }

/* ─── Detail Modal ─────────────────────────────────────── */
.detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}

.detail-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.07);
}

.detail-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
  display: flex; align-items: center; gap: 7px;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.detail-cat { font-size: 12.5px; color: var(--text-3); }

.detail-close {
  margin-left: auto; width: 30px; height: 30px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 99px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-3); cursor: pointer; flex-shrink: 0;
  transition: all var(--transition);
}
.detail-close:hover { background: var(--bg-3); color: var(--text); }

.detail-body { padding: 20px 24px 24px; }

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.detail-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

.detail-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.8px;
  line-height: 1;
  margin-bottom: 4px;
}

.detail-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-3);
}

.detail-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.65; margin-bottom: 18px; }

.detail-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }

.detail-info-item {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--border);
}

.detail-info-label { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-3); margin-bottom: 4px; }
.detail-info-value { font-size: 13px; font-weight: 600; color: var(--text); }

.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; }
.tag { background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 500; color: var(--text-2); }

.detail-cta-row { display: flex; gap: 10px; }

/* ─── User Menu ────────────────────────────────────────── */
.user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px 0 5px; height: 36px;
  background: var(--bg-2); border: 1.5px solid var(--border);
  border-radius: 99px; cursor: pointer; transition: all var(--transition);
  font-size: 13px; font-weight: 600; color: var(--text);
}
.user-btn:hover { border-color: var(--text); }

.user-avatar {
  width: 26px; height: 26px;
  background: var(--text);
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
}

.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 5px; min-width: 180px; z-index: 200; display: none;
}
.user-dropdown.open { display: block; }
.user-dropdown-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: all var(--transition);
}
.user-dropdown-item:hover { background: var(--bg-2); color: var(--text); }
.user-dropdown-item.danger:hover { background: #fef2f2; color: var(--red); }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.user-menu-wrap { position: relative; }

/* ─── Toast ────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 2000; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--text);
  color: white;
  padding: 11px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 9px;
  pointer-events: all;
  transform: translateX(110%);
  transition: transform 240ms cubic-bezier(.34,1.56,.64,1);
  max-width: 320px;
  border: 1px solid rgba(255,255,255,.08);
}
.toast.show { transform: translateX(0); }

/* ─── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}

.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 12px;
}
.footer-brand p { font-size: 13px; color: var(--text-3); line-height: 1.65; max-width: 220px; }

.footer-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 12px;
}

.footer-link {
  display: block; font-size: 13.5px; color: var(--text-3);
  margin-bottom: 9px; transition: color var(--transition); cursor: pointer;
}
.footer-link:hover { color: var(--text); }

.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-3);
}

.footer-bottom-links { display: flex; gap: 20px; }

/* ─── Pagination ───────────────────────────────────────── */
#paginationControls {
  padding: 24px 0;
  display: flex;
  justify-content: center;
}

.pagination-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  background: var(--text);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.pagination-btn:hover:not(.disabled) {
  background: var(--text-2);
  transform: translateY(-1px);
}

.pagination-btn.disabled {
  background: var(--bg-3);
  color: var(--text-3);
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.pagination-current {
  color: var(--text);
  font-weight: 700;
}

.pagination-separator {
  opacity: 0.5;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .prog-table .col-cookie,
  .prog-table .col-verified { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .submit-cta { flex-direction: column; text-align: center; }
  .submit-cta-right { justify-content: center; }
}

@media (max-width: 640px) {
  .nav { padding: 0 16px; }
  .hero { padding: 52px 16px 48px; }
  .hero h1 { letter-spacing: -1.5px; }
  .page-wrap { padding: 24px 16px 80px; }
  .prog-table .col-category { display: none; }
  .prog-table .col-type { display: none; }
  .footer { padding: 36px 16px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .detail-stats { grid-template-columns: 1fr 1fr; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
