/**
 * File Name:        app.css
 * Application Name: Anchova Diário
 * Author:           Bruno Domingues
 * Date:             2026-04-03
 * Version:          3.0.0
 * Description:      Anchova Diário — Rio Grande classified ads platform.
 *                   Main stylesheet. Covers all Phase 3 components.
 *                   Linked from main.php layout only — coming-soon and
 *                   minimal layouts manage their own inline styles.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Colour palette */
  --ink:          #0f1923;
  --ink-soft:     #3a4a58;
  --ink-muted:    #8298a8;
  --ocean:        #0e5c6e;
  --ocean-mid:    #1a8fa8;
  --surf:         #5ecde0;
  --sand:         #f5efe6;
  --sand-dark:    #ebe4d8;
  --gold:         #c8831a;
  --gold-light:   #f0bc5e;
  --cream:        #fdfaf6;
  --white:        #ffffff;
  --rule:         #ddd5c8;
  --rule-light:   #ede8e1;
  --green:        #2a7a3b;
  --red:          #b83232;

  /* Spacing & shape */
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;

  /* Shadows */
  --shadow-xs:  0 1px 4px rgba(15,25,35,.07);
  --shadow:     0 2px 12px rgba(15,25,35,.10);
  --shadow-lg:  0 6px 32px rgba(15,25,35,.14);

  /* Typography */
  --font-head:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:  'Barlow', 'Segoe UI', sans-serif;
  --font-cond:  'Barlow Condensed', 'Arial Narrow', sans-serif;

  /* Motion */
  --transition: .2s cubic-bezier(.4, 0, .2, 1);

  /* Layout */
  --sidebar-left:  220px;
  --sidebar-right: 268px;
  --gap:           20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════════════════════ */
.container { width: min(1340px, 96vw); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-cond); font-size: .64rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.badge-gold   { background: var(--gold);  color: var(--white); }
.badge-ocean  { background: var(--ocean); color: var(--white); }
.badge-surf   { background: var(--surf);  color: var(--ink);   }
.badge-green  { background: var(--green); color: var(--white); }
.badge-red    { background: var(--red);   color: var(--white); }
.badge-muted  { background: var(--rule);  color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 18px; height: 44px;
  border-radius: var(--radius);
  font-family: var(--font-cond); font-size: .88rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  transition: all var(--transition); cursor: pointer; white-space: nowrap;
  border: 2px solid transparent;
}
.btn-sm  { height: 36px; padding: 0 13px; font-size: .78rem; }
.btn-lg  { height: 50px; padding: 0 26px; font-size: .95rem; }

.btn-ocean   { background: var(--ocean);   color: var(--white); border-color: var(--ocean);   }
.btn-ocean:hover { background: var(--ocean-mid); border-color: var(--ocean-mid); }

.btn-gold    { background: var(--gold);    color: var(--white); border-color: var(--gold);    }
.btn-gold:hover { filter: brightness(1.1); }

.btn-outline { background: transparent;   color: var(--ocean); border-color: var(--ocean);   }
.btn-outline:hover { background: var(--ocean); color: var(--white); }

.btn-ghost   { background: transparent;   color: var(--ink-soft); border-color: var(--rule); }
.btn-ghost:hover { background: var(--sand); }

.btn-red     { background: var(--red);     color: var(--white); border-color: var(--red);     }
.btn-red:hover { filter: brightness(1.1); }

.btn-whatsapp { background: #25d366; color: var(--white); border-color: #25d366; }
.btn-whatsapp:hover { filter: brightness(.93); }

/* Form inputs */
.input,
.select,
.textarea {
  display: block; width: 100%;
  padding: 10px 14px;
  background: var(--cream);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: .92rem; color: var(--ink);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--ocean-mid);
  box-shadow: 0 0 0 3px rgba(26,143,168,.12);
}
.input::placeholder,
.textarea::placeholder { color: var(--ink-muted); }
.textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.select { appearance: none; cursor: pointer; }

