*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #fff7fb;
  --surface: rgba(255,255,255,0.88);
  --primary: #ff6aa2;
  --primary-hover: #f04e8e;
  --text: #2d2230;
  --text-secondary: #7f6b78;
  --border: rgba(255,154,196,0.28);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 28px rgba(255,106,162,0.10);
  --shadow-lg: 0 18px 48px rgba(255,106,162,0.18);
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif; background: radial-gradient(circle at 12% 8%, #ffe1ef 0, transparent 28%), radial-gradient(circle at 88% 12%, #dff5ff 0, transparent 26%), linear-gradient(135deg, #fff8fc 0%, #f7fbff 52%, #fff2df 100%); color: var(--text); line-height: 1.6; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.navbar { background: rgba(255,255,255,0.72); border-bottom: 1px solid rgba(255,255,255,0.75); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(18px); box-shadow: 0 8px 30px rgba(255,106,162,0.08); }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; padding: 0 18px; height: 64px; gap: 24px; }
.nav-logo { font-size: 22px; font-weight: 900; color: var(--primary); text-decoration: none; letter-spacing: 0.3px; }
.nav-links { list-style: none; display: flex; gap: 4px; flex: 1; }
.nav-links li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.nav-links li a:hover { background: #fff1f7; color: var(--primary); transform: translateY(-1px); }
.nav-links li a.active {
  background: linear-gradient(135deg, #ff6aa2, #ffa45f);
  color: var(--primary);
  color: white;
  box-shadow: 0 10px 22px rgba(255,106,162,0.22);
}
.nav-links li a.nav-clicking {
  transform: scale(0.96);
}
.nav-links li a.nav-clicking::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.42);
  transform: translate(-50%, -50%) scale(1);
  animation: navTapRipple 0.42s ease-out;
  pointer-events: none;
}
@keyframes navTapRipple {
  from { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(9); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.bio-edit-wrapper { margin-top: 8px; width: 100%; }
.bio-edit-textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; font-family: inherit; resize: vertical; min-height: 70px; box-sizing: border-box; }
.bio-edit-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,106,162,0.12); }
.bio-edit-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.bio-char-count { font-size: 12px; color: var(--text-secondary); margin-right: auto; }

.toast-message { position: fixed; top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px); background: linear-gradient(135deg, #ff6aa2, #ffa45f); color: white; padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(255,106,162,0.3); opacity: 0; transition: all 0.3s ease; z-index: 10000; pointer-events: none; }
.toast-message.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fff5f9 0%, #f0f8ff 100%);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-transition-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.page-transition-overlay::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,106,162,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.post-skeleton {
  pointer-events: none;
}
.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0e8ec 25%, #faf2f5 50%, #f0e8ec 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #f0e8ec 25%, #faf2f5 50%, #f0e8ec 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 8px;
}
.skeleton-author {
  width: 100px;
  height: 16px;
}
.skeleton-time {
  width: 60px;
  height: 12px;
  margin-top: 6px;
  margin-bottom: 0;
}
.skeleton-short {
  width: 60%;
}
.skeleton-btn {
  width: 70px;
  height: 28px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f0e8ec 25%, #faf2f5 50%, #f0e8ec 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.nav-links li a.nav-logout { color: #e74c3c; }
.nav-user { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.mini-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.85); box-shadow: 0 6px 14px rgba(255,106,162,0.18); }

