:root {
  --ink: #24243b;
  --muted: #74748b;
  --pink: #e94e87;
  --pink-dark: #c82f6c;
  --lavender: #f2edff;
  --paper: #fff;
  --line: #ece8f3;
  --shadow: 0 18px 50px rgba(45, 32, 76, .08);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fbf9fd; font-family: "Segoe UI", Arial, sans-serif; line-height: 1.55; }
a { color: var(--pink-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { min-height: 76px; padding: 0 max(24px, calc((100% - 1120px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.04em; }
.brand::before { content: "♡"; color: var(--pink); margin-right: 9px; font-size: 1.7rem; vertical-align: -2px; }
.topbar nav { display: flex; align-items: center; gap: 24px; }
.topbar nav a { color: #55536b; font-weight: 600; font-size: .95rem; }
.topbar nav .nav-cta { color: #fff; background: var(--pink); padding: 10px 16px; border-radius: 12px; }
.nav-dropdown { position: relative; }
.nav-dropdown summary { list-style: none; cursor: pointer; color: #55536b; font-weight: 600; font-size: .95rem; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::after { content: " ▾"; font-size: .78em; }
.nav-dropdown[open] summary { color: var(--pink-dark); }
.nav-dropdown-menu { position: absolute; z-index: 20; top: calc(100% + 12px); left: -14px; min-width: 175px; display: grid; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.topbar nav .nav-dropdown-menu a { display: block; padding: 9px 10px; border-radius: 8px; white-space: nowrap; }
.topbar nav .nav-dropdown-menu a:hover { background: var(--lavender); text-decoration: none; }

.inline { display: inline; margin: 0; }
.navbutton { border: 0; background: none; color: #55536b; font: inherit; font-weight: 600; cursor: pointer; }
.container { width: min(100% - 40px, 1080px); min-height: calc(100vh - 150px); margin: 0 auto; padding: 42px 0 72px; }
.hero { overflow: hidden; position: relative; padding: clamp(40px, 8vw, 88px); border-radius: 30px; background: radial-gradient(circle at 88% 15%, #ffe2ee 0, transparent 29%), linear-gradient(125deg, #f1ebff, #fff0f5 75%, #fff); }
.eyebrow { color: var(--pink-dark); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
h1 { margin: 10px 0 16px; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -.055em; }
.hero h1 span { color: var(--pink); }
.hero p { max-width: 570px; color: #65637a; font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 12px; padding: 12px 19px; color: #fff; background: var(--pink); font-weight: 750; font-size: .96rem; font-family: inherit; cursor: pointer; box-shadow: 0 8px 20px rgba(233, 78, 135, .16); }
.button:hover { background: var(--pink-dark); color: #fff; text-decoration: none; }
.button:disabled { cursor: default; box-shadow: none; opacity: .75; }
.button.secondary { color: #5f527e; background: #eee8fa; box-shadow: none; }
.button.secondary:hover { background: #e4daf7; }
.button.full { width: 100%; margin-top: 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.feature { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.feature-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 14px; color: var(--pink); background: #fff0f6; font-size: 1.7rem; }
.feature h2 { margin: 15px 0 7px; font-size: 1.15rem; }
.feature p, .muted { color: var(--muted); }
.form-card { width: min(100%, 470px); margin: 0 auto; padding: clamp(25px, 5vw, 42px); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.form-card.wide { width: min(100%, 700px); }
.form-card h1 { font-size: 2rem; }
.form { display: grid; gap: 16px; margin-top: 24px; }
.form label { display: grid; gap: 7px; font-size: .92rem; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #ded9e9; border-radius: 11px; padding: 12px 13px; color: var(--ink); background: #fff; font: inherit; outline: none; }
input:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px #ffe6ef; }
input:disabled { background: #f5f3f8; color: #777; }
textarea { resize: vertical; }
small { color: var(--muted); font-weight: 400; }
.form-foot { margin: 22px 0 0; text-align: center; color: var(--muted); }
.notice { margin-bottom: 20px; padding: 13px 16px; border-radius: 12px; color: #78425a; background: #ffedf4; border: 1px solid #fbd2e1; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading h1 { margin-bottom: 8px; font-size: 2.5rem; }
.section-heading p { margin: 0; }
.people-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.person-card { display: flex; align-items: flex-start; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 8px 25px rgba(45,32,76,.035); }
.avatar { flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; color: #b52b67; background: linear-gradient(135deg, #ffe1ec, #e9e0ff); font-size: 1.45rem; font-weight: 800; }
.person-content { min-width: 0; }
.person-content h2 { margin: 0; font-size: 1.2rem; }
.person-content p { margin: 8px 0; overflow-wrap: anywhere; }
.person-content .location, .person-content .interests { font-size: .9rem; }
.location { color: var(--muted); }
.age { color: var(--pink-dark); font-size: .9rem; }
.empty-state { padding: 60px 20px; text-align: center; border: 1px dashed #d9d0e8; border-radius: 22px; background: #fff; }
.empty-state .feature-icon { margin: 0 auto; }
footer { padding: 24px; text-align: center; color: #9994a8; font-size: .86rem; background: #fff; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .topbar { padding: 18px 20px; align-items: flex-start; flex-direction: column; }
  .topbar nav { flex-wrap: wrap; gap: 14px; }
  .nav-dropdown-menu { left: 0; }
  .container { width: min(100% - 28px, 1080px); padding-top: 25px; }
  .feature-grid, .people-list { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
}

/* Снимки на профила */
.photo-section { margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--line); }
.photo-section h2 { margin: 0 0 6px; font-size: 1.3rem; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.photo-item { min-width: 0; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #f5f1f8; }
.photo-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-item form { padding: 7px; }
.photo-delete { width: 100%; border: 0; border-radius: 8px; padding: 7px; color: #9b1c4f; background: #ffedf4; font: inherit; cursor: pointer; }
.photo-upload { margin-top: 16px; padding: 16px; border: 1px dashed #d9d0e8; border-radius: 14px; }
input[type="file"] { padding: 10px; background: #fff; }
.person-photo { flex: 0 0 100px; width: 100px; height: 120px; object-fit: cover; border-radius: 16px; background: #f5f1f8; }
@media (max-width: 520px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .person-photo { flex-basis: 76px; width: 76px; height: 96px; } }

/* Чат между потребителите */
.person-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.person-actions form { margin: 0; }
.person-actions .button { padding: 10px 13px; font-size: .88rem; }
.chat-list { display: grid; gap: 10px; }
.chat-list-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.chat-list-item:hover { border-color: #efb4cb; text-decoration: none; }
.chat-avatar { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: #b52b67; background: linear-gradient(135deg, #ffe1ec, #e9e0ff); font-size: 1.25rem; font-weight: 800; }
.chat-list-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.chat-list-copy > span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread-badge { display: inline-grid; min-width: 25px; height: 25px; padding: 0 7px; place-items: center; color: white; background: var(--pink); border-radius: 99px; font-size: .8rem; font-weight: 800; }
.chat-page { max-width: 820px; margin: 0 auto; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.chat-heading { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.back-link { font-size: .9rem; font-weight: 650; }
.chat-heading-user { display: flex; align-items: center; gap: 13px; margin-top: 15px; }
.chat-heading-user h1 { margin: 0; font-size: 1.55rem; }
.chat-messages { display: flex; flex-direction: column; gap: 10px; height: min(55vh, 540px); min-height: 260px; overflow-y: auto; padding: 20px 2px; }
.chat-bubble { max-width: min(82%, 560px); padding: 11px 14px 8px; border-radius: 17px; overflow-wrap: anywhere; }
.chat-bubble p { margin: 0; white-space: pre-wrap; }
.chat-bubble time { display: block; margin-top: 5px; font-size: .72rem; opacity: .72; text-align: right; }
.chat-bubble.mine { align-self: flex-end; color: #fff; background: var(--pink); border-bottom-right-radius: 5px; }
.chat-bubble.theirs { align-self: flex-start; color: var(--ink); background: #f2edff; border-bottom-left-radius: 5px; }
.chat-empty { margin: auto; text-align: center; }
.chat-compose { display: flex; align-items: flex-end; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); }
.chat-compose textarea { flex: 1; min-height: 48px; max-height: 130px; resize: vertical; }
.chat-compose .button { min-height: 48px; }
.chat-status { min-height: 1.4em; margin: 7px 0 0; color: var(--muted); font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 520px) { .chat-page { padding: 15px; } .chat-compose { align-items: stretch; flex-direction: column; } .chat-compose .button { width: 100%; } .person-actions { flex-direction: column; align-items: stretch; } .person-actions form .button, .person-actions > .button { width: 100%; } }


/* Избиране на интереси в профила */
.interest-picker { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fdfbff; }
.interest-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.interest-picker-head span { color: var(--pink-dark); font-size: .88rem; white-space: nowrap; }
.interest-picker > p { margin: 6px 0 14px; font-size: .88rem; }
.interest-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.interest-option { display: flex !important; align-items: center; gap: 8px !important; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .82rem !important; font-weight: 550 !important; cursor: pointer; }
.interest-option input { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: var(--pink); }
.interest-option input:disabled { cursor: not-allowed; }
.interest-option:has(input:checked) { border-color: #efa5c1; background: #fff0f6; color: #9d2455; }
.interest-limit { color: #a22650 !important; }
.profile-detail { max-width: 900px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.profile-detail > .back-link { display: inline-block; margin: 22px 25px 0; }
.profile-photo-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 22px 25px 0; }
.profile-photo-gallery a { display: block; overflow: hidden; border-radius: 14px; background: #f5f1f8; }
.profile-photo-gallery img { display: block; width: 100%; height: 220px; object-fit: cover; transition: transform .2s ease; }
.profile-photo-gallery a:hover img { transform: scale(1.03); }
.profile-no-photo { display: flex; align-items: center; gap: 12px; margin: 25px 25px 0; color: var(--muted); }
.profile-detail-copy { padding: 25px; }
.profile-detail-copy h1 { margin: 7px 0; font-size: clamp(2rem, 5vw, 3rem); }
.profile-detail-copy .location { margin-top: 0; }
.profile-info-section { margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-info-section h2 { margin: 0 0 12px; font-size: 1.2rem; }
.profile-about { white-space: pre-wrap; overflow-wrap: anywhere; }
.interest-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.interest-tag { display: inline-flex; padding: 8px 12px; border-radius: 999px; color: #8f2853; background: #fff0f6; border: 1px solid #f9d5e3; font-size: .9rem; }
@media (max-width: 760px) { .interest-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-photo-gallery img { height: 170px; } }
@media (max-width: 430px) { .interest-options { grid-template-columns: 1fr; } .profile-detail-copy { padding: 18px; } .profile-photo-gallery { margin-left: 15px; margin-right: 15px; } }

/* Търсене на потребители по град и възраст */
.search-card { margin: 18px 0 24px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.search-form { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(120px, .8fr) minmax(120px, .8fr); gap: 16px; align-items: end; }
.search-form .field { min-width: 0; }
.search-form input { width: 100%; }
.search-form small { display: block; margin-top: 6px; line-height: 1.4; }
.search-actions { display: flex; flex-wrap: wrap; gap: 9px; grid-column: 1 / -1; }
.search-count { margin: 0 0 16px; }
@media (max-width: 650px) { .search-form { grid-template-columns: 1fr 1fr; } .search-form .field:first-child { grid-column: 1 / -1; } .search-actions { grid-column: 1 / -1; } }
@media (max-width: 430px) { .search-card { padding: 15px; } .search-form { grid-template-columns: 1fr; } .search-form .field:first-child, .search-actions { grid-column: auto; } }


/* Административен панел */
.admin-table-wrap { overflow-x: auto; max-width: 100%; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th, .admin-table td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border, #e7e7e7); }
.admin-table th { font-size: .85rem; color: var(--muted, #6b7280); white-space: nowrap; }
.admin-table td { overflow-wrap: anywhere; }
.admin-table small { color: var(--muted, #6b7280); }
/* По-широк преглед на съобщенията в административния панел */
.container:has(.admin-table .admin-message-body) { width: min(100% - 40px, 1500px); }
.admin-table:has(.admin-message-body) { width: 100%; min-width: 1180px; table-layout: fixed; }
.admin-table:has(.admin-message-body) th:nth-child(1), .admin-table:has(.admin-message-body) td:nth-child(1) { width: 170px; }
.admin-table:has(.admin-message-body) th:nth-child(2), .admin-table:has(.admin-message-body) td:nth-child(2),
.admin-table:has(.admin-message-body) th:nth-child(3), .admin-table:has(.admin-message-body) td:nth-child(3) { width: 210px; }
.admin-message-body { white-space: pre-wrap; min-width: 0; max-width: none; overflow-wrap: anywhere; }
.admin-add-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.admin-add-form .button { align-self: end; }
.button.danger { background: #a52d42; color: #fff; border: 0; }
.button.danger:hover { background: #852337; }
@media (max-width: 640px) { .admin-table { min-width: 700px; } }


/* Аудио и видео разговори */
.call-buttons { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.call-panel { margin:16px 0; padding:16px; border:1px solid var(--line); border-radius:16px; background:#f8f6fc; }
.call-panel[hidden], .call-videos[hidden], .call-buttons[hidden] { display:none !important; }
.call-videos { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
.call-videos > div { min-width:0; }
.call-videos video { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; background:#17151d; border-radius:12px; }
.call-videos span { display:block; margin-top:5px; color:var(--muted); font-size:.82rem; }
.call-help { font-size:.82rem; margin-top:12px; }
@media (max-width:520px) { .call-videos { grid-template-columns:1fr; } .call-buttons .button { flex:1; } }


/* IP адреси в административната таблица */
.ip-address-list { display: block; min-width: 180px; max-width: 300px; white-space: pre-line; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.88rem; line-height: 1.55; }


/* Административна карта с приблизителна IP геолокация */
.ip-map { width: 100%; height: min(68vh, 680px); min-height: 360px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border, #e7e7e7); margin: 14px 0; z-index: 0; }
.ip-map-status { margin: 10px 0; }
.leaflet-tooltip { font-weight: 700; box-shadow: 0 1px 5px rgba(0,0,0,.25); }


/* Галерии по пол */
.public-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 30px; }
.gallery-photo { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 14px; background: var(--card, #fff); border: 1px solid var(--border, #e8e1ec); text-decoration: none; color: inherit; box-shadow: 0 4px 16px rgba(35, 20, 45, .06); }
.gallery-photo img { display: block; width: 100%; height: 245px; object-fit: cover; transition: transform .2s ease; }
.gallery-photo:hover img { transform: scale(1.025); }
.gallery-photo-caption { padding: 10px 12px; font-weight: 600; overflow-wrap: anywhere; }
.gallery-photo-caption small { display: block; margin-top: 3px; font-weight: 400; opacity: .72; }
@media (max-width: 850px) { .public-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .public-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .gallery-photo img { height: 190px; } }

/* Profile characteristics */
.form-section-title { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 14px; border-top: 1px solid var(--border, #e5e7eb); }
.profile-characteristics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.profile-characteristics > div { padding: 12px 14px; border: 1px solid var(--border, #e5e7eb); border-radius: 12px; }
.profile-characteristics dt { font-size: .88rem; opacity: .72; margin-bottom: 4px; }
.profile-characteristics dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Административен преглед на акаунт във формата на потребителския профил */
.admin-account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-account-actions form { margin: 0; }
.admin-account-profile { margin-bottom: 28px; }
.admin-account-profile .profile-info-section { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; }

/* Администраторско управление на снимките в профил */
.admin-photo-management { margin: 18px 0 24px; }
.admin-photo-management .photo-upload { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card, #fff); }
.admin-photo-management .photo-upload small { align-self: center; }
.admin-photo-item { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-photo-item > a { display: block; min-width: 0; }
.admin-photo-item form { margin: 0; }
.admin-photo-item .button { width: 100%; padding: 8px 10px; font-size: .85rem; }
@media (max-width: 560px) { .admin-photo-management .photo-upload { grid-template-columns: 1fr; } }

/* Червен фон на „ЧАТ“ при наличие на непрочетени съобщения */
.topbar nav a.nav-chat-unread {
  background: #d71920;
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 800;
  animation: chat-unread-pulse 1.5s ease-in-out infinite;
}
@keyframes chat-unread-pulse {
  0%, 100% { background-color: #d71920; }
  50% { background-color: #a90008; }
}

/* Административен преглед на разговорите */
.admin-chat-select{font-weight:700;text-decoration:none}.admin-chat-select:hover{text-decoration:underline}.admin-chat-selected{background:rgba(190,45,70,.09)}.admin-chat-history{margin-top:22px}.admin-chat-history-list{display:flex;flex-direction:column;gap:12px;max-height:65vh;overflow:auto;padding:4px}.admin-chat-history-message{border:1px solid var(--border,#e5dfe1);border-radius:12px;padding:12px 15px;background:var(--surface,#fff)}.admin-chat-history-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.admin-chat-history-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.admin-chat-history-message small{color:var(--muted,#777)}

/* Admin chat browser: persistent conversation list + independently scrollable history pane */
.admin-chat-layout{display:grid;grid-template-columns:minmax(290px,360px) minmax(0,1fr);gap:20px;align-items:stretch;width:100%;max-width:100%;min-width:0;margin:18px 0 34px}
.admin-chat-sidebar,.admin-chat-detail{min-width:0;min-height:420px;border:1px solid var(--border,#e7e0e2);border-radius:18px;background:var(--surface,#fff);box-shadow:0 8px 28px rgba(30,20,25,.05);overflow:hidden}
.admin-chat-sidebar{display:flex;flex-direction:column;max-height:78vh}
.admin-chat-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 18px;border-bottom:1px solid var(--border,#e7e0e2);background:var(--surface-soft,#faf7f8)}
.admin-chat-sidebar-head h2,.admin-chat-history-head h2{font-size:1.1rem;margin:0;overflow-wrap:anywhere}
.admin-chat-count{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;border-radius:999px;padding:0 8px;background:#f3e4e9;color:#8c2443;font-weight:800}
.admin-conversation-list{overflow:auto;min-height:0}
.admin-conversation{display:flex;align-items:center;gap:11px;padding:14px 13px;border-bottom:1px solid var(--border,#eee7e9);text-decoration:none;color:inherit;min-width:0;transition:background .15s ease}
.admin-conversation:hover{background:rgba(190,45,70,.06)}.admin-conversation.active{background:rgba(190,45,70,.11);box-shadow:inset 4px 0 #b72f4c}
.admin-conversation-avatar{display:flex;align-items:center;justify-content:center;gap:2px;flex:0 0 54px;width:54px;height:48px;border-radius:14px;background:#f4e8ec;color:#8c2443;font-weight:800;font-size:.9rem}
.admin-conversation-avatar span{font-size:.65rem;color:#a66a7c}
.admin-conversation-main{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
.admin-conversation-main strong,.admin-conversation-main small,.admin-conversation-preview{overflow-wrap:anywhere;word-break:break-word}
.admin-conversation-main strong{font-size:.91rem;line-height:1.3}.admin-conversation-main small{font-size:.73rem;color:var(--muted,#6b7280)}.admin-conversation-preview{font-size:.76rem;color:var(--muted,#6b7280);line-height:1.4}
.admin-conversation-action{flex:0 0 auto;font-size:.75rem;font-weight:750;color:#a52c49;white-space:nowrap}
.admin-chat-detail{display:flex;flex-direction:column;max-height:78vh}
.admin-chat-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:19px 22px;border-bottom:1px solid var(--border,#e7e0e2);background:var(--surface-soft,#faf7f8)}
.admin-chat-history-head h2{margin:4px 0 5px}.admin-chat-history-head p{margin:0;font-size:.84rem}.admin-chat-history-head .button{white-space:nowrap}
.admin-chat-history-list{display:flex;flex-direction:column;gap:12px;overflow:auto;min-height:0;padding:18px 20px;overscroll-behavior:contain}
.admin-chat-history-message{max-width:88%;width:fit-content;border:1px solid var(--border,#e5dfe1);border-radius:14px;padding:12px 14px;background:var(--surface,#fff);box-shadow:0 2px 8px rgba(20,10,15,.035)}
.admin-chat-history-message.from-a{align-self:flex-start;border-top-left-radius:4px}.admin-chat-history-message.from-b{align-self:flex-end;background:#f9edf1;border-color:#eed6df;border-top-right-radius:4px}
.admin-chat-history-meta{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap;font-size:.82rem}.admin-chat-history-meta time{font-size:.73rem;color:var(--muted,#777)}
.admin-chat-history-message p{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;margin:8px 0;line-height:1.55}.admin-chat-history-message small{font-size:.72rem;color:var(--muted,#777);overflow-wrap:anywhere}
.admin-chat-empty{display:flex;flex:1;min-height:420px;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;color:var(--muted,#6b7280)}.admin-chat-empty h2{color:var(--text,#29252a);margin:12px 0 6px}.admin-chat-empty p{max-width:340px;margin:0;line-height:1.5}.admin-chat-empty-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:#f6e8ed;color:#a52c49;font-size:2rem}.admin-chat-no-conversations{padding:18px}
@media(max-width:900px){.admin-chat-layout{grid-template-columns:minmax(0,1fr)}.admin-chat-sidebar{max-height:360px;min-height:200px}.admin-chat-detail{max-height:70vh;min-height:360px}.admin-chat-empty{min-height:320px}}
@media(max-width:520px){.admin-chat-layout{gap:12px}.admin-conversation{padding:12px 10px;gap:8px}.admin-conversation-action{font-size:.68rem}.admin-conversation-avatar{flex-basis:44px;width:44px;height:44px}.admin-chat-history-head{padding:15px}.admin-chat-history-list{padding:12px}.admin-chat-history-message{max-width:96%;padding:10px 11px}.admin-chat-detail{max-height:72vh}}

/* Галерии мъже/жени: 4 профила на ред на голям екран */
.public-gallery-profiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  margin: 20px 0 32px;
}
.public-gallery-profiles .gallery-profile-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
}
.public-gallery-profiles .gallery-profile-photo-link {
  display: block;
  flex: none;
  width: 100%;
  margin-bottom: 12px;
  text-decoration: none;
}
.public-gallery-profiles .gallery-profile-photo,
.public-gallery-profiles .gallery-profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: 12px;
  font-size: 2.5rem;
}
.public-gallery-profiles .person-content { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.public-gallery-profiles .person-content h2 { font-size: 1.08rem; }
.public-gallery-profiles .person-content p { font-size: .88rem; }
.public-gallery-profiles .gallery-last-login { font-size: .76rem; margin-top: auto; padding-top: 8px; }
.public-gallery-profiles .person-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.public-gallery-profiles .person-actions .button { width: 100%; box-sizing: border-box; text-align: center; justify-content: center; padding: 9px 10px; font-size: .86rem; }
@media (max-width: 1050px) {
  .public-gallery-profiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 760px) {
  .public-gallery-profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .public-gallery-profiles .gallery-profile-card { padding: 12px; }
}
@media (max-width: 380px) {
  .public-gallery-profiles { grid-template-columns: 1fr; }
}
