/* ============================================================
   SugarTube Profile Page — xHamster-style layout
   ============================================================ */

/* ---- Layout ---- */
.profile-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 16px 48px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .profile-page {
    grid-template-columns: 1fr;
  }
}

/* ---- Left Sidebar ---- */
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-avatar-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d0d0da 0%, #a0a0b0 100%);
  font-size: 72px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
  text-transform: uppercase;
}

/* Completeness bar */
.profile-completeness {
  margin-top: 8px;
  padding: 0 2px;
}

.profile-completeness-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.profile-completeness-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.profile-completeness-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

/* Online indicator */
.profile-online-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.profile-online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, .3);
  animation: pulse-dot 2s infinite;
}

.profile-offline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(76, 175, 80, .3);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(76, 175, 80, .1);
  }
}

.profile-offline-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Rank */
.profile-rank {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.profile-rank .material-symbols-outlined {
  font-size: 16px;
  color: var(--gold);
}

/* Stat rows */
.profile-stats {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-stat-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-dim);
}

.profile-stat-row .material-symbols-outlined {
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-stat-row strong {
  font-weight: 700;
  color: var(--text);
}

/* ---- Main Content ---- */
.profile-main {
  min-width: 0;
}

/* Header row */
.profile-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.profile-username {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.profile-gender-icon {
  font-size: 18px;
  color: #e91e8c;
}

.profile-gender-icon.male {
  color: var(--blue);
}

.profile-verified-badge {
  display: inline-flex;
  align-items: center;
  color: var(--green);
  font-size: 20px;
}

/* Action buttons */
.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-subscribe {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-subscribe:hover,
.btn-subscribe.subscribed {
  background: #333;
}

.btn-subscribe.subscribed {
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-friend {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-friend:hover {
  background: var(--bg-hover);
}

.btn-friend.friends {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn-friend.pending {
  background: var(--gold);
  color: #333;
  border-color: var(--gold);
}

.btn-message {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background var(--trans);
}

.btn-message:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.btn-icon-only {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 20px;
  transition: background var(--trans);
}

.btn-icon-only:hover {
  background: var(--bg-hover);
}

/* Tab Navigation */
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
  display: none;
}

.profile-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--trans), border-color var(--trans);
  margin-bottom: -1px;
}

.profile-tab:hover {
  color: var(--text);
}

.profile-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Tab Panels */
.profile-panel {
  display: none;
}

.profile-panel.active {
  display: block;
}

/* About / Personal Info Card */
.profile-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.profile-info-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.profile-info-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-info-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  font-size: 13px;
}

.profile-info-label {
  color: var(--text-muted);
  font-weight: 500;
}

.profile-info-value {
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-gender-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
}

.profile-flag {
  font-size: 16px;
}

/* Show more toggle */
.profile-show-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0 0;
  transition: color var(--trans);
}

.profile-show-more:hover {
  color: var(--text);
}

.profile-show-more .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.2s;
}

.profile-show-more.open .material-symbols-outlined {
  transform: rotate(180deg);
}

.profile-info-extra {
  display: none;
  margin-top: 10px;
}

.profile-info-extra.visible {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* About text / Bio */
.profile-bio-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Comments section */
.profile-comments {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.profile-comments h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-comments h3 .material-symbols-outlined {
  font-size: 18px;
  color: var(--text-muted);
}

/* Video Grid (inside tab) */
.profile-videos-tab .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Friends tab */
.profile-friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.profile-friend-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 16px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--trans);
}

.profile-friend-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.profile-friend-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-friend-card .friend-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.profile-friend-card .friend-name:hover {
  color: var(--red);
}

/* ---- No content state ---- */
.profile-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.profile-empty .material-symbols-outlined {
  font-size: 48px;
  display: block;
  margin: 0 auto 12px;
  color: var(--border);
}

/* ---- Login prompt ---- */
.profile-login-prompt {
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.profile-login-prompt a {
  color: var(--red);
  font-weight: 600;
}

/* ================================================================
   DATING PAGE
   ================================================================ */

.dating-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px;
}

@media screen and (min-width: 1366px) and (max-width: 1535px) {
  body:not(.fullwidth-layout) .dating-page {
    max-width: 1366px;
  }
}

/* Header */
.dating-page-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 20px;
}

.dating-header-icon {
  font-size: 22px !important;
  color: var(--red);
}

.dating-page-header h1 {
  font-size: 20px !important;
  font-weight: 700 !important;
}

/* ── Search + Ad Row ── */
.dating-search-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 50px;
}

.dating-search-row .dating-search-panel {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.st-promo {
  width: 300px;
  flex-shrink: 0;
}

.st-promo:empty {
  display: none;
}

@media (max-width: 900px) {
  .dating-search-row {
    flex-direction: column;
  }

  .st-promo {
    width: 100%;
  }
}

/* ── Search Panel ── */
.dating-search-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 29px 20px;
}