.badge { background: #ff4d7d; color: white; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 800; vertical-align: top; box-shadow: 0 4px 10px rgba(255,77,125,0.25); }

.container { max-width: 1100px; margin: 0 auto; padding: 20px 16px 80px; }

.site-footer { text-align: center; padding: 20px 16px; border-top: 1px solid rgba(0,0,0,0.06); margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.footer-inner a { color: var(--primary); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }
.footer-sep { color: var(--text-secondary); opacity: 0.5; }

.auth-page { display: flex; justify-content: center; padding-top: 60px; }
.auth-card { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); width: 100%; max-width: 400px; border: 1px solid rgba(255,255,255,0.82); backdrop-filter: blur(12px); }
.auth-card h1 { font-size: 24px; margin-bottom: 24px; text-align: center; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; background: rgba(255,255,255,0.78); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,106,162,0.14); transform: translateY(-1px); }
.form-group textarea { min-height: 80px; resize: vertical; font-family: inherit; }
.form-error { color: #e74c3c; font-size: 14px; margin-bottom: 12px; padding: 8px; background: #fff0f0; border-radius: var(--radius); }
.auth-link { text-align: center; margin-top: 16px; font-size: 14px; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; background: rgba(255,255,255,0.78); color: var(--text); box-shadow: 0 6px 14px rgba(127,107,120,0.08); }
.btn:hover { background: #fff7fb; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(255,106,162,0.14); }
.btn-primary { background: linear-gradient(135deg, #ff6aa2, #ffa45f); color: white; border-color: transparent; }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-hover), #ff9447); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-danger { background: linear-gradient(135deg, #ff5c5c, #ff8a5b); color: white; border-color: transparent; }
.btn-danger:hover { background: linear-gradient(135deg, #e54848, #ff7443); }
.btn-small { padding: 4px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }
.btn-action { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border: none; background: transparent; border-radius: var(--radius); font-size: 14px; cursor: pointer; color: var(--text-secondary); transition: all 0.2s; }
.btn-action:hover { background: #fff1f7; color: var(--primary); transform: translateY(-1px); }
.btn-action.liked { color: #e74c3c; }
.btn-action .icon { font-size: 16px; }
.btn-action .count { font-size: 13px; }
.btn-delete:hover { color: #e74c3c; background: #fff0f0; }

.feed-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.feed-header h1 { font-size: 22px; font-weight: 700; }
.lang-selector { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.lang-selector select { padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; background: var(--surface); }

/* Feed header right section */
.feed-header-right { display: flex; align-items: center; gap: 12px; }
.feed-post-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.feed-post-btn .post-btn-icon { line-height: 1; }

/* Post modal */
.post-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.post-modal { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.post-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 16px; }
.post-modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-secondary); padding: 4px 8px; border-radius: 8px; }
.post-modal-close:hover { background: #fff0f5; color: #e74c3c; }
.post-modal-body { padding: 20px; }
.post-modal-body textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-size: 15px; resize: vertical; font-family: inherit; background: rgba(255,255,255,0.76); }
.post-modal-body textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,106,162,0.12); }
.post-photos-preview { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; min-height: 0; }
.photo-thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-remove:hover { background: rgba(231,76,60,0.9); }
.post-modal-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.photo-count-hint { font-size: 12px; color: var(--text-secondary); margin-right: auto; }

/* Post photos grid */
.post-photos { display: grid; gap: 4px; margin: 10px 0; border-radius: var(--radius); overflow: hidden; }
.post-photos.photos-1 { grid-template-columns: 1fr; max-width: 320px; }
.post-photos.photos-1 .post-photo-item { aspect-ratio: 4/3; }
.post-photos.photos-2 { grid-template-columns: 1fr 1fr; }
.post-photos.photos-3 { grid-template-columns: 1fr 1fr 1fr; }
.post-photos.photos-4 { grid-template-columns: 1fr 1fr; }
.post-photos.photos-many { grid-template-columns: 1fr 1fr 1fr; }
.post-photo-item { cursor: pointer; overflow: hidden; border-radius: 8px; aspect-ratio: 1; }
.post-photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.post-photo-item:hover img { transform: scale(1.05); }

/* Photo viewer */
.photo-viewer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.9); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.photo-viewer-overlay img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; }
.photo-viewer-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.2); color: white; border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 18px; cursor: pointer; }

/* Chat photo button */
.chat-photo-btn { padding: 8px 12px; font-size: 18px; flex-shrink: 0; }
.chat-photo-btn:hover { background: #fff1f7; }

/* Chat message image */
.msg-image { margin-top: 6px; max-width: 200px; border-radius: 12px; overflow: hidden; cursor: pointer; }
.msg-image img { width: 100%; height: auto; display: block; }

.post-form { background: var(--surface); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; border: 1px solid rgba(255,255,255,0.82); backdrop-filter: blur(12px); }
.post-form-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 500; font-size: 14px; }
.post-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 20px; padding: 12px 14px; font-size: 15px; resize: vertical; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; background: rgba(255,255,255,0.76); }
.post-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,106,162,0.12); }
.post-form-actions { display: flex; justify-content: flex-end; margin-top: 12px; gap: 8px; }
.post-form-guest { text-align: center; padding: 24px; color: var(--text-secondary); }
.post-form-guest a { font-weight: 600; }

