/* ==========================================================================
   Meetora — base design system (themes override tokens + layout)
   ========================================================================== */
:root {
  --bg: #f7f5fa;
  --surface: #ffffff;
  --surface-2: #f1eef6;
  --text: #1d1a24;
  --muted: #6d6778;
  --border: #e5e0ec;
  --primary: #e2336b;
  --primary-2: #8b3dff;
  --primary-contrast: #ffffff;
  --accent: #ffb020;
  --success: #17a36b;
  --danger: #d93a3a;
  --warning: #e09a00;
  --online: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(30, 20, 60, .08);
  --shadow-lg: 0 18px 50px rgba(30, 20, 60, .16);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head: var(--font-body);
  --maxw: 1240px;
  --gutter: 16px;
  --header-h: 68px;
  --card-ratio: 4 / 5;
  --grid-min: 200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.ic { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; flex: none; }
.ic.fill { fill: currentColor; stroke: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 36px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.1; cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--primary-contrast); box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-primary:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 42%, transparent); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--primary) 12%); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=date], .field input[type=tel], .field input[type=url], .field input[type=search], .field select, .field textarea, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; min-height: 44px;
}
.field textarea, textarea.input { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); outline: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.chips-input { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-block; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; font-size: .88rem; cursor: pointer; background: var(--surface); transition: .15s; }
.chip-opt input:checked + span { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }
.chip-opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form-narrow { max-width: 460px; margin: 32px auto; }
.errors { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.errors ul { margin: 0; padding-inline-start: 18px; }

/* ---------- Flash / toast ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin: 12px 0; font-weight: 500; }
.flash-success { background: color-mix(in srgb, var(--success) 12%, var(--surface)); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.flash-error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.flash-info { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.toast-wrap { position: fixed; inset-inline: 0; bottom: 18px; display: grid; justify-items: center; gap: 8px; z-index: 1000; pointer-events: none; padding: 0 16px; }
.toast { background: #1d1a24; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); pointer-events: auto; max-width: 480px; animation: toastIn .25s ease; }
.toast.error { background: var(--danger); }
.toast a { color: #fff; text-decoration: underline; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Header (default) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none !important; font-family: var(--font-head); }
.logo img { height: 36px; width: auto; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a { color: var(--text); padding: 8px 12px; border-radius: 10px; font-weight: 500; text-decoration: none; }
.main-nav a:hover, .main-nav a.active { background: var(--surface-2); color: var(--primary); }
.header-actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .header-actions .hide-sm { display: none; }
}
.mobile-drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.mobile-drawer.open { display: block; }
.mobile-drawer .backdrop { position: absolute; inset: 0; background: rgba(10, 5, 20, .45); }
.mobile-drawer .panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(86vw, 340px); background: var(--surface); padding: 20px; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slideIn .2s ease; }
.mobile-drawer .panel a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; color: var(--text); font-weight: 500; }
.mobile-drawer .panel a:hover { background: var(--surface-2); text-decoration: none; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
[dir=rtl] .mobile-drawer .panel { animation-name: slideInRtl; }
@keyframes slideInRtl { from { transform: translateX(-30px); opacity: 0; } }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; display: none; z-index: 60; max-height: 70vh; overflow-y: auto; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; color: var(--text); background: none; border: 0; cursor: pointer; text-align: start; font-size: .93rem; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); text-decoration: none; }
.dropdown-menu a.active { color: var(--primary); font-weight: 600; }
.lang-menu { columns: 2; min-width: 320px; }
.lang-menu a { break-inside: avoid; }
.avatar-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 3px; border-radius: 999px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.avatar-lg { width: 96px; height: 96px; }
.badge-count { background: var(--danger); color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 6px; font-weight: 700; }

/* ---------- Slider ---------- */
.slider { position: relative; overflow: hidden; border-radius: var(--radius); background: #1d1a24; isolation: isolate; aspect-ratio: 21 / 8; min-height: 280px; }
.slides { display: flex; height: 100%; transition: transform .6s cubic-bezier(.22, .8, .2, 1); }
[dir=rtl] .slides { flex-direction: row-reverse; }
.slide { position: relative; flex: 0 0 100%; height: 100%; display: flex; align-items: center; color: #fff; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, var(--ov, .45)), rgba(0, 0, 0, calc(var(--ov, .45) * .3))); z-index: -1; }
.slide-content { padding: clamp(20px, 5vw, 64px); max-width: 680px; }
.slide.align-center { justify-content: center; text-align: center; }
.slide.align-center .slide-content { margin: 0 auto; }
.slide.align-right { justify-content: flex-end; text-align: end; }
.slide h2 { font-size: clamp(1.5rem, 4vw, 3rem); margin-bottom: .3em; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.slide p { font-size: clamp(.95rem, 1.6vw, 1.2rem); opacity: .92; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); }
.slider-nav:hover { background: rgba(255, 255, 255, .32); }
.slider-nav.prev { inset-inline-start: 14px; }
.slider-nav.next { inset-inline-end: 14px; }
.slider-dots { position: absolute; bottom: 14px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; padding: 0; transition: .25s; }
.slider-dots button.active { width: 26px; background: #fff; }
.slider-progress { position: absolute; top: 0; inset-inline-start: 0; height: 3px; background: var(--accent); width: 0; }
@media (max-width: 640px) { .slider { aspect-ratio: 4 / 3.4; } .slider-nav { display: none; } }

/* ---------- Country grid ---------- */
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.country-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); transition: .15s; min-width: 0; }
.country-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.country-card .flag, .country-card .flag-emoji { border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); flex: none; }
.flag-emoji { font-size: 1.4em; line-height: 1; }
.country-card .cname { font-weight: 600; font-size: .94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.country-card .ccount { font-size: .78rem; color: var(--muted); }
.country-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.country-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .9rem; }
.country-chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.country-chip .flag { border-radius: 50%; width: 22px; height: 22px; object-fit: cover; }
.continent-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.continent-tabs button { border: 1px solid var(--border); background: var(--surface); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; }
.continent-tabs button.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.country-search { max-width: 320px; }

/* ---------- Member cards ---------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--grid-min), 1fr)); gap: 16px; }
@media (max-width: 520px) { .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.mcard { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; min-width: 0; }
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mcard-media { position: relative; display: block; aspect-ratio: var(--card-ratio); background: var(--surface-2); overflow: hidden; }
.mcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mcard:hover .mcard-media img { transform: scale(1.04); }
.mcard-body { padding: 10px 12px 12px; min-width: 0; }
.mcard-body h3 { font-size: 1rem; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard-body h3 a { color: var(--text); }
.mcard .loc { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard .loc .flag { width: 18px; height: auto; border-radius: 2px; }
.mcard .tags { font-size: .78rem; color: var(--muted); margin: 6px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard-stats { display: flex; gap: 12px; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.mcard-stats span { display: inline-flex; align-items: center; gap: 4px; }
.dot-online { position: absolute; top: 10px; inset-inline-end: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.badge-plan { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--c, #888); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.badge-video { position: absolute; bottom: 10px; inset-inline-end: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .72rem; padding: 3px 8px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.verified { color: #1d9bf0; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.badge-c { background: var(--c); color: #fff; }

/* ---------- Pricing ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; align-items: stretch; }
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; transition: .2s; }
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.plan-card.popular { border: 2px solid var(--c, var(--primary)); box-shadow: var(--shadow-lg); }
.plan-card .ribbon { position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--c, var(--primary)); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
[dir=rtl] .plan-card .ribbon { transform: translateX(50%); }
.plan-card .plan-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.plan-card h3 { margin: 0; font-size: 1.2rem; }
.plan-price { font-size: 2rem; font-weight: 800; font-family: var(--font-head); }
.plan-price { font-size: 1.75rem; line-height: 1.15; }
.plan-price small { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }
.plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .9rem; flex: 1; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; }
.plan-features li .ic { color: var(--success); margin-top: 3px; }
.plan-features li.no { color: var(--muted); text-decoration: line-through; }
.plan-features li.no .ic { color: var(--muted); }

/* ---------- Profile ---------- */
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.card h2, .card h3 { margin-bottom: 12px; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: #111; aspect-ratio: 4 / 5; max-height: 78vh; width: 100%; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--surface-2); position: relative; }
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .3); }
.profile-head h1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.profile-meta span { display: inline-flex; gap: 6px; align-items: center; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.profile-stats div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.profile-stats b { display: block; font-size: 1.25rem; }
.profile-stats small { color: var(--muted); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-like.liked { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-like.liked .ic { fill: currentColor; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fact { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.fact small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.fact b { font-weight: 600; font-size: .95rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--surface-2); padding: 5px 11px; border-radius: 999px; font-size: .85rem; }
.about-text { white-space: pre-line; }
.contact-box { display: grid; gap: 8px; }
.contact-box .btn { justify-content: flex-start; }
.comments { display: grid; gap: 12px; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment .bubble { background: var(--surface-2); border-radius: 14px; padding: 9px 13px; flex: 1; min-width: 0; }
.comment .bubble b a { color: var(--text); }
.comment .bubble p { margin: 3px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.comment .meta { font-size: .75rem; color: var(--muted); display: flex; gap: 10px; margin-top: 4px; }
.comment .meta button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font-size: .75rem; }
.comment.pending .bubble { opacity: .65; border: 1px dashed var(--border); }

/* Share */
.share-menu .dropdown-menu { min-width: 200px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 16px; }
.modal.open { display: grid; }
.modal .backdrop { position: absolute; inset: 0; background: rgba(10, 5, 20, .55); }
.modal .dialog { position: relative; background: var(--surface); border-radius: var(--radius); padding: 22px; width: min(480px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal .close { position: absolute; top: 12px; inset-inline-end: 12px; }

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; padding: 24px 0 48px; }
@media (max-width: 860px) { .account-layout { grid-template-columns: 1fr; } }
.account-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; position: sticky; top: calc(var(--header-h) + 12px); }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 500; }
.account-nav a:hover { background: var(--surface-2); text-decoration: none; }
.account-nav a.active { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
@media (max-width: 860px) { .account-nav { position: static; display: flex; overflow-x: auto; gap: 4px; } .account-nav a { white-space: nowrap; } }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-card small { color: var(--muted); display: block; }
.stat-card b { font-size: 1.6rem; font-family: var(--font-head); }
.progress { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: 99px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 5; border: 2px solid transparent; }
.media-item.is-avatar { border-color: var(--primary); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item .state { position: absolute; top: 8px; inset-inline-start: 8px; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; }
.media-item .state.pending { background: var(--warning); }
.media-item .state.rejected { background: var(--danger); }
.media-item .tools { position: absolute; bottom: 0; inset-inline: 0; display: flex; gap: 6px; padding: 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); justify-content: flex-end; }
.media-item .tools button { background: rgba(255, 255, 255, .9); border: 0; border-radius: 8px; padding: 5px 8px; cursor: pointer; font-size: .78rem; color: #222; }
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; background: var(--surface); cursor: pointer; transition: .2s; }
.dropzone.drag { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.upload-queue { display: grid; gap: 8px; margin-top: 12px; }
.upload-row { display: flex; gap: 10px; align-items: center; font-size: .88rem; }
.upload-row .progress { flex: 1; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: middle; }
.table th { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); }
.status.completed, .status.approved, .status.active { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.status.pending, .status.review { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); }
.status.failed, .status.cancelled, .status.rejected, .status.banned, .status.suspended { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }

/* ---------- Messages ---------- */
.inbox-list { display: grid; gap: 2px; }
.inbox-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; color: var(--text); }
.inbox-item:hover { background: var(--surface-2); text-decoration: none; }
.inbox-item.unread { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.inbox-item .preview { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat { display: flex; flex-direction: column; height: min(72vh, 720px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.msg { max-width: 76%; padding: 9px 13px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); align-self: flex-start; overflow-wrap: anywhere; white-space: pre-line; }
.msg.mine { align-self: flex-end; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border: 0; }
.msg time { display: block; font-size: .68rem; opacity: .7; margin-top: 3px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; border-radius: 22px; padding: 11px 16px; border: 1px solid var(--border); background: var(--surface); }

/* ---------- Checkout ---------- */
.pay-methods { display: grid; gap: 12px; }
.pay-method { border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; display: flex; gap: 14px; align-items: center; background: var(--surface); }
.pay-method:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.pay-method input { accent-color: var(--primary); width: 20px; height: 20px; }
.pay-method .pm-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-size: 1.4rem; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.bank-acc { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface-2); font-size: .92rem; }
.bank-acc code { font-size: .95rem; background: var(--surface); padding: 2px 6px; border-radius: 6px; user-select: all; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Filters ---------- */
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 18px; }
.filters .field { margin: 0; min-width: 130px; flex: 1; }
.filters .field.narrow { max-width: 110px; min-width: 90px; }
.filters .checks { display: flex; gap: 14px; align-items: center; padding-bottom: 10px; }

/* ---------- Ads ---------- */
.ad-slot { margin: 18px auto; text-align: center; position: relative; }
.ad-slot img { margin: 0 auto; border-radius: var(--radius-sm); }
.ad-label { display: block; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.member-grid .ad-slot { grid-column: 1 / -1; }

/* ---------- Stats strip / hero bits ---------- */
.stats-strip { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; }
.stats-strip div { text-align: center; }
.stats-strip b { display: block; font-size: 1.6rem; font-family: var(--font-head); }
.stats-strip small { color: var(--muted); }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin: 16px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { color: var(--muted); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .ic { width: 42px; height: 42px; margin: 0 auto 10px; display: block; }
.seo-text { color: var(--muted); font-size: .95rem; }
.prose { max-width: 780px; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius-sm); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--border); padding: 36px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.footer-countries { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.footer-countries a { color: var(--muted); font-size: .85rem; }

/* ---------- Cookie consent ---------- */
.cookie-consent { position: fixed; bottom: 16px; inset-inline: 16px; max-width: 560px; margin: 0 auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px; z-index: 400; font-size: .9rem; }
.cookie-consent p { margin: 0 0 10px; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .92); z-index: 500; display: none; place-items: center; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; }
.lightbox .lb-close { top: 16px; inset-inline-end: 16px; }
.lightbox .lb-prev { inset-inline-start: 16px; top: 50%; }
.lightbox .lb-next { inset-inline-end: 16px; top: 50%; }

/* ---------- Utilities / misc ---------- */
.hide { display: none !important; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.w-100 { width: 100%; }
.pill-note { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.lock-note { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .9rem; }
.admin-bar { background: #111; color: #fff; font-size: .8rem; padding: 6px 0; }
.admin-bar a { color: #ffd166; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .ad-slot, .cookie-consent { display: none !important; } }
.country-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 24px; }
.country-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--border); color: var(--text); }
.country-row:hover { color: var(--primary); text-decoration: none; }
.country-row .flag { border-radius: 3px; }

.filter-box > summary { list-style: none; display: none; margin-bottom: 12px; }
.filter-box > summary::-webkit-details-marker { display: none; }
@media (max-width: 760px) { .filter-box > summary { display: inline-flex; } .filters .field { min-width: calc(50% - 6px); } }
