/* ===========================================
   pea.co.il - Main Stylesheet
   Feminine, modern, RTL
   =========================================== */

:root {
  --pink:        #c0606e;
  --pink-light:  #e8a0b0;
  --pink-pale:   #fdf0f3;
  --pink-dark:   #9e4050;
  --rose:        #f7d6de; 
  --purple:      #8b5cf6;
  --gold:        #d4a24e;
  --text:        #2d2d2d;
  --text-muted:  #888;
  --border:      #edd9e0;
  --bg:          #fdf6f9;
  --white:       #ffffff;
  --shadow:      0 2px 16px rgba(192,96,110,.10);
  --shadow-hover:0 6px 28px rgba(192,96,110,.18);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --font:        'Heebo', Arial, sans-serif;
  --transition:  0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--pink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink-dark); }

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

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

/* ---- Topbar ---- */
.topbar {
  background: linear-gradient(135deg, var(--pink-dark), var(--pink));
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-link {
  color: #fff;
  margin-right: 16px;
  font-size: 13px;
  opacity: .9;
}
.topbar-link:hover { opacity: 1; color: var(--rose); }
.admin-link { background: rgba(255,255,255,.15); padding: 3px 10px; border-radius: 20px; }

/* ---- Header ---- */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--rose);
  box-shadow: 0 2px 12px rgba(192,96,110,.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 220px;
  background: transparent;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-size: 14.5px;
}
.nav-link:hover {
  background: var(--pink-pale);
  color: var(--pink);
}
.nav-cta {
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff !important;
  border-radius: 30px;
  padding: 9px 20px;
  font-weight: 700;
  margin-right: auto;
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--pink-dark), var(--pink));
  box-shadow: 0 4px 14px rgba(192,96,110,.4);
  transform: translateY(-1px);
}
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
  z-index: 200;
  padding: 8px 0;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-item {
  display: block;
  padding: 9px 18px;
  color: var(--text);
  font-size: 14px;
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--pink-pale); color: var(--pink); }
.header-actions { display: flex; gap: 8px; }
.main-nav { flex: 1; }
.search-toggle, .menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 6px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.search-toggle:hover, .menu-toggle:hover { background: var(--pink-pale); }
.menu-toggle { display: none; }

/* Search bar */
.search-bar-wrap {
  display: none;
  background: var(--pink-pale);
  border-top: 1px solid var(--rose);
  padding: 14px 0;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 99;
  box-shadow: 0 6px 20px rgba(192,96,110,.12);
}
.search-bar-wrap.active { display: block; }
.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.search-form input,
.search-form select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  background: var(--white);
  direction: rtl;
}
.search-form input { flex: 1; }
.search-form select { min-width: 160px; }
.btn-search {
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
}
.btn-search:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(192,96,110,.35); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-nav.open { right: 0; }
.mobile-nav-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f5e8eb;
}
.mobile-nav-logo img {
  height: 42px;
  width: auto;
}
.mobile-nav-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.mobile-nav-inner {
  padding: 0 0 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
}
.mobile-nav-inner a {
  color: var(--text);
  padding: 13px 24px;
  font-size: 15px;
  border-bottom: 1px solid #f5e8eb;
  display: block;
}
.mobile-nav-inner a:hover { background: var(--pink-pale); color: var(--pink); }
.mobile-cta { background: linear-gradient(135deg,var(--pink),var(--pink-light)) !important; color: #fff !important; margin: 12px 16px; border-radius: 30px !important; text-align: center; }
.mobile-nav-sep { height: 1px; background: var(--border); margin: 10px 0; }
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 998;
}
.overlay.active { display: block; }

/* Flash messages */
.flash {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 14px 28px 14px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown .3s ease;
}
@keyframes slideDown { from { opacity:0; transform: translateX(-50%) translateY(-10px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
.flash-success { background: #e8f5e9; color: #2e7d32; border: 1.5px solid #a5d6a7; }
.flash-error   { background: #fce4ec; color: #b71c1c; border: 1.5px solid #f48fb1; }
.flash-info    { background: #e3f2fd; color: #1565c0; border: 1.5px solid #90caf9; }
.flash-close { background: none; border: none; cursor: pointer; font-size: 18px; opacity: .6; margin-right: auto; }

/* ---- Main sections ---- */
.site-main { min-height: 70vh; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #fff0f3 0%, #fce4ec 40%, #f8bbd9 100%);
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/hero-pattern.svg') repeat;
  opacity: .04;
}
.hero-content { position: relative; z-index: 1; }
.hero-logo-wrap {
  margin-bottom: 24px;
}
.hero-logo {
  width: auto;
  height: 130px;
  max-width: 380px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  background: transparent;
  filter: drop-shadow(0 4px 16px rgba(192,96,110,.18));
}
.hero h1 {
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 800;
  color: var(--pink-dark);
  margin-bottom: 14px;
  line-height: 1.25;
}
.hero h1 span { color: var(--pink); }
.hero p {
  font-size: 17px;
  color: #666;
  margin-bottom: 30px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff;
  padding: 13px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,96,110,.4); color: #fff; }
.btn-secondary {
  background: #fff;
  color: var(--pink);
  border: 2px solid var(--pink);
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
}
.btn-secondary:hover { background: var(--pink-pale); }

/* Stats bar */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--rose);
  border-bottom: 1px solid var(--rose);
  padding: 18px 0;
}
.stats-inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--pink);
}
.stat-label { font-size: 12px; color: var(--text-muted); }

/* Section headings */
.section { padding: 48px 0; }
.section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--pink-dark);
  margin-bottom: 6px;
}
.section-title span { color: var(--pink); }
.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.section-link { font-size: 14px; color: var(--pink); }