.post-card { background: var(--surface); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; transition: box-shadow 0.2s, transform 0.2s; border: 1px solid rgba(255,255,255,0.82); backdrop-filter: blur(12px); }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.9); box-shadow: 0 8px 18px rgba(255,106,162,0.15); }
.post-meta { flex: 1; }
.post-author { font-weight: 600; font-size: 14px; color: var(--text); }
.post-time { font-size: 12px; color: var(--text-secondary); margin-left: 8px; }
.post-content { margin-bottom: 12px; }
.post-text { font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.post-actions { display: flex; gap: 6px; border-top: 1px dashed var(--border); padding-top: 10px; }
.btn-action.active { background: #fff1f7; color: var(--primary); }
.translation-box {
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: #fff5fa;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.translation-title {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.translation-loading { color: var(--text-secondary); }
.comment-translation { margin-top: 6px; font-size: 13px; }

.comments-section { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }
.comment-form { display: flex; gap: 8px; margin-top: 8px; }
.comment-form input { flex: 1; padding: 9px 13px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; background: rgba(255,255,255,0.76); }
.comment-form input:focus { outline: none; border-color: var(--primary); }
.comment-form button { padding: 8px 16px; border: none; background: linear-gradient(135deg, #ff6aa2, #ffa45f); color: white; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 700; }
.comment-item { display: flex; gap: 8px; padding: 8px 0; font-size: 14px; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.comment-body { flex: 1; }
.comment-author { font-weight: 600; font-size: 13px; }
.comment-text { font-size: 14px; }
.comment-time { font-size: 11px; color: var(--text-secondary); }

/* ===== Profile Page ===== */
.profile-info-bar {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.profile-info-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6aa2, #ffa978, #ffd86b);
  opacity: 0.85;
}
.profile-hero { display: flex; align-items: center; gap: 24px; }
.profile-avatar-wrap {
  flex-shrink: 0;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6aa2, #ffa978);
  box-shadow: 0 12px 28px rgba(255,106,162,0.28);
}
.profile-avatar-large {
  display: block;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  background: #fff1f7;
}
.profile-hero-main { flex: 1; min-width: 0; }
.profile-hero-main h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-bio {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.65;
  max-width: 520px;
}
.profile-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-stats {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.stat {
  text-align: center;
  padding: 6px 14px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.stat:hover { background: rgba(255,106,162,0.08); transform: translateY(-1px); }
.stat strong { display: block; color: var(--text); font-size: 18px; font-weight: 800; line-height: 1.2; }
.stat span { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.profile-body { display: flex; gap: 22px; align-items: flex-start; }
.profile-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 84px;
}
.profile-album { width: 100%; }
.album-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.album-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-left: 12px;
}
.album-title::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff6aa2, #ffa978);
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.album-photo {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #fff1f7;
  box-shadow: 0 4px 10px rgba(127,107,120,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.album-photo:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 18px rgba(255,106,162,0.22);
  z-index: 1;
}
.album-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.album-photo:hover img { transform: scale(1.08); }
.album-empty {
  grid-column: 1 / -1;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 16px 0;
  text-align: center;
}
.profile-posts-area { flex: 1; min-width: 0; }
.profile-posts-area h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 12px;
  position: relative;
}
.profile-posts-area h2::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff6aa2, #ffa978);
}

.settings-page { background: var(--surface); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.82); backdrop-filter: blur(12px); }
.settings-page h1 { font-size: 22px; margin-bottom: 24px; }
.settings-section { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.settings-section:last-child { border-bottom: none; }
.settings-section h2 { font-size: 16px; margin-bottom: 8px; }
.settings-section p { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.settings-section select { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; background: var(--surface); min-width: 200px; }
.settings-section .form-group:last-child { margin-bottom: 0; }
.settings-logout { margin-top: 36px; padding-top: 20px; }
.member-section {
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,241,247,0.9), rgba(255,250,238,0.86));
}
.member-status {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--text);
  font-weight: 700;
}
.member-status.active {
  background: linear-gradient(135deg, #ff6aa2, #ffa45f);
  color: white;
  box-shadow: 0 10px 22px rgba(255,106,162,0.18);
}
.member-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}
.member-header {
  text-align: center;
  margin-bottom: 24px;
}
.member-header h1 {
  font-size: 28px;
  margin-bottom: 12px;
}
.member-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.member-benefits span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}
.member-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.member-plan {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 10px 24px rgba(255,106,162,0.10);
  border: 1px solid rgba(255,255,255,0.86);
}
.member-plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.member-plan h3 { font-size: 16px; margin-bottom: 6px; }
.member-plan-top span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff1f7;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.member-price {
  margin: 12px 0 4px;
  color: var(--primary);
  font-size: 30px;
  font-weight: 900;
}
.member-price small {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}
.member-note {
  margin-top: 12px;
  font-size: 12px !important;
}
.section-divider {
  font-size: 18px;
  margin: 28px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.paypal-btn-container {
  margin-top: 12px;
  min-height: 45px;
}

.notifications-page { }
.notif-item { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 10px; transition: background 0.2s, transform 0.2s; border: 1px solid rgba(255,255,255,0.82); }
.notif-item:hover { background: #fff7fb; transform: translateY(-1px); }
.notif-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.notif-body { flex: 1; }
.notif-body p { font-size: 14px; }
.notif-time { font-size: 12px; color: var(--text-secondary); }

.chat-page { display: flex; height: calc(100vh - 120px); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(255,255,255,0.82); backdrop-filter: blur(12px); }
.chat-sidebar { width: 280px; border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; background: rgba(255,247,251,0.56); }
.chat-sidebar h3 { padding: 16px; font-size: 16px; border-bottom: 1px solid var(--border); }
.chat-contacts { flex: 1; overflow-y: auto; }
.chat-contact { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.chat-contact:hover, .chat-contact.active { background: #fff1f7; transform: translateX(2px); }
.chat-contact img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.9); box-shadow: 0 8px 16px rgba(255,106,162,0.12); }
.contact-info { flex: 1; min-width: 0; }
.contact-name { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; gap: 6px; }
.contact-unread { background: linear-gradient(135deg, #ff6aa2, #ff8a8a); color: white; font-size: 11px; padding: 1px 7px; border-radius: 999px; font-weight: 600; margin-right: auto; }
.contact-time { font-size: 11px; color: var(--text-secondary); font-weight: 400; flex-shrink: 0; }
.contact-preview { display: block; font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.all-users-section { border-top: 1px solid var(--border); }
.all-users-section summary { padding: 12px 16px; cursor: pointer; font-size: 13px; color: var(--text-secondary); }
.chat-main { flex: 1; display: flex; flex-direction: column; }
.chat-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-secondary); text-align: center; padding: 20px; }
.chat-empty-tips { max-width: 320px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; }
.msg-item { display: flex; gap: 8px; margin-bottom: 12px; }
.msg-item.own { flex-direction: row-reverse; }
.msg-content { max-width: 70%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; box-shadow: 0 6px 16px rgba(127,107,120,0.08); }
.msg-item:not(.own) .msg-content { background: #ffffff; border-bottom-left-radius: 6px; }
.msg-item.own .msg-content { background: linear-gradient(135deg, #ff6aa2, #ffa45f); color: white; border-bottom-right-radius: 6px; }
.msg-time { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.msg-item.own .msg-time { text-align: right; }
.msg-translated {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}
.msg-translated span {
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
  color: var(--primary);
}
.msg-translated.collapsed {
  max-height: 22px;
  overflow: hidden;
  position: relative;
  padding-bottom: 0;
}
.msg-translated.collapsed span {
  margin-bottom: 0;
}
.msg-translated.collapsed::after {
  content: " ▼";
  font-size: 10px;
  float: right;
}
.msg-translated:not(.collapsed)::after {
  content: " ▲";
  font-size: 10px;
  float: right;
}
.chat-input-row button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.msg-item.own .msg-translated { color: rgba(255,255,255,0.86); border-top-color: rgba(255,255,255,0.22); }
.msg-item.own .msg-translated span { color: rgba(255,255,255,0.95); }
.chat-input-area { border-top: 1px solid var(--border); padding: 14px 16px; background: rgba(255,255,255,0.68); }
.chat-translate-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; color: var(--text-secondary); }
.chat-translate-bar select { padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; background: white; }
.chat-translate-hint { color: var(--primary); font-size: 12px; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input { flex: 1; padding: 11px 15px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; background: white; }
.chat-input-row input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,106,162,0.12); }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-secondary); font-size: 14px; }
.error-page { text-align: center; padding: 60px 20px; }
.error-page h1 { font-size: 48px; color: var(--text-secondary); margin-bottom: 12px; }
.loading { text-align: center; padding: 20px; color: var(--text-secondary); }
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 200; }
.modal-content { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.82); }
.modal-content h2 { margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

@media (max-width: 768px) {
  .nav-inner { gap: 8px; }
  .nav-links li a { padding: 6px 8px; font-size: 13px; }
  .chat-page { flex-direction: column; height: auto; }
  .chat-sidebar { width: 100%; max-height: 200px; border-right: none; border-bottom: 1px solid var(--border); }
  .profile-body { flex-direction: column; }
  .profile-sidebar { width: 100%; position: static; }
  .profile-hero { flex-direction: column; text-align: center; gap: 16px; }
  .profile-hero-main h1 { justify-content: center; }
  .profile-bio { margin-left: auto; margin-right: auto; }
  .profile-hero-actions { justify-content: center; }
  .profile-stats { padding-left: 0; padding-top: 16px; border-left: none; border-top: 1px solid var(--border); width: 100%; justify-content: center; flex-wrap: wrap; }
  .profile-dating-info { grid-template-columns: 1fr !important; }
  .member-plans { grid-template-columns: 1fr; }
  .member-benefits { flex-direction: column; align-items: flex-start; }
}

.feed-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
}
.feed-main {
  flex: 1;
  min-width: 0;
  max-width: 680px;
}
.online-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 76px;
  order: -1;
  border: 1px solid rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
}
.online-sidebar h3 {
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.online-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 14px;
}
.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 0 4px rgba(53,208,127,0.15);
  flex-shrink: 0;
}
.online-user a {
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.online-user a:hover {
  color: var(--primary);
}
.sidebar-empty {
  color: var(--text-secondary);
  font-size: 13px;
  padding: 8px 0;
}
.offline-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; display: inline-block; margin-right: 6px; }
.offline-time { font-size: 11px; color: var(--text-secondary); }

.profile-settings-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
}
.profile-settings-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-left: 12px;
  position: relative;
}
.profile-settings-section h2::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 4px; height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff6aa2, #ffa978);
}
.settings-group {
  margin-bottom: 20px;
  padding: 16px 18px;
  background: rgba(255,241,247,0.4);
  border-radius: var(--radius);
  border: 1px solid rgba(255,154,196,0.12);
}
.settings-group:last-child { margin-bottom: 0; background: none; border: none; padding: 0; }
.settings-group h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.settings-group p { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.profile-dating-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
}
.profile-dating-info h3 {
  grid-column: 1 / -1;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  padding-left: 12px;
  position: relative;
}
.profile-dating-info h3::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff6aa2, #ffa978);
}
.dating-info-item {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  font-size: 14px;
  background: rgba(255,241,247,0.55);
  border-radius: 12px;
  transition: background 0.2s ease;
}
.dating-info-item:hover { background: rgba(255,106,162,0.1); }
.dating-info-item .label { color: var(--text-secondary); width: 84px; flex-shrink: 0; font-weight: 500; }
.dating-info-item .value { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .feed-layout { flex-direction: column; }
  .feed-main { max-width: none; width: 100%; }
  .online-sidebar { display: none; }
}

