/* ===== JhooM LivE Frontend CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --deep-purple: #4a0080;
  --mid-purple:  #7b2ff7;
  --deep-blue:   #0d1b4b;
  --mid-blue:    #1a3a8f;
  --gold:        #f1c40f;
  --gold-light:  #ffd700;
  --white:       #ffffff;
  --light-purple:#e8d5ff;
  --bg-gradient: linear-gradient(135deg, #1a0533 0%, #0d1b4b 50%, #1a0533 100%);
  --card-bg:     rgba(255,255,255,0.07);
  --card-border: rgba(255,215,0,0.25);
  --text-muted:  rgba(255,255,255,0.6);
  --red:         #e74c3c;
  --green:       #2ecc71;
  --pink-purple: #ff6eb4;
  --radius:      16px;
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-gradient);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(270deg, #1a0533, #0d1b4b, #2d0060, #0a2060);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  z-index: -1;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== AUTH ===== */
.auth-body { display:flex; align-items:center; justify-content:center; min-height:100vh; padding:20px; }
.auth-container { width:100%; max-width:440px; }
.auth-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.auth-logo { text-align:center; margin-bottom:10px; }
.logo-text {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #b44fff, #3a8eff, #f1c40f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-title { text-align:center; font-size:1.3rem; color:var(--light-purple); margin-bottom:24px; font-weight:600; }
.auth-form { display:flex; flex-direction:column; gap:14px; }
.form-group { position:relative; }
.form-input {
  width:100%; padding:14px 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  color: #fff;
  font-size: .95rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: .3s;
}
.form-input:focus { border-color: var(--mid-purple); background: rgba(123,47,247,0.15); }
.form-input::placeholder { color: rgba(255,255,255,0.45); }
.btn-primary {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--mid-purple), var(--mid-blue));
  border: none; border-radius: 12px;
  color: #fff; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: .3s;
  font-family: 'Poppins', sans-serif;
  letter-spacing: .5px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(123,47,247,0.5); }
