/* ════════════════════════════════════════════════
   SocialFeedback — Main Stylesheet
   Mobile-First Responsive Design
════════════════════════════════════════════════ */

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

:root {
  --primary:   #2563eb;
  --primary-d: #1d4ed8;
  --green:     #16a34a;
  --green-d:   #15803d;
  --red:       #dc2626;
  --orange:    #ea580c;
  --gold:      #d97706;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-400:  #94a3b8;
  --gray-600:  #475569;
  --gray-800:  #1e293b;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,.12);
  --radius:    12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ─── Utility ───────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.fw-bold { font-weight: 700; }
.text-muted { color: var(--gray-600); font-size: .875rem; }
.d-flex { display: flex; }
.gap-2  { gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ─── Alerts ────────────────────────────────────── */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: .9rem;
  font-weight: 500;
}
.alert-success { background: #f0fdf4; color: #15803d; border-left: 4px solid var(--green); }
.alert-error   { background: #fff1f2; color: #be123c; border-left: 4px solid var(--red); }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid var(--gold); }
.alert-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid var(--primary); }

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: filter .15s, transform .1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { filter: brightness(.92); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary  { background: var(--primary); color: #fff; }
.btn-green    { background: var(--green);   color: #fff; }
.btn-red      { background: var(--red);     color: #fff; }
.btn-orange   { background: var(--orange);  color: #fff; }
.btn-outline  { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-red { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-gray     { background: var(--gray-200); color: var(--gray-800); }
.btn-sm       { padding: 5px 12px; font-size: .8rem; }
.btn-lg       { padding: 13px 30px; font-size: 1rem; }
.btn-full     { width: 100%; justify-content: center; }

/* ─── Cards ─────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card-header {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── Stat Cards ────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
}
.stat-card.green  { border-top-color: var(--green); }
.stat-card.red    { border-top-color: var(--red); }
.stat-card.orange { border-top-color: var(--orange); }
.stat-card.gold   { border-top-color: var(--gold); }

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-800);
  line-height: 1.1;
}
.stat-label {
  font-size: .78rem;
  color: var(--gray-600);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ─── Forms ─────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  background: #fff;
  color: var(--gray-800);
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }

.form-hint { font-size: .8rem; color: var(--gray-600); margin-top: 5px; }

/* ─── Tables ────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-sm); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  background: #fff;
}
table thead tr { background: var(--gray-100); }
table th {
  padding: 11px 14px;
  font-weight: 700;
  color: var(--gray-600);
  text-align: left;
  white-space: nowrap;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid var(--gray-200);
}
table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
  color: var(--gray-800);
}
table tbody tr:hover { background: var(--gray-50); }
table tbody tr:last-child td { border-bottom: none; }

/* ─── Badges ────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .02em;
}
.badge-pending   { background: #fff7ed; color: #c2410c; }
.badge-approved  { background: #f0fdf4; color: #15803d; }
.badge-active    { background: #eff6ff; color: #1d4ed8; }
.badge-completed { background: #f1f5f9; color: #475569; }
.badge-rejected  { background: #fff1f2; color: #be123c; }
.badge-deactivated { background: #f1f5f9; color: #64748b; }
.badge-paid      { background: #f0fdf4; color: #15803d; }
.badge-gmb       { background: #eff6ff; color: #1d4ed8; }
.badge-instagram { background: #fdf4ff; color: #7e22ce; }
.badge-client    { background: #eff6ff; color: #1d4ed8; }
.badge-reviewer  { background: #f0fdf4; color: #15803d; }
.badge-admin     { background: #f1f5f9; color: #475569; }
.badge-featured  { background: #fffbeb; color: #92400e; }

/* ─── Progress Bar ──────────────────────────────── */
.progress-wrap {
  background: var(--gray-200);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  border-radius: 999px;
  transition: width .4s ease;
}
.progress-fill.green { background: linear-gradient(90deg, var(--green), #4ade80); }
.progress-label { font-size: .78rem; color: var(--gray-600); margin-top: 4px; }

/* ─── Navbar (public pages) ─────────────────────── */
.navbar {
  background: #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-links { display: flex; gap: 8px; align-items: center; }
.navbar-links a { font-size: .875rem; font-weight: 600; color: var(--gray-800); padding: 6px 12px; border-radius: 6px; }
.navbar-links a:hover { background: var(--gray-100); text-decoration: none; }

/* ─── Sidebar Layout ────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--gray-800);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 500;
  overflow-y: auto;
  transition: transform .3s;
}
.sidebar-brand {
  padding: 20px 20px 16px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
.sidebar-user strong { color: #fff; display: block; font-size: .9rem; }
.sidebar-nav { padding: 12px 0; flex: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.sidebar-nav a:hover,
.sidebar-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-nav a.active { border-left: 3px solid var(--primary); padding-left: 17px; }
.sidebar-nav .nav-section {
  padding: 10px 20px 4px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
  font-weight: 700;
}
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar-footer a { color: rgba(255,255,255,.6); font-size: .8rem; }

.main-content {
  margin-left: 240px;
  flex: 1;
  min-width: 0;
}
.topbar {
  background: #fff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-title { font-size: 1rem; font-weight: 700; color: var(--gray-800); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.page-body { padding: 24px; }

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--gray-800);
  font-size: 1.3rem;
}

/* ─── Auth Pages ────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  padding: 20px;
}
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
}
.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}
.auth-logo .brand { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.auth-logo p { font-size: .85rem; color: var(--gray-600); margin-top: 4px; }
.auth-card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; color: var(--gray-800); }

/* Role selector on register */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.role-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.role-card:hover { border-color: var(--primary); background: #eff6ff; }
.role-card.selected { border-color: var(--primary); background: #eff6ff; }
.role-card .icon { font-size: 1.8rem; margin-bottom: 6px; }
.role-card .label { font-size: .85rem; font-weight: 700; color: var(--gray-800); }
.role-card .sublabel { font-size: .75rem; color: var(--gray-600); margin-top: 2px; }

/* ─── Step Indicator ────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  gap: 0;
}
.step-item {
  display: flex;
  align-items: center;
  flex: 1;
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.step-circle.active  { background: var(--primary); color: #fff; }
.step-circle.done    { background: var(--green);   color: #fff; }
.step-label {
  font-size: .75rem;
  color: var(--gray-600);
  margin-left: 6px;
  white-space: nowrap;
}
.step-label.active { color: var(--primary); font-weight: 700; }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  margin: 0 8px;
}
.step-line.done { background: var(--green); }

/* ─── Review Count Selector ─────────────────────── */
.count-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.count-btn {
  padding: 10px 4px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
  color: var(--gray-800);
}
.count-btn:hover  { border-color: var(--primary); color: var(--primary); background: #eff6ff; }
.count-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }

.price-calc {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 12px;
}
.price-calc .calc-row { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 4px; }
.price-calc .calc-total { font-size: 1.1rem; font-weight: 800; color: var(--primary); border-top: 1px solid var(--gray-200); padding-top: 8px; margin-top: 8px; }

/* ─── Post Cards (Reviewer) ─────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.post-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  border: 1px solid var(--gray-200);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card.featured { border-top: 3px solid var(--gold); }
.post-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--gray-100);
}
.post-card-img-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gray-400);
}
.post-card-body { padding: 16px; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.post-card-title { font-size: .85rem; font-weight: 700; color: var(--gray-800); margin-bottom: 10px; }
.earn-badge {
  background: var(--green);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.post-card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.remaining-txt { font-size: .8rem; color: var(--gray-600); }

/* ─── Wallet Box ────────────────────────────────── */
.wallet-box {
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 24px;
}
.wallet-box .wallet-label { font-size: .85rem; opacity: .8; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.wallet-box .wallet-amount { font-size: 2.4rem; font-weight: 800; }
.wallet-box .wallet-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Demo Screen ───────────────────────────────── */
.demo-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.demo-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.demo-card h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.demo-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #92400e;
  font-size: .875rem;
  margin: 18px 0;
}
.copy-box {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: .9rem;
  position: relative;
  margin-bottom: 12px;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}

/* ─── QR Box ────────────────────────────────────── */
.qr-box {
  text-align: center;
  padding: 24px;
  background: var(--gray-50);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  margin: 18px 0;
}
.qr-box img { max-width: 200px; margin: 0 auto 12px; border-radius: 8px; }

/* ─── Platform Selector ─────────────────────────── */
.platform-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.platform-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 20px 14px;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
}
.platform-card:hover   { border-color: var(--primary); background: #eff6ff; }
.platform-card.selected{ border-color: var(--primary); background: #eff6ff; }
.platform-card .p-icon { font-size: 2rem; margin-bottom: 6px; }
.platform-card .p-name { font-weight: 700; font-size: .9rem; }
.platform-card .p-sub  { font-size: .75rem; color: var(--gray-600); }

/* ─── Image Thumbnail ───────────────────────────── */
.thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  cursor: pointer;
}

/* ─── Homepage ──────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 60%, #16a34a 100%);
  color: #fff;
  padding: 80px 20px 60px;
  text-align: center;
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero p  { font-size: 1.1rem; opacity: .9; max-width: 540px; margin: 0 auto 28px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--primary); font-weight: 700; }
.btn-white-outline { border: 2px solid #fff; color: #fff; background: transparent; font-weight: 700; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.trust-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.trust-card .t-icon { font-size: 2rem; margin-bottom: 8px; }
.trust-card .t-text { font-size: .875rem; font-weight: 600; color: var(--gray-800); }

.section { padding: 50px 20px; }
.section-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 8px; }
.section-sub   { text-align: center; color: var(--gray-600); margin-bottom: 32px; }
.container { max-width: 1000px; margin: 0 auto; }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 700px; margin: 0 auto; }
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  text-align: center;
}
.service-card.instagram { border-top-color: #a855f7; }
.service-card .s-icon { font-size: 2.5rem; margin-bottom: 12px; }
.service-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.service-card p  { font-size: .875rem; color: var(--gray-600); margin-bottom: 12px; }
.price-tag { font-size: 1.4rem; font-weight: 800; color: var(--primary); }

.steps-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 700px; margin: 0 auto; }
.step-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.step-num {
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.step-box p { font-size: .8rem; color: var(--gray-600); margin-top: 4px; }

footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 24px 20px;
  font-size: .85rem;
}
footer strong { color: #fff; }

/* ─── Filter Tabs ───────────────────────────────── */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  color: var(--gray-600);
  text-decoration: none;
  transition: all .15s;
}
.filter-tab:hover   { border-color: var(--primary); color: var(--primary); }
.filter-tab.active  { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ─── Modal ─────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.modal-close { float: right; cursor: pointer; font-size: 1.3rem; color: var(--gray-600); background: none; border: none; }

/* ─── Pagination ────────────────────────────────── */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.page-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-800);
  text-decoration: none;
}
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:hover  { border-color: var(--primary); }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 900;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: block; }
  .main-content { margin-left: 0; }
  
  .topbar { padding: 10px 16px; }
  .page-body { padding: 16px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .count-grid  { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .steps-row  { grid-template-columns: 1fr; }
  .platform-selector { grid-template-columns: 1fr 1fr; }
  .role-selector { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: 1fr; }

  .hero { padding: 50px 16px 40px; }
  .section { padding: 36px 16px; }
  
  table th, table td { padding: 9px 10px; font-size: .8rem; }

  .auth-card { padding: 24px 18px; }

  .wallet-box .wallet-amount { font-size: 1.8rem; }

  /* Overlay for sidebar */
  .sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 800;
    display: none;
  }
  .sidebar-overlay.open { display: block; }
}

@media (max-width: 480px) {
  .count-grid { grid-template-columns: repeat(3,1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