/* Ad cards grid */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.ad-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  cursor: pointer;
}
.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.ad-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--rose);
}
.ad-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ad-card:hover .ad-card-img img { transform: scale(1.05); }
.ad-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: .4;
  background: linear-gradient(135deg, var(--rose), #fce4ec);
}
.badge-promoted {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--gold), #f0c060);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(212,162,78,.4);
}
.badge-sell { position: absolute; top: 10px; left: 10px; background: var(--pink); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 20px; }
.badge-buy  { position: absolute; top: 10px; left: 10px; background: var(--purple); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 20px; }
.ad-card-body { padding: 14px; }
.ad-card-cat {
  font-size: 11px;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
  font-weight: 600;
}
.ad-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ad-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
}
.ad-card-price { font-weight: 800; color: var(--pink); font-size: 16px; }
.ad-card-meta { color: var(--text-muted); font-size: 12px; }

/* Category pills */
.cat-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cat-pill {
  padding: 7px 18px;
  border-radius: 30px;
  background: var(--white);
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

/* Promotion banner */
.promo-banner {
  background: linear-gradient(135deg, #2d1a1f, #6b2435);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-align: center;
  color: #fff;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '✨';
  position: absolute;
  font-size: 100px;
  opacity: .06;
  top: -20px;
  left: -20px;
}
.promo-banner h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.promo-banner p { font-size: 16px; opacity: .85; margin-bottom: 22px; }
.promo-price {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  padding: 8px 24px;
  border-radius: 30px;
  margin-bottom: 20px;
}

/* How it works */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--pink-dark); }
.step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---- Ad single page ---- */
.ad-page { padding: 36px 0 60px; }
.ad-page-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.ad-gallery { position: relative; }
.ad-main-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--rose);
}
.ad-main-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}
.ad-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
}
.ad-thumb.active { border-color: var(--pink); }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-info { }
.ad-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.ad-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.ad-price-big { font-size: 30px; font-weight: 800; color: var(--pink); margin-bottom: 16px; }
.ad-meta-list { list-style: none; }
.ad-meta-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f5e8eb;
  font-size: 14px;
}
.ad-meta-list li:last-child { border-bottom: none; }
.ad-meta-label { color: var(--text-muted); }
.ad-meta-val { font-weight: 600; }
.phone-reveal {
  background: var(--pink-pale);
  border: 1.5px dashed var(--pink);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}
.phone-reveal p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.phone-reveal .phone-num { font-size: 22px; font-weight: 800; color: var(--pink-dark); display: none; }
.btn-reveal-phone {
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
  display: block;
  width: 100%;
}
.btn-reveal-phone:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(192,96,110,.35); }