/* Flash messages */
.flash {
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px;
  font-size: .9rem; font-weight: 500; display: flex; align-items: flex-start; gap: 10px;
}
.flash-success { background: #e8f6ea; border-left: 4px solid var(--green); color: var(--green); }
.flash-error   { background: #fdf0f0; border-left: 4px solid var(--red);   color: var(--red);   }
.flash-info    { background: #e8f6fa; border-left: 4px solid var(--ocean); color: var(--ocean); }
.flash-warning { background: #fdf5e8; border-left: 4px solid var(--gold);  color: var(--gold);  }

/* Section headings */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 11px; border-bottom: 2px solid var(--ink); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; gap: 9px;
}
.section-title-rule {
  display: block; width: 4px; height: 20px;
  background: var(--gold); border-radius: 2px; flex-shrink: 0;
}
.section-link {
  font-family: var(--font-cond); font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ocean);
  display: flex; align-items: center; gap: 4px; transition: gap var(--transition);
}
.section-link:hover { gap: 8px; }

/* Panels (white card boxes) */
.panel {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.panel-head {
  background: var(--ink); color: var(--white);
  padding: 10px 14px;
  font-family: var(--font-cond); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 7px;
}
.panel-head-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0;
}
.panel-body { padding: 14px; }

/* Empty state */
.empty-state {
  text-align: center; padding: 48px 24px; color: var(--ink-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state-title {
  font-family: var(--font-cond); font-size: .9rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 8px;
}
.empty-state-body { font-size: .86rem; line-height: 1.6; margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════════════════════════
   TOP BAR
═══════════════════════════════════════════════════════════════════════════ */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.5);
  font-family: var(--font-cond);
  font-size: .76rem; letter-spacing: .05em;
  padding: 6px 0;
  border-bottom: 2px solid var(--gold);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.topbar a:hover { color: var(--gold-light); }
.topbar-right { display: flex; gap: 16px; }
.topbar-sep { opacity: .2; }

/* ═══════════════════════════════════════════════════════════════════════════
   MASTHEAD
═══════════════════════════════════════════════════════════════════════════ */
.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 300;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}
.masthead.scrolled { box-shadow: var(--shadow); }
.masthead-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo svg { height: 42px; width: auto; }

/* Search bar */
.search-wrap {
  display: flex;
  background: var(--cream);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-wrap:focus-within {
  border-color: var(--ocean-mid);
  box-shadow: 0 0 0 3px rgba(26,143,168,.12);
}
.search-cat {
  padding: 0 12px; min-height: 44px;
  background: var(--sand-dark); border: none; border-right: 1.5px solid var(--rule);
  outline: none; font-family: var(--font-cond); font-size: .8rem; font-weight: 600;
  color: var(--ink-soft); cursor: pointer;
}
.search-input {
  flex: 1; padding: 0 14px; min-height: 44px;
  background: transparent; border: none; outline: none;
  font-family: var(--font-body); font-size: .9rem; color: var(--ink);
}
.search-input::placeholder { color: var(--ink-muted); }
.search-btn {
  background: var(--ocean); color: var(--white);
  padding: 0 20px; min-height: 44px;
  font-family: var(--font-cond); font-size: .86rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 7px;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--ocean-mid); }

/* Masthead actions */
.masthead-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ── User menu (logged in) ── */
.user-menu-wrap { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 12px;
  border-radius: var(--radius);
  background: var(--sand);
  border: 1.5px solid var(--rule);
  cursor: pointer; transition: all var(--transition);
}
.user-btn:hover, .user-btn.open {
  background: var(--sand-dark); border-color: var(--ocean);
}
.user-btn-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ocean); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-cond); font-size: .78rem; font-weight: 700; flex-shrink: 0;
}
.user-btn-name {
  font-family: var(--font-cond); font-size: .82rem; font-weight: 700; color: var(--ink);
}
.user-btn-caret {
  font-size: .55rem; color: var(--ink-muted);
  transition: transform var(--transition);
}
.user-btn.open .user-btn-caret { transform: rotate(180deg); }