/* ===== DATING ===== */
.dating-layout { display: flex; gap: 20px; align-items: flex-start; }
.dating-main { flex: 1; min-width: 0; max-width: 680px; }
.dating-subtitle { color: var(--text-secondary); font-size: 14px; margin-top: -8px; margin-bottom: 16px; }
.dating-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.dating-card { background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.82); backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.dating-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.dating-card-bg { position: absolute; inset: 0; z-index: 0; }
.dating-card-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(4px) brightness(0.95); opacity: 0.4; }
.dating-card-photo { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid rgba(255,106,162,0.2); position: relative; z-index: 1; }
.dating-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.dating-card-photo a { display: block; width: 100%; height: 100%; }
.dating-card-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.dating-card-info h3 { font-size: 16px; margin-bottom: 2px; }
.dating-card-info h3 a { color: var(--text); text-decoration: none; }
.dating-card-info h3 a:hover { color: var(--primary); }
.dating-card-meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.dating-card-bio { font-size: 13px; color: var(--text); line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dating-interests { display: flex; flex-wrap: wrap; gap: 6px; }
.dating-tag { background: linear-gradient(135deg, #ff6aa2, #ffa45f); color: white; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.dating-card-actions { display: flex; gap: 8px; margin-top: auto; width: 100%; position: relative; z-index: 1; }
.dating-card-header { display: flex; gap: 10px; align-items: center; position: relative; z-index: 1; }
.dating-btn-skip { border-radius: 999px; }
.dating-btn-like { border-radius: 999px; }
.dating-sidebar { width: 260px; flex-shrink: 0; }
.dating-sidebar-section { background: var(--surface); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.82); backdrop-filter: blur(12px); }
.dating-sidebar-section h3 { font-size: 15px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.dating-match-list, .dating-like-list { display: flex; flex-direction: column; gap: 10px; }
.dating-match-card, .dating-like-card { display: flex; align-items: center; gap: 10px; }
.dating-match-card img, .dating-like-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.dating-match-card a, .dating-like-card a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; flex: 1; }
.dating-match-card a:hover, .dating-like-card a:hover { color: var(--primary); }
@media (max-width: 900px) {
  .dating-layout { flex-direction: column; }
  .dating-main { max-width: none; width: 100%; }
  .dating-sidebar { width: 100%; }
}

/* ===== VIDEO CALL ===== */
.video-call-body {
  background: #1a1a2e;
  min-height: 100vh;
  overflow: hidden;
}
.video-call-container {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #1a1a2e;
}
.video-grid {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.remote-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #16213e;
}
.local-video {
  position: absolute;
  bottom: 100px;
  right: 20px;
  width: 180px;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  background: #0f3460;
  z-index: 10;
}
.call-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  z-index: 20;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  padding: 12px 24px;
  background: rgba(0,0,0,0.4);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.incoming-call {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  z-index: 30;
  backdrop-filter: blur(8px);
}
.incoming-info {
  text-align: center;
  color: white;
  margin-bottom: 40px;
}
.incoming-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.incoming-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.incoming-text {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
}
.incoming-actions {
  display: flex;
  gap: 24px;
}
.btn-large {
  padding: 14px 36px;
  font-size: 16px;
  border-radius: 999px;
}
.call-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 20;
  padding: 12px 24px;
  background: rgba(0,0,0,0.4);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}
.control-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.control-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.08);
}
.control-btn.active {
  background: rgba(255,92,92,0.8);
}
.control-btn.hangup {
  background: linear-gradient(135deg, #ff5c5c, #ff8a5b);
}
.control-btn.hangup:hover {
  background: linear-gradient(135deg, #e54848, #ff7443);
}

@media (max-width: 768px) {
  .local-video {
    width: 120px;
    height: 160px;
    bottom: 90px;
    right: 12px;
  }
  .call-controls {
    gap: 12px;
    padding: 10px 18px;
  }
  .control-btn {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
}

/* ===== INCOMING CALL POPUP (in app.js) ===== */
.incoming-call-popup {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 320px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.82);
  z-index: 10001;
  animation: slideInRight 0.4s ease;
  backdrop-filter: blur(12px);
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
.incoming-call-popup .popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.incoming-call-popup .popup-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.9);
}
.incoming-call-popup .popup-info h4 {
  font-size: 16px;
  margin-bottom: 2px;
}
.incoming-call-popup .popup-info p {
  font-size: 13px;
  color: var(--text-secondary);
}
.incoming-call-popup .popup-actions {
  display: flex;
  gap: 10px;
}
.incoming-call-popup .popup-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 10px;
}