/* ---- Auth forms ---- */
.auth-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(192,96,110,.12);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 10px;
}
.auth-logo img {
  height: 80px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: transparent;
  display: block;
  margin: 0 auto;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.auth-title { font-size: 20px; font-weight: 700; color: var(--pink-dark); text-align: center; margin-bottom: 24px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  direction: rtl;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(192,96,110,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group .hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: #c0392b; font-size: 13px; margin-top: 4px; }

/* Buttons */
.btn { display: inline-block; padding: 11px 24px; border-radius: 30px; font-size: 14px; font-weight: 700; border: none; cursor: pointer; font-family: var(--font); transition: all var(--transition); text-align: center; }
.btn-full { width: 100%; }
.btn-pink { background: linear-gradient(135deg, var(--pink), var(--pink-light)); color: #fff; }
.btn-pink:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(192,96,110,.4); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--pink); color: var(--pink); }
.btn-outline:hover { background: var(--pink-pale); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #f0c060); color: #fff; }
.btn-gold:hover { box-shadow: 0 4px 16px rgba(212,162,78,.4); color: #fff; transform: translateY(-1px); }

/* Account / My area */
.account-page { padding: 36px 0 60px; }
.account-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.account-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}
.account-user {
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  padding: 24px 20px;
  color: #fff;
  text-align: center;
}
.account-avatar {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.account-name { font-size: 16px; font-weight: 700; }
.account-email { font-size: 12px; opacity: .8; }
.account-nav { padding: 8px 0; }
.account-nav a {
  display: block;
  padding: 11px 20px;
  color: var(--text);
  font-size: 14px;
  border-bottom: 1px solid #f5e8eb;
  transition: all var(--transition);
}
.account-nav a:hover, .account-nav a.active {
  background: var(--pink-pale);
  color: var(--pink);
  font-weight: 600;
}
.account-content {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--border);
}
.account-content h2 { font-size: 20px; font-weight: 800; color: var(--pink-dark); margin-bottom: 20px; }

/* My ads table */
.my-ads-list { display: flex; flex-direction: column; gap: 14px; }
.my-ad-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--pink-pale);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.my-ad-img {
  width: 80px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--rose);
}
.my-ad-img img { width: 100%; height: 100%; object-fit: cover; }
.my-ad-info { flex: 1; }
.my-ad-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.my-ad-meta { font-size: 12px; color: var(--text-muted); }
.my-ad-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-active   { background: #e8f5e9; color: #2e7d32; }
.status-pending  { background: #fff8e1; color: #f57f17; }
.status-expired  { background: #fce4ec; color: #b71c1c; }
.status-sold     { background: #e3f2fd; color: #1565c0; }
.my-ad-actions { display: flex; gap: 8px; }

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  background: var(--pink-pale);
  color: var(--pink-dark);
  font-weight: 700;
  padding: 12px 14px;
  text-align: right;
  border-bottom: 2px solid var(--border);
}
.admin-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f5e8eb;
  vertical-align: middle;
}
.admin-table tr:hover td { background: #fdf0f3; }

/* Upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--pink-pale);
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--pink);
  background: #fce4ec;
}
.upload-icon { font-size: 36px; margin-bottom: 10px; }
.upload-area p { font-size: 14px; color: var(--text-muted); }
.upload-previews {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.upload-preview {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--border);
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .remove-img {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  padding: 0 12px;
}
.page-btn:hover, .page-btn.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 14px 0;
}
.breadcrumb a { color: var(--pink); }
.breadcrumb .sep { opacity: .4; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 52px; margin-bottom: 14px; opacity: .6; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 14px; }

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #2d1a1f, #4a2030);
  color: #e0c8cc;
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  padding: 48px 20px 36px;
}
.footer-logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--pink-light);
  margin-bottom: 10px;
}
.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
  filter: brightness(0) invert(1) opacity(0.85);
}
.footer-tagline { font-size: 13px; opacity: .7; line-height: 1.6; }
.footer-col h4 {
  color: var(--pink-light);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul a {
  color: #e0c8cc;
  font-size: 13px;
  opacity: .75;
  transition: opacity var(--transition);
}
.footer-col ul a:hover { opacity: 1; color: var(--pink-light); }
.footer-col p { font-size: 13px; opacity: .75; line-height: 1.6; margin-bottom: 14px; }
.btn-footer-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 13px; opacity: .6; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 12px; color: #e0c8cc; opacity: .6; }
.footer-bottom-links a:hover { opacity: 1; }

/* Google button & divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: var(--text-muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 20px;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-google:hover {
  border-color: #4285F4;
  background: #f0f4ff;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(66,133,244,.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { justify-content: space-between; }
  .ad-page-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header-inner { padding: 12px 16px; }
  .search-form { flex-direction: column; align-items: stretch; }
  .search-form input, .search-form select { width: 100%; min-width: 0; }
  .hero { padding: 40px 16px 36px; }
  .hero h1 { font-size: 26px; }
  .stats-inner { gap: 24px; }
  .ads-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .auth-card { padding: 28px 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .my-ad-row { flex-wrap: wrap; }
}

@media (max-width: 400px) {
  .ads-grid { grid-template-columns: 1fr; }
}

/* Sticky mobile CTA */
.sticky-cta-mobile {
  display: none;
}
@media (max-width: 900px) {
  .sticky-cta-mobile {
    display: flex;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 10px 16px;
    background: rgba(253, 246, 249, 0.97);
    border-top: 1px solid var(--rose);
    box-shadow: 0 -4px 16px rgba(192,96,110,.12);
    justify-content: center;
  }
  .sticky-cta-mobile .btn {
    width: 100%;
    max-width: 400px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: 30px;
  }
  .site-footer { padding-bottom: 70px; }
  #cookieBanner { bottom: 60px; }
}