/* Dropdown menu */
.user-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: 230px; z-index: 400;
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: none; overflow: hidden;
}
.user-dropdown.open { display: block; }
.user-dropdown-header {
  padding: 12px 15px; border-bottom: 1px solid var(--rule-light);
  background: var(--sand);
}
.user-dropdown-name { font-weight: 600; font-size: .9rem; color: var(--ink); }
.user-dropdown-email { font-size: .72rem; color: var(--ink-muted); margin-top: 2px; }
.user-dropdown-tier {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
  font-family: var(--font-cond); font-size: .64rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ocean);
}
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 15px; min-height: 44px;
  font-size: .86rem; color: var(--ink-soft);
  cursor: pointer; transition: background var(--transition);
}
.dropdown-item:hover { background: var(--sand); color: var(--ocean); }
.dropdown-item-icon { font-size: .95rem; width: 20px; text-align: center; flex-shrink: 0; }
.dropdown-item-badge {
  margin-left: auto; background: var(--ocean); color: var(--white);
  border-radius: 10px; padding: 1px 7px;
  font-family: var(--font-cond); font-size: .62rem; font-weight: 700;
}
.dropdown-sep { height: 1px; background: var(--rule-light); }
.dropdown-item-logout { color: var(--red); }
.dropdown-item-logout:hover { background: #fdf0f0; color: var(--red); }

/* Hamburger (mobile) */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
}
.hamburger span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: all var(--transition);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATEGORY NAV
═══════════════════════════════════════════════════════════════════════════ */
.catnav {
  background: var(--ocean);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 66px; z-index: 290;
}
.catnav-list { display: flex; overflow-x: auto; scrollbar-width: none; }
.catnav-list::-webkit-scrollbar { display: none; }
.catnav-item { flex-shrink: 0; }
.catnav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; min-height: 44px;
  font-family: var(--font-cond); font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
  transition: all var(--transition);
}
.catnav-link:hover, .catnav-link.active {
  color: var(--white);
  border-bottom-color: var(--gold-light);
  background: rgba(255,255,255,.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BANNER AD SLOT (728×90 / 320×50)
═══════════════════════════════════════════════════════════════════════════ */
.banner-slot { background: var(--white); border-bottom: 1px solid var(--rule-light); }
.banner-slot-inner { padding: 9px 0; display: flex; justify-content: center; }

/* Placeholder shown while AdSense loads or for directly-sold ads */
.ad-leaderboard-placeholder {
  width: 728px; height: 90px; max-width: 100%;
  border: 1.5px dashed var(--rule); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-cond); font-size: .68rem; letter-spacing: .12em;
  color: var(--ink-muted); text-transform: uppercase;
  background: repeating-linear-gradient(
    -45deg, rgba(15,25,35,.02) 0px, rgba(15,25,35,.02) 8px,
    transparent 8px, transparent 16px
  );
}

/* ═══════════════════════════════════════════════════════════════════════════
   SITE BODY
═══════════════════════════════════════════════════════════════════════════ */
.site-body { background: var(--sand); padding: 20px 0 60px; }

/* Three-column grid (shared by listing pages + search) */
.three-col {
  display: grid;
  grid-template-columns: var(--sidebar-left) 1fr var(--sidebar-right);
  gap: var(--gap);
  align-items: start;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AD CARDS (Phase 4 wires real data, styles defined now for consistency)
═══════════════════════════════════════════════════════════════════════════ */
.ad-card {
  background: var(--white); border: 1px solid var(--rule-light);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  position: relative; box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}
.ad-card:hover {
  border-color: var(--ocean-mid); box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.ad-card-img {
  width: 100%; aspect-ratio: 4/3; background: var(--sand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; position: relative; overflow: hidden;
}
.ad-card-body { padding: 10px 13px 13px; }
.ad-card-cat {
  font-family: var(--font-cond); font-size: .66rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ocean); margin-bottom: 4px;
}
.ad-card-title {
  font-weight: 600; font-size: .88rem; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ad-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--rule-light);
}
.ad-card-price { font-family: var(--font-cond); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.ad-card-meta  { font-size: .66rem; color: var(--ink-muted); }

/* List items */
.ad-list-item {
  background: var(--white); border: 1px solid var(--rule-light);
  border-radius: var(--radius); display: flex; overflow: hidden;
  cursor: pointer; min-height: 88px;
  box-shadow: var(--shadow-xs); transition: all var(--transition);
}
.ad-list-item.is-boosted { border-left: 3px solid var(--gold); }
.ad-list-item:hover { box-shadow: var(--shadow); transform: translateX(2px); }
.ad-list-thumb {
  width: 100px; flex-shrink: 0; background: var(--sand-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
}
.ad-list-body { flex: 1; padding: 10px 14px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.ad-list-title { font-weight: 600; font-size: .9rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-list-price { font-family: var(--font-cond); font-size: 1rem; font-weight: 700; color: var(--ink); white-space: nowrap; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR WIDGETS
═══════════════════════════════════════════════════════════════════════════ */
.sidebar-ad-slot { background: var(--white); border: 1px solid var(--rule-light); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.sidebar-ad-label { padding: 7px 12px; font-family: var(--font-cond); font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--rule-light); text-align: center; }
.sidebar-ad-area {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  font-family: var(--font-cond); font-size: .64rem; letter-spacing: .1em;
  color: var(--ink-muted); text-transform: uppercase; padding: 14px;
  background: repeating-linear-gradient(
    -45deg, rgba(15,25,35,.02) 0px, rgba(15,25,35,.02) 8px,
    transparent 8px, transparent 16px
  );
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════════════════════ */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 24px; }
.page-btn {
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-cond); font-size: .86rem; font-weight: 600;
  color: var(--ink-soft); background: var(--white);
  border: 1px solid var(--rule); cursor: pointer;
  transition: all var(--transition);
}
.page-btn:hover { background: var(--sand); border-color: var(--ocean); color: var(--ocean); }
.page-btn.active { background: var(--ocean); color: var(--white); border-color: var(--ocean); }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   USER DASHBOARD
═══════════════════════════════════════════════════════════════════════════ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: var(--gap);
  align-items: start;
  padding: 20px 0 60px;
}

/* Side nav */
.dash-nav { background: var(--white); border: 1px solid var(--rule-light); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); position: sticky; top: 122px; }
.dash-nav-header {
  background: var(--ink); padding: 16px;
  display: flex; align-items: center; gap: 12px;
}
.dash-nav-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ocean); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-cond); font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
}
.dash-nav-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.dash-nav-name { font-weight: 600; font-size: .9rem; color: var(--white); margin-bottom: 3px; }
.dash-nav-tier { font-family: var(--font-cond); font-size: .62rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--surf); }
.dash-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; min-height: 46px;
  border-bottom: 1px solid var(--rule-light);
  font-size: .86rem; color: var(--ink-soft);
  cursor: pointer; transition: background var(--transition);
}
.dash-nav-item:last-child { border-bottom: none; }
.dash-nav-item:hover { background: var(--sand); color: var(--ocean); }
.dash-nav-item.active {
  background: #e8f6fa; color: var(--ocean); font-weight: 600;
  border-left: 3px solid var(--ocean);
}
.dash-nav-icon { font-size: .95rem; width: 20px; text-align: center; flex-shrink: 0; }
.dash-nav-badge {
  margin-left: auto; background: var(--ocean); color: var(--white);
  border-radius: 10px; padding: 1px 7px;
  font-family: var(--font-cond); font-size: .6rem; font-weight: 700;
}
.dash-nav-item.logout-item { color: var(--red); }
.dash-nav-item.logout-item:hover { background: #fdf0f0; color: var(--red); }

/* Dashboard main */
.dash-main { display: flex; flex-direction: column; gap: 20px; }
.dash-greeting { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--ink); }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card {
  background: var(--white); border: 1px solid var(--rule-light);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-xs);
}
.stat-card-value {
  font-family: var(--font-head); font-size: 2.1rem; font-weight: 900;
  color: var(--ink); line-height: 1; margin-bottom: 5px;
}
.stat-card-label {
  font-family: var(--font-cond); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted);
}
.stat-card-note { font-size: .72rem; color: var(--green); margin-top: 4px; }
.stat-card-note.note-neutral { color: var(--ink-muted); }
.stat-card-note.note-ocean { color: var(--ocean); cursor: pointer; }

