/* QuickMeet - Mobile-First Dating App CSS */
/* Font: Outfit from Google Fonts */

:root {
  --pink: #E91E8C;
  --pink-light: #FF4DB8;
  --pink-dark: #C2185B;
  --purple: #9B27AF;
  --purple-light: #BA68C8;
  --gradient: linear-gradient(135deg, #E91E8C 0%, #9B27AF 100%);
  --gradient-soft: linear-gradient(135deg, rgba(233,30,140,.1) 0%, rgba(155,39,175,.1) 100%);
  --bg: #fef0f5;
  --card-bg: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #f3e8f5;
  --online: #22c55e;
  --shadow-sm: 0 2px 8px rgba(233,30,140,.08);
  --shadow-md: 0 4px 20px rgba(233,30,140,.12);
  --shadow-lg: 0 8px 32px rgba(233,30,140,.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --nav-height: 70px;
  --max-width: 480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: var(--nav-height);
  position: relative;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* =====================
   TOP BAR
===================== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}

.logo {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-icon { font-size: 24px; -webkit-text-fill-color: initial; }

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coins-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFD700, #FFA000);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(255,160,0,.3);
}
.coins-badge .coin-icon { font-size: 16px; }

.coins-add-btn {
  width: 22px; height: 22px;
  background: rgba(255,255,255,.3);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

.notif-btn {
  position: relative;
  width: 38px; height: 38px;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  cursor: pointer;
}
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--pink);
  border-radius: 50%;
  border: 2px solid #fff;
}

/* =====================
   HERO BANNER
===================== */
.hero {
  margin: 12px;
  border-radius: var(--radius-xl);
  background: var(--gradient);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -50px; right: 80px;
  width: 150px; height: 150px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}

.hero-left {
  flex: 1;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero h1 span { color: #FFD700; }

.hero-liked {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.liked-avatars {
  display: flex;
}
.liked-avatars img {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -6px;
  object-fit: cover;
}
.liked-avatars img:first-child { margin-left: 0; }
.liked-text {
  color: rgba(255,255,255,.9);
  font-size: 12px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--pink);
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
  transition: transform .2s;
}
.hero-btn:hover { transform: scale(1.03); }
.hero-btn .arrow {
  width: 24px; height: 24px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 12px;
}

.hero-right {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 170px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-cards {
  position: relative;
  width: 170px;
  height: 100%;
  padding: 16px 12px;
}
.hero-card {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.hero-card.card-1 {
  width: 80px; height: 105px;
  left: 12px; top: 16px;
}
.hero-card.card-2 {
  width: 85px; height: 115px;
  right: 8px; top: 8px;
}
.hero-card img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  padding: 6px 6px 4px;
  font-size: 10px;
  font-weight: 600;
}
.online-dot-hero {
  width: 6px; height: 6px;
  background: var(--online);
  border-radius: 50%;
  display: inline-block;
  margin-right: 3px;
}
.heart-badge {
  position: absolute;
  top: -8px; right: -4px;
  background: var(--pink);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(233,30,140,.4);
  border: 2px solid #fff;
}

/* =====================
   FEATURE ICONS ROW
===================== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px 12px;
}
.feature-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.feature-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 8px;
}
.fi-pink { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.fi-purple { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.fi-orange { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.fi-blue { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.feature-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.feature-sub {
  font-size: 10px;
  color: var(--text-muted);
}

/* =====================
   SECTION HEADERS
===================== */
.section {
  padding: 4px 16px 16px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin-top: 2px;
}
.view-all {
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =====================
   STORY CIRCLES (Online Now)
===================== */
.stories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 16px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.stories::-webkit-scrollbar { display: none; }

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
}
.story-ring {
  padding: 3px;
  border-radius: 50%;
  background: var(--gradient);
  position: relative;
}
.story-ring.add-story {
  background: #f0f0f0;
}
.story-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  display: block;
}
.story-add-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--pink);
  font-weight: 700;
}
.story-online {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 14px; height: 14px;
  background: var(--online);
  border-radius: 50%;
  border: 2px solid #fff;
}
.story-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 66px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =====================
   PROFILE CARDS (Recommended)
===================== */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 12px 16px;
}

.profile-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.profile-card:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

