/* ═══════════════════════════════════════════════════════
   MOWIFI MARKETPLACE v18 — Frontend Styles
   Bold, warm marketplace aesthetic — inspired by vibrant
   African digital commerce. Sora + Nunito typography.
   ═══════════════════════════════════════════════════════ */

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

:root {
  --mw-primary:    #e84040;
  --mw-primary-dk: #c42a2a;
  --mw-accent:     #f5a623;
  --mw-green:      #22c55e;
  --mw-blue:       #3b82f6;
  --mw-purple:     #8b5cf6;
  --mw-dark:       #1a1a2e;
  --mw-mid:        #2d2d44;
  --mw-light:      #f8f7f4;
  --mw-border:     #e5e7eb;
  --mw-text:       #1f2937;
  --mw-muted:      #6b7280;
  --mw-radius:     12px;
  --mw-radius-lg:  20px;
  --mw-shadow:     0 2px 12px rgba(0,0,0,0.08);
  --mw-shadow-lg:  0 8px 32px rgba(0,0,0,0.14);
  font-family: 'Nunito', sans-serif;
}

/* ─── BASE ─── */
.mowifi-marketplace,
.mowifi-post-listing,
.mowifi-dashboard,
.mowifi-inbox,
.mowifi-plans-page,
.mowifi-single-listing {
  font-family: 'Nunito', sans-serif;
  color: var(--mw-text);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ─── NOTICES ─── */
.mowifi-notice {
  padding: 12px 18px;
  border-radius: var(--mw-radius);
  margin: 12px 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.mowifi-notice.success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--mw-green); }