body.theme-dark .dating-search-panel {
  background: #1a1a24;
}

.dsf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.dsf-row:last-child {
  margin-bottom: 0;
}

/* Labelled groups (row 1) */
.dsf-group-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dsf-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.dsf-icon {
  font-size: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

.dsf-selects-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.dsf-row-top {
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

/* Select wrapper */
.dsf-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dsf-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 34px 8px 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  min-width: 150px;
  transition: border-color .15s;
}

/* Dark mode select overrides */
body.theme-dark .dsf-select {
  background: #1e1e26;
  border-color: #2a2a35;
  color: #fff;
}

body.theme-dark .dsf-select option {
  background: #1e1e26;
  color: #fff;
}

.dsf-select:focus {
  outline: none;
  border-color: var(--red);
}

.dsf-select-arrow {
  position: absolute;
  right: 8px;
  font-size: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.dsf-select-age {
  min-width: 80px;
}

.dsf-select-country {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dsf-select-country .dsf-select {
  flex: 1;
}

.dsf-row-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--text-dim);
}

.dsf-city-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Age range */
.dsf-group-age {
  margin-left: auto;
}

.dsf-age-range {
  align-items: center;
}

.dsf-age-dash {
  font-size: 15px;
  color: var(--text-muted);
  padding: 0 2px;
}

/* City input */
.dsf-city-wrap {
  flex: 1;
  min-width: 180px;
}

.dsf-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  transition: border-color .15s;
}

.dsf-input::placeholder {
  color: var(--text-muted);
}

.dsf-input:focus {
  outline: none;
  border-color: var(--red);
}

/* Geo button */
.dsf-geo-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  transition: border-color .15s, color .15s;
}

.dsf-geo-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.dsf-geo-btn .material-symbols-outlined {
  font-size: 18px;
}

/* Checkboxes row */
.dsf-checkboxes {
  gap: 20px;
  flex-wrap: wrap;
}

.dsf-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.dsf-checkbox input[type="checkbox"] {
  display: none;
}

.dsf-check-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}

.dsf-check-icon {
  font-size: 16px;
  margin-right: 2px;
}

.dsf-checkbox input[type="checkbox"]:checked+.dsf-check-box {
  background: var(--red);
  border-color: var(--red);
}

.dsf-checkbox input[type="checkbox"]:checked+.dsf-check-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

/* Bottom row */
.dsf-row-bottom {
  align-items: center;
  margin-top: 4px;
}

.dsf-username {
  max-width: 220px;
  min-width: 160px;
}

.dsf-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.dsf-advanced-link {
  font-size: 14px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  opacity: .75;
  transition: opacity .15s;
}

.dsf-advanced-link:hover {
  opacity: 1;
}

.dsf-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}

.dsf-search-btn:hover {
  opacity: .88;
}

.dsf-search-btn .material-symbols-outlined {
  font-size: 18px;
}

/* ── Category Tabs ── */
.dating-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.dating-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 4px 4px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -1px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}

.dating-tab-icon {
  font-size: 16px;
}

.dating-tab:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.dating-tab.active {
  color: var(--text);
  font-weight: 700;
  background: var(--bg-card);
  border-color: var(--border);
}

/* Results count */
.dating-results-header {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Cards Grid ── */
.dating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.dating-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .15s;
}

.dating-card:hover {
  border-color: var(--text-dim);
}

.dating-card-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: var(--bg);
}

.dating-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}

.dating-card:hover .dating-card-thumb img {
  transform: scale(1.04);
}

.dating-card-online {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid var(--bg-card);
  border-radius: 50%;
}

.dating-card-verified {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #4CAF50;
  border-radius: 50%;
}

.dating-card-verified .material-icons {
  font-size: 13px;
  color: #fff;
}

.dating-card-bottom {
  padding: 8px 10px 10px;
}