.profile-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
  transition: opacity .3s;
}
.profile-card:hover .profile-card-img { opacity: 1; }

.profile-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 40px 12px 12px;
}

.profile-online-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.profile-online-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--online);
  border-radius: 50%;
}
.profile-card-menu {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  border: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card-name {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.verified-tick {
  width: 18px; height: 18px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  flex-shrink: 0;
}
.profile-card-location {
  color: rgba(255,255,255,.8);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.profile-card-tag {
  display: inline-block;
  background: rgba(233,30,140,.8);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
}

.like-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px; height: 36px;
  background: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.like-btn:hover, .like-btn.liked {
  background: var(--pink);
  transform: scale(1.15);
  color: #fff;
}
.like-btn.liked .heart-icon { color: #fff; }

/* =====================
   PROFILES LIST PAGE
===================== */
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}
.back-btn {
  width: 36px; height: 36px;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
}
.page-title {
  flex: 1;
}
.page-title h2 {
  font-size: 20px;
  font-weight: 700;
}
.page-title p {
  font-size: 12px;
  color: var(--online);
  font-weight: 600;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 25px;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: .2s;
  background: var(--bg);
  color: var(--text-secondary);
}
.filter-tab.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 10px rgba(233,30,140,.3);
}

.search-bar {
  padding: 12px 16px;
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: .2s;
}
.search-bar input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(233,30,140,.1); }
.search-icon {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}
.filter-btn {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--pink);
  font-size: 20px;
  cursor: pointer;
}

/* Large profile card for list page */
.profiles-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 12px 16px;
}
.profile-list-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  position: relative;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .2s;
}
.profile-list-card:hover { transform: scale(1.02); }
.profile-list-img {
  width: 100%;
  aspect-ratio: 3/4.5;
  object-fit: cover;
  display: block;
}
.profile-list-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
  padding: 50px 12px 0;
}
.profile-list-name {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.profile-list-city {
  color: rgba(255,255,255,.8);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}
.view-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: var(--gradient);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
  text-decoration: none;
}
.view-profile-btn:hover { opacity: .9; }

/* =====================
   PROFILE DETAIL PAGE
===================== */
.profile-hero {
  position: relative;
  height: 70vw;
  max-height: 450px;
  overflow: hidden;
  background: #000;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 10px 30px rgba(233,30,140,0.12);
  margin-bottom: 24px;
}
.profile-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  animation: subtleZoom 10s infinite alternate;
}

