:root {
  --primary: #1E3A8A;
  --primary-dark: #15296b;
  --primary-light: #3b5fc4;
  --accent: #2563eb;
  --success: #15803D;
  --danger: #dc2626;
  --warning: #d97706;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #1f2937;
  --text-muted: #6b7280;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow-md: 0 4px 12px rgba(16,24,40,.06);
  --shadow-lg: 0 8px 24px rgba(16,24,40,.08);
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  font-family: 'Inter', 'Lato', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; height: auto; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: #111827;
  margin: 0;
}

/* ===================== HEADER ===================== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.brand span { color: var(--text); }

.menu-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background .15s, border-color .15s;
}
.menu-toggle:hover { background: var(--bg); border-color: var(--primary); }

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

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  line-height: 1;
}
.btn:hover { background: var(--bg); border-color: var(--primary-light); color: var(--primary); }
.btn:active { background: #e8edfb; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }
.btn-primary:active { background: var(--primary-dark); }

.btn-danger { color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; border-color: var(--danger); }

.btn-success { color: var(--success); border-color: #bbf7d0; }
.btn-success:hover { background: #f0fdf4; border-color: var(--success); }

.btn-icon { width: 38px; height: 38px; padding: 0; justify-content: center; position: relative; }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* Notification badge */
.badge-dot {
  position: absolute; top: -4px; right: -4px;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 999px; min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 2px solid var(--surface);
}

/* ===================== SIDEBAR (slide-in) ===================== */
.site-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.45);
  z-index: 998; opacity: 0; visibility: hidden; transition: opacity .2s;
}
.site-overlay.open { opacity: 1; visibility: visible; }

.site-sidebar {
  position: fixed; top: 0; left: 0; height: 100vh; width: 290px; max-width: 85vw;
  background: var(--surface); z-index: 999;
  transform: translateX(-100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.site-sidebar.open { transform: translateX(0); }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.sidebar-body { padding: 12px; overflow-y: auto; flex: 1; }
.sidebar-section { margin-bottom: 4px; }
.sidebar-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
  padding: 14px 10px 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px; border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s;
}
.sidebar-link i { font-size: 16px; width: 20px; text-align: center; color: var(--text-muted); }
.sidebar-link:hover { background: var(--bg); color: var(--primary); }
.sidebar-link:hover i { color: var(--primary); }
.sidebar-link.active { background: #eef2ff; color: var(--primary); }
.sidebar-link.active i { color: var(--primary); }

.sidebar-collapse-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 10px 10px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text);
}
.sidebar-collapse-toggle:hover { background: var(--bg); }
.sidebar-collapse-body { padding-left: 32px; display: none; }
.sidebar-collapse-body.open { display: block; }
.sidebar-collapse-body .sidebar-link { font-size: 13px; padding: 7px 10px; color: var(--text-muted); }

.sidebar-footer { padding: 14px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }

/* ===================== TICKER ===================== */
.ticker {
  background: var(--primary-dark); color: #cbd5e1;
  font-size: 12px; padding: 6px 20px;
  display: flex; align-items: center; gap: 8px; overflow: hidden;
}
.ticker i { flex-shrink: 0; }
.ticker-text { white-space: nowrap; }

/* ===================== LAYOUT ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

@media (max-width: 600px) {
  .container { padding: 0 14px; }

  .site-header-inner { padding: 12px 14px; gap: 8px; }
  .brand { font-size: 17px; gap: 6px; }
  .brand img { height: 24px !important; }

  .header-actions { gap: 6px; }

  /* "Write Post" loses its text label on mobile so it doesn't crowd out the bell/profile icons */
  .header-actions .btn-write-post { padding: 8px 11px; }
  .header-actions .btn-write-post .btn-label { display: none; }

  /* Guests: tighten Login/Register padding and font-size so both fit comfortably */
  .header-actions a.btn:not(.btn-icon):not(.btn-write-post) {
    padding: 8px 10px; font-size: 12px;
  }

  .menu-toggle { width: 34px; height: 34px; }
}
.main { padding: 24px 0 48px; }

.page-title-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 12px;
}
.page-title-row h2 { font-size: 20px; font-weight: 600; }

/* ===================== SLIDER ===================== */
.slider {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  border: 1px solid var(--border);
  aspect-ratio: 16/6; max-height: 420px; margin-bottom: 20px;
}
.slider img { width: 100%; height: 100%; object-fit: contain; display: none; background: var(--bg); }
.slider img.active { display: block; }