/* My Ads list */
.my-ads-list { display: flex; flex-direction: column; gap: 7px; }
.my-ad-item {
  background: var(--white); border: 1px solid var(--rule-light);
  border-radius: var(--radius); display: flex; align-items: center;
  overflow: hidden; box-shadow: var(--shadow-xs); min-height: 76px;
}
.my-ad-thumb {
  width: 90px; min-height: 76px; flex-shrink: 0;
  background: var(--sand-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.my-ad-thumb img { width: 100%; height: 76px; object-fit: cover; }
.my-ad-body { flex: 1; padding: 9px 14px; min-width: 0; }
.my-ad-title { font-weight: 600; font-size: .88rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.my-ad-meta { display: flex; align-items: center; gap: 12px; font-size: .7rem; color: var(--ink-muted); flex-wrap: wrap; }
.my-ad-actions { display: flex; gap: 7px; padding: 0 14px; flex-shrink: 0; }

/* Status badges */
.status-active  { background: #e8f6ea; color: var(--green);   font-family: var(--font-cond); font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; display: inline-flex; align-items: center; gap: 3px; }
.status-paused  { background: #fdf5e0; color: var(--gold);    font-family: var(--font-cond); font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; display: inline-flex; align-items: center; gap: 3px; }
.status-expired { background: #fdf0f0; color: var(--red);     font-family: var(--font-cond); font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; display: inline-flex; align-items: center; gap: 3px; }

/* Filter tabs (My Ads) */
.filter-tabs {
  display: flex; border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; background: var(--white); margin-bottom: 14px;
}
.filter-tab {
  flex: 1; height: 38px;
  font-family: var(--font-cond); font-size: .76rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; transition: all var(--transition);
  background: transparent; color: var(--ink-soft); border: none;
  border-left: 1px solid var(--rule);
}
.filter-tab:first-child { border-left: none; }
.filter-tab:hover { background: var(--sand); color: var(--ink); }
.filter-tab.active { background: var(--ocean); color: var(--white); }

/* Public profile */
.profile-header {
  background: var(--white); border: 1px solid var(--rule-light);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-xs);
  display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px;
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--ocean); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-cond); font-size: 2rem; font-weight: 700; flex-shrink: 0;
  border: 3px solid var(--rule); overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.profile-username { font-family: var(--font-cond); font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-muted); text-transform: uppercase; margin-bottom: 6px; }
.profile-bio { font-size: .88rem; color: var(--ink-soft); line-height: 1.6; max-width: 500px; }
.profile-meta { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.profile-stat { font-size: .8rem; color: var(--ink-muted); }
.profile-stat strong { color: var(--ink); }
.profile-stars { color: var(--gold); font-size: .9rem; letter-spacing: 1px; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.48);
  border-top: 4px solid var(--gold);
  padding: 46px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 36px; padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { font-size: .82rem; line-height: 1.65; margin-top: 12px; max-width: 230px; }
.footer-socials { display: flex; gap: 8px; margin-top: 13px; }
.footer-social-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; cursor: pointer; transition: background var(--transition);
}
.footer-social-btn:hover { background: rgba(255,255,255,.18); }
.footer-col h4 {
  font-family: var(--font-cond); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--white); margin-bottom: 13px;
  padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-col li a { font-size: .8rem; color: rgba(255,255,255,.42); transition: color var(--transition); }
.footer-col li a:hover { color: var(--gold-light); }
.footer-bottom {
  padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: .7rem; flex-wrap: wrap;
}
.footer-badges { display: flex; gap: 7px; }
.footer-badge {
  padding: 3px 8px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 3px; font-family: var(--font-cond); font-size: .6rem;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE DRAWER
═══════════════════════════════════════════════════════════════════════════ */
.drawer-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(15,25,35,.55); backdrop-filter: blur(2px);
}
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed; top: 0; left: -100%; bottom: 0; z-index: 600;
  width: min(300px, 86vw); background: var(--white);
  overflow-y: auto; transition: left var(--transition); box-shadow: var(--shadow-lg);
}
.drawer.open { left: 0; }
.drawer-header {
  background: var(--ink); color: var(--white); padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-title { font-family: var(--font-cond); font-size: .88rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer; color: var(--white); transition: background var(--transition);
}
.drawer-close:hover { background: rgba(255,255,255,.2); }
.drawer-body { padding: 10px; }

/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING ACTION BUTTON (mobile)
═══════════════════════════════════════════════════════════════════════════ */
.fab {
  display: none;
  position: fixed; bottom: 20px; right: 18px; z-index: 400;
  background: var(--gold); color: var(--white);
  border-radius: 26px; padding: 0 20px; height: 52px;
  align-items: center; gap: 7px;
  font-family: var(--font-cond); font-size: .9rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(200,131,26,.42);
  transition: transform var(--transition);
}
.fab:hover { transform: scale(1.03); }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1120px) {
  .three-col { grid-template-columns: 1fr var(--sidebar-right); }
  .dashboard-layout { grid-template-columns: 200px 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .three-col { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .masthead-inner { gap: 8px; }
  .search-wrap { display: none; }
  .masthead-actions .btn-outline,
  .masthead-actions .btn-ocean { display: none; }
  .masthead-actions .btn-gold  { display: none; } /* FAB takes over */
  .hamburger { display: flex; }
  .topbar { display: none; }
  .catnav  { top: 57px; }
  .fab     { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card-value { font-size: 1.7rem; }
  .my-ad-thumb  { width: 72px; }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-meta { justify-content: center; }
}
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHOW PAGE (ad detail) — responsive two-column layout
═══════════════════════════════════════════════════════════════════════════ */
.show-page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 640px) {
  .show-page-grid {
    grid-template-columns: 1fr;
  }
  /* Right panel stacks below content on mobile */
  .show-page-right {
    position: static !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR VISIBILITY — hide left sidebar on mobile where redundant
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
  .sidebar-hide-mobile { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADS — desktop/mobile size switching
   Desktop: 728×90 leaderboard  |  Mobile: 300×250 rectangle
═══════════════════════════════════════════════════════════════════════════ */
.ad-leaderboard-desktop { display: block; }
.ad-leaderboard-mobile  { display: none;  }
@media (max-width: 640px) {
  .ad-leaderboard-desktop { display: none  !important; }
  .ad-leaderboard-mobile  { display: block !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE SEARCH — show a compact search bar in the drawer header
═══════════════════════════════════════════════════════════════════════════ */
.drawer-search {
  display: flex;
  gap: 6px;
  padding: 12px 12px 4px;
}
.drawer-search-input {
  flex: 1;
  height: 40px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: .9rem;
  color: var(--ink);
  background: var(--white);
  outline: none;
}
.drawer-search-input:focus { border-color: var(--ocean); }
.drawer-search-btn {
  height: 40px;
  padding: 0 14px;
  background: var(--ocean);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