/* ===== FULLSCREEN INCOMING CALL ===== */
.incoming-call-fullscreen {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  border-radius: 0;
  z-index: 10002;
  animation: fadeIn 0.3s ease;
  overflow: hidden;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.incoming-call-fullscreen .icf-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  z-index: 0;
}
.incoming-call-fullscreen .icf-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 60px 20px 50px;
}
.incoming-call-fullscreen .icf-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}
.incoming-call-fullscreen .icf-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 30px rgba(100,149,237,0.5);
  animation: avatarPulse 2s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(100,149,237,0.5); }
  50% { box-shadow: 0 0 50px rgba(100,149,237,0.8); }
}
.incoming-call-fullscreen .icf-name {
  color: #fff;
  font-size: 24px;
  margin: 20px 0 8px;
  font-weight: 600;
}
.incoming-call-fullscreen .icf-text {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  animation: textBlink 1.5s ease-in-out infinite;
}
@keyframes textBlink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.incoming-call-fullscreen .icf-actions {
  display: flex;
  gap: 80px;
  align-items: center;
}
.incoming-call-fullscreen .icf-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.incoming-call-fullscreen .icf-btn-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.incoming-call-fullscreen .icf-btn-reject .icf-btn-icon {
  background: #e74c3c;
  color: #fff;
  animation: rejectShake 1s ease-in-out infinite;
}
@keyframes rejectShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}
.incoming-call-fullscreen .icf-btn-accept .icf-btn-icon {
  background: #2ecc71;
  color: #fff;
  animation: acceptPulse 1.2s ease-in-out infinite;
}
@keyframes acceptPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46,204,113,0.6); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(46,204,113,0); }
}
.incoming-call-fullscreen .icf-btn-label {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
}