.btn-full { width:100%; }
.btn-gold {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #1a0533; font-weight: 700;
}
.btn-danger { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.btn-success { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.btn-sm { padding: 8px 16px; font-size: .8rem; border-radius: 8px; }
.auth-divider { text-align:center; color:rgba(255,255,255,0.4); margin:16px 0; font-size:.85rem; position:relative; }
.auth-divider::before, .auth-divider::after {
  content:''; position:absolute; top:50%; width:42%; height:1px;
  background:rgba(255,255,255,0.15);
}
.auth-divider::before { left:0; } .auth-divider::after { right:0; }
.btn-social {
  display:flex; align-items:center; justify-content:center; gap:10px;
  padding:12px; border-radius:12px; text-decoration:none;
  font-size:.9rem; font-weight:600; margin-bottom:10px;
  transition:.3s; border:1px solid rgba(255,255,255,0.2);
  color:#fff;
}
.btn-google  { background:rgba(234,67,53,0.2); }
.btn-facebook{ background:rgba(24,119,242,0.2); }
.btn-social:hover { transform:translateY(-1px); }
.auth-switch { text-align:center; margin-top:16px; font-size:.85rem; color:rgba(255,255,255,0.6); }
.auth-switch a { color:var(--gold); text-decoration:none; font-weight:600; }
.alert-error {
  background:rgba(231,76,60,0.2); border:1px solid #e74c3c;
  border-radius:10px; padding:12px 16px; margin-bottom:16px;
  font-size:.85rem; color:#ff8a80;
}
.alert-success {
  background:rgba(46,204,113,0.2); border:1px solid #2ecc71;
  border-radius:10px; padding:12px 16px; margin-bottom:16px;
  font-size:.85rem; color:#a8ffcb;
}
.profile-upload-wrap { text-align:center; }
.profile-upload-label { cursor:pointer; display:inline-flex; flex-direction:column; align-items:center; gap:8px; color:var(--gold); font-size:.85rem; }
.profile-preview { width:80px; height:80px; border-radius:50%; object-fit:cover; border:3px solid var(--mid-purple); }
input[type="file"] { display:none; }

/* ===== APP LAYOUT ===== */
.app-wrapper { display:flex; flex-direction:column; min-height:100vh; max-width:480px; margin:0 auto; position:relative; }
.app-header {
  position:sticky; top:0; z-index:100;
  background:rgba(10,5,30,0.85);
  backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(255,215,0,0.15);
  padding:12px 16px;
  display:flex; align-items:center; justify-content:space-between;
}
.header-left { display:flex; align-items:center; gap:10px; }
.header-avatar { width:38px; height:38px; border-radius:50%; object-fit:cover; border:2px solid var(--mid-purple); cursor:pointer; }
.header-logo { font-size:1.2rem; font-weight:800; background:linear-gradient(90deg,#b44fff,#3a8eff,#f1c40f); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.header-right { display:flex; align-items:center; gap:12px; }
.wallet-badge {
  display:flex; align-items:center; gap:6px;
  background:linear-gradient(135deg,rgba(241,196,15,0.2),rgba(241,196,15,0.1));
  border:1px solid rgba(241,196,15,0.4);
  border-radius:20px; padding:6px 14px;
  font-size:.85rem; font-weight:700; color:var(--gold);
  cursor:pointer;
}
.wallet-badge .coin-icon { font-size:1rem; }

/* ===== LIVE GRID ===== */
.live-section { padding:16px; }
.section-title { font-size:1rem; font-weight:700; color:var(--light-purple); margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.live-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.live-card {
  position:relative; border-radius:16px; overflow:hidden;
  aspect-ratio:1; cursor:pointer;
  border:2px solid rgba(255,255,255,0.1);
  transition:.3s;
}
.live-card:hover { transform:scale(1.02); border-color:var(--mid-purple); }
.live-card img { width:100%; height:100%; object-fit:cover; }
.live-card .live-badge {
  position:absolute; top:8px; left:8px;
  background:var(--red); color:#fff;
  font-size:.65rem; font-weight:700;
  padding:3px 8px; border-radius:20px;
  animation:pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.live-card .user-info {
  position:absolute; bottom:0; left:0; right:0;
  background:linear-gradient(transparent,rgba(0,0,0,0.8));
  padding:20px 10px 10px;
}
.live-card .user-name { font-size:.8rem; font-weight:600; }
.live-card .viewer-count { font-size:.7rem; color:rgba(255,255,255,0.7); }
.live-card .country-flag { position:absolute; bottom:10px; right:8px; width:20px; height:14px; }

/* ===== TOP RANKED ===== */
.top-ranked { padding:0 16px 16px; }
.ranked-list { display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; }
.ranked-list::-webkit-scrollbar { display:none; }
.rank-card {
  flex:0 0 90px; text-align:center;
  background:var(--card-bg); border:1px solid var(--card-border);
  border-radius:14px; padding:12px 8px;
}
.rank-card .rank-num { font-size:.7rem; color:var(--gold); font-weight:700; margin-bottom:6px; }
.rank-card img { width:50px; height:50px; border-radius:50%; object-fit:cover; border:2px solid var(--mid-purple); }
.rank-card .rank-name { font-size:.7rem; margin-top:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rank-card .rank-coins { font-size:.65rem; color:var(--gold); }

/* ===== GO LIVE BUTTON ===== */
.go-live-btn {
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin:0 16px 16px;
  padding:14px;
  background:linear-gradient(135deg,#e74c3c,#c0392b,#9b59b6);
  border-radius:14px; border:none;
  color:#fff; font-size:1rem; font-weight:700;
  cursor:pointer; transition:.3s;
  font-family:'Poppins',sans-serif;
  box-shadow:0 4px 20px rgba(231,76,60,0.4);
  width:calc(100% - 32px);
}
.go-live-btn:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(231,76,60,0.6); }

/* ===== FOOTER NAV ===== */
.footer-nav {
  position:fixed; bottom:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:480px;
  background:rgba(10,5,30,0.95);
  backdrop-filter:blur(20px);
  border-top:1px solid rgba(255,215,0,0.15);
  display:flex; justify-content:space-around; align-items:center;
  padding:10px 0 calc(10px + env(safe-area-inset-bottom));
  z-index:200;
}
.nav-item {
  display:flex; flex-direction:column; align-items:center; gap:3px;
  text-decoration:none; color:rgba(255,255,255,0.5);
  font-size:.65rem; font-weight:600;
  transition:.3s; cursor:pointer; border:none; background:none;
  font-family:'Poppins',sans-serif;
}
.nav-item .nav-icon { font-size:1.4rem; }
.nav-item.active, .nav-item:hover { color:var(--gold); }
.nav-item.active .nav-icon { filter:drop-shadow(0 0 6px var(--gold)); }

/* ===== REELS ===== */
.reels-container { height:calc(100vh - 60px); overflow-y:scroll; scroll-snap-type:y mandatory; }
.reels-container::-webkit-scrollbar { display:none; }
.reel-item {
  height:calc(100vh - 60px); scroll-snap-align:start;
  position:relative; overflow:hidden; background:#000;
}
.reel-item video { width:100%; height:100%; object-fit:cover; }
.reel-overlay {
  position:absolute; inset:0;
  background:linear-gradient(transparent 40%,rgba(0,0,0,0.7));
  pointer-events:none;
}
.reel-actions {
  position:absolute; right:12px; bottom:100px;
  display:flex; flex-direction:column; gap:20px; align-items:center;
}
.reel-action-btn {
  display:flex; flex-direction:column; align-items:center; gap:4px;
  background:none; border:none; color:#fff; cursor:pointer;
  font-size:.7rem; font-family:'Poppins',sans-serif;
}
.reel-action-btn .icon { font-size:1.8rem; filter:drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.reel-user-info { position:absolute; left:12px; bottom:100px; }
.reel-username { font-size:.95rem; font-weight:700; margin-bottom:4px; }
.reel-music { font-size:.75rem; color:rgba(255,255,255,0.8); display:flex; align-items:center; gap:6px; }
.reel-header {
  position:absolute; top:0; left:0; right:0;
  padding:16px; display:flex; justify-content:flex-end;
  background:linear-gradient(rgba(0,0,0,0.4),transparent);
}

/* ===== RANK PAGE ===== */
.rank-page { padding:16px; padding-bottom:80px; }
.rank-podium { display:flex; align-items:flex-end; justify-content:center; gap:8px; margin-bottom:24px; }
.podium-item { text-align:center; }
.podium-item.first .podium-avatar { width:72px; height:72px; border:3px solid var(--gold); }
.podium-item.second .podium-avatar,
.podium-item.third  .podium-avatar { width:56px; height:56px; border:2px solid var(--mid-purple); }
.podium-avatar { border-radius:50%; object-fit:cover; }
.podium-base {
  margin-top:8px; border-radius:8px 8px 0 0;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:1.2rem;
}
.podium-item.first  .podium-base { height:60px; background:linear-gradient(135deg,#f1c40f,#e67e22); color:#1a0533; width:80px; }
.podium-item.second .podium-base { height:44px; background:linear-gradient(135deg,#bdc3c7,#95a5a6); color:#1a0533; width:64px; }
.podium-item.third  .podium-base { height:32px; background:linear-gradient(135deg,#cd7f32,#a0522d); color:#fff; width:64px; }
.rank-tabs { display:flex; gap:8px; overflow-x:auto; margin-bottom:16px; padding-bottom:4px; }
.rank-tabs::-webkit-scrollbar { display:none; }
.rank-tab {
  flex:0 0 auto; padding:8px 16px; border-radius:20px;
  border:1px solid rgba(255,255,255,0.2);
  background:transparent; color:rgba(255,255,255,0.6);
  font-size:.8rem; font-weight:600; cursor:pointer;
  font-family:'Poppins',sans-serif; transition:.3s;
}
.rank-tab.active { background:var(--mid-purple); border-color:var(--mid-purple); color:#fff; }
.rank-list-item {
  display:flex; align-items:center; gap:12px;
  padding:12px; border-radius:12px;
  background:var(--card-bg); border:1px solid rgba(255,255,255,0.08);
  margin-bottom:8px;
}
.rank-list-item .rank-pos { width:28px; font-weight:700; color:var(--gold); font-size:.9rem; text-align:center; }
.rank-list-item img { width:44px; height:44px; border-radius:50%; object-fit:cover; border:2px solid var(--mid-purple); }
.rank-list-item .user-details { flex:1; }
.rank-list-item .user-details .name { font-size:.9rem; font-weight:600; }
.rank-list-item .user-details .coins { font-size:.75rem; color:var(--gold); }

/* ===== ACTIVITY PAGE ===== */
.activity-page { padding:16px; padding-bottom:80px; }
.pk-timer-btn {
  width:100%; padding:16px;
  background:linear-gradient(135deg,#e74c3c,#9b59b6);
  border-radius:16px; border:none; color:#fff;
  font-size:1rem; font-weight:700; cursor:pointer;
  font-family:'Poppins',sans-serif;
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:20px;
  box-shadow:0 4px 20px rgba(231,76,60,0.3);
}
.pk-timer-btn .timer { font-size:1.3rem; font-weight:800; color:var(--gold); }
.activity-menu { display:flex; flex-direction:column; gap:10px; }
.activity-item {
  display:flex; align-items:center; gap:14px;
  padding:16px; border-radius:14px;
  background:var(--card-bg); border:1px solid rgba(255,255,255,0.1);
  cursor:pointer; transition:.3s; text-decoration:none; color:#fff;
}
.activity-item:hover { border-color:var(--mid-purple); background:rgba(123,47,247,0.15); }
.activity-item .item-icon { font-size:1.6rem; width:44px; text-align:center; }
.activity-item .item-text .title { font-size:.95rem; font-weight:600; }
.activity-item .item-text .sub { font-size:.75rem; color:var(--text-muted); }
.activity-item .arrow { margin-left:auto; color:var(--text-muted); }

/* ===== PROFILE PAGE ===== */
.profile-page { padding:16px; padding-bottom:80px; }
.profile-hero {
  text-align:center; padding:24px 16px;
  background:var(--card-bg); border:1px solid var(--card-border);
  border-radius:20px; margin-bottom:16px;
}
.profile-hero img { width:90px; height:90px; border-radius:50%; object-fit:cover; border:3px solid var(--mid-purple); margin-bottom:12px; }
.profile-hero .profile-name { font-size:1.2rem; font-weight:700; }
.profile-hero .profile-uid { font-size:.8rem; color:var(--gold); margin-bottom:8px; }
.profile-hero .profile-stats { display:flex; justify-content:center; gap:24px; margin-top:12px; }
.profile-hero .stat { text-align:center; }
.profile-hero .stat .val { font-size:1.1rem; font-weight:700; color:var(--gold); }
.profile-hero .stat .lbl { font-size:.7rem; color:var(--text-muted); }
.profile-menu { display:flex; flex-direction:column; gap:8px; }
.profile-menu-item {
  display:flex; align-items:center; gap:14px;
  padding:14px 16px; border-radius:12px;
  background:var(--card-bg); border:1px solid rgba(255,255,255,0.08);
  cursor:pointer; transition:.3s; text-decoration:none; color:#fff;
}
.profile-menu-item:hover { border-color:var(--mid-purple); }
.profile-menu-item .icon { font-size:1.3rem; width:36px; text-align:center; }
.profile-menu-item .label { flex:1; font-size:.9rem; font-weight:500; }
.profile-menu-item .arrow { color:var(--text-muted); font-size:.8rem; }

/* ===== CARDS & MODALS ===== */
.card {
  background:var(--card-bg);
  border:1px solid var(--card-border);
  border-radius:var(--radius);
  padding:20px;
  margin-bottom:16px;
}
.modal-overlay {
  position:fixed; inset:0; z-index:1000;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(8px);
  display:flex; align-items:flex-end; justify-content:center;
  opacity:0; pointer-events:none; transition:.3s;
}
.modal-overlay.show { opacity:1; pointer-events:all; }
.modal-sheet {
  width:100%; max-width:480px;
  background:linear-gradient(180deg,#1e0a40,#0d1b4b);
  border-radius:24px 24px 0 0;
  border:1px solid rgba(255,215,0,0.2);
  padding:24px 20px 40px;
  transform:translateY(100%); transition:.3s;
}
.modal-overlay.show .modal-sheet { transform:translateY(0); }
.modal-handle { width:40px; height:4px; background:rgba(255,255,255,0.3); border-radius:2px; margin:0 auto 20px; }
.modal-title { font-size:1.1rem; font-weight:700; margin-bottom:20px; text-align:center; color:var(--light-purple); }

/* ===== POPUP ANNOUNCEMENT ===== */
.popup-overlay {
  position:fixed; inset:0; z-index:2000;
  background:rgba(0,0,0,0.8);
  display:flex; align-items:center; justify-content:center;
  animation:fadeIn .3s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.popup-content {
  max-width:340px; width:90%;
  border-radius:20px; overflow:hidden;
  border:2px solid var(--gold);
  box-shadow:0 0 40px rgba(241,196,15,0.3);
  animation:popIn .4s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes popIn { from{transform:scale(.7);opacity:0} to{transform:scale(1);opacity:1} }
.popup-content img { width:100%; display:block; }

/* ===== FREE COIN POPUP ===== */
.free-coin-popup {
  text-align:center; padding:30px 20px;
  background:linear-gradient(135deg,#1e0a40,#0d1b4b);
  border-radius:20px; border:2px solid var(--gold);
}
.free-coin-popup .coin-anim { font-size:4rem; animation:bounce 1s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.free-coin-popup h3 { font-size:1.3rem; color:var(--gold); margin:12px 0 8px; }
.free-coin-popup p { color:var(--text-muted); font-size:.9rem; margin-bottom:20px; }

/* ===== LIVE STREAM PAGE ===== */
.live-page { position:fixed; inset:0; background:#000; z-index:500; }
.live-video-bg { width:100%; height:100%; object-fit:cover; }
.live-top-bar {
  position:absolute; top:0; left:0; right:0;
  padding:16px; display:flex; align-items:center; justify-content:space-between;
  background:linear-gradient(rgba(0,0,0,0.6),transparent);
}
.live-coin-count { display:flex; align-items:center; gap:6px; background:rgba(0,0,0,0.5); border-radius:20px; padding:6px 12px; font-size:.85rem; color:var(--gold); font-weight:700; }
.live-top-senders { display:flex; gap:8px; }
.sender-card { display:flex; align-items:center; gap:6px; background:rgba(0,0,0,0.5); border-radius:20px; padding:4px 10px; }
.sender-card img { width:28px; height:28px; border-radius:50%; object-fit:cover; }
.sender-progress { width:60px; height:6px; border-radius:3px; overflow:hidden; background:rgba(255,255,255,0.2); }
.sender-progress .bar { height:100%; border-radius:3px; }
.sender-progress .bar.red { background:var(--red); }
.sender-progress .bar.green { background:var(--green); }
.live-bottom {
  position:absolute; bottom:0; left:0; right:0;
  padding:16px; background:linear-gradient(transparent,rgba(0,0,0,0.7));
}
.live-comments { max-height:200px; overflow-y:auto; margin-bottom:12px; }
.live-comments::-webkit-scrollbar { display:none; }
.live-comment { display:flex; align-items:flex-start; gap:8px; margin-bottom:8px; }
.live-comment img { width:28px; height:28px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.live-comment .comment-bubble { background:rgba(0,0,0,0.5); border-radius:12px; padding:6px 10px; font-size:.8rem; }
.live-comment .comment-bubble .commenter { color:var(--gold); font-weight:600; font-size:.75rem; }
.live-input-row { display:flex; gap:8px; }
.live-input { flex:1; background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,0.2); border-radius:24px; padding:10px 16px; color:#fff; font-size:.85rem; outline:none; font-family:'Poppins',sans-serif; }
.live-actions { display:flex; gap:10px; }
.live-action-btn { background:rgba(255,255,255,0.15); border:none; border-radius:50%; width:40px; height:40px; display:flex; align-items:center; justify-content:center; font-size:1.1rem; cursor:pointer; color:#fff; transition:.3s; }
.live-action-btn:hover { background:rgba(123,47,247,0.5); }
.viewer-count-badge { position:absolute; top:16px; right:16px; background:rgba(0,0,0,0.5); border-radius:20px; padding:6px 12px; font-size:.8rem; display:flex; align-items:center; gap:6px; }

/* ===== VOICE CHAT ===== */
.voice-room { padding:16px; padding-bottom:80px; }
.voice-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:20px; }
.voice-slot {
  aspect-ratio:1; border-radius:14px;
  background:rgba(255,255,255,0.05);
  border:2px dashed rgba(255,255,255,0.15);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; font-size:.7rem; color:var(--text-muted);
}
.voice-slot.occupied { border:2px solid var(--mid-purple); background:rgba(123,47,247,0.1); }
.voice-slot img { width:48px; height:48px; border-radius:50%; object-fit:cover; border:2px solid var(--mid-purple); }
.voice-slot .speaking { animation:speakPulse 1s infinite; }
@keyframes speakPulse { 0%,100%{box-shadow:0 0 0 0 rgba(123,47,247,0.7)} 50%{box-shadow:0 0 0 8px rgba(123,47,247,0)} }

/* ===== PK BATTLE ===== */
.pk-battle-page { padding:16px; padding-bottom:80px; }
.pk-arena {
  display:flex; align-items:center; gap:8px; margin-bottom:20px;
}
.pk-player {
  flex:1; text-align:center; padding:16px;
  background:var(--card-bg); border-radius:16px;
  border:2px solid rgba(255,255,255,0.1);
}
.pk-player img { width:64px; height:64px; border-radius:50%; object-fit:cover; border:3px solid var(--mid-purple); margin-bottom:8px; }
.pk-player .pk-name { font-size:.9rem; font-weight:700; }
.pk-player .pk-coins { font-size:.8rem; color:var(--gold); }
.pk-vs { font-size:1.5rem; font-weight:900; color:var(--red); text-shadow:0 0 20px rgba(231,76,60,0.8); flex-shrink:0; }
.pk-progress-wrap { margin-bottom:16px; }
.pk-progress-bar { height:12px; border-radius:6px; background:rgba(255,255,255,0.1); overflow:hidden; display:flex; }
.pk-bar-red   { background:linear-gradient(90deg,#e74c3c,#c0392b); height:100%; transition:width .5s; }
.pk-bar-green { background:linear-gradient(90deg,#2ecc71,#27ae60); height:100%; transition:width .5s; }
.pk-timer { text-align:center; font-size:2rem; font-weight:800; color:var(--gold); margin-bottom:16px; font-variant-numeric:tabular-nums; }
.pk-winner-screen {
  position:fixed; inset:0; z-index:3000;
  background:rgba(0,0,0,0.9);
  display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:16px;
}
.pk-winner-screen img { max-width:320px; border-radius:20px; border:3px solid var(--gold); }
.pk-winner-screen h2 { font-size:1.5rem; color:var(--gold); text-align:center; }

/* ===== WALLET / COINS ===== */
.coin-packages { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.coin-pkg {
  padding:16px; border-radius:14px; text-align:center;
  background:var(--card-bg); border:2px solid rgba(255,215,0,0.2);
  cursor:pointer; transition:.3s;
}
.coin-pkg:hover, .coin-pkg.selected { border-color:var(--gold); background:rgba(241,196,15,0.1); }
.coin-pkg .pkg-coins { font-size:1.3rem; font-weight:800; color:var(--gold); }
.coin-pkg .pkg-price { font-size:.85rem; color:var(--text-muted); margin-top:4px; }

/* ===== FAMILY ===== */
.family-card {
  display:flex; align-items:center; gap:12px;
  padding:14px; border-radius:14px;
  background:var(--card-bg); border:1px solid rgba(255,255,255,0.1);
  margin-bottom:10px; cursor:pointer; transition:.3s;
}
.family-card:hover { border-color:var(--mid-purple); }
.family-card img { width:48px; height:48px; border-radius:50%; object-fit:cover; border:2px solid var(--mid-purple); }
.family-card .fam-info { flex:1; }
.family-card .fam-name { font-size:.95rem; font-weight:700; }
.family-card .fam-meta { font-size:.75rem; color:var(--text-muted); }
.family-card .fam-rank { font-size:.8rem; color:var(--gold); font-weight:700; }

/* ===== USER PROFILE POPUP ===== */
.user-profile-popup { padding:20px; text-align:center; }
.user-profile-popup img { width:80px; height:80px; border-radius:50%; object-fit:cover; border:3px solid var(--mid-purple); margin-bottom:12px; }
.user-profile-popup .pop-name { font-size:1.1rem; font-weight:700; margin-bottom:4px; }
.user-profile-popup .pop-uid { font-size:.8rem; color:var(--gold); margin-bottom:12px; }
.user-profile-popup .pop-stats { display:flex; justify-content:center; gap:20px; margin-bottom:16px; }
.user-profile-popup .pop-stat .val { font-size:1rem; font-weight:700; color:var(--gold); }
.user-profile-popup .pop-stat .lbl { font-size:.7rem; color:var(--text-muted); }
.user-profile-popup .pop-actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

/* ===== INBOX ===== */
.inbox-list { display:flex; flex-direction:column; gap:8px; }
.inbox-item {
  display:flex; align-items:center; gap:12px;
  padding:14px; border-radius:14px;
  background:var(--card-bg); border:1px solid rgba(255,255,255,0.08);
  cursor:pointer; transition:.3s;
}
.inbox-item:hover { border-color:var(--mid-purple); }
.inbox-item img { width:46px; height:46px; border-radius:50%; object-fit:cover; border:2px solid var(--mid-purple); }
.inbox-item .msg-info { flex:1; overflow:hidden; }
.inbox-item .msg-sender { font-size:.9rem; font-weight:600; }
.inbox-item .msg-preview { font-size:.78rem; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.inbox-item .msg-time { font-size:.7rem; color:var(--text-muted); }
.inbox-item .unread-dot { width:10px; height:10px; border-radius:50%; background:var(--mid-purple); flex-shrink:0; }

/* ===== FORMS ===== */
.form-label { display:block; font-size:.85rem; color:var(--light-purple); margin-bottom:6px; font-weight:500; }
.form-select {
  width:100%; padding:12px 16px;
  background:rgba(255,255,255,0.1);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:12px; color:#fff;
  font-size:.9rem; font-family:'Poppins',sans-serif;
  outline:none; cursor:pointer;
}
.form-select option { background:#1a0533; color:#fff; }
.form-textarea {
  width:100%; padding:12px 16px;
  background:rgba(255,255,255,0.1);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:12px; color:#fff;
  font-size:.9rem; font-family:'Poppins',sans-serif;
  outline:none; resize:vertical; min-height:100px;
}
.form-row { display:flex; gap:12px; }
.form-row .form-group { flex:1; }

/* ===== UTILITIES ===== */
.page-content { padding:16px; padding-bottom:80px; }
.page-title { font-size:1.1rem; font-weight:700; color:var(--light-purple); margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.divider { height:1px; background:rgba(255,255,255,0.08); margin:16px 0; }
.text-gold { color:var(--gold); }
.text-muted { color:var(--text-muted); }
.text-center { text-align:center; }
.mt-8 { margin-top:8px; } .mt-16 { margin-top:16px; } .mt-24 { margin-top:24px; }
.mb-8 { margin-bottom:8px; } .mb-16 { margin-bottom:16px; }
.flex { display:flex; } .flex-center { display:flex; align-items:center; justify-content:center; }
.gap-8 { gap:8px; } .gap-12 { gap:12px; }
.badge {
  display:inline-block; padding:3px 10px; border-radius:20px;
  font-size:.7rem; font-weight:700;
}
.badge-live    { background:var(--red); color:#fff; }
.badge-active  { background:var(--green); color:#fff; }
.badge-pending { background:#f39c12; color:#fff; }
.badge-banned  { background:#7f8c8d; color:#fff; }
.spinner {
  width:40px; height:40px; border-radius:50%;
  border:3px solid rgba(255,255,255,0.1);
  border-top-color:var(--mid-purple);
  animation:spin .8s linear infinite; margin:40px auto;
}
@keyframes spin { to { transform:rotate(360deg); } }
.empty-state { text-align:center; padding:40px 20px; color:var(--text-muted); }
.empty-state .empty-icon { font-size:3rem; margin-bottom:12px; }
.country-flag-img { width:24px; height:16px; border-radius:2px; vertical-align:middle; }
.progress-bar-wrap { background:rgba(255,255,255,0.1); border-radius:6px; height:8px; overflow:hidden; }
.progress-bar-fill { height:100%; border-radius:6px; background:linear-gradient(90deg,var(--mid-purple),var(--mid-blue)); transition:width .5s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:rgba(123,47,247,0.5); border-radius:2px; }

/* ===== RESPONSIVE ===== */
@media (max-width:380px) {
  .live-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .auth-card { padding:28px 20px; }
  .voice-grid { grid-template-columns:repeat(3,1fr); }
}