:root {
  /* Backgrounds */
  --bg:        #0a0a0c;
  --bg-2:      #15151a;
  --bg-3:      #1f1f26;
  --bg-elev:   #262630;

  /* Lines & text */
  --line:      #2e2e38;
  --line-2:    #3a3a46;
  --text:      #f5f5f7;
  --text-dim:  #d4d4dc;
  --muted:     #9ea0aa;

  /* Brand reds */
  --red:       #e11d2c;
  --red-2:     #ff3344;
  --red-soft:  #ff5d6c;
  --red-deep:  #7a0a14;

  /* Accents */
  --gold:      #f0c651;
  --green:     #2dba6c;
  --blue:      #3aa1ea;

  --radius:    10px;
  --radius-lg: 14px;
  --shadow:    0 8px 28px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(circle at 15% -10%, rgba(225,29,44,.18), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(225,29,44,.10), transparent 50%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--red-soft); text-decoration: none; transition: color .15s; }
a:hover { color: #ff8a96; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ====== HEADER ====== */
.site-header {
  background: linear-gradient(180deg, rgba(20,5,8,.95), rgba(10,10,12,.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(225,29,44,.35);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; gap: 14px; position: relative;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: .3px;
}
.logo:hover { color: var(--text); }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--red-2), var(--red-deep));
  color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 4px 14px rgba(225,29,44,.45);
}
.logo-text { color: #fff; display: inline-flex; flex-direction: column; line-height: 1.1; }
.logo-tag { font-size: 11px; font-weight: 500; color: var(--red-soft); letter-spacing: .4px; opacity: .9; }
@media (max-width: 720px) {
  .logo-tag { font-size: 10px; }
}

.menu-toggle {
  display: none; background: var(--bg-3); border: 1px solid var(--line);
  color: var(--text); width: 42px; height: 42px; border-radius: 10px;
  font-size: 22px; cursor: pointer; padding: 0;
}
.menu-toggle:hover { background: var(--red-deep); border-color: var(--red); color: #fff; }

.main-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text-dim); font-weight: 500; font-size: 14px;
  padding: 6px 0; position: relative;
}
.main-nav a:hover { color: var(--red-soft); }
.main-nav a.btn { padding: 8px 14px; }
.badge {
  display: inline-block; min-width: 18px; padding: 1px 7px;
  background: var(--red); color: #fff; border-radius: 10px;
  font-size: 11px; font-weight: 700; text-align: center; line-height: 16px;
  margin-left: 4px;
}