/* Chat video call button */
.chat-video-btn {
  margin-left: 8px;
  padding: 4px 10px;
  font-size: 13px;
}

/* 性别年龄标签 */
.gender-age-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1;
}
.gender-age-tag.ga-male {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
  box-shadow: 0 0 6px rgba(79,172,254,0.5);
}
.gender-age-tag.ga-female {
  background: linear-gradient(135deg, #ff6aa2, #ff9a8b);
  color: #fff;
  box-shadow: 0 0 6px rgba(255,106,162,0.5);
}
.ga-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 3px;
  vertical-align: middle;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  animation: ga-age-glow 2s ease-in-out infinite;
}
.ga-age-young {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  animation: ga-age-bounce 2s ease-in-out infinite;
}
.ga-age-mature {
  background: linear-gradient(135deg, #fa709a, #fee140);
  animation: ga-age-shimmer 2.5s ease-in-out infinite;
}
@keyframes ga-age-glow {
  0%, 100% { box-shadow: 0 0 3px rgba(102,126,234,0.4); }
  50% { box-shadow: 0 0 8px rgba(102,126,234,0.8); }
}
@keyframes ga-age-bounce {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 3px rgba(67,233,123,0.4); }
  50% { transform: translateY(-2px); box-shadow: 0 0 8px rgba(67,233,123,0.8); }
}
@keyframes ga-age-shimmer {
  0%, 100% { box-shadow: 0 0 3px rgba(250,112,154,0.4); filter: brightness(1); }
  50% { box-shadow: 0 0 10px rgba(250,112,154,0.8); filter: brightness(1.15); }
}
/* 标题中的标签稍大 */
.profile-info-bar .gender-age-tag,
.dating-card-info .gender-age-tag {
  width: 22px;
  height: 22px;
  font-size: 14px;
}
.profile-info-bar .ga-age,
.dating-card-info .ga-age {
  font-size: 13px;
  padding: 2px 8px;
}

/* 缘分在线标识 */
.online-badge, .offline-badge {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  position: absolute;
}
.online-badge {
  background: #27ae60;
  box-shadow: 0 0 6px rgba(39,174,96,0.6);
  animation: online-pulse 2s ease-in-out infinite;
}
.offline-badge {
  background: #ccc;
}
@keyframes online-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(39,174,96,0.4); }
  50% { box-shadow: 0 0 10px rgba(39,174,96,0.8); }
}
/* 大卡片头像上的标识 */
.dating-card-photo .online-badge,
.dating-card-photo .offline-badge {
  bottom: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  border-width: 3px;
  z-index: 2;
}
/* 侧边栏小头像上的标识 */
.dating-match-card a:first-child,
.dating-like-card a:first-child {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}
.dating-match-card .online-badge,
.dating-match-card .offline-badge,
.dating-like-card .online-badge,
.dating-like-card .offline-badge {
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-width: 2px;
  z-index: 2;
}

/* 聊天已读/未读状态 */
.msg-read {
  color: #4f6ef7;
  font-size: 11px;
  margin-left: 4px;
}