.mowifi-notice.error   { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--mw-primary); }
.mowifi-notice.warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--mw-accent); }
.mowifi-notice.info    { background: #dbeafe; color: #1e40af; border-left: 4px solid var(--mw-blue); }

/* ─── BUTTONS ─── */
.mowifi-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--mw-radius);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  background: var(--mw-border);
  color: var(--mw-text);
  line-height: 1;
}
.mowifi-btn:hover { transform: translateY(-1px); box-shadow: var(--mw-shadow); }
.mowifi-btn-primary { background: var(--mw-primary); color: #fff; border-color: var(--mw-primary); }
.mowifi-btn-primary:hover { background: var(--mw-primary-dk); border-color: var(--mw-primary-dk); color: #fff; }
.mowifi-btn-green   { background: var(--mw-green); color: #fff; }
.mowifi-btn-green:hover { background: #16a34a; color: #fff; }
.mowifi-btn-paynow  { background: #1a6e2b; color: #fff; }
.mowifi-btn-danger  { background: #fef2f2; color: var(--mw-primary); border-color: #fca5a5; }
.mowifi-btn-danger:hover { background: var(--mw-primary); color: #fff; }
.mowifi-btn-sm   { padding: 6px 12px; font-size: 0.8rem; }
.mowifi-btn-lg   { padding: 14px 32px; font-size: 1rem; }
.mowifi-btn-current { background: #e5e7eb; color: var(--mw-muted); cursor: default; }
.mowifi-btn-current:hover { transform: none; box-shadow: none; }

/* ─── HERO ─── */
.mowifi-hero {
  background: linear-gradient(135deg, var(--mw-dark) 0%, #2d1b4e 50%, var(--mw-primary-dk) 100%);
  border-radius: var(--mw-radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.mowifi-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='2' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") repeat;
}
.mowifi-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  position: relative;
}
.mowifi-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 24px;
  position: relative;
}
.mowifi-search-form {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  gap: 0;
}
.mowifi-search-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--mw-radius) 0 0 var(--mw-radius);
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  outline: none;
}
.mowifi-search-form button {
  padding: 14px 22px;
  background: var(--mw-accent);
  color: var(--mw-dark);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 0 var(--mw-radius) var(--mw-radius) 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.mowifi-search-form button:hover { background: #e0941a; }

/* ─── CATEGORY PILLS ─── */
.mowifi-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.cat-pill {
  display: inline-block;
  padding: 7px 16px;
  background: #fff;
  border: 2px solid var(--mw-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mw-text);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--mw-primary);
  border-color: var(--mw-primary);
  color: #fff;
}

/* ─── TOOLBAR ─── */
.mowifi-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.mowifi-toolbar > span {
  font-weight: 600;
  color: var(--mw-muted);
  font-size: 0.9rem;
  margin-right: auto;
}
.mowifi-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.mowifi-sort select {
  padding: 7px 12px;
  border: 2px solid var(--mw-border);
  border-radius: var(--mw-radius);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ─── LISTINGS GRID ─── */
.mowifi-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* ─── LISTING CARD ─── */
.listing-card {
  background: #fff;
  border-radius: var(--mw-radius-lg);
  box-shadow: var(--mw-shadow);
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
  border: 2px solid transparent;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mw-shadow-lg);
  border-color: var(--mw-primary);
}
.listing-card.is-featured {
  border-color: var(--mw-accent);
  box-shadow: 0 4px 20px rgba(245,166,35,0.2);
}
.featured-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--mw-accent);
  color: var(--mw-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  z-index: 2;
  font-family: 'Sora', sans-serif;
}
.plan-indicator {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  z-index: 2;
  font-family: 'Sora', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.plan-indicator.plan-basic    { background: #dcfce7; color: #166534; }
.plan-indicator.plan-pro      { background: #dbeafe; color: #1e40af; }
.plan-indicator.plan-business { background: #fef9c3; color: #854d0e; }

.listing-img-link { display: block; height: 180px; overflow: hidden; background: var(--mw-light); }
.listing-img-link img, .listing-thumb { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.3s; }
.listing-card:hover .listing-thumb { transform: scale(1.04); }
.listing-no-img { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--mw-light); color: var(--mw-border); }

.listing-body { padding: 14px; }
.listing-cat { font-size: 0.72rem; font-weight: 700; color: var(--mw-primary); text-transform: uppercase; letter-spacing: 0.05em; }
.listing-body h3 { margin: 4px 0 6px; font-family: 'Sora', sans-serif; font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.listing-body h3 a { color: var(--mw-text); text-decoration: none; }
.listing-body h3 a:hover { color: var(--mw-primary); }
.listing-excerpt { font-size: 0.82rem; color: var(--mw-muted); margin-bottom: 10px; line-height: 1.4; }
.listing-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.listing-price { font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--mw-primary); }
.listing-location { font-size: 0.78rem; color: var(--mw-muted); }
.listing-footer { display: flex; gap: 8px; font-size: 0.75rem; color: var(--mw-muted); flex-wrap: wrap; align-items: center; }

/* ─── EMPTY STATE ─── */
.mowifi-empty { text-align: center; padding: 48px; color: var(--mw-muted); font-size: 1.05rem; grid-column: 1/-1; }
.mowifi-empty a { color: var(--mw-primary); font-weight: 700; }

/* ─── PAGINATION ─── */
.mowifi-pagination { display: flex; justify-content: center; gap: 8px; margin: 24px 0; flex-wrap: wrap; }
.page-btn { padding: 8px 14px; background: #fff; border: 2px solid var(--mw-border); border-radius: var(--mw-radius); font-weight: 700; text-decoration: none; color: var(--mw-text); transition: all 0.2s; font-size: 0.9rem; }
.page-btn.active, .page-btn:hover { background: var(--mw-primary); border-color: var(--mw-primary); color: #fff; }

/* ─── POST LISTING FORM ─── */
.mowifi-form-header { margin-bottom: 24px; }
.mowifi-form-header h2 { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 800; margin: 0 0 8px; }
.plan-status { font-size: 0.9rem; color: var(--mw-muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.mowifi-form { background: #fff; border-radius: var(--mw-radius-lg); padding: 32px; box-shadow: var(--mw-shadow); }
.mowifi-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 700; font-size: 0.9rem; color: var(--mw-text); }
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 2px solid var(--mw-border);
  border-radius: var(--mw-radius);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: var(--mw-light);
  color: var(--mw-text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mw-primary);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group small { color: var(--mw-muted); font-size: 0.8rem; }

.mowifi-featured-option { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 2px solid var(--mw-accent); border-radius: var(--mw-radius); padding: 16px; }
.featured-toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.featured-toggle input { margin-top: 3px; accent-color: var(--mw-accent); width: 18px; height: 18px; }
.toggle-content strong { display: block; font-size: 0.95rem; color: var(--mw-dark); }
.toggle-content small { color: var(--mw-muted); font-size: 0.82rem; }

.mowifi-payment-options { background: #fff; border: 2px solid var(--mw-border); border-radius: var(--mw-radius-lg); padding: 24px; margin: 16px 0; }
.mowifi-payment-options h3 { margin: 0 0 16px; font-family: 'Sora', sans-serif; font-size: 1.1rem; }
.mowifi-ecocash-info { margin-top: 16px; padding: 16px; background: var(--mw-light); border-radius: var(--mw-radius); }
.mowifi-proof-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* ─── DASHBOARD ─── */
.dashboard-header { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: var(--mw-radius-lg); padding: 24px; box-shadow: var(--mw-shadow); margin-bottom: 20px; flex-wrap: wrap; gap: 16px; }
.user-avatar { display: flex; align-items: center; gap: 16px; }
.user-avatar img { border-radius: 50%; width: 70px; height: 70px; }
.user-avatar h2 { font-family: 'Sora', sans-serif; margin: 0 0 4px; font-size: 1.3rem; }
.user-avatar p { margin: 0; color: var(--mw-muted); font-size: 0.9rem; }

.plan-widget { background: var(--mw-dark); color: #fff; border-radius: var(--mw-radius); padding: 16px 20px; text-align: center; min-width: 160px; }
.plan-widget.plan-basic    { background: linear-gradient(135deg, #166534, #22c55e); }
.plan-widget.plan-pro      { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.plan-widget.plan-business { background: linear-gradient(135deg, #92400e, #f59e0b); }
.plan-widget.plan-free     { background: linear-gradient(135deg, #374151, #6b7280); }
.plan-name { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
.plan-expiry { font-size: 0.8rem; opacity: 0.85; margin-bottom: 10px; }

.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.dash-stat { background: #fff; border-radius: var(--mw-radius); padding: 20px; box-shadow: var(--mw-shadow); text-align: center; }
.dash-stat span { display: block; font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800; color: var(--mw-primary); }
.dash-stat label { font-size: 0.82rem; color: var(--mw-muted); font-weight: 600; }

.dashboard-nav { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.dashboard-nav h3 { font-family: 'Sora', sans-serif; margin: 0 0 16px; font-size: 1.1rem; }

.mowifi-my-listings { display: flex; flex-direction: column; gap: 12px; }
.my-listing-row { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--mw-radius); padding: 14px; box-shadow: var(--mw-shadow); }
.mlr-thumb { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--mw-light); display: flex; align-items: center; justify-content: center; }
.mlr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.no-thumb { font-size: 1.5rem; color: var(--mw-border); }
.mlr-info { flex: 1; }
.mlr-info h4 { margin: 0 0 4px; font-size: 0.95rem; font-weight: 700; }
.mlr-info h4 a { color: var(--mw-text); text-decoration: none; }
.mlr-info h4 a:hover { color: var(--mw-primary); }
.mlr-price { font-weight: 800; color: var(--mw-primary); font-size: 0.9rem; margin-left: 8px; }
.featured-badge-sm { background: #fef3c7; color: #92400e; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.mlr-stats { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--mw-muted); text-align: right; }
.mlr-actions { flex-shrink: 0; }

/* ─── INBOX ─── */
.mowifi-inbox h2 { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 800; margin-bottom: 20px; }
.message-list { display: flex; flex-direction: column; gap: 12px; }
.message-item { background: #fff; border-radius: var(--mw-radius); padding: 16px; box-shadow: var(--mw-shadow); border-left: 4px solid var(--mw-border); }
.message-item.sent     { border-left-color: var(--mw-blue); }
.message-item.received { border-left-color: var(--mw-green); }
.msg-header { display: flex; gap: 12px; font-size: 0.82rem; color: var(--mw-muted); margin-bottom: 8px; flex-wrap: wrap; }
.msg-party { font-weight: 700; color: var(--mw-text); }
.msg-body { font-size: 0.95rem; line-height: 1.5; }

/* ─── PLANS ─── */
.plans-hero { text-align: center; padding: 48px 20px 32px; }
.plans-hero h1 { font-family: 'Sora', sans-serif; font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.plans-hero p { color: var(--mw-muted); font-size: 1.05rem; }

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 40px; }
.plan-card { background: #fff; border-radius: var(--mw-radius-lg); box-shadow: var(--mw-shadow); overflow: hidden; position: relative; transition: all 0.25s ease; border: 2px solid transparent; }
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--mw-shadow-lg); }
.plan-card.is-current { border-color: var(--mw-accent); }
.plan-popular-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--mw-accent); color: var(--mw-dark); font-size: 0.72rem; font-weight: 800; padding: 4px 16px; border-radius: 0 0 999px 999px; font-family: 'Sora', sans-serif; z-index: 3; white-space: nowrap; }
.plan-header { padding: 28px 24px 20px; color: #fff; text-align: center; }
.plan-icon { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.plan-header h3 { font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 800; margin: 0 0 8px; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.price-amount { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800; }
.price-period { font-size: 0.9rem; opacity: 0.8; }
.plan-body { padding: 24px; }
.plan-perks { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-perks li { font-size: 0.9rem; color: var(--mw-text); font-weight: 500; }

.plan-subscribe-section { margin-top: 16px; }
.subscribe-form { display: flex; flex-direction: column; gap: 12px; }
.method-label { font-weight: 700; font-size: 0.85rem; color: var(--mw-muted); }
.method-options { display: flex; gap: 16px; flex-wrap: wrap; }
.method-options label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.ecocash-info { background: var(--mw-light); border-radius: var(--mw-radius); padding: 14px; font-size: 0.88rem; }
.ecocash-info p { margin: 0 0 10px; }
.ecocash-info label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.82rem; }

.free-plan-info { background: var(--mw-light); border-radius: var(--mw-radius-lg); padding: 24px; text-align: center; }
.free-plan-info h3 { font-family: 'Sora', sans-serif; margin: 0 0 8px; }
.free-plan-info p { color: var(--mw-muted); margin: 0; }

/* ─── BADGES ─── */
.plan-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; font-family: 'Sora', sans-serif; text-transform: uppercase; letter-spacing: 0.04em; }
.plan-badge.plan-free     { background: #f3f4f6; color: #6b7280; }
.plan-badge.plan-basic    { background: #dcfce7; color: #166534; }
.plan-badge.plan-pro      { background: #dbeafe; color: #1e40af; }
.plan-badge.plan-business { background: #fef9c3; color: #854d0e; }

.status-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; font-family: 'Sora', sans-serif; text-transform: uppercase; }
.status-badge.status-publish       { background: #dcfce7; color: #166534; }
.status-badge.status-pending       { background: #fef9c3; color: #854d0e; }
.status-badge.status-draft         { background: #f3f4f6; color: #6b7280; }
.status-badge.status-active        { background: #dcfce7; color: #166534; }
.status-badge.status-expired       { background: #fee2e2; color: #991b1b; }
.status-badge.status-rejected      { background: #fee2e2; color: #991b1b; }
.status-badge.status-proof_uploaded{ background: #dbeafe; color: #1e40af; }
.status-badge.status-approved      { background: #dcfce7; color: #166534; }

/* ─── SINGLE LISTING ─── */
.listing-meta-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; padding: 12px 0; border-bottom: 2px solid var(--mw-border); }
.listing-meta-bar span { font-size: 0.85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--mw-light); color: var(--mw-text); }
.lmb-featured { background: #fef3c7 !important; color: #92400e !important; }
.listing-price-box { margin-bottom: 20px; }
.big-price { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800; color: var(--mw-primary); }

.seller-card { background: #fff; border-radius: var(--mw-radius-lg); padding: 20px; box-shadow: var(--mw-shadow); margin-bottom: 20px; }
.seller-card h3 { font-family: 'Sora', sans-serif; margin: 0 0 14px; font-size: 1rem; color: var(--mw-muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; }
.seller-info { display: flex; gap: 14px; margin-bottom: 16px; align-items: center; }
.seller-info img { border-radius: 50%; width: 60px; height: 60px; }
.seller-info strong { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem; }
.seller-card .mowifi-btn { margin-right: 8px; margin-bottom: 8px; }

.contact-seller-form { background: var(--mw-light); border-radius: var(--mw-radius-lg); padding: 20px; margin-bottom: 20px; }
.contact-seller-form h3 { font-family: 'Sora', sans-serif; margin: 0 0 14px; font-size: 1.05rem; }
.contact-seller-form textarea { width: 100%; padding: 12px; border: 2px solid var(--mw-border); border-radius: var(--mw-radius); font-family: 'Nunito', sans-serif; font-size: 0.95rem; resize: vertical; box-sizing: border-box; margin-bottom: 10px; }
.contact-seller-form textarea:focus { outline: none; border-color: var(--mw-primary); }

.listing-reviews { background: #fff; border-radius: var(--mw-radius-lg); padding: 20px; box-shadow: var(--mw-shadow); margin-bottom: 20px; }
.listing-reviews h3 { font-family: 'Sora', sans-serif; margin: 0 0 16px; }
.review-item { border-bottom: 1px solid var(--mw-border); padding: 14px 0; }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.review-header strong { font-weight: 700; }
.review-stars { font-size: 0.85rem; }
.review-date { color: var(--mw-muted); font-size: 0.8rem; margin-left: auto; }
.submit-review { margin-top: 20px; border-top: 2px solid var(--mw-border); padding-top: 16px; }
.submit-review h4 { font-family: 'Sora', sans-serif; margin: 0 0 12px; }
.star-select { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.star-select label { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 0.88rem; cursor: pointer; }
.submit-review textarea { width: 100%; padding: 10px; border: 2px solid var(--mw-border); border-radius: var(--mw-radius); font-family: 'Nunito', sans-serif; font-size: 0.9rem; resize: vertical; box-sizing: border-box; margin-bottom: 10px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .mowifi-hero h1 { font-size: 1.5rem; }
  .mowifi-form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .mowifi-listings-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .plans-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .dashboard-header { flex-direction: column; }
  .mowifi-search-form { flex-direction: column; border-radius: var(--mw-radius); overflow: hidden; }
  .mowifi-search-form input { border-radius: var(--mw-radius) var(--mw-radius) 0 0; }
  .mowifi-search-form button { border-radius: 0 0 var(--mw-radius) var(--mw-radius); }
  .my-listing-row { flex-wrap: wrap; }
  .seller-info { flex-direction: column; text-align: center; }
}

/* ─── PHONE FIELD WITH COUNTRY CODE ─── */
.mowifi-phone-wrap { display: flex; gap: 6px; align-items: center; }
.mowifi-country-code { width: 110px; flex-shrink: 0; padding: 10px 6px; border: 2px solid var(--mw-border); border-radius: var(--mw-radius); font-size: 0.88rem; background: var(--mw-bg); cursor: pointer; }
.mowifi-phone-input { flex: 1; }
@media (max-width: 480px) {
  .mowifi-country-code { width: 90px; font-size: 0.8rem; }
}

/* ═══════════════════════════════════════
   CHAT / INBOX SYSTEM
═══════════════════════════════════════ */

/* Layout */
.mowifi-chat-layout {
  display: flex;
  height: 78vh;
  min-height: 500px;
  border: 2px solid var(--mw-border);
  border-radius: var(--mw-radius);
  overflow: hidden;
  background: var(--mw-bg);
  font-family: 'Nunito', sans-serif;
}

/* ── Conversation List ── */
.mowifi-conv-list {
  width: 320px;
  flex-shrink: 0;
  border-right: 2px solid var(--mw-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}
.conv-list-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--mw-border);
  background: var(--mw-bg);
}
.conv-list-header h2 { margin: 0; font-size: 1.1rem; }
.conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--mw-border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
}
.conv-item:hover { background: #f0f4ff; }
.conv-item.conv-active { background: #e8f0fe; border-left: 3px solid var(--mw-primary, #6366f1); }
.conv-avatar img { border-radius: 50%; }
.conv-info { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.conv-name { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: 0.72rem; color: #888; flex-shrink: 0; margin-left: 6px; }
.conv-listing-title { font-size: 0.75rem; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.conv-preview { font-size: 0.8rem; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-unread-badge {
  background: var(--mw-primary, #6366f1);
  color: #fff;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  flex-shrink: 0;
}
.mowifi-conv-list { overflow-y: auto; }

/* ── Chat Thread ── */
.mowifi-chat-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8f9fa;
}
.thread-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thread-placeholder-inner { text-align: center; color: #aaa; }
.thread-placeholder-inner p { margin-top: 8px; font-size: 0.95rem; }

/* Thread Header */
.chat-thread-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 2px solid var(--mw-border);
  flex-shrink: 0;
}
.chat-back-btn {
  text-decoration: none;
  color: var(--mw-primary, #6366f1);
  font-weight: 700;
  font-size: 0.9rem;
  display: none;
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-header-info img { border-radius: 50%; }
.chat-header-info strong { display: block; font-size: 0.95rem; }
.chat-header-info small a { color: #666; text-decoration: none; font-size: 0.78rem; }
.chat-header-info small a:hover { text-decoration: underline; }

/* Bubbles */
.chat-bubbles {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-bubble-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 75%;
}
.bubble-me {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.bubble-them { align-self: flex-start; }
.bubble-avatar img { border-radius: 50%; flex-shrink: 0; }
.bubble-content { display: flex; flex-direction: column; }
.bubble-me .bubble-content { align-items: flex-end; }
.bubble-them .bubble-content { align-items: flex-start; }
.bubble-text {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 100%;
  word-break: break-word;
}
.bubble-me .bubble-text {
  background: var(--mw-primary, #6366f1);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble-them .bubble-text {
  background: #fff;
  color: #222;
  border: 1px solid var(--mw-border);
  border-bottom-left-radius: 4px;
}
.bubble-time {
  font-size: 0.68rem;
  color: #aaa;
  margin-top: 4px;
  padding: 0 4px;
}

/* Reply Box */
.chat-reply-box {
  padding: 12px 16px;
  background: #fff;
  border-top: 2px solid var(--mw-border);
  flex-shrink: 0;
}
.chat-reply-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-reply-form textarea {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--mw-border);
  border-radius: 22px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  resize: none;
  overflow: hidden;
  line-height: 1.4;
  min-height: 42px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.chat-reply-form textarea:focus { outline: none; border-color: var(--mw-primary, #6366f1); }
.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mw-primary, #6366f1);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.chat-send-btn:hover { background: #4f46e5; }

/* ── Mobile ── */
@media (max-width: 680px) {
  .mowifi-chat-layout { height: 85vh; }
  .mowifi-conv-list { width: 100%; border-right: none; }
  .conv-hidden-mobile { display: none !important; }
  .mowifi-chat-thread { width: 100%; }
  .chat-back-btn { display: inline-block; }
  .thread-empty { display: none; }
}

/* ═══════════════════════════════════════
   PROFILE / BANNER SYSTEM
═══════════════════════════════════════ */

/* ── Dashboard Banner ── */
.dash-banner-wrap {
  position: relative;
  width: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  background-size: cover;
  background-position: center;
  border-radius: var(--mw-radius) var(--mw-radius) 0 0;
  overflow: hidden;
}
.dash-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.dash-profile-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px 20px;
  flex-wrap: wrap;
}
.dash-profile-logo {
  flex-shrink: 0;
}
.dash-profile-logo img,
.dash-profile-logo .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.85);
  object-fit: cover;
  display: block;
}
.dash-profile-info { flex: 1; min-width: 0; }
.dash-profile-info h2 { color: #fff; margin: 0 0 4px; font-size: 1.3rem; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.dash-profile-info p  { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.9rem; }
.dash-bio { margin-top: 6px !important; font-style: italic; font-size: 0.85rem !important; }
.dash-profile-header .plan-widget {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: var(--mw-radius);
  padding: 10px 14px;
  text-align: center;
  flex-shrink: 0;
}
.dash-profile-header .plan-widget .plan-name { font-weight: 700; font-size: 1rem; }
.dash-profile-header .plan-widget .plan-expiry { font-size: 0.75rem; opacity: 0.85; margin: 2px 0 6px; }
.mowifi-btn-active { background: var(--mw-primary, #6366f1) !important; color: #fff !important; }

/* ── Profile Edit Form ── */
.mowifi-profile-edit { padding: 8px 0 16px; }
.mowifi-profile-edit h3 { margin-bottom: 18px; }
.profile-edit-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  align-items: start;
}
.profile-upload-box {
  background: var(--mw-bg);
  border: 2px dashed var(--mw-border);
  border-radius: var(--mw-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-upload-banner { grid-column: span 1; }
.profile-upload-label {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
}
.profile-upload-label small {
  display: block;
  font-weight: 400;
  color: #777;
  font-size: 0.78rem;
  margin-top: 2px;
}
.profile-preview-wrap { display: flex; align-items: center; gap: 10px; }
.profile-preview-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mw-border);
}
.banner-preview-wrap { width: 100%; }
.banner-preview-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--mw-radius);
  border: 2px solid var(--mw-border);
}
.banner-placeholder {
  width: 100%;
  height: 100px;
  background: #f0f0f0;
  border-radius: var(--mw-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px;
  box-sizing: border-box;
}

/* ── Seller Card Enhancements ── */
.seller-banner {
  width: 100%;
  height: 90px;
  background-size: cover;
  background-position: center;
  border-radius: var(--mw-radius) var(--mw-radius) 0 0;
  margin: -16px -16px 12px;
  width: calc(100% + 32px);
}
.seller-logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mw-border);
  flex-shrink: 0;
}
.seller-bio-text {
  font-size: 0.82rem;
  color: #666;
  margin: 6px 0 0;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .profile-edit-grid { grid-template-columns: 1fr; }
  .profile-upload-banner { grid-column: 1; }
  .dash-profile-header { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════
   SELLER SHOP PAGE
═══════════════════════════════════════ */

/* Banner */
.mowifi-seller-shop { max-width: 1200px; margin: 0 auto; }
.shop-banner-wrap {
  position: relative;
  width: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #7c3aed 100%);
  background-size: cover;
  background-position: center;
  border-radius: var(--mw-radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.shop-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.shop-header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 28px;
  flex-wrap: wrap;
}

/* Logo */
.shop-logo-wrap { flex-shrink: 0; }
.shop-logo-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.9);
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.shop-logo-avatar img { border-radius: 50%; border: 4px solid rgba(255,255,255,0.9); }

/* Header Info */
.shop-header-info { flex: 1; min-width: 0; color: #fff; }
.shop-header-info h1 {
  margin: 0 0 6px;
  font-size: 1.8rem;
  font-family: 'Sora', sans-serif;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  color: #fff;
}
.shop-plan-badge {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.8rem;
}
.shop-bio {
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  margin: 6px 0 10px;
  font-style: italic;
  max-width: 500px;
}
.shop-meta {
  display: flex;
  gap: 16px;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  margin: 0;
  flex-wrap: wrap;
}

/* Header Actions */
.shop-header-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}
.shop-action-btn {
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  color: #fff !important;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.shop-action-btn:hover { background: rgba(255,255,255,0.28) !important; }
.mowifi-btn-shop {
  background: #f59e0b;
  color: #fff;
}
.mowifi-btn-shop:hover { background: #d97706; }

/* Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.shop-cats { display: flex; flex-wrap: wrap; gap: 8px; }

/* Listing card shop link */
.listing-shop-link {
  color: var(--mw-primary, #6366f1);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}
.listing-shop-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 680px) {
  .shop-header-inner { flex-direction: column; align-items: flex-start; padding: 20px 16px; }
  .shop-header-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .shop-header-info h1 { font-size: 1.3rem; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════
   APPROVED SELLERS SECTION
═══════════════════════════════════════ */
.mowifi-approved-sellers {
  margin: 20px 0 8px;
}
.mowifi-approved-sellers h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-family: 'Sora', sans-serif;
}
.approved-sellers-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.approved-seller-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  width: 80px;
  transition: transform 0.15s;
}
.approved-seller-card:hover { transform: translateY(-3px); }
.asc-avatar {
  position: relative;
  width: 60px;
  height: 60px;
}
.asc-avatar img,
.asc-avatar .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mw-border);
}
.asc-plan-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.plan-basic  .asc-plan-dot, .asc-plan-dot.plan-basic  { background: #22c55e; }
.plan-pro    .asc-plan-dot, .asc-plan-dot.plan-pro    { background: #3b82f6; }
.plan-business .asc-plan-dot, .asc-plan-dot.plan-business { background: #f59e0b; }
.asc-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}
.asc-count {
  font-size: 0.68rem;
  color: #888;
  text-align: center;
}

/* ═══════════════════════════════════════
   CHECKOUT PAGE
═══════════════════════════════════════ */
.mowifi-checkout { max-width: 960px; margin: 0 auto; padding: 8px 0 32px; }
.checkout-back { display: inline-block; margin-bottom: 20px; color: var(--mw-primary, #6366f1); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.checkout-back:hover { text-decoration: underline; }

.checkout-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start; }

/* Order Summary */
.checkout-summary h2,
.checkout-payment h2 { font-size: 1.1rem; margin: 0 0 16px; font-family: 'Sora', sans-serif; }

.checkout-plan-card {
  background: var(--mw-bg);
  border: 2px solid var(--mw-border);
  border-radius: var(--mw-radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.cpc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f9fafb;
  border-bottom: 1px solid var(--mw-border);
}
.cpc-icon { font-size: 2rem; }
.cpc-header strong { display: block; font-size: 1rem; }
.cpc-header span { font-size: 0.8rem; color: #666; }
.cpc-perks { list-style: none; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--mw-border); }
.cpc-perks li { font-size: 0.85rem; color: #444; padding: 3px 0; }
.cpc-perks li::before { content: ''; }
.cpc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}
.cpc-total span { font-size: 0.85rem; color: #666; }
.cpc-total strong { font-size: 1.25rem; color: #111; }
.checkout-account-info { font-size: 0.85rem; color: #555; line-height: 1.6; }
.checkout-account-info p { margin: 2px 0; }

/* Payment section */
.checkout-payment {
  background: var(--mw-bg);
  border: 2px solid var(--mw-border);
  border-radius: var(--mw-radius);
  padding: 22px;
}

/* Payment method tabs */
.payment-method-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.pmt-tab { flex: 1; cursor: pointer; }
.pmt-tab input[type="radio"] { display: none; }
.pmt-tab-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border: 2px solid var(--mw-border);
  border-radius: var(--mw-radius);
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  background: #f9fafb;
}
.pmt-tab-active .pmt-tab-inner,
.pmt-tab:hover .pmt-tab-inner {
  border-color: var(--mw-primary, #6366f1);
  background: #eef2ff;
}
.pmt-icon { font-size: 1.6rem; }
.pmt-name { font-weight: 700; font-size: 0.9rem; }
.pmt-desc { font-size: 0.72rem; color: #666; }

/* Paynow panel */
.paynow-info-box {
  background: #f0f4ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--mw-radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: #3730a3;
}
.paynow-info-box p { margin: 4px 0; }

/* EcoCash panel */
.eco-instructions-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--mw-radius);
  padding: 16px;
  margin-bottom: 16px;
}
.eco-instructions-box h3 { margin: 0 0 12px; font-size: 0.95rem; color: #166534; }
.eco-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.eco-step { display: flex; align-items: flex-start; gap: 10px; }
.eco-step span {
  width: 24px; height: 24px; border-radius: 50%;
  background: #16a34a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
}
.eco-step p { margin: 0; font-size: 0.85rem; color: #166534; line-height: 1.5; }

.eco-upload-label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: #166534;
  cursor: pointer; margin-top: 4px;
}
.eco-upload-label input[type="file"] {
  padding: 8px; border: 2px dashed #86efac;
  border-radius: var(--mw-radius); background: #fff;
  font-size: 0.82rem; cursor: pointer;
}
.eco-upload-label em { font-weight: 400; color: #dc2626; }

/* Pay button */
.pay-btn { width: 100%; justify-content: center; font-size: 1rem; padding: 14px; }
.mowifi-btn-lg { padding: 12px 20px; font-size: 1rem; }
.checkout-btn { width: 100%; text-align: center; display: block; }

.checkout-secure-note { font-size: 0.78rem; color: #888; text-align: center; margin-top: 14px; }

@media (max-width: 680px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .payment-method-tabs { flex-direction: column; }
}

/* ══════════════════════════════════════════
   MOWIFI MARKETPLACE v20 — NEW STYLES
   ══════════════════════════════════════════ */

/* ── Vendor Register ── */
.mowifi-vendor-register { padding: 32px; }
.mowifi-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mowifi-form-grid .form-group.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .mowifi-form-grid { grid-template-columns: 1fr; } }

/* ── Seller Dashboard ── */
.mowifi-seller-dashboard .seller-dashboard-nav { flex-wrap: wrap; gap: 8px; }
.shop-share-bar code { word-break: break-all; }

/* ── Location Pills ── */
.loc-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all .2s;
    white-space: nowrap;
}
.loc-pill:hover, .loc-pill.active {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
    text-decoration: none;
}

/* ── Sponsored Vendor Cards ── */
.mowifi-vendor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
    color: #111827;
    min-width: 130px;
    max-width: 160px;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
    position: relative;
}
.mowifi-vendor-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); text-decoration: none; }
.sponsored-vendor-card { border-color: #f59e0b; }
.vc-badge { position: absolute; top: 8px; right: 8px; background: #f59e0b; color: #fff; font-size: 0.65rem; padding: 2px 6px; border-radius: 9999px; font-weight: 700; }
.vc-logo { margin: 8px 0; }
.vc-logo img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid #f3f4f6; }
.vc-name { font-weight: 700; font-size: 0.85rem; margin-top: 4px; color: #111827; }
.vc-loc { font-size: 0.75rem; color: #6b7280; margin-top: 2px; }

/* ── Admin Stat Cards ── */
.mowifi-dash-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.mowifi-stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px 28px; flex: 1; min-width: 140px; text-align: center; }
.mowifi-stat-card .stat-num { display: block; font-size: 2rem; font-weight: 800; color: #1a73e8; }
.mowifi-stat-card .stat-label { font-size: 0.8rem; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }

/* ── Vendor Status Badges ── */
.status-badge.status-approved { background: #d1fae5; color: #065f46; }
.status-badge.status-pending  { background: #fef3c7; color: #92400e; }
.status-badge.status-suspended{ background: #fee2e2; color: #991b1b; }

/* ── Message bubbles ── */
.inbox-messages { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding: 16px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 16px; }
.msg-bubble { max-width: 72%; padding: 10px 14px; border-radius: 14px; }
.msg-mine { align-self: flex-end; background: #1a73e8; color: #fff; border-bottom-right-radius: 4px; }
.msg-theirs { align-self: flex-start; background: #fff; border: 1px solid #e5e7eb; color: #111827; border-bottom-left-radius: 4px; }
.msg-sender { font-size: 0.7rem; font-weight: 700; margin-bottom: 4px; opacity: .75; }
.msg-time { font-size: 0.7rem; margin-top: 4px; opacity: .65; text-align: right; }
.inbox-reply-form textarea { width: 100%; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 0.9rem; margin-bottom: 8px; resize: vertical; }

.inbox-thread-list { display: flex; flex-direction: column; gap: 2px; }
.inbox-thread { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: #111827; border: 1px solid #f3f4f6; background: #fff; }
.inbox-thread:hover { background: #f3f4f6; text-decoration: none; }
.inbox-thread.unread { border-color: #1a73e8; background: #eff6ff; }
.it-info { flex: 1; }
.it-info strong { display: block; font-size: 0.9rem; }
.it-info small { color: #6b7280; font-size: 0.8rem; }
.it-meta { text-align: right; }
.unread-badge { display: inline-block; background: #ef4444; color: #fff; border-radius: 9999px; padding: 2px 7px; font-size: 0.7rem; font-weight: 700; }

/* ── Shop page location info ── */
.shop-meta span { display: inline-block; margin-right: 14px; font-size: 0.875rem; color: #6b7280; }

/* ══════════════════════════════════════════
   v20.1 — COMPACT FILTER BAR & SELLERS FIX
   ══════════════════════════════════════════ */

/* ── Compact filter bar ── */
.mowifi-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.mowifi-filter-group { flex: 1; min-width: 150px; }
.mowifi-filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fff;
    color: #374151;
    cursor: pointer;
}
.mowifi-filter-select:focus { outline: none; border-color: #1a73e8; }
.mowifi-filter-dash-btn {
    white-space: nowrap;
    padding: 8px 16px !important;
    font-size: 0.875rem !important;
}
@media (max-width: 600px) {
    .mowifi-filter-bar { gap: 8px; }
    .mowifi-filter-group { min-width: 100%; flex: unset; width: 100%; }
    .mowifi-filter-dash-btn { width: 100%; text-align: center; }
}

/* ── Sponsored strip ── */
.mowifi-sponsored-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 14px;
    background: linear-gradient(90deg,#fffbeb,#fef9c3);
    border: 1px solid #fde68a;
    border-radius: 10px;
    margin-bottom: 14px;
    scrollbar-width: none;
}
.mowifi-sponsored-strip::-webkit-scrollbar { display: none; }
.sponsored-strip-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #92400e;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.sponsored-strip-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 6px;
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 9999px;
    text-decoration: none;
    color: #111827;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s;
}
.sponsored-strip-item:hover { background: #fffbeb; text-decoration: none; }
.sponsored-strip-item img,
.sponsored-strip-item .avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* ── Featured sellers collapsible ── */
.mowifi-sellers-collapsible {
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.mowifi-sellers-collapsible summary {
    padding: 12px 16px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    background: #f9fafb;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}
.mowifi-sellers-collapsible summary::-webkit-details-marker { display: none; }
.mowifi-sellers-collapsible summary::after { content: '▼'; margin-left: auto; font-size: 0.7rem; color: #9ca3af; }
.mowifi-sellers-collapsible[open] summary::after { content: '▲'; }
.sellers-count { font-size: 0.8rem; color: #6b7280; font-weight: 400; }
.mowifi-sellers-collapsible .mowifi-sellers-row {
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.mowifi-sellers-collapsible .mowifi-seller-card {
    flex-direction: row;
    padding: 8px 14px;
    gap: 8px;
    border-radius: 9999px;
    min-width: unset;
}
.mowifi-sellers-collapsible .sc-logo,
.mowifi-sellers-collapsible .avatar { width: 28px; height: 28px; border-radius: 50%; }

/* ══════════════════════════════════════════
   v20.2 — LISTING EXPIRY & PAID BADGES
   ══════════════════════════════════════════ */

/* ── Paid listing card highlight ── */
.listing-card.is-paid {
    border-color: #bfdbfe;
    box-shadow: 0 0 0 1px #bfdbfe;
}
.paid-listing-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    letter-spacing: .03em;
    z-index: 2;
}

/* ── Listing type badges in dashboard ── */
.listing-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    margin-left: 4px;
}
.paid-badge  { background: #dbeafe; color: #1e40af; }
.free-badge  { background: #f3f4f6; color: #6b7280; }

/* ── Expired listing row ── */
.my-listing-row.listing-expired {
    opacity: 0.65;
    border-left: 3px solid #ef4444;
    background: #fff5f5;
}
.my-listing-row.listing-expired .mlr-thumb img,
.my-listing-row.listing-expired .mlr-thumb { filter: grayscale(60%); }
.status-badge.status-expired { background: #fee2e2; color: #991b1b; }

/* ── Expiry countdown ── */
.expiry-info {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 9999px;
    background: #f0fdf4;
    color: #166534;
    font-weight: 600;
}
.expiry-warn   { background: #fef9c3; color: #854d0e; }
.expiry-urgent { background: #fee2e2; color: #991b1b; }

/* ── Renew button ── */
.mowifi-btn-renew {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-weight: 700;
    cursor: pointer;
}
.mowifi-btn-renew:hover { background: #bae6fd; }

/* ── Edit listing button ── */
.mowifi-btn-edit {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
    font-weight: 600;
}
.mowifi-btn-edit:hover { background: #bbf7d0; color: #14532d; }

/* ── Edit listing form ── */
.mowifi-edit-listing { margin-top: 8px; }
.edit-current-images .edit-img-current { transition: opacity .2s; }
.edit-img-current button:hover { background: #b91c1c !important; }

/* ── Filter bar & sellers padding fix ── */
.mowifi-filter-bar       { margin-top: 16px; margin-bottom: 16px; }
.mowifi-sellers-collapsible { margin-top: 16px; margin-bottom: 16px; }
.mowifi-sponsored-strip  { margin-top: 12px; margin-bottom: 12px; }

/* ── Post listing expiry info box ── */
.listing-expiry-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #0c4a6e;
}
.listing-expiry-info strong { color: #0369a1; }

/* ══════════════════════════════════════════
   v20.3 — BANNER SLIDER & ADVERT PAGE
   ══════════════════════════════════════════ */

/* ── Marketplace banner slider ── */
.mowifi-banner-slider {
    margin-bottom: 20px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
}
.banner-track { position: relative; }
.banner-slide {
    display: none;
    width: 100%;
}
.banner-slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (min-width: 600px) {
    .banner-slide img { height: 200px; }
}
@media (min-width: 900px) {
    .banner-slide img { height: 240px; }
}

/* Dots navigation */
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 4px;
    background: #fff;
}
.banner-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.banner-dot.active {
    background: #1a73e8;
    transform: scale(1.3);
}

/* Advertise CTA strip */
.banner-advertise-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #fffbeb;
    border-top: 1px solid #fde68a;
    font-size: 0.85rem;
    color: #92400e;
    font-weight: 600;
}
.banner-advertise-cta span:first-child {
    white-space: nowrap;
}

/* ══════════════════════════════════════════
   v20.4 — MULTI-IMAGE, MULTI-LOCATION, FREE LIMIT
   ══════════════════════════════════════════ */

/* ── Image upload grid ── */
.listing-images-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 8px;
}
@media (max-width:640px) { .listing-images-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:400px) { .listing-images-grid { grid-template-columns: repeat(2, 1fr); } }

.listing-img-slot { position: relative; }
.img-slot-placeholder {
    aspect-ratio: 1;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s, background .2s;
    background: #f9fafb;
}
.img-slot-placeholder:hover { border-color: #1a73e8; background: #eff6ff; }
.img-slot-inner {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center;
    border-radius: 8px;
    min-height: 80px;
}
.img-slot-icon {
    font-size: 0.75rem; color: #9ca3af; text-align: center;
    padding: 8px; line-height: 1.4; pointer-events: none;
}
.img-slot-clear {
    position: absolute; top: 4px; right: 4px;
    background: rgba(0,0,0,.55); color: #fff;
    border: none; border-radius: 50%;
    width: 22px; height: 22px;
    font-size: 0.7rem; cursor: pointer; line-height: 22px; text-align: center;
    padding: 0;
}
.img-slot-clear:hover { background: #ef4444; }

/* ── Location checkboxes ── */
.listing-location-picker { margin-top: 6px; }
.location-picker-hint { font-size: 0.8rem; color: #6b7280; margin-bottom: 10px; }
.loc-group { margin-bottom: 14px; }
.loc-group-label {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: #6b7280; margin-bottom: 6px;
}
.loc-group-items { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-check-label {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e5e7eb; border-radius: 9999px;
    cursor: pointer; font-size: 0.875rem; color: #374151;
    background: #fff; transition: all .15s;
    user-select: none;
}
.loc-check-label:hover { border-color: #1a73e8; background: #eff6ff; }
.loc-check-label input[type=checkbox] { accent-color: #1a73e8; }
.loc-check-label input:checked ~ span { color: #1a73e8; font-weight: 600; }
.loc-check-label:has(input:checked) { border-color: #1a73e8; background: #eff6ff; }

/* ── Listing gallery on single page ── */
.listing-gallery { margin-bottom: 20px; }
.gallery-main {
    width: 100%; border-radius: 12px; overflow: hidden;
    background: #f3f4f6; margin-bottom: 10px;
}
.gallery-main img { width: 100%; max-height: 480px; object-fit: contain; display: block; border-radius: 12px; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.gallery-thumb {
    width: 80px; height: 80px; object-fit: cover;
    border-radius: 8px; cursor: pointer;
    border: 2px solid transparent; opacity: .75;
    transition: opacity .15s, border-color .15s;
}
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: #1a73e8; opacity: 1; }

/* ── Available locations on single listing ── */
.listing-available-locs {
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 10px; padding: 10px 14px;
    font-size: 0.875rem; color: #14532d; margin-bottom: 16px;
}


/* ══════════════════════════════════════════
   v21 — LOGIN/REGISTER GATE BOX
   ══════════════════════════════════════════ */
.mowifi-gate-box {
    max-width: 480px;
    margin: 40px auto;
    padding: 40px 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.mowifi-gate-icon { font-size: 3rem; margin-bottom: 12px; }
.mowifi-gate-box h2 { font-size: 1.5rem; font-weight: 800; color: #111827; margin-bottom: 8px; }
.mowifi-gate-box p { color: #6b7280; font-size: 0.95rem; margin-bottom: 0; }
.mowifi-gate-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}
.mowifi-gate-btns .mowifi-btn { min-width: 160px; justify-content: center; }
