/* =====================================================
   PK Marriage Online - v3 Premium Stylesheet
   Elegant matrimonial: ivory + deep wine + gold, serif headings
   ===================================================== */
:root {
  --wine: #5c1631;
  --wine-2: #7d1f42;
  --wine-deep: #3d0d20;
  --wine-soft: #f6e8ee;
  --gold: #c9a24b;
  --gold-2: #a8842f;
  --gold-pale: #f3e6c8;
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #241d22;
  --muted: #7c7480;
  --line: #ece2d8;
  --ok: #1d8a4b;
  --err: #c62828;
  --warn: #b45f06;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(92,22,49,.10);
  --nav-h: 64px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15.5px;
  padding-bottom: calc(var(--nav-h) + 12px);
}
img { max-width: 100%; display: block; }
a { color: var(--wine); text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
h1,h2,h3 { line-height: 1.25; }
h1,h2,.serif, .page-h { font-family: var(--serif); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; font-weight: 600;
  padding: 11px 20px; border-radius: 10px; font-size: 15px; text-align: center;
  transition: filter .15s ease, transform .1s ease; color: #fff; background: var(--wine);
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--wine); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #fff; }
.btn-danger { background: var(--err); }
.btn-outline { background: transparent; color: var(--wine); border: 1.5px solid var(--wine); }
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--line); }
.btn-sm { padding: 6px 13px; font-size: 13.5px; border-radius: 8px; }
.btn-big { padding: 14px 24px; font-size: 16.5px; }
.btn-block { width: 100%; display: block; }
.inline-form { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-form input[type=text] { padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 13px; }

/* ---------- Top bar ---------- */
.topbar {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 8px rgba(36,29,34,.05);
}
.topbar-in { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { font-family: var(--serif); font-size: 21px; color: var(--wine); display: flex; align-items: center; gap: 9px; font-weight: 400; }
.logo b { color: var(--gold-2); font-weight: 700; }
.logo-mark {
  width: 34px; height: 34px; background: var(--wine); color: #fff; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-family: sans-serif;
}
.nav-desktop { display: none; gap: 2px; margin-left: auto; }
.nav-desktop a {
  color: var(--ink); padding: 9px 13px; border-radius: 8px; font-weight: 500; font-size: 14.5px;
  border-bottom: 2px solid transparent;
}
.nav-desktop a:hover { color: var(--wine); }
.nav-desktop a.active { color: var(--wine); font-weight: 700; border-bottom-color: var(--gold); }
.topbar-right { display: none; gap: 8px; }
.badge {
  display: inline-block; background: var(--gold); color: #fff; border-radius: 10px;
  font-size: 11px; font-weight: 700; padding: 1px 6px; vertical-align: 1px;
}
.badge.big { font-size: 13px; padding: 2px 9px; border-radius: 12px; }

/* ---------- Bottom mobile nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-h);
  background: #fff; display: flex; border-top: 1px solid var(--line); z-index: 60;
  box-shadow: 0 -2px 12px rgba(36,29,34,.06);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--muted); font-size: 10.5px; font-weight: 600;
}
.bottom-nav a.active { color: var(--wine); }
.bottom-nav svg { width: 22px; height: 22px; fill: currentColor; }
.bottom-nav .bn-post svg { background: var(--gold); color: #fff; border-radius: 50%; padding: 5px; width: 30px; height: 30px; }

/* ---------- Layout ---------- */
.main-wrap { min-height: 55vh; padding-top: 18px; padding-bottom: 24px; }
.page-h { font-size: 28px; margin-bottom: 4px; color: var(--wine); }
.page-sub { margin-bottom: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; flex-wrap: wrap; }
.section { padding: 18px 0 30px; }

/* ---------- Alerts / chips ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 14px; font-size: 14.5px; }
.alert-ok { background: #e5f5ec; color: #14663a; border: 1px solid #bde5cc; }
.alert-err { background: #fdecec; color: #8f1f1f; border: 1px solid #f3c1c1; }
.alert-info { background: #eaf2fd; color: #1c4d8f; border: 1px solid #c4dbf5; }
.alert-warn { background: #fdf3e3; color: #7a4b09; border: 1px solid #f0d9ad; }
.chip {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 10px;
  border-radius: 20px; letter-spacing: .2px;
}
.chip-ok { background: #ddf3e5; color: #14663a; }
.chip-err { background: #fde5e5; color: #a32020; }
.chip-warn { background: #fdf0d5; color: #8a5a0b; }
.chip-info { background: #e3eefb; color: #1c4d8f; }
.chip-mute { background: #ececec; color: #777; }

/* ---------- Hero with slider (images fully visible) ---------- */
.hero {
  position: relative; overflow: hidden; margin: -18px -16px 0;
  min-height: 470px; display: flex; align-items: center; padding: 30px 16px 46px;
  background: var(--wine-soft);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s ease; will-change: opacity, transform;
}
.hero-slide.on { opacity: 1; animation: kb 5.5s ease-out both; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.08); } }
/* sirf halka bottom fade (dots ke liye) - images clear rehti hain */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  pointer-events: none; z-index: 1;
  background: linear-gradient(to top, rgba(36,29,34,.28), transparent);
}
.hero-in { position: relative; z-index: 2; width: 100%; max-width: 660px; margin: 0 auto; }
.hero-card {
  background: rgba(255,255,255,.93); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 20px; padding: 30px 26px 26px; text-align: center;
  box-shadow: 0 18px 50px rgba(36,29,34,.25);
  border: 1px solid rgba(255,255,255,.7);
}
.hero-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 10px;
}
.hero h1 { font-size: 33px; color: var(--wine); font-weight: 700; }
.hero p { margin: 10px 0 18px; color: var(--ink); font-size: 15.5px; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.hero-points li { font-size: 12.5px; background: var(--wine-soft); color: var(--wine); padding: 4px 12px; border-radius: 20px; font-weight: 600; }
.hero-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; z-index: 2; }
.hero-dot { width: 9px; height: 9px; border-radius: 5px; background: rgba(255,255,255,.55); transition: all .3s ease; box-shadow: 0 0 3px rgba(0,0,0,.3); }
.hero-dot.on { background: var(--gold); width: 24px; }