/* ===== Video Call Modal (in-page, no redirect) ===== */
.vc-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  animation: vcFadeIn 0.2s ease;
}
@keyframes vcFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.vc-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #1a1a2e;
}
.vc-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), transparent);
  color: #fff;
  pointer-events: none;
}
.vc-status {
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.vc-timer {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #4ade80;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.vc-video-area {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0f0f1e;
}
.vc-remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.vc-remote-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  gap: 16px;
}
.vc-avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.vc-placeholder-text {
  font-size: 18px;
  font-weight: 600;
  opacity: 0.9;
}
.vc-local-video {
  position: absolute;
  bottom: 100px;
  right: 20px;
  width: 150px;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 5;
  background: #000;
  transition: all 0.3s ease;
}
.vc-local-placeholder {
  position: absolute;
  bottom: 100px;
  right: 20px;
  width: 150px;
  height: 200px;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  background: linear-gradient(135deg, #2d2d44, #1a1a2e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 5;
  color: #fff;
  font-size: 12px;
}
.vc-local-avatar-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}
.vc-incoming {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
  background: rgba(30, 30, 50, 0.95);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  animation: vcSlideUp 0.3s ease;
}
@keyframes vcSlideUp {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
.vc-caller-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #4ade80;
  box-shadow: 0 0 32px rgba(74, 222, 128, 0.4);
  animation: vcPulse 1.5s ease infinite;
}
@keyframes vcPulse {
  0%, 100% { box-shadow: 0 0 32px rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 48px rgba(74, 222, 128, 0.7); }
}
.vc-caller-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.vc-incoming-text {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 8px;
}
.vc-incoming-actions {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}
.vc-btn {
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vc-btn-accept {
  background: #4ade80;
  color: #064e3b;
}
.vc-btn-accept:hover {
  background: #22c55e;
  transform: scale(1.05);
}
.vc-btn-reject {
  background: #ef4444;
  color: #fff;
}
.vc-btn-reject:hover {
  background: #dc2626;
  transform: scale(1.05);
}
.vc-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
}
.vc-control-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.vc-control-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}
.vc-control-btn.active {
  background: #ef4444;
}
.vc-hangup {
  background: #ef4444;
  transform: rotate(135deg);
}
.vc-hangup:hover {
  background: #dc2626;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .vc-local-video,
  .vc-local-placeholder {
    width: 100px;
    height: 140px;
    bottom: 90px;
    right: 12px;
    border-radius: 12px;
  }
  .vc-local-avatar-img {
    width: 40px;
    height: 40px;
  }
  .vc-caller-avatar {
    width: 80px;
    height: 80px;
  }
  .vc-caller-name {
    font-size: 18px;
  }
  .vc-control-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .vc-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  .vc-status {
    font-size: 14px;
  }
  .vc-timer {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .vc-local-video,
  .vc-local-placeholder {
    width: 80px;
    height: 110px;
    bottom: 80px;
    right: 8px;
  }
  .vc-control-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .vc-controls {
    gap: 14px;
    padding: 16px;
  }
}
.msg-unread {
  color: #999;
  font-size: 11px;
  margin-left: 4px;
}

/* 正在输入指示器 */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  width: fit-content;
  background: #f0f2f5;
  border-radius: 16px;
  margin-bottom: 8px;
}
.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4f6ef7;
  animation: typing-bounce 1.4s infinite ease-in-out;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