@keyframes subtleZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.whatsapp-block {
  animation: slideUpFade 0.6s ease-out forwards;
}
.profile-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.9) 100%);
  padding: 80px 20px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.profile-hero-name {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-hero-loc {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.profile-hero-rating {
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  color: #FFD700;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-hero-badges {
  position: absolute;
  top: 14px; left: 14px;
  right: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-online {
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.badge-online::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--online);
  border-radius: 50%;
}
.badge-verified {
  background: rgba(59,130,246,.8);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.profile-hero-back {
  position: absolute;
  top: 14px; left: 14px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
}
.profile-hero-more {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* Stats bar */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border-radius: 0;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 22px; }
.stat-label { font-size: 10px; color: var(--text-muted); font-weight: 500; }
.stat-value { font-size: 13px; font-weight: 700; color: var(--text-primary); }

/* Video call CTA */
.video-call-section {
  padding: 16px 16px 0;
  display: flex;
  gap: 10px;
}
.start-video-btn {
  flex: 1;
  padding: 16px;
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(233,30,140,.35);
  transition: transform .2s;
  position: relative;
}
.start-video-btn:hover { transform: scale(1.02); }
.coin-note {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.gift-btn {
  padding: 16px 18px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: .2s;
}
.gift-btn .gift-emoji { font-size: 22px; }
.gift-btn:hover { border-color: var(--pink); }

/* About section */
.profile-section {
  background: #fff;
  padding: 20px 16px;
  margin-top: 12px;
  border-radius: var(--radius-lg);
  margin: 12px;
}
.profile-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.about-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.about-tag .at-icon { font-size: 14px; }

/* Interests */
.interests-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.interest-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-soft);
  border: 1px solid rgba(233,30,140,.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-dark);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.gallery-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gallery-thumb:hover img { transform: scale(1.1); }

/* =====================
   WALLET PAGE
===================== */
.wallet-hero {
  background: var(--gradient);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.wallet-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
}
.wallet-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; right: 20px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}
.wallet-title {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.wallet-balance {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.wallet-coin-icon { font-size: 36px; }
.wallet-amount {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.wallet-rate {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.wallet-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.ws-item {
  text-align: center;
  padding: 0 4px;
  border-right: 1px solid var(--border);
}
.ws-item:last-child { border: none; }
.ws-val { font-size: 15px; font-weight: 800; color: var(--text-primary); }
.ws-label { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.coin-packages-section {
  padding: 16px;
}
.pkg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.packages-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 18px 16px 24px; /* Added top padding to prevent badge crop, and edge padding */
  margin: 0 -16px; /* Edge-to-edge scroll */
  scrollbar-width: none;
}
.packages-scroll::-webkit-scrollbar { display: none; }

@keyframes popInWallet {
  0% { opacity: 0; transform: scale(0.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.pkg-card {
  flex-shrink: 0;
  width: 140px;
  background: #fff;
  border-radius: 20px;
  padding: 20px 14px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: popInWallet 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}
.pkg-card:nth-child(1) { animation-delay: 0.1s; }
.pkg-card:nth-child(2) { animation-delay: 0.2s; }
.pkg-card:nth-child(3) { animation-delay: 0.3s; }
.pkg-card:nth-child(4) { animation-delay: 0.4s; }

.pkg-card.popular {
  border-color: rgba(233,30,140,0.3);
  background: linear-gradient(180deg, #fff9fb, #fff);
  box-shadow: 0 12px 32px rgba(233,30,140,0.12);
  transform: translateY(-4px);
}
.pkg-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.pkg-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #E91E8C, #9B27AF);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(233,30,140,0.4);
}
.pkg-icon { font-size: 28px; margin-bottom: 6px; margin-top: 4px; }
.pkg-name { font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.pkg-coins { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.pkg-bonus {
  font-size: 10px;
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 4px;
}
.pkg-save {
  font-size: 10px;
  background: #dcfce7;
  color: #16a34a;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 8px;
}
.pkg-price { font-size: 18px; font-weight: 800; color: var(--pink); margin-bottom: 10px; }
.buy-btn {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 25px;
  background: var(--gradient);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}
.buy-btn:hover { opacity: .9; transform: scale(1.03); }
.pkg-card.popular .buy-btn {
  box-shadow: 0 4px 15px rgba(233,30,140,.35);
}

/* How to use coins */
.how-to-use {
  padding: 24px 20px;
  background: #fff;
  border-radius: 24px;
  margin: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  animation: slideUpFade 0.6s ease backwards 0.4s;
}
.use-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.use-item:last-child { border: none; }
.use-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}
.use-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.use-cost {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink);
}

/* VIP Box */
.vip-box {
  margin: 16px;
  background: linear-gradient(135deg, #1f143d, #3c0c6e);
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(60,12,110,0.3);
  position: relative;
  overflow: hidden;
  animation: slideUpFade 0.6s ease backwards 0.5s;
}
.vip-box::after {
  content: '👑';
  position: absolute;
  right: -20px;
  top: 10px;
  font-size: 120px;
  opacity: 0.05;
}
.vip-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vip-features {
  list-style: none;
  margin-bottom: 16px;
}
.vip-features li {
  font-size: 13px;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vip-features li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
}
.vip-price {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #FFD700;
}
.vip-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #FFD700, #FFA000);
  border: none;
  border-radius: 25px;
  color: #1a1a2e;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
}
.vip-btn:hover { opacity: .9; transform: scale(1.02); }

/* Transactions */
.transactions { padding: 16px; }
.txn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.txn-item:last-child { border: none; }
.txn-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.txn-credit .txn-icon { background: #dcfce7; }
.txn-debit .txn-icon { background: #fef2f2; }
.txn-info { flex: 1; }
.txn-desc { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.txn-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.txn-amount { font-size: 15px; font-weight: 700; }
.txn-credit .txn-amount { color: #16a34a; }
.txn-debit .txn-amount { color: #dc2626; }

/* Recharge Banner */
.recharge-banner {
  margin: 12px;
  background: linear-gradient(135deg, #fce4ec, #f3e5f5);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.recharge-content { flex: 1; }
.recharge-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.recharge-sub { font-size: 12px; color: var(--text-secondary); }
.recharge-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient);
  color: #fff;
  padding: 10px 16px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* =====================
   LOGIN PAGE
===================== */
.login-page {
  min-height: 100vh;
  background: var(--gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.login-logo {
  text-align: center;
  margin-bottom: 8px;
}
.login-logo .logo-text {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  color: var(--text-muted);
  font-size: 13px;
}

.social-btn {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: .2s;
  margin-bottom: 12px;
  color: var(--text-primary);
  text-decoration: none;
}
.social-btn:hover {
  border-color: var(--pink);
  background: var(--gradient-soft);
}
.google-icon { font-size: 20px; }

.quick-form .form-group {
  margin-bottom: 16px;
}
.quick-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.quick-form input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: .2s;
  background: var(--bg);
}
.quick-form input:focus {
  border-color: var(--pink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(233,30,140,.1);
}
.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(233,30,140,.35);
  transition: .2s;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 25px rgba(233,30,140,.45); }

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}
.login-footer a { color: var(--pink); font-weight: 600; }

/* Tab switcher */
.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  color: var(--text-secondary);
}
.auth-tab.active {
  background: #fff;
  color: var(--pink);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* =====================
   BOTTOM NAVIGATION
===================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: #fff;
  display: flex;
  align-items: center;
  height: var(--nav-height);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  border-top: 1px solid var(--border);
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  text-decoration: none;
  color: var(--text-muted);
  transition: .2s;
  position: relative;
}
.nav-item.active { color: var(--pink); }
.nav-icon { font-size: 22px; transition: transform .2s; }
.nav-item:hover .nav-icon { transform: scale(1.1); }
.nav-label { font-size: 11px; font-weight: 600; }
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
}
.nav-center-btn {
  width: 52px;
  height: 52px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(233,30,140,.4);
  transform: translateY(-8px);
  text-decoration: none;
  color: #fff;
  transition: transform .2s, box-shadow .2s;
}
.nav-center-btn:hover { transform: translateY(-10px) scale(1.05); box-shadow: 0 6px 25px rgba(233,30,140,.5); }
.nav-badge {
  position: absolute;
  top: 4px; right: 10px;
  min-width: 16px; height: 16px;
  background: var(--pink);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  padding: 0 4px;
}

/* =====================
   ALERTS & TOASTS
===================== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: #1a1a2e;
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transition: transform .3s cubic-bezier(.175,.885,.32,1.275);
  white-space: nowrap;
  max-width: calc(var(--max-width) - 40px);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast.info { background: var(--gradient); }

/* =====================
   MODAL / OVERLAY
===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px;
  width: 100%;
  max-width: var(--max-width);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,0,.67,0);
}
.modal-overlay.open .modal {
  transform: translateY(0);
}
.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* =====================
   EMPTY STATES
===================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-text { color: var(--text-secondary); font-size: 14px; }

/* =====================
   UTILITIES
===================== */
.mt-12 { margin-top: 12px; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.fw-700 { font-weight: 700; }
.text-pink { color: var(--pink); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }

/* Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
.loading-card {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
  height: 200px;
}

/* Responsive for larger screens */
@media (min-width: 481px) {
  body {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-shadow: 0 0 40px rgba(0,0,0,.08);
  }
}

/* Live User Modern Highlights & Tags */
.profile-live-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.35);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
}
.live-dot-pulse {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: liveDotPulse 1.2s infinite ease-in-out;
}
@keyframes liveDotPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
.live-card-highlight {
  border: 1.5px solid rgba(244, 63, 94, 0.8) !important;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.25), var(--shadow-md) !important;
  animation: liveOutlinePulse 2.5s infinite ease-in-out;
}
@keyframes liveOutlinePulse {
  0%, 100% {
    border-color: rgba(244, 63, 94, 0.5);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.15), var(--shadow-md);
  }
  50% {
    border-color: rgba(244, 63, 94, 1);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.5), var(--shadow-md);
  }
}