/* ---------- Search ---------- */
.search-card { margin-top: -34px; position: relative; z-index: 5; }
.search-form {
  background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: 0 10px 34px rgba(36,29,34,.14);
  display: grid; gap: 12px; border: 1px solid var(--line);
}
.sf-field label { font-size: 11.5px; font-weight: 800; color: var(--muted); display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.age-row { display: flex; gap: 6px; align-items: center; }
.age-row input { width: 100%; }
.age-row span { color: var(--muted); font-size: 13px; }
select, input[type=text], input[type=tel], input[type=password], input[type=number], textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--wine); }

/* ---------- Ad grid ---------- */
.ad-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ad-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); color: var(--ink); transition: transform .15s ease, box-shadow .15s ease;
}
.ad-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(109,30,54,.14); }
.ad-photo { position: relative; aspect-ratio: 4/5; background: var(--wine-soft); }
.ad-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.chip-gender { position: absolute; top: 8px; left: 8px; }
.chip-gender.g-f { background: rgba(255,255,255,.94); color: var(--wine); }
.chip-gender.g-m { background: rgba(36,29,34,.82); color: #fff; }
.ad-info { padding: 11px 13px 13px; }
.ad-info h3 { font-size: 16px; font-family: var(--serif); }
.ad-info .age { color: var(--muted); font-weight: 500; font-size: 13px; font-family: -apple-system, sans-serif; }
.meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.meta2 { font-size: 12.5px; color: var(--ink); }
.verified { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--ok); }
.verified.big { background: #ddf3e5; padding: 3px 12px; border-radius: 20px; margin-top: 8px; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pg { padding: 7px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; color: var(--ink); font-weight: 600; }
.pg.on { background: var(--wine); color: #fff; border-color: var(--wine); }

/* ---------- How it works / content sections ---------- */
.how-section { background: #fff; border-top: 1px solid var(--line); padding: 38px 0 44px; }
.how-section h2 { text-align: center; margin-bottom: 8px; font-size: 26px; color: var(--wine); }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 26px; font-size: 14.5px; }
.steps { display: grid; gap: 14px; }
.step { background: var(--bg); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.step-no {
  display: inline-block; width: 36px; height: 36px; border-radius: 50%;
  background: var(--wine); color: #fff; font-weight: 800; text-align: center; line-height: 36px; margin-bottom: 10px;
}
.step h3 { font-size: 16.5px; margin-bottom: 5px; font-family: var(--serif); }
.step p { font-size: 13.5px; color: var(--muted); }
.why-section { padding: 36px 0; }
.why-grid { display: grid; gap: 14px; }
.why-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px; }
.why-card h3 { font-size: 16px; margin-bottom: 5px; font-family: var(--serif); color: var(--wine); }
.why-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- Forms ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 20px 0; }
.auth-card { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); width: 100%; max-width: 420px; border: 1px solid var(--line); }
.auth-card h1 { font-size: 23px; margin-bottom: 4px; color: var(--wine); }
.auth-alt { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.form { margin-top: 14px; }
.f-group { margin-bottom: 12px; }
.f-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.f-row { display: grid; gap: 10px; }
.form-card { background: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: 18px; margin-bottom: 12px; color: var(--wine); }

.photo-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-slot {
  width: 86px; height: 86px; border: 2px dashed var(--wine); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--wine-soft); overflow: hidden; position: relative;
}
.pp-slot:hover { background: #efcfe0; }
.pp-plus { font-size: 30px; color: var(--wine); font-weight: 300; }
.pp-slot.filled { border-style: solid; border-color: var(--ok); }
.pp-slot img { width: 100%; height: 100%; object-fit: cover; }
.pp-slot .pp-del {
  position: absolute; top: 2px; right: 4px; color: #fff; background: var(--err);
  border-radius: 50%; width: 20px; height: 20px; font-size: 12px; line-height: 20px; text-align: center; cursor: pointer;
}

/* ---------- Ad detail ---------- */
.ad-detail { display: grid; gap: 18px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery-main img { width: 100%; max-height: 540px; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gallery-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.on { border-color: var(--wine); }
.watermark-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.ad-body h1 { font-size: 26px; color: var(--wine); }
.detail-table { width: 100%; border-collapse: collapse; margin: 14px 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.detail-table th, .detail-table td { padding: 9px 12px; font-size: 14px; text-align: left; border-bottom: 1px solid var(--line); }
.detail-table th { width: 38%; color: var(--muted); font-weight: 600; background: #faf6f1; }
.detail-table tr:last-child th, .detail-table tr:last-child td { border-bottom: none; }
.ad-body h3 { margin-top: 14px; font-size: 15px; color: var(--wine); font-family: var(--serif); }
.bio { white-space: pre-line; font-size: 14.5px; }
.owner-box, .request-box { background: #fff; border: 1.5px solid var(--wine); border-radius: var(--radius); padding: 16px; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.report { margin-top: 14px; }

/* ---------- My ads / requests ---------- */
.myad-list { display: grid; gap: 10px; }
.myad-row { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.myad-img { width: 68px; height: 68px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.myad-info { flex: 1; min-width: 0; }
.myad-info h3 { font-size: 15.5px; }
.myad-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { padding: 8px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 20px; font-weight: 600; font-size: 14px; color: var(--muted); }
.tab.on { background: var(--wine); border-color: var(--wine); color: #fff; }
.req-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.req-user { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.req-user h3 { font-size: 16px; }
.req-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.req-actions form { display: inline; margin: 0; }

/* ---------- Payment page ---------- */
.pay-grid { display: grid; gap: 16px; }
.steps-ol { padding-left: 20px; }
.steps-ol li { margin-bottom: 12px; font-size: 14.5px; }
.pay-num { background: var(--wine-soft); padding: 8px 12px; border-radius: 8px; margin-top: 5px; font-size: 15px; }
.pay-row { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.pay-mid { flex: 1; min-width: 240px; }
.pay-actions { display: flex; flex-direction: column; gap: 8px; min-width: 170px; }

/* ---------- Chat (WhatsApp style) ---------- */
.chat-body { background: #efe7dd; padding-bottom: 0; }
.chat-body .main-wrap { max-width: 900px; padding: 0; padding-bottom: 0; }
.chat-app {
  position: fixed; inset: 60px 0 0 0; max-width: 900px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; z-index: 10; background: #efe7dd;
}
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--wine); color: #fff;
}
.chat-back { color: #fff; font-size: 22px; padding: 0 4px; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.av-lg { width: 46px; height: 46px; font-size: 18px; }
.av-f { background: var(--wine-2); }
.av-m { background: #15486b; }
.chat-title { flex: 1; min-width: 0; }
.chat-title b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title span { font-size: 11.5px; opacity: .85; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-msgs {
  flex: 1; overflow-y: auto; padding: 14px 10px 8px;
  background-image: radial-gradient(circle, #ddd2c4 1.2px, transparent 1.2px);
  background-size: 26px 26px;
}
.chat-day { text-align: center; margin: 0 auto 10px; background: #e1f3d2; display: table; padding: 4px 12px; border-radius: 8px; font-size: 12px; color: #3a6b21; }
.bubble {
  max-width: 78%; padding: 7px 10px 5px; border-radius: 10px; margin-bottom: 6px; font-size: 14.5px;
  position: relative; word-wrap: break-word; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0,0,0,.1);
  animation: popIn .12s ease;
}
@keyframes popIn { from { transform: scale(.96); opacity: .5; } to { transform: scale(1); opacity: 1; } }
.b-other { background: #fff; border-top-left-radius: 2px; }
.b-mine { background: #d9fdd3; margin-left: auto; border-top-right-radius: 2px; }
.b-img { border-radius: 8px; max-width: 240px; max-height: 300px; object-fit: cover; cursor: pointer; }
.b-meta { display: block; font-size: 10px; color: #7c7c7c; text-align: right; margin-top: 2px; }
.ticks { color: #7c7c7c; font-size: 11px; margin-right: 2px; }
.ticks.read { color: #4fc3f7; }
.chat-input { display: flex; gap: 8px; padding: 8px; background: #f0f0f0; align-items: center; }
.chat-attach { border: none; background: none; font-size: 22px; cursor: pointer; padding: 4px 8px; }
.chat-input input[type=text] {
  flex: 1; border-radius: 22px; padding: 10px 16px; border: none; background: #fff;
}
.chat-send {
  border: none; background: var(--ok); color: #fff; width: 42px; height: 42px; border-radius: 50%;
  font-size: 17px; cursor: pointer; flex-shrink: 0;
}
.thread-list { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.thread { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.thread:last-child { border-bottom: none; }
.thread:active { background: var(--wine-soft); }
.thread-mid { flex: 1; min-width: 0; }
.thread-mid b { display: block; font-size: 15px; }
.thread-mid span { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Footer ---------- */
.site-footer { background: #241a1e; color: #c9b8bf; text-align: center; padding: 30px 0 calc(var(--nav-h) + 22px); font-size: 13.5px; }
.foot-brand { font-size: 17px; color: #fff; margin-bottom: 6px; font-family: var(--serif); }
.foot-links a { color: #e2b3c4; margin: 0 4px; }
.copy { margin-top: 8px; font-size: 12px; }

/* ---------- Info pages ---------- */
.info-page { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; max-width: 840px; }
.info-page h1 { font-size: 27px; color: var(--wine); margin-bottom: 10px; }
.info-page h2 { margin: 20px 0 8px; font-size: 18px; color: var(--wine); }
.info-page p, .info-page li { font-size: 14.5px; margin-bottom: 8px; }
.info-page ul, .info-page ol { padding-left: 22px; }
.contact-cards { display: grid; gap: 12px; margin: 16px 0; }
.contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.contact-card h3 { color: var(--wine); font-size: 16px; margin-bottom: 4px; font-family: var(--serif); }

/* ---------- Admin ---------- */
.admin-body { background: #f4eef1; padding-bottom: 30px; }
.admin-top { background: #241a1e; color: #fff; position: sticky; top: 0; z-index: 50; }
.admin-top-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-logo { color: #fff; font-size: 16px; font-family: var(--serif); }
.admin-logo span { color: var(--gold); font-weight: 700; font-size: 12px; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.admin-nav a { color: #d8c9d2; padding: 7px 11px; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.admin-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav a.active { background: var(--wine); color: #fff; }
.admin-nav .logout { color: #ff9d9d; }
.admin-main { padding-top: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat-l { font-size: 11.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.stat-v { font-size: 27px; font-weight: 800; color: var(--wine); margin-top: 2px; font-family: var(--serif); }
.stat-ok .stat-v { color: var(--ok); }
.stat-warn .stat-v { color: var(--warn); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.admin-table th { text-align: left; background: #f7eef2; padding: 10px; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.admin-table td { padding: 10px; border-top: 1px solid #eee; vertical-align: top; }
.admod-row { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.admod-info { flex: 1; min-width: 260px; }
.admod-info h3 { font-size: 16px; }
.admod-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; margin-top: 6px; margin-right: 6px; }
.admod-actions { display: flex; flex-direction: column; gap: 8px; min-width: 190px; }
.actions-cell { white-space: nowrap; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 44px 16px; background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty-state p { margin-bottom: 6px; }
.empty-state .btn { margin-top: 12px; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .ad-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .search-form { grid-template-columns: 1fr 1fr auto auto; align-items: end; }
  .sf-btn { height: 44px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .f-row { grid-template-columns: 1fr 1fr; }
  .f-row.three { grid-template-columns: repeat(3, 1fr); }
  .pay-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .nav-desktop { display: flex; }
  .topbar-right { display: flex; }
  .site-footer { padding-bottom: 30px; }
  .ad-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .ad-detail { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .page-h { font-size: 32px; }
  .hero { min-height: 560px; }
  .hero h1 { font-size: 42px; }
  .chat-app { position: relative; inset: auto; height: calc(100vh - 170px); margin: 12px auto 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
}

/* ---------- Card send-request action ---------- */
.ad-link { display: block; color: inherit; }
.ad-card-action { padding: 0 12px 12px; }
.req-state { display: block; text-align: center; font-size: 12.5px; font-weight: 700; padding: 7px 0; border-radius: 8px; background: var(--wine-soft); color: var(--wine); }
.req-state.req-no { background: #fde5e5; color: #a32020; }

/* ======== v4: clean hero (images fully visible, text below) ======== */
.hero { min-height: 0 !important; display: block !important; padding: 0 !important; margin: -18px -16px 0; aspect-ratio: 2 / 1; max-height: 560px; background: #efe3e8; }
.hero::before, .hero::after { display: none !important; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { object-position: center top; }
.hero-dots { bottom: 12px; }
.hero-text { text-align: center; padding: 26px 0 40px; background: #fff; border-bottom: 1px solid var(--line); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.hero-text .hero-kicker { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-2); margin-bottom: 8px; }
.hero-text h1 { font-size: 30px; color: var(--wine); font-weight: 700; }
.hero-text p { max-width: 620px; margin: 10px auto 18px; color: var(--ink); }
.hero-text .hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-text .hero-points { list-style: none; display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.hero-text .hero-points li { font-size: 12.5px; background: var(--wine-soft); color: var(--wine); padding: 4px 12px; border-radius: 20px; font-weight: 600; }
@media (max-width: 640px) { .hero { aspect-ratio: 16 / 10; } .hero-text h1 { font-size: 26px; } }
@media (min-width: 900px) { .hero-text h1 { font-size: 38px; } }

/* ======== v7: bell, toasts, chat menu, block ======== */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--wine); background: var(--wine-soft); }
.bell:hover { background: #efcfe0; }
.bell-badge { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #e53935; color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; border: 2px solid #fff; animation: bellPulse 1.6s infinite; }
.bell-badge[hidden] { display: none; }
@keyframes bellPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.bell-mobile { margin-left: auto; }
@media (min-width: 900px) { .bell-mobile { display: none; } }
.toast-box { position: fixed; top: 70px; right: 12px; z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: block; background: #fff; border-left: 5px solid var(--wine); border-radius: 12px; padding: 11px 14px; box-shadow: 0 8px 28px rgba(36,29,34,.25); color: var(--ink); animation: toastIn .3s ease; transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translateX(30px); }
.toast b { display: block; font-size: 14.5px; color: var(--wine); }
.toast span { font-size: 13px; color: var(--muted); }
.toast-approved { border-left-color: var(--ok); }
.toast-approved b { color: var(--ok); }
.toast-request { border-left-color: var(--gold); }
.toast-rejected { border-left-color: var(--err); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.notif-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.notif { display: flex; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--ink); align-items: flex-start; }
.notif:last-child { border-bottom: none; }
.notif.unread { background: var(--wine-soft); }
.notif-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--wine); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.notif-ic.t-approved { background: var(--ok); } .notif-ic.t-rejected { background: var(--err); } .notif-ic.t-request { background: var(--gold-2); }
.notif b { display: block; font-size: 14.5px; } .notif span { font-size: 13px; color: var(--muted); display: block; } .notif small { color: var(--muted); font-size: 11.5px; }
.chat-head { position: relative; }
.chat-menu { position: absolute; right: 10px; top: 54px; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 8px 26px rgba(0,0,0,.25); z-index: 30; overflow: hidden; min-width: 160px; }
.chat-menu button { display: block; width: 100%; text-align: left; padding: 12px 16px; border: none; background: #fff; font-size: 14px; cursor: pointer; }
.chat-menu button:hover { background: var(--wine-soft); }
.chat-menu[hidden] { display: none; }
.chat-menu-btn { color: #fff !important; border-color: rgba(255,255,255,.4) !important; font-size: 18px; padding: 2px 10px; }
.chat-blocked { background: #fdf0d5; color: #7a4b09; text-align: center; padding: 10px; font-size: 13.5px; font-weight: 600; }
.chat-blocked[hidden] { display: none; }
.block-btn-row { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.stat-link { color: inherit; display: block; }

.ann-bar { background: linear-gradient(90deg, #6d1e36, #8f2d4c); color: #fff; text-align: center; padding: 8px 14px; font-size: 13.5px; font-weight: 600; }

.view-count { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* =====================================================
   V9 - VIP LUXURY LAYER
   Deep wine + champagne gold, glass topbar, gold shimmer
   ===================================================== */

/* subtle gold-flecked backdrop */
body {
  background:
    radial-gradient(1200px 500px at 85% -100px, rgba(201,162,75,.10), transparent 60%),
    radial-gradient(900px 420px at -80px 30%, rgba(125,31,66,.07), transparent 60%),
    var(--bg);
}

/* ---------- Topbar: dark glass + gold accents ---------- */
.topbar {
  background: linear-gradient(180deg, rgba(43,8,22,.97), rgba(61,13,32,.97));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,162,75,.35);
  box-shadow: 0 2px 24px rgba(40,5,20,.35);
  padding-top: 4px; padding-bottom: 4px; height: var(--nav-h);
}
.topbar .logo { color: #fff; font-family: var(--serif); letter-spacing: .4px; font-size: 20px; }
.topbar .logo b { color: #e6c877; font-weight: 800; }
.topbar .logo > span:not(.logo-mark) { display: inline-flex; align-items: center; gap: 9px; }
.logo::before {
  content: "\265B"; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; font-size: 17px;
  background: linear-gradient(135deg, #e6c877, #a8842f); color: #2b0816;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 4px 12px rgba(201,162,75,.35);
}

.nav-desktop a { color: rgba(255,255,255,.82); position: relative; padding: 6px 2px; }
.nav-desktop a:hover { color: #fff; }
.nav-desktop a::after, .nav-desktop a.active::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), #e6c877); transition: right .25s ease; border-radius: 2px;
}
.nav-desktop a:hover::after, .nav-desktop a.active::after { right: 0; }
.nav-desktop a.active { color: #e6c877; }
.topbar .btn-gold { background: linear-gradient(135deg, #e6c877, var(--gold) 55%, var(--gold-2)); color: #2b0816; font-weight: 700; box-shadow: 0 4px 14px rgba(201,162,75,.4); }
.topbar .btn-gold:hover { filter: brightness(1.06); }
.topbar .btn-ghost { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.topbar .btn-ghost:hover { background: rgba(255,255,255,.12); }
.topbar .badge { background: var(--gold); color: #2b0816; font-weight: 800; }
.bell { background: rgba(255,255,255,.10); color: #f2dfae; }
.bell:hover { background: rgba(230,200,119,.22); color: #fff; }
.bell-badge { border-color: #2b0816; }

/* ---------- Hero: cinematic dark + gold kicker ---------- */
.hero { position: relative; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(43,8,22,.55) 0%, rgba(43,8,22,.15) 34%, rgba(43,8,22,.42) 100%);
}
.hero-text { position: relative; z-index: 2; }
.hero-text .hero-kicker {
  display: inline-block; color: var(--gold-pale); font-size: 12.5px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  border: 1px solid rgba(230,200,119,.45); border-radius: 30px; padding: 7px 18px;
  background: rgba(43,8,22,.45); backdrop-filter: blur(6px);
}
.hero-text h1 {
  font-weight: 800; color: #fff; text-shadow: 0 2px 30px rgba(43,8,22,.55);
  font-size: clamp(30px, 5.4vw, 46px);
}
.hero-text h1 em { font-style: normal; color: #e6c877; }
.hero-text p { color: rgba(255,255,255,.92); text-shadow: 0 1px 14px rgba(43,8,22,.5); font-size: 16.5px; }
.hero-cta .btn-gold { box-shadow: 0 10px 30px rgba(201,162,75,.45); }
.hero-points { margin-top: 18px; }
.hero-points li {
  color: #f7ecd2; background: rgba(43,8,22,.55); border: 1px solid rgba(230,200,119,.35);
  backdrop-filter: blur(4px); box-shadow: 0 4px 18px rgba(43,8,22,.35);
}

/* ---------- Gold shimmer on primary/gold buttons ---------- */
.btn-primary, .btn-gold { position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, var(--wine-2), var(--wine)); box-shadow: 0 6px 18px rgba(92,22,49,.30); }
.btn-primary::before, .btn-gold::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg); animation: shimmer 3.6s infinite;
}
@keyframes shimmer { 0% { left: -80%; } 55%, 100% { left: 130%; } }

/* ---------- Profile cards: gold-frame luxury ---------- */
.ad-card {
  position: relative; background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.ad-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, var(--gold), #e6c877, var(--gold-2));
  opacity: 0; transition: opacity .3s;
}
.ad-card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(92,22,49,.18); border-color: rgba(201,162,75,.55); }
.ad-card:hover::before { opacity: 1; }
.ad-photo { position: relative; }
.ad-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -70px 60px -30px rgba(36,29,34,.28); pointer-events: none; }

/* ---------- Search card: floating glass ---------- */
.search-card { margin-top: -34px; position: relative; z-index: 3; }
.search-card .container > .search-form, .search-card .search-form {
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border: 1px solid rgba(201,162,75,.35); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(92,22,49,.18);
}
.search-form .sf-field select {
  background-color: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: 14.5px; color: var(--ink);
}
.search-form .btn-gold { background: linear-gradient(135deg, #e6c877, var(--gold) 55%, var(--gold-2)); color: #2b0816; font-weight: 700; }

/* ---------- Headings: gold rule ornament ---------- */
.page-h { position: relative; display: inline-block; font-weight: 800; letter-spacing: .2px; }
.page-h::after {
  content: ""; display: block; margin-top: 7px; height: 3px; width: 54px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.page-sub { margin-top: 6px !important; }
.section-h, h2.sec-h { font-family: var(--serif); }

/* ---------- Stat tiles / stat chips ---------- */
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.status-chip { border-radius: 30px; font-weight: 700; letter-spacing: .3px; }

/* ---------- Ad units ---------- */
.ad-unit { margin: 22px auto; text-align: center; max-width: 970px; overflow: hidden; }
.ad-unit:empty { display: none; }

/* ---------- Forms ---------- */
.f-group input, .f-group select, .f-group textarea {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 15px;
  background: #fff; transition: border-color .2s, box-shadow .2s;
  font-family: var(--sans);
}
.f-group input:focus, .f-group select:focus, .f-group textarea:focus {
  border-color: var(--gold); outline: none; box-shadow: 0 0 0 4px rgba(201,162,75,.15);
}
.f-group label { font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 5px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }

/* ---------- Auth (login/register) ---------- */
.auth-card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 20px; box-shadow: 0 24px 60px rgba(92,22,49,.14); }

/* ---------- Footer: dark wine + gold ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--wine-deep), #2b0816);
  color: rgba(255,255,255,.78); border-top: 3px solid var(--gold);
  margin-top: 40px;
}
.site-footer a { color: #e6c877; }
.site-footer h4, .site-footer b { color: #fff; font-family: var(--serif); }
.site-footer .foot-brand { color: #fff; font-family: var(--serif); font-size: 20px; }

/* ---------- Chat header: richer ---------- */
.chat-head { background: linear-gradient(135deg, var(--wine-deep), var(--wine)); color: #fff; box-shadow: 0 4px 18px rgba(43,8,22,.35); }

/* ---------- Toast: gold edge ---------- */
.toast { border: 1px solid rgba(201,162,75,.35); }

/* ---------- Announcement bar ---------- */
.ann-bar { background: linear-gradient(90deg, var(--gold-2), #e6c877 50%, var(--gold-2)); color: #2b0816; font-weight: 700; letter-spacing: .3px; }

/* ---------- Empty state ---------- */
.empty-state { background: var(--card); border: 1px dashed rgba(201,162,75,.5); border-radius: 20px; padding: 34px 20px; }

/* ---------- Request cards ---------- */
.req-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 14px; box-shadow: var(--shadow); }

/* ---------- Pagination ---------- */
.pager .pg { border-radius: 10px; font-weight: 600; border: 1.5px solid var(--line); background: #fff; }
.pager .pg.on { background: linear-gradient(135deg, var(--wine-2), var(--wine)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(92,22,49,.3); }

/* ---------- Mobile bottom nav: dark luxury ---------- */
.bottom-nav {
  background: linear-gradient(180deg, rgba(43,8,22,.97), rgba(30,4,15,.99));
  border-top: 1px solid rgba(201,162,75,.4);
  box-shadow: 0 -8px 30px rgba(43,8,22,.45);
}
.bottom-nav a { color: rgba(255,255,255,.66); }
.bottom-nav a.active { color: #e6c877; }
.bottom-nav .bn-post { background: linear-gradient(135deg, #e6c877, var(--gold-2)); color: #2b0816; }

/* ---------- Badges & chips ---------- */
.badge { background: var(--gold); color: #2b0816; }
.badge.big { box-shadow: 0 2px 10px rgba(201,162,75,.5); }

/* ---------- Scrollbar (desktop) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f3ede4; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold), var(--gold-2)); border-radius: 6px; }

/* logo mark on dark topbar */
.topbar .logo-mark {
  background: linear-gradient(135deg, #e6c877, var(--gold-2)); color: #2b0816;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 4px 12px rgba(201,162,75,.4);
}

/* home section headings: gold rule */
.section-head h2 { font-family: var(--serif); color: var(--wine); position: relative; font-weight: 800; padding-bottom: 8px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 46px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

.support-thread { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 20px; padding: 16px; max-width: 720px; margin: 16px auto; box-shadow: var(--shadow); }
.support-form { display: flex; gap: 10px; margin-top: 12px; align-items: flex-start; }
.support-form textarea { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; font-family: inherit; font-size: 15px; resize: vertical; }
@media (max-width: 640px) { .support-form { flex-direction: column; } }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 16px; margin-bottom: 9px; font-size: 14.5px; box-shadow: 0 1px 6px rgba(92,22,49,.10); }
.b-mine { background: var(--wine-soft); margin-left: auto; border-bottom-right-radius: 4px; }
.b-other { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.b-meta { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.article-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; display: block; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(92,22,49,.16); }
.article-card img { width: 100%; height: 190px; object-fit: cover; }
.article-card .ac-body { padding: 14px 16px 18px; }
.article-card h3 { font-size: 17px; margin-bottom: 5px; color: var(--ink); line-height: 1.35; }
.art-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 18px 0; }
.art-meta { font-size: 12.5px; color: var(--muted); }
.art-body { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; max-width: 820px; margin: 16px auto; box-shadow: var(--shadow); }
.art-body h1 { font-family: var(--serif); font-size: 28px; line-height: 1.25; }
.art-body .art-hero { width: 100%; border-radius: 14px; margin: 14px 0; }
.art-body p { margin: 12px 0; font-size: 16px; line-height: 1.75; }
.art-body h2 { font-family: var(--serif); margin: 22px 0 6px; font-size: 21px; }

.logo-mark svg, .ic-svg { display: block; }