.dating-card-name {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.dating-card-username {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dating-card-age {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 400;
  flex-shrink: 0;
}

.dating-card-location {
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dating-card-letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dating-card-letter div {
  font-size: 42px;
  font-weight: 700;
  color: rgba(0, 0, 0, .55);
  line-height: 1;
}

.dating-card-flag {
  display: inline-flex;
  align-items: center;
  margin-left: 3px;
  line-height: 1;
}

.dating-card-flag .fi {
  font-size: 12px;
  width: 16px;
  height: 12px;
  border-radius: 1px;
  display: inline-block;
  vertical-align: middle;
}

/* Empty state */
.dating-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.dating-empty-icon {
  font-size: 52px;
  opacity: .3;
}

.dating-empty p {
  margin-top: 12px;
}

/* dating-pagination uses global .pagination styles */

/* ── Countries Page ── */
.dating-countries-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color .15s;
}

.dating-countries-back:hover {
  color: var(--text);
}

.dating-countries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dating-country-card {
  flex: 1 1 160px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s;
}

.dating-country-card:hover {
  border-color: var(--text-dim);
}

.dating-country-flag {
  flex-shrink: 0;
  width: 24px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  overflow: hidden;
}

.dating-country-flag .fi {
  width: 24px;
  height: 18px;
  display: block;
}

.dating-country-flag-letter {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.dating-country-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dating-country-count {
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.dating-cities-title {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--text);
}

.dating-city-icon {
  font-size: 20px;
  color: var(--text-dim);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .dating-countries-grid {
    gap: 6px;
  }

  .dating-country-card {
    flex: 1 1 140px;
    padding: 8px 10px;
    gap: 8px;
  }

  .dating-country-name {
    font-size: 12px;
  }

  .dating-country-count {
    font-size: 10px;
  }
}

/* ── Advanced search panel ── */
.dsf-advanced-panel {
  display: none;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 14px;
}

.dsf-advanced-panel.dsf-advanced-open {
  display: block;
}

/* Interests row */
.dsf-adv-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.dsf-adv-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .05em;
  min-width: 130px;
  padding-top: 10px;
  flex-shrink: 0;
}

.dsf-adv-field {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dsf-interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dsf-interest-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.dsf-interest-tag:hover,
.dsf-interest-tag.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* 2-column grid for advanced selects */
.dsf-adv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 8px;
}

.dsf-adv-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dsf-adv-cell-label {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 100px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .dsf-adv-grid {
    grid-template-columns: 1fr;
  }

  .dsf-adv-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .dsf-adv-cell-label {
    min-width: 0;
  }

  .dsf-adv-row {
    flex-direction: column;
  }

  .dsf-adv-label {
    padding-top: 0;
    min-width: 0;
  }
}

/* Dashboard profile section titles */
.dash-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.dash-field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: -4px 0 6px;
}

/* Dashboard styled selects */
.dash-select-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.dash-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 10px 36px 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.dash-select:hover {
  border-color: var(--text-muted);
}

.dash-select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.dash-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 20px;
  color: var(--text-muted);
}

.dash-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}

.dash-input:hover {
  border-color: var(--text-muted);
}

.dash-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

/* Dashboard Tabs */
.dash-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.dash-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}

.dash-tab-icon {
  font-size: 18px;
}

.dash-form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-form-group label .label-icon {
  font-size: 16px;
  opacity: 0.7;
}

.dash-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-section-title .label-icon {
  font-size: 20px;
  opacity: 0.8;
}

.dash-tab:hover {
  color: var(--text);
}

.dash-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.dash-tab-content {
  display: none;
}

.dash-tab-content.active {
  display: block;
}

@media (max-width: 640px) {
  .dash-tabs {
    gap: 0;
  }

  .dash-tab {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Dating Search Mobile */
@media (max-width: 768px) {
  .dating-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }

  .dating-card-username {
    font-size: 12px;
  }

  .dating-card-age {
    font-size: 11px;
  }

  .dating-card-city {
    font-size: 11px;
  }

  .dating-card-bottom {
    padding: 6px 8px 8px;
  }

  .dating-search-panel {
    padding: 8px;
  }

  .dsf-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 8px;
  }

  .dsf-row-top {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
  }

  .dsf-group {
    width: 100%;
  }

  .dsf-group-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .dsf-selects-inline {
    flex-direction: row;
    width: 100%;
    gap: 4px;
  }

  .dsf-select-wrap {
    flex: 1;
    min-width: 0;
  }

  .dsf-select {
    width: 100%;
    font-size: 11px;
    padding: 6px 8px;
  }

  .dsf-label {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .dsf-row-bottom {
    flex-direction: row;
    gap: 6px;
  }

  .dsf-username {
    flex: 1;
    width: auto;
    max-width: none;
    min-width: auto;
    font-size: 11px;
    padding: 6px 8px;
  }

  .dsf-actions {
    width: auto;
    justify-content: flex-end;
    margin-left: 0;
    gap: 6px;
    flex-shrink: 0;
  }

  .dsf-advanced-link {
    font-size: 10px;
  }

  .dsf-search-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .dsf-search-btn .material-symbols-outlined {
    font-size: 14px;
  }

  .dsf-advanced-panel {
    padding: 6px;
  }

  .dsf-adv-row {
    flex-direction: column;
    gap: 4px;
  }

  .dsf-adv-label {
    font-size: 10px;
  }

  .dsf-adv-field {
    width: 100%;
  }

  .dsf-input {
    width: 100%;
    font-size: 11px;
    padding: 6px 8px;
  }

  .dsf-interest-tags {
    flex-wrap: wrap;
    gap: 3px;
  }

  .dsf-interest-tag {
    font-size: 9px;
    padding: 3px 5px;
  }

  .dsf-row-icon {
    display: none;
  }

  .dsf-age-dash {
    font-size: 10px;
  }


}