.typing-indicator span:nth-child(3) { animation-delay: 0s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ===== 移动端底部 Tab 导航栏 ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid rgba(255,154,196,0.28);
  backdrop-filter: blur(18px);
  box-shadow: 0 -6px 24px rgba(255,106,162,0.12);
  z-index: 200;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: space-around;
  align-items: stretch;
  height: 60px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav li { flex: 1; list-style: none; }
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 60px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.18s ease;
}
.bottom-nav .bn-icon { font-size: 20px; line-height: 1; }
.bottom-nav a.active { color: var(--primary); font-weight: 700; }
.bottom-nav a.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(135deg, #ff6aa2, #ffa45f);
}
.bottom-nav .badge {
  position: absolute;
  top: 6px;
  right: 50%;
  margin-right: -22px;
  padding: 0 5px;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

/* ===== 移动端响应式优化 ===== */
@media (max-width: 768px) {
  /* 顶部导航栏简化：仅显示 Logo + 用户头像 */
  .navbar { height: 54px; }
  .nav-inner { height: 54px; padding: 0 14px; gap: 8px; }
  .nav-logo { font-size: 19px; }
  .nav-links { display: none; }              /* 隐藏顶部导航项，改用底部 Tab */
  .nav-user span { display: none; }           /* 隐藏用户名文字，仅保留头像 */
  .mini-avatar { width: 30px; height: 30px; }

  /* 显示底部 Tab 导航 */
  .bottom-nav { display: flex; }

  /* 主内容区下移避开顶部，底部留出 Tab 空间 */
  .container { padding: 14px 12px 80px; }
  .site-footer { padding: 16px 12px 76px; margin-top: 24px; }

  /* 大厅：手机端隐藏在线用户侧边栏 */
  .feed-layout { flex-direction: column; }
  .online-sidebar {
    display: none;
  }
  .online-sidebar h3 { font-size: 14px; margin-bottom: 8px; }
  .online-user { padding: 5px 0; font-size: 13px; }

  /* 发布框更紧凑 */
  .post-composer { padding: 12px; }
  .post-composer textarea { font-size: 14px; }

  /* 帖子卡片优化 */
  .post-card { padding: 14px; margin-bottom: 12px; }
  .post-card .post-author { font-size: 14px; }
  .post-card .post-content { font-size: 14px; line-height: 1.55; }

  /* 聊天页面：全屏化 */
  .chat-page { height: calc(100vh - 54px - 60px); }
  .chat-sidebar { max-height: 140px; }
  .msg-content { max-width: 82%; font-size: 14px; padding: 9px 13px; }

  /* 缘分卡片 */
  .dating-card { padding: 12px; }
  .dating-card-info { min-width: 0; }
  .dating-cards { grid-template-columns: 1fr; }

  /* 个人主页 */
  .profile-hero { padding: 16px; }
  .profile-hero-main h1 { font-size: 19px; }
  .profile-stats { gap: 10px; font-size: 13px; }

  /* 会员页 */
  .member-plans { gap: 12px; }

  /* 弹窗优化 */
  .modal-content { width: 94%; padding: 18px; max-height: 78vh; }
  .incoming-call-popup { width: calc(100vw - 24px); right: 12px; top: 70px; padding: 16px; }

  /* Toast 提示位置 */
  .toast-message { top: 64px; font-size: 13px; padding: 8px 18px; }
}

@media (max-width: 380px) {
  .bottom-nav a { font-size: 10px; }
  .bottom-nav .bn-icon { font-size: 18px; }
  .nav-logo { font-size: 17px; }
  .container { padding: 12px 10px 80px; }
  .online-sidebar { padding: 12px; }
}

/* ===== GDPR Cookie Consent Banner ===== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #ffffff;
  border-top: 2px solid #00897b;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  padding: 16px 20px;
  font-family: inherit;
  animation: ccSlideUp 0.4s ease-out;
}
/* When cookie banner is visible, push bottom-nav up to avoid overlap */
.cookie-consent-banner:not([style*="display: none"]) ~ .bottom-nav,
body:has(.cookie-consent-banner:not([style*="display: none"])) .bottom-nav {
  bottom: 80px;
}
@keyframes ccSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cc-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cc-text { flex: 1; min-width: 280px; }
.cc-title { font-size: 15px; font-weight: 700; color: #00897b; margin-bottom: 4px; }
.cc-desc { font-size: 13px; color: #555; line-height: 1.5; }
.cc-desc a { color: #00897b; text-decoration: underline; }
.cc-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.cc-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cc-btn-accept { background: #00897b; color: #fff; }
.cc-btn-accept:hover { background: #00695c; }
.cc-btn-reject { background: #f0f0f0; color: #555; }
.cc-btn-reject:hover { background: #e0e0e0; }
.cc-btn-secondary { background: transparent; color: #00897b; border: 1px solid #00897b; }
.cc-btn-secondary:hover { background: #e0f2f1; }
.cc-btn-primary { background: #00897b; color: #fff; }
.cc-btn-primary:hover { background: #00695c; }

.cc-preferences {
  max-width: 1100px;
  margin: 12px auto 0;
  padding-top: 12px;
  border-top: 1px solid #eee;
}
.cc-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: #444;
}
.cc-toggle-row input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; }
.cc-prefs-actions { margin-top: 10px; }

@media (max-width: 768px) {
  .cookie-consent-banner { padding: 12px 14px; bottom: 60px; }
  .cc-content { flex-direction: column; }
  .cc-actions { width: 100%; justify-content: stretch; }
  .cc-btn { flex: 1; padding: 10px 8px; font-size: 12px; }
}

/* ===== Consent checkbox on register form ===== */
.consent-row { margin: 16px 0; }
.consent-check {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}
.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.consent-check a { color: #00897b; text-decoration: underline; }

/* ===== Privacy & Data Rights section ===== */
.profile-settings-section .settings-group h3 { font-size: 15px; margin-bottom: 10px; }
.btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}
.btn-secondary:hover { background: #e8e8e8; }

/* ===== Language Switcher (navbar right) ===== */
.lang-switcher {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1.5px solid rgba(255,106,162,0.25);
  border-radius: 20px;
  background: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-switcher-btn:hover {
  border-color: var(--primary);
  background: #fff1f7;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,106,162,0.15);
}
.lang-switcher-btn .lang-globe { font-size: 16px; line-height: 1; }
.lang-switcher-btn .lang-code { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
.lang-switcher-btn .lang-arrow { font-size: 10px; opacity: 0.6; transition: transform 0.2s; }
.lang-switcher.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  max-height: 380px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  padding: 6px;
  z-index: 10001;
  animation: langFadeIn 0.18s ease-out;
}
@keyframes langFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.lang-switcher.open .lang-dropdown { display: block; }

.lang-option {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background 0.15s;
  cursor: pointer;
}
.lang-option:hover { background: #f5f5f7; }
.lang-option.lang-active { background: linear-gradient(135deg, #fff0f5, #fce4ec); color: var(--primary); font-weight: 600; }
.lang-option .lang-flag { font-size: 20px; line-height: 1; flex-shrink: 0; }
.lang-option .lang-native { font-weight: 600; min-width: 70px; }
.lang-option .lang-en { font-size: 12px; color: #999; flex: 1; }
.lang-option .lang-check { color: var(--primary); font-weight: 700; font-size: 16px; }

/* Mobile adjustments */
@media (max-width: 768px) {
  .lang-switcher-btn { padding: 6px 10px; }
  .lang-switcher-btn .lang-code { display: none; }
  .lang-dropdown { min-width: 200px; max-height: 320px; }
}
@media (max-width: 380px) {
  .lang-switcher-btn .lang-arrow { display: none; }
  .lang-dropdown { right: -40px; min-width: 180px; }
}


