/* ============================================================
   EKSGRAM - Main CSS
   Telegram Premium Dark Mode Design
   ============================================================ */

:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a2e;
  --bg-card: #16213e;
  --bg-card2: #1e2a45;
  --accent: #6C63FF;
  --accent2: #a855f7;
  --accent-gradient: linear-gradient(135deg, #6C63FF, #a855f7, #ec4899);
  --accent-gradient2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --border: rgba(108, 99, 255, 0.2);
  --border2: rgba(255,255,255,0.08);
  --gold: #FFD700;
  --star: #f59e0b;
  --success: #48bb78;
  --danger: #fc8181;
  --warning: #f6ad55;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 8px 32px rgba(108, 99, 255, 0.15);
  --shadow2: 0 4px 16px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* App Container */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-primary);
  position: relative;
  padding-bottom: 80px;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5); }

.btn-secondary {
  background: var(--bg-card2);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); }

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

.btn-danger {
  background: linear-gradient(135deg, #ff4757, #ff2d55);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
}

.btn-gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: 50%; width: 40px; height: 40px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover { border-color: var(--border); box-shadow: var(--shadow); }

.card-body { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border2); }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--border2); }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card2);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  font-family: var(--font);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15); }
.form-control::placeholder { color: var(--text-muted); }

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-group .form-control { padding-left: 44px; }
.input-group .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 1rem;
  z-index: 1;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23a0aec0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }

/* Multi-select chips */
.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: var(--bg-card2);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  min-height: 52px;
  cursor: pointer;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--accent);
  cursor: pointer;
  transition: var(--transition);
}
.chip.selected { background: var(--accent); color: white; border-color: var(--accent); }
.chip:hover { background: var(--accent); color: white; }

/* ============================================================
   Navigation Bar (Bottom)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border2);
  display: flex;
  z-index: 100;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  transition: var(--transition);
  position: relative;
}
.nav-item i { font-size: 1.2rem; transition: var(--transition); }
.nav-item.active { color: var(--accent); }
.nav-item.active i { transform: scale(1.1); }
.nav-item:hover { color: var(--accent); }

.nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 16px);
  background: #ff4757;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ============================================================
   Top Header
   ============================================================ */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border2);
}
.top-header .logo {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--border2);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
}
.header-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   Profile Card
   ============================================================ */
.profile-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border2);
}
.profile-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.profile-card-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--accent-gradient2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,0.3);
}
.profile-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  padding: 60px 16px 16px;
}
.profile-card-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.profile-card-info {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.profile-card-actions {
  display: flex;
  gap: 10px;
  padding: 16px;
}
.action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}
.action-btn i { font-size: 1.1rem; }
.action-btn-skip { background: rgba(255,255,255,0.08); color: var(--text-secondary); }
.action-btn-add { background: rgba(108, 99, 255, 0.2); color: var(--accent); }
.action-btn-hi { background: rgba(72, 187, 120, 0.2); color: var(--success); }
.action-btn-msg { background: rgba(168, 85, 247, 0.2); color: var(--accent2); }
.action-btn:hover { transform: scale(1.05); }

/* ============================================================
   Avatar
   ============================================================ */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  border: 2px solid var(--border2);
}
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 50px; height: 50px; }
.avatar-lg { width: 80px; height: 80px; border-width: 3px; }
.avatar-xl { width: 120px; height: 120px; border-width: 4px; border-color: var(--accent); }

.avatar-placeholder {
  border-radius: 50%;
  background: var(--accent-gradient2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--border2);
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.avatar-wrap { position: relative; display: inline-block; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-vip {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a1a;
}
.badge-verified {
  background: rgba(72, 187, 120, 0.15);
  color: var(--success);
  border: 1px solid rgba(72, 187, 120, 0.3);
}
.badge-accent {
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent);
  border: 1px solid var(--border);
}

/* Match score */
.match-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(108, 99, 255, 0.2);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}
.match-score.high { background: rgba(72, 187, 120, 0.2); color: var(--success); }
.match-score.medium { background: rgba(246, 173, 85, 0.2); color: var(--warning); }

/* ============================================================
   Interests Tags
   ============================================================ */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 10px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--accent);
}

/* ============================================================
   Section Headers
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
}
.section-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title i { color: var(--accent); }
.section-link { color: var(--accent); font-size: 0.8rem; text-decoration: none; }

/* ============================================================
   User List Item
   ============================================================ */
.user-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border2);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}
.user-item:hover { background: rgba(108, 99, 255, 0.05); }
.user-item:last-child { border-bottom: none; }
.user-item-info { flex: 1; min-width: 0; }
.user-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ============================================================
   Toast Notifications
   ============================================================ */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 40px);
  max-width: 420px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  animation: slideInDown 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  pointer-events: all;
  backdrop-filter: blur(20px);
}
.toast-success { background: rgba(72, 187, 120, 0.9); color: white; }
.toast-error { background: rgba(252, 129, 129, 0.9); color: white; }
.toast-info { background: rgba(108, 99, 255, 0.9); color: white; }
.toast-warning { background: rgba(246, 173, 85, 0.9); color: #1a1a1a; }

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; pointer-events: none; }
}

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border2);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }

/* ============================================================
   Stars Payment UI
   ============================================================ */
