/* Shukaansi - Premium Dating App CSS */
/* Made with love by Fariid Tech */

:root {
  --primary: #E91E63;
  --primary-dark: #C2185B;
  --primary-light: #F48FB1;
  --secondary: #7C3AED;
  --accent: #FF6B6B;
  --gradient: linear-gradient(135deg, #E91E63 0%, #7C3AED 100%);
  --gradient-soft: linear-gradient(135deg, #FDF2F8 0%, #EDE9FE 100%);
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --bg: #F9FAFB;
  --white: #FFFFFF;
  --card-bg: #FFFFFF;
  --shadow: 0 4px 24px rgba(233,30,99,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --nav-height: 68px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
  --text: #F9FAFB;
  --text-muted: #9CA3AF;
  --border: #374151;
  --bg: #111827;
  --card-bg: #1F2937;
  --white: #1F2937;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================== LAYOUT ==================== */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

.page-content {
  padding: 0 0 calc(var(--nav-height) + 16px);
  min-height: 100vh;
}

/* ==================== TOP BAR ==================== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.top-bar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.top-bar-actions { display: flex; gap: 8px; align-items: center; }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}
.icon-btn:hover { background: var(--primary-light); color: var(--primary); }

.badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  background: var(--primary);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--white);
}

/* ==================== BOTTOM NAV ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-height);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-item i { font-size: 1.3rem; transition: var(--transition); }
.nav-item span { transition: var(--transition); }

.nav-item.active { color: var(--primary); }
.nav-item.active i { transform: scale(1.1); }

.nav-item .nav-badge {
  position: absolute;
  top: 8px;
  right: calc(50% - 18px);
  min-width: 14px; height: 14px;
  background: var(--primary);
  color: white; font-size: 0.55rem;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  font-weight: 700;
}

/* ==================== AUTH PAGES ==================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo h1 {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.auth-logo p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(233,30,99,0.08);
}

.form-control::placeholder { color: #9CA3AF; }

.input-icon-wrap {
  position: relative;
}
.input-icon-wrap .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1rem; pointer-events: none;
}
.input-icon-wrap .form-control { padding-left: 42px; }
.input-icon-wrap .input-icon-right {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); cursor: pointer;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .form-group { margin-bottom: 0; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(233,30,99,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(233,30,99,0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: var(--bg); color: var(--text-muted); }
.btn-ghost:hover { background: var(--primary-light); color: var(--primary); }

.btn-danger { background: #EF4444; color: white; }
.btn-success { background: #10B981; color: white; }

.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-round { border-radius: 50px; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ==================== ALERTS ==================== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}
.alert-error { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.alert-info { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }

/* ==================== CARDS ==================== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ==================== DISCOVER / SWIPE ==================== */
.discover-container {
  padding: 16px 16px calc(var(--nav-height) + 16px);
  position: relative;
}

.discover-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.discover-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
}
.filter-chip.active, .filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(233,30,99,0.05);
}

.cards-stack {
  position: relative;
  height: 520px;
  margin-bottom: 20px;
}

.profile-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  transform-origin: bottom center;
  transition: transform 0.15s ease;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.profile-card:active { cursor: grabbing; }
.profile-card.card-2 { transform: scale(0.96) translateY(8px); z-index: 1; }
.profile-card.card-3 { transform: scale(0.92) translateY(16px); z-index: 0; }

.profile-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.profile-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  padding: 20px;
  color: white;
}

.profile-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-badge { color: #60A5FA; font-size: 1rem; }
.premium-badge-icon { color: #FCD34D; font-size: 0.85rem; }

.profile-card-info { font-size: 0.9rem; opacity: 0.85; margin-top: 4px; }
.profile-card-location { font-size: 0.8rem; opacity: 0.7; margin-top: 2px; }

.profile-card-online {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  display: flex; align-items: center; gap: 5px;
  backdrop-filter: blur(10px);
}
.online-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.profile-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}
.profile-tag {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

.like-stamp, .pass-stamp {
  position: absolute;
  top: 30%;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  z-index: 10;
}
.like-stamp { left: 20px; border: 4px solid #4ADE80; color: #4ADE80; transform: rotate(-15deg); }
.pass-stamp { right: 20px; border: 4px solid #F87171; color: #F87171; transform: rotate(15deg); }

.action-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.action-btn {
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.action-btn-pass { width: 56px; height: 56px; background: var(--white); color: #F87171; font-size: 1.4rem; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.action-btn-like { width: 68px; height: 68px; background: var(--gradient); color: white; font-size: 1.6rem; box-shadow: 0 6px 24px rgba(233,30,99,0.4); }
.action-btn-star { width: 56px; height: 56px; background: var(--white); color: #FBBF24; font-size: 1.4rem; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.action-btn:hover { transform: scale(1.1); }
.action-btn:active { transform: scale(0.95); }

.empty-discover {
  text-align: center;
  padding: 60px 24px;
}
.empty-discover i { font-size: 3.5rem; color: var(--primary-light); margin-bottom: 16px; display: block; }
.empty-discover h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.empty-discover p { color: var(--text-muted); font-size: 0.9rem; }

/* ==================== MATCHES ==================== */
.matches-container { padding: 0 16px 16px; }

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-title i { color: var(--primary); }

.matches-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  margin-bottom: 20px;
}
.matches-scroll::-webkit-scrollbar { display: none; }

.match-bubble {
  flex-shrink: 0;
  text-align: center;
  width: 72px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}
.match-bubble-avatar {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  background: var(--gradient);
  padding: 2px;
  margin: 0 auto 6px;
}
.match-bubble-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
}
.match-bubble-avatar .online-dot {
  position: absolute; bottom: 4px; right: 0;
  border: 2px solid var(--white);
  width: 10px; height: 10px;
}
.match-bubble-name {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-list { display: flex; flex-direction: column; gap: 2px; }

.conversation-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}
.conversation-item:hover { background: rgba(233,30,99,0.04); }
.conversation-item.unread .conv-name { font-weight: 700; }
.conversation-item.unread .conv-preview { color: var(--text); font-weight: 500; }

.conv-avatar {
  position: relative;
  width: 54px; height: 54px; flex-shrink: 0;
}
.conv-avatar img {
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
}
.conv-avatar .online-dot {
  position: absolute; bottom: 2px; right: 2px;
  border: 2px solid var(--card-bg);
  width: 12px; height: 12px;
}

.conv-content { flex: 1; min-width: 0; }
.conv-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }
.conv-preview {
  font-size: 0.82rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.conv-meta { text-align: right; flex-shrink: 0; }
.conv-time { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.conv-unread-badge {
  min-width: 18px; height: 18px;
  background: var(--primary);
  color: white; font-size: 0.65rem;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px; font-weight: 700;
  margin-left: auto;
}

.compatibility-bar {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 3px;
}
.compat-progress {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.compat-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ==================== MESSAGES ==================== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
}

.chat-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chat-back { color: var(--text); font-size: 1.2rem; text-decoration: none; }

.chat-partner { display: flex; align-items: center; gap: 10px; flex: 1; }
.chat-partner-avatar {
  position: relative; width: 40px; height: 40px;
}
.chat-partner-avatar img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.chat-partner-avatar .online-dot {
  position: absolute; bottom: 0; right: 0;
  border: 2px solid var(--white);
  width: 10px; height: 10px;
}
.chat-partner-name { font-weight: 700; font-size: 0.95rem; }
.chat-partner-status { font-size: 0.75rem; color: var(--text-muted); }
.chat-partner-status.typing { color: var(--primary); }

.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.message-wrap {
  display: flex;
  margin-bottom: 6px;
}
.message-wrap.sent { justify-content: flex-end; }
.message-wrap.received { justify-content: flex-start; }

.message-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
}

.sent .message-bubble {
  background: var(--gradient);
  color: white;
  border-bottom-right-radius: 4px;
}

.received .message-bubble {
  background: var(--white);
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.message-time {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-top: 3px;
  display: flex; align-items: center; gap: 3px;
}

.sent .message-time { justify-content: flex-end; }

.message-status i { font-size: 0.7rem; }
.status-read { color: #60A5FA; }

.message-image { max-width: 220px; border-radius: 12px; cursor: pointer; }

.message-voice {
  display: flex; align-items: center; gap: 8px;
  min-width: 160px;
}
.voice-play {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none; color: currentColor; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.voice-waveform {
  flex: 1; height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.date-divider {
  text-align: center;
  margin: 12px 0;
  position: relative;
}
.date-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.date-divider span {
  background: var(--bg);
  padding: 0 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  position: relative;
}

.chat-input-area {
  padding: 12px 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-end; gap: 8px;
}

.chat-input-wrap { flex: 1; position: relative; }

.chat-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  resize: none;
  max-height: 120px;
  min-height: 48px;
  transition: var(--transition);
  line-height: 1.5;
}
.chat-input:focus { border-color: var(--primary); background: var(--white); }

.chat-send-btn {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(233,30,99,0.3);
}
.chat-send-btn:hover { transform: scale(1.05); }

.chat-attach-btn {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
.chat-attach-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ==================== PROFILE ==================== */
.profile-hero {
  position: relative;
  height: 380px;
  background: #000;
  overflow: hidden;
}

.profile-hero-img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.85;
}

.profile-hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8) 100%);
}

.profile-hero-info {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  color: white;
}

.profile-hero-name {
  font-size: 1.8rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}

.profile-hero-sub {
  font-size: 0.9rem; opacity: 0.85; margin-top: 4px;
  display: flex; align-items: center; gap: 8px;
}

.profile-hero-edit {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: white;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}
.profile-hero-edit:hover { background: var(--primary); }

.profile-body { padding: 20px 16px; }

.profile-section { margin-bottom: 24px; }
.profile-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.profile-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.interests-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-tag {
  padding: 6px 14px;
  background: rgba(233,30,99,0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.photo-grid-item {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.photo-grid-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.photo-grid-item:hover img { transform: scale(1.05); }

.photo-delete-btn {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none; border-radius: 50%;
  font-size: 0.7rem;
  cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.photo-grid-item:hover .photo-delete-btn { display: flex; }

.photo-upload-btn {
  aspect-ratio: 1;
  background: var(--border);
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.75rem;
  border: 2px dashed var(--border);
  transition: var(--transition);
}
.photo-upload-btn i { font-size: 1.5rem; }
.photo-upload-btn:hover { border-color: var(--primary); color: var(--primary); }

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

/* ==================== PREMIUM ==================== */
.premium-header {
  background: var(--gradient);
  padding: 40px 20px 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.premium-header::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E") repeat;
}
.premium-header i { font-size: 3rem; margin-bottom: 12px; display: block; opacity: 0.9; }
.premium-header h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; }
.premium-header p { opacity: 0.85; margin-top: 6px; }

.premium-features {
  background: var(--white);
  margin: -24px 16px 0;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.feature-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.feature-item i { color: var(--primary); font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
.feature-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.feature-item p { font-size: 0.8rem; color: var(--text-muted); }

.plan-selector { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }

.plan-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 14px;
  position: relative;
  overflow: hidden;
}
.plan-card:hover { border-color: var(--primary-light); }
.plan-card.selected {
  border-color: var(--primary);
  background: rgba(233,30,99,0.03);
}
.plan-card.popular::after {
  content: 'Most Popular';
  position: absolute; top: 0; right: 0;
  background: var(--gradient);
  color: white;
  padding: 3px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  border-bottom-left-radius: 8px;
}

.plan-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.plan-card.selected .plan-radio {
  border-color: var(--primary);
  background: var(--primary);
}
.plan-card.selected .plan-radio::after {
  content: '';
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
}

.plan-info { flex: 1; }
.plan-name { font-weight: 700; font-size: 0.95rem; }
.plan-duration { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.plan-price { text-align: right; }
.plan-price .amount { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.plan-price .original { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; }
.plan-price .per { font-size: 0.7rem; color: var(--text-muted); }
.plan-price .savings { font-size: 0.7rem; color: #10B981; font-weight: 600; }

/* ==================== SETTINGS ==================== */
.settings-list { padding: 0 16px; }
.settings-group { margin-bottom: 24px; }
.settings-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 4px;
  margin-bottom: 8px;
}

.settings-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
}
.settings-item:hover { background: rgba(233,30,99,0.04); }

.settings-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.settings-icon.pink { background: rgba(233,30,99,0.1); color: var(--primary); }
.settings-icon.purple { background: rgba(124,58,237,0.1); color: var(--secondary); }
.settings-icon.blue { background: rgba(59,130,246,0.1); color: #3B82F6; }
.settings-icon.green { background: rgba(16,185,129,0.1); color: #10B981; }
.settings-icon.red { background: rgba(239,68,68,0.1); color: #EF4444; }

.settings-item-text { flex: 1; }
.settings-item-text strong { display: block; font-size: 0.9rem; font-weight: 600; }
.settings-item-text small { color: var(--text-muted); font-size: 0.78rem; }

.settings-arrow { color: var(--text-muted); font-size: 0.85rem; }

.toggle-switch {
  position: relative;
  width: 44px; height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 12px;
  transition: var(--transition);
  cursor: pointer;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ==================== ADMIN ==================== */
.admin-container { padding: 16px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow);
}
.stat-icon { font-size: 1.4rem; margin-bottom: 8px; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

.admin-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.admin-table th {
  padding: 10px 14px;
  background: var(--bg);
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(233,30,99,0.02); }

/* ==================== ADS ==================== */
.ad-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 12px 0;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ad-image { width: 100%; height: 120px; object-fit: cover; }
.ad-content { padding: 12px; }
.ad-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.ad-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.ad-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gradient);
  color: white;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 8px;
}

/* ==================== NOTIFICATIONS ==================== */
.notification-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 320px; max-width: 100%;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.notification-panel.open { transform: translateX(0); }

.notification-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 299;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.notification-overlay.open { opacity: 1; pointer-events: all; }

.notification-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.notification-header h3 { font-size: 1.1rem; font-weight: 700; }

.notification-list { flex: 1; overflow-y: auto; }
.notification-item {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.notification-item:hover { background: var(--bg); }
.notification-item.unread { background: rgba(233,30,99,0.03); }
.notification-item.unread::before {
  content: '';
  position: absolute; left: 0;
  width: 3px; height: 100%;
  background: var(--primary);
}

.notif-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.notif-icon.match { background: rgba(233,30,99,0.1); color: var(--primary); }
.notif-icon.message { background: rgba(124,58,237,0.1); color: var(--secondary); }
.notif-icon.like { background: rgba(251,191,36,0.1); color: #F59E0B; }
.notif-icon.view { background: rgba(59,130,246,0.1); color: #3B82F6; }
.notif-icon.promo { background: rgba(16,185,129,0.1); color: #10B981; }

.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-size: 0.88rem; }
.notif-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.notif-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }

/* ==================== MATCH POPUP ==================== */
.match-popup {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 400;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.match-popup.show { opacity: 1; pointer-events: all; }

.match-popup-content {
  text-align: center;
  padding: 40px 24px;
  animation: match-in 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes match-in {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.match-popup-hearts {
  font-size: 3rem; margin-bottom: 16px;
  display: flex; justify-content: center; gap: 8px;
}
.match-popup-hearts i { color: var(--primary); animation: heart-beat 0.8s ease infinite alternate; }
.match-popup-hearts i:nth-child(2) { animation-delay: 0.2s; font-size: 2.5rem; }
@keyframes heart-beat {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

.match-popup h2 { color: white; font-size: 2rem; font-weight: 900; margin-bottom: 8px; }
.match-popup p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }

.match-avatars {
  display: flex; justify-content: center; align-items: center; gap: 0;
  margin-bottom: 28px;
}
.match-avatar-img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
}
.match-avatar-img:first-child { margin-right: -16px; z-index: 1; }
.match-heart-icon { color: var(--primary); font-size: 1.5rem; z-index: 2; margin: 0 -4px; }

.match-popup-actions { display: flex; flex-direction: column; gap: 10px; }
.match-compat {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.match-compat strong { color: var(--primary-light); font-size: 1.1rem; }

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 350;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  width: 100%; max-width: 480px;
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px 20px 36px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.modal-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }

/* ==================== DISCOUNT BANNER ==================== */
.discount-banner {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: var(--gradient);
  color: white;
  z-index: 500;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  transform: translateX(-50%) translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 4px 20px rgba(233,30,99,0.4);
}
.discount-banner.show { transform: translateX(-50%) translateY(0); }
.discount-banner-text { flex: 1; }
.discount-banner-text strong { display: block; font-size: 0.95rem; }
.discount-banner-text span { font-size: 0.8rem; opacity: 0.85; }
.discount-banner-close {
  background: rgba(255,255,255,0.2);
  border: none; color: white;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.discount-banner a {
  background: rgba(255,255,255,0.25);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ==================== FOOTER ==================== */
.app-footer {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.app-footer strong { color: var(--primary); }

/* ==================== UTILS ==================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.p-16 { padding: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.verified-text { color: #60A5FA; }
.premium-text { color: #F59E0B; }
.online-text { color: #4ADE80; }

/* ==================== LAZY LOADING ==================== */
img[data-src] { opacity: 0; transition: opacity 0.3s; }
img.loaded { opacity: 1; }

/* ==================== RESPONSIVE ==================== */
@media (min-width: 481px) {
  .app-container { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
  .bottom-nav { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}