@media (max-width: 900px) {
  .slider { aspect-ratio: 16/8; max-height: 320px; }
}
@media (max-width: 600px) {
  .slider { aspect-ratio: 4/3; max-height: 280px; }
}
.slider-empty {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: var(--text-muted); background: var(--bg);
}
.slider-empty i { font-size: 28px; }
.slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.slider-dots span { width: 18px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.5); cursor: pointer; transition: background .15s; }
.slider-dots span.active { background: #fff; }
.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(15,23,42,.4); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s;
}
.slider-nav:hover { background: rgba(15,23,42,.6); }
.slider-nav.prev { left: 14px; }
.slider-nav.next { right: 14px; }

/* ===================== GRID / POSTS ===================== */
.layout-grid {
  display: grid; grid-template-columns: 1fr 300px; gap: 24px;
}
@media (max-width: 900px) { .layout-grid { grid-template-columns: 1fr; } }

.search-form { display: flex; gap: 8px; margin-bottom: 20px; }
.search-form input {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; background: var(--surface); color: var(--text);
}
.search-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.post-row {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.post-row:last-child { border-bottom: none; }
.post-thumb {
  width: 130px; height: 92px; border-radius: var(--radius-md);
  background: var(--bg); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row-body { flex: 1; min-width: 0; }
.post-row-body h3 { font-size: 16px; font-weight: 600; margin: 6px 0 4px; line-height: 1.3; }
.post-row-body h3 a { color: var(--text); }
.post-row-body h3 a:hover { color: var(--primary); }
.post-meta { font-size: 12.5px; color: var(--text-muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.post-meta .dot::before { content: "\2022"; margin: 0 2px; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; border-radius: var(--radius-sm);
  padding: 2px 9px; background: var(--bg); color: var(--text-muted);
  text-transform: capitalize;
}
.chip-featured { background: #eef2ff; color: var(--primary); }
.chip-live { background: #f0fdf4; color: var(--success); }
.chip-pending { background: #fffbeb; color: var(--warning); }

/* ===================== SIDEBAR WIDGETS ===================== */
.widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px;
}
.widget-title {
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; color: var(--text);
}
.widget-title i { color: var(--primary); }
.cat-list { display: flex; flex-direction: column; gap: 8px; }
.cat-list a {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--text-muted); padding: 4px 0;
}
.cat-list a:hover { color: var(--primary); }
.cat-list i { font-size: 12px; }

.ad-slot {
  border: 1px dashed var(--border); border-radius: var(--radius-md);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px; background: var(--bg);
}

/* ===================== PAGINATION ===================== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 13px; font-weight: 600;
  color: var(--text); background: var(--surface);
}
.pagination a:hover { border-color: var(--primary-light); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { color: var(--text-muted); opacity: .5; pointer-events: none; }

/* ===================== AUTH / FORMS ===================== */
.auth-wrap { max-width: 460px; margin: 40px auto; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
}
.card h2 { font-size: 22px; margin-bottom: 6px; }
.card .sub { color: var(--text-muted); font-size: 13.5px; margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 700;
  color: var(--text); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em;
}
.field .hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 14px; background: var(--surface); color: var(--text);
  font-family: inherit;
}
.input:focus, select.input:focus, textarea.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.input[readonly] { background: var(--bg); color: var(--text-muted); }

.form-footer { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--text-muted); }

/* alert / flash messages */
.alert {
  border-radius: var(--radius-md); padding: 12px 16px; font-size: 13.5px;
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert i { margin-top: 1px; }
.alert-success { background: #f0fdf4; color: var(--success); border-color: #bbf7d0; }
.alert-error { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.alert-info { background: #eff6ff; color: var(--primary); border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: var(--warning); border-color: #fde68a; }

/* ===================== DASHBOARD ===================== */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg); color: #fff; padding: 22px 24px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.welcome-banner h2 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.welcome-banner .meta { font-size: 13px; color: #dbe4ff; display: flex; gap: 14px; flex-wrap: wrap; }
.welcome-banner .bio { font-size: 13.5px; color: #e7ecff; margin-top: 10px; max-width: 520px; }
.welcome-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.welcome-actions .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.welcome-actions .btn:hover { background: rgba(255,255,255,.22); }

.earnings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 700px) { .earnings-grid { grid-template-columns: 1fr; } }
.earn-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
}
.earn-card .label { font-size: 12.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin-bottom: 6px; }
.earn-card .amount { font-size: 28px; font-weight: 700; font-family: 'Playfair Display', serif; }
.earn-card .sub { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.earn-card .actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  display: flex; align-items: center; gap: 12px;
}
.stat-card .icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: #eef2ff; color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.stat-card .num { font-size: 20px; font-weight: 700; }
.stat-card .label { font-size: 12px; color: var(--text-muted); }

/* withdrawal / collapsible form */
.collapse-form { display: none; margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.collapse-form.open { display: block; }

/* ===================== TABLES (admin) ===================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--surface); }
table.data-table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-muted); font-weight: 700; padding: 10px 14px;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
table.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #fafbff; }

/* ===================== UTIL ===================== */
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }

.scroll-top {
  position: fixed; bottom: 22px; right: 22px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: opacity .2s; opacity: 0; pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }

/* ══════════════════════════════════════════════════════════
   MAIN NAVIGATION BAR (desktop)
   ══════════════════════════════════════════════════════════ */
.main-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.main-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  font-family: inherit; line-height: 1.2;
}
.nav-link:hover, .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-link i.fa-chevron-down { font-size: 10px; transition: transform .15s; }
.nav-dropdown.open .nav-link i.fa-chevron-down { transform: rotate(180deg); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  min-width: 200px; max-height: 320px; overflow-y: auto;
  padding: 8px; margin-top: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 150;
}
.nav-dropdown-menu a {
  display: block; padding: 8px 12px; font-size: 13.5px; color: var(--text);
  border-radius: var(--radius-sm); text-decoration: none;
}
.nav-dropdown-menu a:hover { background: var(--bg); color: var(--primary); }
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
@media (min-width: 901px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
}

/* ══════════════════════════════════════════════════════════
   POST CARDS — improved layout (Problem 1)
   ══════════════════════════════════════════════════════════ */
.post-list { display: flex; flex-direction: column; gap: 14px; }

.post-row {
  display: flex; gap: 16px; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface);
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.post-row:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); transform: translateY(-1px); }

.post-thumb {
  width: 160px; height: 110px; border-radius: var(--radius-md);
  background: var(--bg); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 24px;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-row-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.post-row-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.post-row-body h3 {
  font-size: 16.5px; font-weight: 700; line-height: 1.35; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-row-body h3 a { color: var(--text); }
.post-row-body h3 a:hover { color: var(--primary); }

.post-meta {
  font-size: 12.5px; color: var(--text-muted);
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  margin-top: auto; padding-top: 4px;
}
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .dot { display: none; }

@media (max-width: 640px) {
  .post-row { flex-direction: column; }
  .post-thumb { width: 100%; height: 170px; }
}

/* ══════════════════════════════════════════════════════════
   PROFILE CARD — centered identity card (Problem 3)
   ══════════════════════════════════════════════════════════ */
.profile-card {
  max-width: 460px; margin: 0 auto 24px;
  text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.profile-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: #eef2ff; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; margin: 0 auto 14px;
}
.profile-username {
  font-size: 18px; font-weight: 700; color: var(--text);
  font-family: 'Playfair Display', serif; margin-bottom: 6px;
}
.profile-detail-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 4px;
}
.profile-detail-row i { color: var(--text-muted); width: 16px; text-align: center; }

.profile-bio-wrap {
  margin: 14px 0;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.profile-bio {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; color: var(--text); flex-wrap: wrap; line-height: 1.5;
}
.profile-bio-edit-btn {
  background: var(--bg); border: 1px solid var(--border); cursor: pointer;
  color: var(--primary); font-size: 13px; width: 28px; height: 28px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s, border-color .15s;
}
.profile-bio-edit-btn:hover { background: #eef2ff; border-color: var(--primary-light); }
.profile-bio-edit-form { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.profile-bio-edit-form input { flex: 1; min-width: 180px; }

.profile-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; padding: 5px 16px; border-radius: 999px;
}
.profile-status.is-active { background: #f0fdf4; color: var(--success); }
.profile-status.is-expiring { background: #fffbeb; color: var(--warning); }
.profile-status.is-expired { background: #fef2f2; color: var(--danger); }

/* ══════════════════════════════════════════════════════════
   AD BANNERS / IN-FEED ADS
   ══════════════════════════════════════════════════════════ */
.ad-banner {
  display: block; border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 20px; border: 1px solid var(--border);
}
.ad-banner img { width: 100%; height: auto; display: block; }

.ad-infeed {
  display: block; position: relative; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
}
.ad-infeed img { width: 100%; height: auto; display: block; max-height: 200px; object-fit: cover; }
.ad-infeed-label {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(15,23,42,.65); color: #fff; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════════════════
   SCROLLING ANNOUNCEMENT TICKER (Problem 7)
   ══════════════════════════════════════════════════════════ */
.ticker {
  background: var(--primary-dark); color: #cbd5e1;
  font-size: 12.5px; padding: 8px 0;
  display: flex; align-items: center; gap: 10px; overflow: hidden;
  white-space: nowrap;
}
.ticker i { flex-shrink: 0; margin-left: 16px; }
.ticker-track {
  display: flex; gap: 48px; flex-shrink: 0;
  animation: ticker-scroll 30s linear infinite;
  padding-right: 48px;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { flex-shrink: 0; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