.stars-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--gold);
}
.stars-badge i { color: var(--star); }

/* ============================================================
   Gift Cards
   ============================================================ */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
}
.gift-card {
  background: var(--bg-card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.gift-card:hover, .gift-card.selected {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.1);
  transform: scale(1.05);
}
.gift-card-icon { font-size: 1.8rem; margin-bottom: 6px; }
.gift-card-name { font-size: 0.65rem; color: var(--text-secondary); margin-bottom: 4px; }
.gift-card-price { font-size: 0.7rem; color: var(--gold); font-weight: 700; }

/* ============================================================
   Profile Page
   ============================================================ */
.profile-hero {
  position: relative;
  padding: 30px 20px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(108, 99, 255, 0.1) 0%, transparent 100%);
}
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}
.profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.profile-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.profile-meta span { display: flex; align-items: center; gap: 4px; }
.profile-meta i { color: var(--accent); }

.profile-stats {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 20px;
  border: 1px solid var(--border2);
}
.profile-stat {
  flex: 1;
  padding: 14px;
  text-align: center;
  border-right: 1px solid var(--border2);
}
.profile-stat:last-child { border-right: none; }
.profile-stat-value { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.profile-stat-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   Score Bar
   ============================================================ */
.score-bar-wrap { margin: 8px 0; }
.score-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.score-bar-track {
  height: 8px;
  background: var(--bg-card2);
  border-radius: 4px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent-gradient);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Discover Swipe Cards
   ============================================================ */
.discover-wrap {
  position: relative;
  padding: 16px;
  min-height: 500px;
}
.discover-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 16px;
  animation: cardIn 0.4s ease;
}
@keyframes cardIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   Search Bar
   ============================================================ */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card2);
  border: 1.5px solid var(--border2);
  border-radius: 50px;
  transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font);
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar i { color: var(--text-muted); }

/* ============================================================
   Auth Page
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-primary);
}
.auth-logo {
  font-size: 3rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.auth-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 40px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 28px;
}
.auth-tabs {
  display: flex;
  background: var(--bg-card2);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  border: none;
  background: none;
}
.auth-tab.active { background: var(--accent); color: white; }

/* ============================================================
   VIP Page
   ============================================================ */
.vip-hero {
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,215,0,0.05), rgba(255,165,0,0.05));
  border-bottom: 1px solid rgba(255,215,0,0.1);
}
.vip-icon { font-size: 4rem; margin-bottom: 16px; }
.vip-plan {
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.vip-plan.selected {
  border-color: var(--gold);
  background: rgba(255, 215, 0, 0.05);
}
.vip-plan .popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a1a;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
}

/* ============================================================
   Notification Item
   ============================================================ */
.notification-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border2);
  transition: var(--transition);
}
.notification-item.unread { background: rgba(108, 99, 255, 0.04); }
.notification-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 1rem;
}
.notification-content { flex: 1; }
.notification-title { font-size: 0.88rem; font-weight: 600; margin-bottom: 3px; }
.notification-time { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   Loading Spinner
   ============================================================ */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.loading-text { color: var(--text-secondary); font-size: 0.9rem; }

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  text-align: center;
}
.empty-state-icon {
  font-size: 4rem;
  color: var(--border2);
  margin-bottom: 20px;
}
.empty-state-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.empty-state-text { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ============================================================
   Settings Page
   ============================================================ */
.settings-section {
  margin-bottom: 8px;
}
.settings-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border2);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-primary);
}
.settings-item:hover { background: rgba(108, 99, 255, 0.05); }
.settings-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.settings-item-label { flex: 1; font-size: 0.9rem; font-weight: 500; }
.settings-item-value { color: var(--text-muted); font-size: 0.8rem; }
.settings-item-arrow { color: var(--text-muted); font-size: 0.7rem; }

/* Toggle Switch */
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-card2);
  border-radius: 13px;
  transition: 0.3s;
  border: 1px solid var(--border2);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ============================================================
   Animations
   ============================================================ */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-pulse { animation: pulse 2s infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-card2) 25%, var(--bg-card) 50%, var(--bg-card2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
}

/* ============================================================
   Responsive & Telegram Mini App
   ============================================================ */
@media (max-width: 480px) {
  .app-container { max-width: 100%; }
  .bottom-nav { max-width: 100%; }
}

/* Telegram WebApp specific */
.tg-safe-top { padding-top: var(--tg-safe-area-inset-top, 0px); }
.tg-safe-bottom { padding-bottom: var(--tg-safe-area-inset-bottom, 0px); }

/* Page transitions */
.page-enter { animation: pageEnter 0.3s ease; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Gradient backgrounds for special sections */
.gradient-bg {
  background: linear-gradient(135deg, rgba(108,99,255,0.1) 0%, rgba(168,85,247,0.05) 100%);
}

/* Friend request card */
.request-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border2);
  margin-bottom: 10px;
}
.request-actions { display: flex; gap: 8px; margin-top: 10px; }

/* Divider */
.divider {
  height: 1px;
  background: var(--border2);
  margin: 16px 0;
}
.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border2);
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4);
  border: none;
  transition: var(--transition);
  z-index: 90;
  text-decoration: none;
}
.fab:hover { transform: scale(1.1); }