/* ====== FOOTER ====== */
.site-footer {
  margin-top: 60px; padding: 30px 0 24px;
  color: var(--muted); border-top: 1px solid var(--line);
  font-size: 13px;
}
.site-footer .copyright { text-align: center; margin: 16px 0 0; font-size: 12.5px; }
.seo-block {
  max-width: 940px; margin: 0 auto;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 24px;
}
.seo-block h2 {
  margin: 0 0 12px; font-size: 18px; color: var(--text);
  font-weight: 700; letter-spacing: .2px;
}
.seo-block p {
  margin: 0 0 10px; color: var(--text-dim); font-size: 13.5px; line-height: 1.6;
  text-align: justify;
}
.seo-block p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .seo-block { padding: 16px 18px; }
  .seo-block h2 { font-size: 16px; }
  .seo-block p { font-size: 13px; text-align: left; }
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 10px;
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line-2); cursor: pointer;
  font-weight: 600; font-size: 14px;
  transition: all .15s ease;
  text-align: center; gap: 6px;
  font-family: inherit; line-height: 1.2;
}
.btn:hover { background: var(--bg-elev); color: var(--text); border-color: var(--line-2); }
.btn-primary {
  background: linear-gradient(180deg, var(--red-2) 0%, var(--red) 100%);
  border-color: var(--red-deep); color: #fff;
  box-shadow: 0 4px 14px rgba(225,29,44,.45);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--red-soft), var(--red-2));
  color: #fff; box-shadow: 0 6px 18px rgba(225,29,44,.55);
}
.btn-ghost { background: transparent; }
.btn-danger { background: #5d0e16; border-color: #931622; color: #ffdde0; }
.btn-danger:hover { background: var(--red-deep); color: #fff; }
.btn-sm  { padding: 7px 13px; font-size: 13px; }
.btn-block { width: 100%; }

/* ====== FORMS ====== */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form label { color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: .2px; }
.form input[type=text], .form input[type=email], .form input[type=password],
.form input[type=number], .form input[type=tel], .form select, .form textarea {
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 11px 13px; font-size: 15px; width: 100%;
  font-family: inherit; line-height: 1.3;
  transition: border-color .15s, box-shadow .15s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--red-2);
  box-shadow: 0 0 0 3px rgba(225,29,44,.20);
}
.form select { appearance: none; background-image:
  linear-gradient(45deg, transparent 50%, #d4d4dc 50%),
  linear-gradient(135deg, #d4d4dc 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat; padding-right: 32px;
}
.form textarea { min-height: 130px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.muted { color: var(--muted); font-size: 13px; }
.field-hint { color: var(--muted); font-size: 12px; }
.form input[type=file] {
  background: var(--bg-2); color: var(--text-dim); padding: 9px;
  border: 1px dashed var(--line-2); border-radius: 10px; width: 100%;
}
.form input[type=file]::file-selector-button {
  background: var(--bg-3); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 6px 12px; margin-right: 10px;
  cursor: pointer; font-weight: 600;
}

/* Checkboxes / chips */
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: 999px; cursor: pointer; font-size: 13px;
  color: var(--text-dim);
  transition: all .15s;
  user-select: none;
}
.check input { accent-color: var(--red-2); margin: 0; }
.check:hover { border-color: var(--red-soft); color: #fff; }
.check:has(input:checked) {
  background: rgba(225,29,44,.20); border-color: var(--red-2); color: #fff;
}

/* ====== TITLES ====== */
.page-title {
  font-size: 26px; font-weight: 700; margin: 24px 0 16px;
  letter-spacing: -.2px;
}
.page-title .sub { color: var(--muted); font-size: 14px; font-weight: 400; margin-left: 10px; }

/* ====== FILTERS ====== */
.filters {
  background: var(--bg-2); padding: 14px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); margin-bottom: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.filters .filter-row {
  display: grid;
  grid-template-columns: 220px 130px 130px auto auto;
  gap: 10px; align-items: center;
}
.filters select, .filters input {
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text);
  padding: 10px 12px; border-radius: 9px; font-size: 14px;
  font-family: inherit; width: 100%;
}
.filters select:focus, .filters input:focus {
  outline: none; border-color: var(--red-2);
  box-shadow: 0 0 0 3px rgba(225,29,44,.2);
}
.filter-interests-btn {
  position: relative; justify-content: center; gap: 8px;
  background: var(--bg-3); border-color: var(--line-2);
}
.filter-interests-btn:hover { background: var(--bg-elev); border-color: var(--red-soft); color: #fff; }
.filter-interests-btn .badge { background: var(--red); position: static; margin-left: 0; }

.filter-selected {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.filter-selected .fi-label {
  font-size: 13px; color: var(--muted); font-weight: 500; margin-right: 4px;
}
.chip-selected {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px 5px 11px; border-radius: 999px;
  background: rgba(225,29,44,.18); color: #fff;
  border: 1px solid rgba(225,29,44,.55);
  font-size: 12px; font-weight: 500;
  transition: background .15s;
}
.chip-selected:hover { background: rgba(225,29,44,.32); color: #fff; }
.chip-selected .rm {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.35); font-size: 13px; font-weight: 700;
  line-height: 1;
}

/* ====== MODAL ====== */
.modal {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0, 0, 0, .75);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  animation: lb-fade .15s ease-out;
}
.modal.open { display: flex; }
.modal-dialog {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); width: 100%; max-width: 520px;
  max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
  overflow: hidden;
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 18px; color: #fff; font-weight: 700; }
.modal-close {
  background: transparent; border: none; color: var(--text-dim);
  width: 36px; height: 36px; border-radius: 50%; font-size: 26px;
  cursor: pointer; line-height: 1; font-weight: 300;
  display: grid; place-items: center;
}
.modal-close:hover { background: var(--bg-3); color: #fff; }
.modal-search { padding: 14px 20px 8px; }
.modal-search input {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line-2);
  color: var(--text); padding: 11px 13px; border-radius: 10px;
  font-size: 15px; font-family: inherit;
}
.modal-search input:focus {
  outline: none; border-color: var(--red-2);
  box-shadow: 0 0 0 3px rgba(225,29,44,.2);
}
.modal-body {
  flex: 1; overflow-y: auto;
  padding: 8px 20px 16px;
  -webkit-overflow-scrolling: touch;
}
.modal-body .checks { gap: 8px; }
.modal-body .check { padding: 9px 14px; font-size: 14px; }
.modal-empty { text-align: center; padding: 24px 0; }
.modal-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.modal-counter { color: var(--muted); font-size: 13px; }
.modal-counter [data-count] { color: var(--red-soft); font-weight: 700; }

.modal-dialog.modal-sm { max-width: 460px; }

/* ====== RATING ====== */
.rating-block {
  margin-top: 18px; padding: 14px 16px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.rating-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 2px; }
.star {
  position: relative; background: none; border: none; padding: 0;
  width: 30px; height: 30px; cursor: pointer;
  font-size: 28px; line-height: 1; display: inline-block;
  color: #444; transition: transform .12s;
}
.star:disabled { cursor: default; }
.star:not(:disabled):hover { transform: scale(1.12); }
.star .s-bg, .star .s-fg {
  position: absolute; top: 0; left: 0; height: 100%;
  display: block; pointer-events: none;
  line-height: 1; font-size: 28px;
}
.star .s-bg { color: #3a3a44; width: 100%; }
.star .s-fg {
  color: var(--gold);
  overflow: hidden; white-space: nowrap;
  width: 0;
  text-shadow: 0 0 6px rgba(240,198,81,.45);
}
.star.filled .s-fg { width: 100% !important; }

.rating-meta { display: flex; flex-direction: column; gap: 2px; }
.rating-headline { font-size: 16px; font-weight: 700; color: #fff; }
.rating-headline .r-avg { font-size: 22px; }
.rating-headline .r-percent { color: var(--gold); font-size: 14px; margin-left: 4px; }
.rating-count { color: var(--muted); font-size: 12.5px; }
.rating-count .r-mine { color: var(--red-soft); font-weight: 600; }
.rating-hint { margin-top: 8px; font-size: 13px; }

@media (max-width: 720px) {
  .rating-block { padding: 12px 14px; }
  .star { width: 32px; height: 32px; font-size: 30px; }
  .star .s-bg, .star .s-fg { font-size: 30px; }
}

.phone-reveal {
  background: linear-gradient(180deg, var(--red-2), var(--red));
  border-color: var(--red-deep); color: #fff;
  font-weight: 700;
}
.phone-reveal:hover {
  background: linear-gradient(180deg, var(--red-soft), var(--red-2));
  color: #fff; border-color: var(--red-deep);
}

/* Phone reveal modal */
.phone-modal-body { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px; }
.warning-box {
  background: linear-gradient(180deg, rgba(225,29,44,.16), rgba(122,10,20,.06));
  border: 1px solid rgba(225,29,44,.5);
  border-radius: var(--radius); padding: 14px 16px;
}
.warning-title {
  font-weight: 800; color: #ffc4cb; font-size: 15px;
  margin-bottom: 8px; letter-spacing: .2px;
}
.warning-list { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.warning-list li { margin-bottom: 5px; }
.warning-list li:last-child { margin-bottom: 0; }
.warning-list b { color: #fff; }

.phone-display {
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; text-align: center;
  background: var(--bg-3); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 18px;
}
.phone-loader { color: var(--muted); padding: 14px 0; }
.phone-error { color: #ffc4cb; padding: 12px 0; font-size: 14px; }
.phone-number {
  font-size: 26px; font-weight: 800; color: #fff;
  letter-spacing: 1px; font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.phone-number:hover { color: var(--red-soft); }
.phone-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.phone-actions .btn { padding: 9px 18px; }

@media (max-width: 720px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal-dialog {
    max-width: 100%; max-height: 92vh;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
  }
  .modal-head { padding: 14px 16px; }
  .modal-search { padding: 12px 16px 6px; }
  .modal-body { padding: 6px 16px 14px; }
  .modal-foot { padding: 12px 16px; }
  .modal-body .check { padding: 11px 16px; font-size: 14px; }

  .phone-modal-body { padding: 14px 16px; gap: 14px; }
  .phone-number { font-size: 22px; }
  .phone-display { padding: 14px; }
}

/* ====== GRID OF CARDS ====== */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  position: relative;
  color: var(--text);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 14px 32px rgba(225,29,44,.22);
}
.card.pinned {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(240,198,81,.35), 0 6px 22px rgba(240,198,81,.18);
}
.card .photo {
  position: relative; aspect-ratio: 3/4;
  background: #0d0d10;
  overflow: hidden;
}
.card .photo > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.card .card-link {
  display: flex; flex-direction: column; flex: 1; min-height: 0;
  text-decoration: none; color: inherit;
}
.card .badges {
  position: absolute; top: 8px; left: 8px; right: 8px;
  display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none;
}
.card .badges .col { display: flex; flex-direction: column; gap: 5px; }
.card .badges .col.right { align-items: flex-end; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.badge-pin { background: rgba(240,198,81,.95); color: #2a1d00; }
.badge-ok  { background: rgba(45,186,108,.92); color: #fff; }
.badge-photo { background: rgba(58,161,234,.92); color: #fff; }
.badge-hidden { background: rgba(0,0,0,.7); color: #ffb6bd; border: 1px solid rgba(255,255,255,.1); }

.card .body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .body h3 { margin: 0; font-size: 17px; color: #fff; font-weight: 700; letter-spacing: -.1px; }
.card .body .meta { color: var(--muted); font-size: 13px; }
.card .body .price {
  color: #fff; font-weight: 700; font-size: 14px; margin-top: auto; padding-top: 6px;
}
.card .body .price .accent { color: var(--red-soft); }

/* ====== PROFILE DETAIL ====== */
.profile {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px;
  margin-top: 20px;
}
.gallery .main-photo {
  aspect-ratio: 3/4; background: #0d0d10;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow); position: relative; cursor: zoom-in;
  transition: transform .15s, border-color .15s;
  overflow: hidden;
}
.gallery .main-photo > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.gallery .main-photo[data-lightbox-open]:hover { border-color: var(--red-2); }
.gallery .main-photo[data-lightbox-open]:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; }
.gallery .main-photo .zoom-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: rgba(0,0,0,.65); color: #fff; padding: 6px 12px;
  border-radius: 999px; font-size: 12px; font-weight: 500;
  backdrop-filter: blur(4px); pointer-events: none;
  opacity: 0; transition: opacity .15s;
}
.gallery .main-photo:hover .zoom-hint { opacity: 1; }
@media (hover: none) {
  .gallery .main-photo .zoom-hint { opacity: 1; bottom: 10px; font-size: 11px; padding: 5px 10px; }
}
.gallery .thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.gallery .thumbs img {
  width: 78px; height: 100px; object-fit: cover; border-radius: 9px;
  cursor: pointer; border: 2px solid transparent; opacity: .8;
  transition: all .15s;
}
.gallery .thumbs img:hover { opacity: 1; }
.gallery .thumbs img.active { border-color: var(--red-2); opacity: 1; }

.detail h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.4px; line-height: 1.15; }
.detail .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.tag {
  background: rgba(225,29,44,.15); color: #ffc4cb;
  border: 1px solid rgba(225,29,44,.45);
  padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 500;
}
.tag.gold  { background: rgba(240,198,81,.16); color: var(--gold); border-color: rgba(240,198,81,.5); }
.tag.green { background: rgba(45,186,108,.16); color: #7fe2a3; border-color: rgba(45,186,108,.55); }
.tag.blue  { background: rgba(58,161,234,.16); color: #8acdef; border-color: rgba(58,161,234,.55); }
.tag.gray  { background: var(--bg-3); color: var(--muted); border-color: var(--line-2); }

.detail dl {
  display: grid; grid-template-columns: 160px 1fr;
  row-gap: 10px; column-gap: 18px;
  margin: 18px 0;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 16px 18px; border-radius: var(--radius-lg);
}
.detail dt { color: var(--muted); font-size: 13px; }
.detail dd { margin: 0; color: var(--text); font-weight: 500; font-size: 14px; }
.detail dd a { color: var(--red-soft); }
.detail .description {
  background: var(--bg-2); padding: 16px 18px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); white-space: pre-wrap;
  color: var(--text-dim); margin-top: 14px; line-height: 1.6;
}
.detail .price-block {
  margin-top: 16px; padding: 16px 18px;
  background: linear-gradient(135deg, rgba(225,29,44,.20), rgba(122,10,20,.12));
  border: 1px solid rgba(225,29,44,.45); border-radius: var(--radius-lg);
}
.detail .price-block .row-prices { display: flex; gap: 28px; flex-wrap: wrap; }
.detail .price-block .row-prices .item { display: flex; flex-direction: column; gap: 2px; }
.detail .price-block .row-prices .item .l { font-size: 12px; color: #ffc4cb; text-transform: uppercase; letter-spacing: .5px; }
.detail .price-block .row-prices .item .v { color: #fff; font-size: 22px; font-weight: 800; }
.detail .actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.detail .interests-block { margin-top: 6px; }
.detail .interests-block .label { color: var(--muted); font-size: 13px; margin-bottom: 6px; }

/* ====== COMMENTS ====== */
.comments { margin-top: 40px; }
.comments h2 { font-size: 22px; margin-bottom: 14px; }
.comment {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 16px; margin-bottom: 10px;
}
.comment .who { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.comment .who b { color: var(--red-soft); font-size: 14px; }
.comment .who time { color: var(--muted); font-size: 12px; }
.comment .body { margin-top: 8px; white-space: pre-wrap; color: var(--text-dim); line-height: 1.55; }

/* ====== MESSAGES / CHAT ====== */
.chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; margin-top: 14px; height: calc(100vh - 220px); min-height: 480px; }
.chat-list {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow-y: auto;
}
.chat-list a {
  display: block; padding: 12px 15px; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.chat-list a:hover { background: var(--bg-3); color: var(--text); }
.chat-list a.active { background: rgba(225,29,44,.18); color: #fff; border-left: 3px solid var(--red); padding-left: 12px; }
.chat-list .name { font-weight: 600; }
.chat-list .preview { color: var(--muted); font-size: 12px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list .unread {
  float: right; background: var(--red); color: #fff; border-radius: 10px;
  padding: 1px 8px; font-size: 11px; font-weight: 700; line-height: 16px;
}

.chat-window {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; min-height: 0;
}
.chat-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
}
.chat-peer { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-peer-name { font-weight: 700; font-size: 16px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-peer-status { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #888; flex-shrink: 0; }
.online-dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(45,186,108,.18); }
.online-dot.off { background: #555; }

.chat-actions { position: relative; }
.chat-menu-btn { background: var(--bg-3); padding: 6px 10px; font-size: 18px; line-height: 1; }
.chat-menu {
  position: absolute; right: 0; top: 100%; margin-top: 6px; z-index: 5;
  background: var(--bg-elev); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 8px; min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}

.chat-banner {
  padding: 10px 14px; font-size: 13px; text-align: center;
  border-bottom: 1px solid var(--line);
}
.chat-banner.warn { background: rgba(225,29,44,.12); color: #ffc4cb; }

.chat-messages {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 30% 10%, rgba(225,29,44,.05), transparent 50%),
    var(--bg-2);
}
.chat-empty { text-align: center; padding: 30px 0; }

.bubble {
  max-width: 75%; padding: 9px 13px 6px; border-radius: 16px;
  font-size: 14px; line-height: 1.45;
  display: flex; flex-direction: column; gap: 4px;
  word-wrap: break-word; overflow-wrap: anywhere;
  animation: bubble-in .18s ease-out;
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bubble.in {
  background: var(--bg-3); border: 1px solid var(--line);
  align-self: flex-start; border-top-left-radius: 4px;
  color: var(--text);
}
.bubble.out {
  background: linear-gradient(180deg, #d11626, #a30f1c);
  color: #fff; align-self: flex-end; border-top-right-radius: 4px;
  box-shadow: 0 3px 10px rgba(225,29,44,.25);
}
.bubble-text { white-space: pre-wrap; }
.bubble-meta {
  display: flex; align-items: center; gap: 5px; justify-content: flex-end;
  font-size: 10.5px; opacity: .78;
}
.bubble-meta time { font-variant-numeric: tabular-nums; }
.tick { font-weight: 600; letter-spacing: -2px; }
.tick.sent { color: rgba(255,255,255,.7); }
.tick.read { color: #6cd99a; opacity: 1; }
.bubble.in .tick { display: none; }
.bubble-photo {
  display: block; border-radius: 10px; overflow: hidden;
  max-width: 240px;
}
.bubble-photo img { width: 100%; height: auto; display: block; max-height: 340px; object-fit: cover; }

.typing-indicator {
  padding: 4px 16px 6px; color: var(--muted); font-size: 12.5px;
  display: flex; align-items: center; gap: 4px;
  background: var(--bg-2);
}
.typing-indicator .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--red-soft);
  margin: 0 1px; display: inline-block;
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-indicator .dot:nth-child(2) { animation-delay: .2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: .4s; }
@keyframes typing-bounce {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.chat-input {
  display: flex; gap: 6px; align-items: flex-end;
  padding: 10px 12px; border-top: 1px solid var(--line);
  background: var(--bg-2); position: relative;
}
.chat-input textarea {
  flex: 1; min-height: 42px; max-height: 140px;
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 18px;
  padding: 10px 14px; font-size: 14px; resize: none; font-family: inherit;
  line-height: 1.35;
}
.chat-input textarea:focus { outline: none; border-color: var(--red-2); box-shadow: 0 0 0 3px rgba(225,29,44,.2); }
.chat-input .btn { padding: 0; width: 42px; height: 42px; border-radius: 50%; font-size: 18px; line-height: 1; flex-shrink: 0; }
.chat-icon-btn {
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text);
  width: 42px; height: 42px; border-radius: 50%; font-size: 20px; line-height: 1;
  cursor: pointer; display: inline-grid; place-items: center; flex-shrink: 0;
  padding: 0;
}
.chat-icon-btn:hover { background: var(--bg-elev); border-color: var(--red-soft); }

.chat-preview {
  position: absolute; left: 12px; bottom: calc(100% + 4px);
  background: var(--bg-elev); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 4px; display: inline-flex; align-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
}
.chat-preview img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
.chat-preview .rm {
  position: absolute; top: -8px; right: -8px;
  background: var(--red); color: #fff; border: none; border-radius: 50%;
  width: 22px; height: 22px; cursor: pointer; font-weight: 700;
}

.emoji-panel {
  position: absolute; left: 12px; bottom: calc(100% + 6px);
  background: var(--bg-elev); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 8px;
  display: grid; grid-template-columns: repeat(10, 1fr);
  gap: 2px; width: 360px; max-width: calc(100% - 24px);
  max-height: 220px; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.55); z-index: 6;
}
.emoji-panel[hidden] { display: none; }
.emoji-btn {
  background: transparent; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; padding: 5px;
  border-radius: 6px;
}
.emoji-btn:hover { background: var(--bg-3); }

/* ====== AUTH ====== */
.auth-box {
  max-width: 440px; margin: 50px auto;
  background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow);
}
.auth-box h1 { margin: 0 0 18px; font-size: 24px; }
.auth-box .alt { margin-top: 22px; color: var(--muted); text-align: center; font-size: 13px; }

/* ====== FLASH ====== */
.flash {
  padding: 11px 16px; margin: 14px 0; border-radius: var(--radius);
  font-size: 14px; line-height: 1.4; font-weight: 500;
}
.flash-ok { background: rgba(45,186,108,.18); border: 1px solid rgba(45,186,108,.5); color: #b7f0c8; }
.flash-error { background: rgba(225,29,44,.20); border: 1px solid rgba(225,29,44,.55); color: #ffc4cb; }

/* ====== PHOTOS MANAGER ====== */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-grid .ph {
  position: relative; aspect-ratio: 3/4;
  background: #0d0d10 50% 50% / cover no-repeat;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.photo-grid .ph .rm {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.78); color: #fff;
  border: none; border-radius: 50%; width: 28px; height: 28px;
  cursor: pointer; font-weight: 700; font-size: 16px; line-height: 1;
}
.photo-grid .ph .rm:hover { background: var(--red); }

/* ====== HERO ====== */
.hero {
  background:
    linear-gradient(135deg, rgba(122,10,20,.6), rgba(11,11,13,.65)),
    radial-gradient(circle at 30% 20%, rgba(225,29,44,.45), transparent 60%);
  padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid rgba(225,29,44,.35);
  margin: 24px 0 20px;
  box-shadow: var(--shadow);
}
.hero h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.4px; }
.hero p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ====== ADMIN ====== */
.admin-nav {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 16px 0; padding: 8px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.admin-nav a {
  padding: 9px 16px; border-radius: 8px; color: var(--text-dim);
  font-weight: 500; transition: all .15s; font-size: 14px;
}
.admin-nav a:hover { background: var(--bg-3); color: var(--text); }
.admin-nav a.active { background: linear-gradient(180deg, var(--red), var(--red-deep)); color: #fff; }

table.data {
  width: 100%; border-collapse: collapse;
  background: var(--bg-2); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line);
}
table.data th, table.data td {
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  text-align: left; font-size: 14px; vertical-align: middle;
}
table.data th {
  background: var(--bg-3); color: var(--red-soft);
  font-weight: 600; font-size: 12px; letter-spacing: .4px; text-transform: uppercase;
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(225,29,44,.06); }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin: 16px 0;
}
.stat {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px;
}
.stat .v { font-size: 28px; font-weight: 800; color: var(--red-soft); line-height: 1; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 6px; }

.inline-form { display: inline-block; margin: 0 2px; }

.user-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px 22px;
}
.user-info {
  display: grid; grid-template-columns: 140px 1fr;
  row-gap: 8px; column-gap: 18px; margin: 0;
}
.user-info dt { color: var(--muted); font-size: 13px; }
.user-info dd { margin: 0; color: var(--text); font-weight: 500; font-size: 14px; }
@media (max-width: 720px) {
  .user-info { grid-template-columns: 110px 1fr; }
}

/* ====== LIGHTBOX ====== */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .92);
  align-items: center; justify-content: center;
  user-select: none;
  animation: lb-fade .15s ease-out;
}
.lightbox.open { display: flex; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox .lb-stage {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 80px;
  overflow: hidden;
}
.lightbox .lb-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  touch-action: pan-y;
  cursor: grab;
}
.lightbox .lb-img:active { cursor: grabbing; }

.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute; z-index: 2;
  background: rgba(20,20,24,.85);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, transform .15s, border-color .15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox .lb-close:hover,
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover {
  background: var(--red); border-color: var(--red);
  transform: scale(1.08);
}

.lightbox .lb-close {
  top: 14px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 28px; font-weight: 300; line-height: 1;
}
.lightbox .lb-prev,
.lightbox .lb-next {
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 38px; font-weight: 300; line-height: 1;
  padding-bottom: 4px;
}
.lightbox .lb-prev { left: 14px; }
.lightbox .lb-next { right: 14px; }
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { transform: translateY(-50%) scale(1.08); }

.lightbox .lb-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(20,20,24,.85); color: #fff;
  padding: 6px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
}

@media (max-width: 720px) {
  .lightbox .lb-stage { padding: 60px 16px 60px; }
  .lightbox .lb-close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 24px; }
  .lightbox .lb-prev, .lightbox .lb-next {
    width: 44px; height: 44px; font-size: 30px;
    top: auto; bottom: 14px; transform: none;
    background: rgba(20,20,24,.92);
  }
  .lightbox .lb-prev { left: 14px; }
  .lightbox .lb-next { right: 14px; }
  .lightbox .lb-prev:hover, .lightbox .lb-next:hover { transform: scale(1.05); }
  .lightbox .lb-counter { bottom: 22px; }
}

/* ===================== */
/* ====== MOBILE  ====== */
/* ===================== */
@media (max-width: 880px) {
  .filters .filter-row { grid-template-columns: 1fr 1fr; }
  .filters .filter-row > select { grid-column: 1 / -1; }
  .filters .filter-row > .btn { grid-column: auto; }

  .profile { grid-template-columns: 1fr; gap: 18px; }
  .chat-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .container { padding: 0 12px; }

  /* header */
  .nav { padding: 11px 12px; gap: 10px; }
  .logo { font-size: 17px; }
  .logo-mark { width: 30px; height: 30px; font-size: 15px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2);
    border-top: 1px solid var(--red-deep);
    border-bottom: 1px solid var(--red-deep);
    padding: 8px 12px 14px;
    flex-direction: column; align-items: stretch; gap: 0;
    box-shadow: 0 10px 24px rgba(0,0,0,.55);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 13px 8px; border-bottom: 1px solid var(--line);
    font-size: 15px; color: var(--text);
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.btn { margin-top: 8px; padding: 11px 14px; text-align: center; }

  /* titles & hero */
  .page-title { font-size: 21px; margin: 16px 0 12px; }
  .page-title .sub { display: block; margin-left: 0; margin-top: 2px; }
  .hero { padding: 20px; margin: 18px 0 14px; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 13.5px; }

  /* grid cards — на мобилке одна колонка */
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { border-radius: 14px; flex-direction: row; }
  .card .photo { width: 140px; min-width: 140px; aspect-ratio: 3/4; border-radius: 14px 0 0 14px; }
  .card .body { padding: 12px 14px; flex: 1; min-width: 0; }
  .card .body h3 { font-size: 17px; }
  .card .body .meta { font-size: 13px; }
  .card .body .price { font-size: 14px; }
  .badge-pill { font-size: 10px; padding: 3px 8px; }
  .card .badges { top: 6px; left: 6px; right: 6px; }

  /* filters */
  .filters { padding: 11px; gap: 10px; border-radius: 12px; }
  .filters .filter-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .filters .filter-row > select { grid-column: 1 / -1; }
  .filters .filter-row > .btn { grid-column: auto; }
  .filters select, .filters input { font-size: 14px; padding: 10px 12px; }
  .filters .btn { padding: 10px 14px; }
  .filter-interests { padding-top: 10px; }
  .filter-interests .fi-label { width: 100%; margin-bottom: 4px; }

  /* forms */
  .form { gap: 13px; }
  .form .row, .form .row-3 { grid-template-columns: 1fr; gap: 12px; }
  .form input, .form select, .form textarea { font-size: 16px; padding: 12px 13px; }

  /* profile detail */
  .detail h1 { font-size: 23px; }
  .detail dl { grid-template-columns: 120px 1fr; padding: 14px; row-gap: 8px; column-gap: 12px; font-size: 13px; }
  .detail dd { font-size: 13.5px; }
  .detail .price-block { padding: 14px; }
  .detail .price-block .row-prices { gap: 18px; }
  .detail .price-block .row-prices .item .v { font-size: 19px; }
  .detail .description { padding: 14px; font-size: 13.5px; }
  .gallery .thumbs img { width: 60px; height: 80px; }

  /* auth */
  .auth-box { margin: 20px 6px; padding: 22px 20px; }
  .auth-box h1 { font-size: 20px; }

  /* chat */
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-list { max-height: 160px; }
  .chat-window { border-radius: 12px; min-height: 70vh; }
  .chat-messages { padding: 12px; }
  .bubble { max-width: 88%; font-size: 14px; }
  .chat-header { padding: 10px 12px; }
  .chat-input { padding: 8px 10px; gap: 5px; }
  .chat-input textarea { font-size: 16px; min-height: 40px; padding: 9px 12px; }
  .chat-input .btn, .chat-icon-btn { width: 40px; height: 40px; font-size: 17px; }
  .emoji-panel { grid-template-columns: repeat(8, 1fr); width: calc(100vw - 24px); max-width: 360px; }
  .bubble-photo { max-width: 200px; }

  /* admin */
  .admin-nav { gap: 4px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding: 6px; }
  .admin-nav a { white-space: nowrap; padding: 8px 12px; font-size: 13px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .stat { padding: 13px; border-radius: 12px; }
  .stat .v { font-size: 22px; }
  table.data {
    font-size: 12.5px;
    display: block; overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  table.data th, table.data td { padding: 8px 10px; }

  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .btn { padding: 11px 16px; }
  .btn-sm { padding: 8px 12px; }
  .checks { gap: 6px; }
  .check { font-size: 12.5px; padding: 6px 11px; }

  .comments h2 { font-size: 18px; }
  .comment { padding: 12px 14px; }
}

@media (max-width: 420px) {
  .card .photo { width: 120px; min-width: 120px; }
  .card .body h3 { font-size: 15.5px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .detail dl { grid-template-columns: 100px 1fr; }
}

/* ===== SEO additions ===== */
.breadcrumbs { margin: 14px 0 6px; }
.breadcrumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: var(--muted);
}
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li:not(:first-child)::before {
  content: '›'; margin-right: 8px; color: var(--muted); opacity: .55;
}
.breadcrumbs li a { color: var(--muted); text-decoration: none; }
.breadcrumbs li a:hover { color: var(--red-soft); }
.breadcrumbs li [aria-current="page"] { color: #fff; }

.hero-sub {
  color: var(--muted); margin: 6px 0 0; font-size: 14.5px; max-width: 720px;
}
.hero-sub a { color: var(--red-soft); }

.city-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px; margin: 18px 0 8px;
}
.city-tile {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; color: #fff; text-decoration: none;
  display: flex; flex-direction: column; gap: 3px;
  transition: border-color .15s, transform .15s;
}
.city-tile:hover { border-color: var(--red); transform: translateY(-2px); }
.city-tile .ct-name { font-weight: 700; font-size: 15px; }
.city-tile .ct-count { color: var(--muted); font-size: 12.5px; }

.page-seo {
  margin: 36px 0 6px; line-height: 1.6; color: #c9cdd4; font-size: 14.5px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 22px;
}
.page-seo h2 { font-size: 19px; color: #fff; margin: 0 0 10px; }
.page-seo h3 { font-size: 16px; color: #fff; margin: 16px 0 8px; }
.page-seo p { margin: 0 0 10px; color: var(--text-dim); }
.page-seo .seo-city-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
}
.page-seo .seo-city-links a { color: var(--red-soft); text-decoration: none; }
.page-seo .seo-city-links a:hover { text-decoration: underline; }

/* Visually-hidden (for SEO-only headings) */
.visually-hidden {
  position: absolute !important; height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* Support FAB */
.support-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--red), #b30c1f);
  color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
  box-shadow: 0 10px 28px rgba(225,29,44,.45), 0 2px 8px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .15s, box-shadow .15s;
}
.support-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(225,29,44,.55); }
.support-fab .sf-ico { font-size: 16px; line-height: 1; }
@media (max-width: 640px) {
  .support-fab { right: 12px; bottom: 12px; padding: 11px 14px; font-size: 13px; }
}

/* ===== Admin stats ===== */
.stat-controls {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin: 14px 0 18px;
}
.stat-controls .seg {
  display: inline-flex; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.stat-controls .seg a {
  padding: 7px 14px; color: var(--muted); text-decoration: none; font-size: 13px;
}
.stat-controls .seg a.active { background: var(--red); color: #fff; }

.chart-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; margin-bottom: 18px;
}
.chart-card h2 { margin: 0 0 10px; font-size: 16px; color: #fff; }
.chart-card .chart-wrap { position: relative; height: 280px; }
.chart-card .chart-wrap.small { height: 220px; }
.chart-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 860px) { .chart-grid { grid-template-columns: 1fr; } }

.legend-flag { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

table.data.compact th, table.data.compact td { padding: 8px 10px; font-size: 13px; }
