/* ============================================================
   QANLI GECƏ – Horror CSS
   ============================================================ */

:root {
  --blood:     #8B0000;
  --blood-bright: #CC0000;
  --fire:      #FF2200;
  --dark-bg:   #080000;
  --card-bg:   rgba(20, 0, 0, 0.85);
  --card-border:#4a0000;
  --text:      #e0a0a0;
  --text-muted:#c98a8a;
  --gold:      #FFD700;
  --radius:    8px;
  --glow:      0 0 18px rgba(180,0,0,0.6);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: transparent;
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Arxa fon — ekrana yapışıq, content üzərindən sürüşür */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/assets/bg.jpg');
  background-size: cover;
  background-position: center center;
  background-color: #020001;
  pointer-events: none;
  z-index: -2;
}

/* Qaranlıq örtük */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.28) 0%,
    rgba(2,0,8,0.38) 40%,
    rgba(5,0,3,0.50) 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* Mobil — portret şəkil daha uyğundur */
@media (max-width: 768px) {
  body::before {
    background-image: url('/assets/bg_mobile.jpg');
    background-position: center top;
  }
}

/* ---- HORROR CANVAS ---- */
#lightning-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ---- BLOOD OVERLAY ---- */
.blood-overlay {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 10% 0%,  rgba(120,0,0,0.35) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 0%,  rgba(100,0,0,0.28) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%,rgba(80,0,0,0.25)  0%, transparent 50%),
    radial-gradient(ellipse at 0%  50%, rgba(60,0,0,0.18)  0%, transparent 40%),
    radial-gradient(ellipse at 100% 50%,rgba(60,0,0,0.18)  0%, transparent 40%),
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, transparent 30%, rgba(0,0,0,0.40) 100%);
  pointer-events: none; z-index: 100;
  animation: blood-pulse 6s ease-in-out infinite;
}
@keyframes blood-pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.72; }
}

/* ---- FOG LAYERS ---- */
.fog-layer {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 101;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(40,0,0,0.18) 0%, transparent 70%),
    radial-gradient(ellipse at 70% 40%, rgba(20,0,0,0.12) 0%, transparent 65%);
  animation: fog-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}
.fog-layer2 {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 101;
  background:
    radial-gradient(ellipse at 60% 80%, rgba(50,0,0,0.14) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 30%, rgba(30,0,0,0.10) 0%, transparent 55%);
  animation: fog-drift2 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes fog-drift  { from{transform:translateX(0) translateY(0)} to{transform:translateX(40px) translateY(-20px)} }
@keyframes fog-drift2 { from{transform:translateX(0) translateY(0)} to{transform:translateX(-50px) translateY(25px)} }

/* ---- RAIN OVERLAY — silindi ---- */
.rain-overlay { display: none; }

/* ---- BLOOD DRIP BAR ---- */
.blood-drip-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg,
    transparent 0%, #5a0000 8%, #8B0000 15%, #5a0000 22%,
    transparent 30%, #6a0000 38%, #990000 45%, #6a0000 52%,
    transparent 60%, #5a0000 68%, #7a0000 75%, #5a0000 82%,
    transparent 90%, #6a0000 96%, transparent 100%);
  pointer-events: none; z-index: 9999;
  animation: drip-shift 20s linear infinite;
  box-shadow: 0 0 16px rgba(139,0,0,0.9), 0 2px 8px rgba(139,0,0,0.5);
}
@keyframes drip-shift { from{background-position:0 0} to{background-position:200px 0} }

/* ---- FLICKER ---- */
.flicker-overlay {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 102;
  animation: screen-flicker 4s steps(1) infinite;
}
@keyframes screen-flicker {
  0%,93%,95.5%,100%{ opacity:0 }
  94%              { opacity:1; background:rgba(180,0,0,0.04); }
  95%              { opacity:1; background:rgba(0,0,0,0.06); }
}

/* ---- VIGNETTE ---- */
.vignette-overlay {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 101;
  background: radial-gradient(ellipse at center,
    transparent 38%, rgba(0,0,0,0.45) 72%, rgba(0,0,0,0.80) 100%);
  
}
@keyframes vignette-breathe {
  0%,100%{ opacity:0.85 }
  50%    { opacity:1.0 }
}

/* ---- NAVBAR ---- */
.navbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 60px;
  background: rgba(8,0,0,0.95);
  border-bottom: 2px solid var(--blood);
  box-shadow: 0 4px 20px rgba(180,0,0,0.4);
}
.navbar-brand {
  font-family: 'Creepster', cursive;
  font-size: 24px;
  color: var(--fire);
  text-decoration: none;
  text-shadow: 0 0 20px rgba(255,50,0,0.8), 0 0 40px rgba(200,0,0,0.4);
  letter-spacing: 2px;
}
.brand-skull { animation: skull-pulse 2s ease-in-out infinite; display: inline-block; }
@keyframes skull-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }

.navbar-right {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.nav-balance {
  background: rgba(80,0,0,0.5); border: 1px solid var(--blood);
  border-radius: 20px; padding: 4px 12px;
  color: var(--gold); text-decoration: none; font-weight: 700; font-size: 14px;
  transition: background 0.2s;
}
.nav-balance:hover { background: rgba(120,0,0,0.7); }

.nav-icon-btn {
  background: none; border: none; color: var(--text); font-size: 20px;
  cursor: pointer; position: relative; padding: 4px;
}
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--fire); color: #fff;
  border-radius: 50%; font-size: 10px;
  width: 18px; height: 18px; text-align: center; line-height: 18px; font-weight: 700;
}
.nav-notif-wrap { position: relative; }
.notif-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 10px);
  width: 320px; max-height: 400px; overflow-y: auto;
  background: rgba(15,0,0,0.98); border: 1px solid var(--blood);
  border-radius: var(--radius); box-shadow: var(--glow); z-index: 9000;
}
.nav-notif-wrap.open .notif-dropdown { display: block; }

.notif-item {
  padding: 12px 15px; border-bottom: 1px solid rgba(80,0,0,0.4);
  cursor: pointer; transition: background 0.2s;
}
.notif-item:hover { background: rgba(60,0,0,0.5); }
.notif-item-title { font-weight: 700; color: var(--fire); font-size: 13px; }
.notif-item-msg   { color: var(--text-muted); font-size: 12px; margin-top: 3px; }
.notif-item-time  { color: #a87575; font-size: 11px; margin-top: 4px; }
.notif-empty      { padding: 20px; text-align: center; color: var(--text-muted); }

.nav-username { color: var(--text); text-decoration: none; font-size: 14px; }
.nav-username:hover { color: var(--fire); }

/* ---- PAGE WRAPPER ---- */
.page-wrapper { position: relative; z-index: 50; max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }

/* ---- PAGE HEADER ---- */
.page-header { margin-bottom: 30px; }
.back-btn {
  display: inline-block; color: var(--blood-bright); text-decoration: none;
  font-size: 13px; margin-bottom: 12px;
  padding: 5px 10px; border: 1px solid var(--card-border);
  border-radius: 4px; transition: all 0.2s;
}
.back-btn:hover { background: var(--blood); color: #fff; }

.page-title {
  font-family: 'Creepster', cursive;
  font-size: clamp(28px, 5vw, 48px);
  color: var(--fire);
  text-shadow: 0 0 20px rgba(255,50,0,0.7), 0 0 40px rgba(180,0,0,0.4);
  letter-spacing: 2px;
  animation: title-flicker 4s ease-in-out infinite;
}
@keyframes title-flicker {
  0%,95%,100%{opacity:1} 96%,98%{opacity:0.7}
}
.vip-title-glow { color: var(--gold); text-shadow: 0 0 30px rgba(255,215,0,0.7); }

.page-sub { color: var(--text-muted); margin-top: 6px; font-size: 14px; }

/* ---- BUTTONS ---- */
.btn-horror {
  display: inline-block;
  background: linear-gradient(135deg, #5a0000 0%, #8B0000 50%, #5a0000 100%);
  color: #fff; border: 1px solid #aa0000;
  padding: 10px 20px; border-radius: var(--radius);
  font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: none;
  transition: all 0.2s; letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(180,0,0,0.4);
}
.btn-horror:hover {
  background: linear-gradient(135deg, #8B0000 0%, #CC0000 50%, #8B0000 100%);
  box-shadow: 0 4px 25px rgba(220,0,0,0.7);
  transform: translateY(-1px);
}
.btn-horror:active { transform: translateY(0); }
.btn-horror.btn-full  { width: 100%; text-align: center; display: block; }
.btn-horror.btn-sm    { padding: 7px 14px; font-size: 13px; }
.btn-horror.btn-locked{ opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
  background: transparent; border: 1px solid #444; color: #888;
  padding: 10px 20px; border-radius: var(--radius); cursor: pointer;
  font-size: 14px; transition: all 0.2s;
}
.btn-ghost:hover { border-color: #666; color: #aaa; }

.btn-vote {
  background: linear-gradient(135deg,#1a0a00,#3d1a00);
  border: 1px solid #7a3300; color: #ff8800;
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  font-size: 12px; font-weight: 700; transition: all 0.2s; white-space: nowrap;
}
.btn-vote:hover { background: linear-gradient(135deg,#3d1a00,#7a3300); box-shadow: 0 0 12px rgba(200,80,0,0.5); }
.btn-vote:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-share {
  background: rgba(0,50,80,0.4); border: 1px solid #0055aa;
  color: #4499ff; padding: 6px 12px; border-radius: 6px;
  cursor: pointer; font-size: 12px; transition: all 0.2s;
}
.btn-share:hover { background: rgba(0,80,130,0.5); }

/* ---- CARDS ---- */
.horror-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(100,0,0,0.2);
}

/* ---- FORMS ---- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.form-input {
  width: 100%;
  background: rgba(15,0,0,0.8);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--text); font-size: 15px; padding: 10px 14px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Raleway', sans-serif;
}
.form-input:focus { border-color: var(--blood-bright); box-shadow: 0 0 12px rgba(180,0,0,0.3); }
select.form-input option { background: #0a0000; }

/* ---- ALERTS ---- */
.alert-horror {
  background: rgba(80,0,0,0.3); border: 1px solid var(--blood);
  border-left: 4px solid var(--fire); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 20px; color: #ff9999;
}
.alert-horror p { margin: 0 0 4px; font-size: 14px; }
.alert-success {
  background: rgba(0,50,0,0.3); border: 1px solid #005500;
  border-left: 4px solid #00cc00; border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 20px; color: #99ff99; font-size: 14px;
}

/* ---- STATS BAR ---- */
.stats-bar {
  display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 30px;
}
.stat-item {
  flex: 1; min-width: 120px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 15px 20px; text-align: center;
}
.stat-num { display: block; font-size: 22px; font-weight: 700; color: var(--fire); }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* ---- GAMES GRID ---- */
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin-bottom: 30px;
}
.game-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 25px 20px; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.game-card::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(100,0,0,0.1), transparent);
  pointer-events: none;
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(180,0,0,0.4); }
.game-card-main { border-color: #8B0000; box-shadow: 0 0 25px rgba(180,0,0,0.3); }
.game-card-main:hover { box-shadow: 0 8px 40px rgba(220,0,0,0.5); }
.game-disabled { opacity: 0.5; }
.game-disabled:hover { transform: none; }
.game-icon { font-size: 48px; margin-bottom: 12px; display: block; }
.game-name { font-family: 'Creepster', cursive; font-size: 22px; color: var(--fire); margin-bottom: 8px; }
.game-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; line-height: 1.5; }
.game-meta { display: flex; justify-content: space-around; margin-bottom: 15px; font-size: 13px; color: var(--text-muted); }
.game-meta strong { color: var(--gold); }
.coming-soon-badge {
  background: rgba(50,50,0,0.3); border: 1px solid #555500;
  border-radius: 20px; padding: 8px 20px; color: #aaaa00; font-size: 13px;
  display: inline-block; margin-top: 10px;
}

/* ---- QUICK LINKS ---- */
.quick-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.quick-link {
  background: rgba(30,0,0,0.6); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 10px 20px;
  color: var(--text); text-decoration: none; font-size: 14px;
  transition: all 0.2s;
}
.quick-link:hover { border-color: var(--blood); color: var(--fire); background: rgba(60,0,0,0.6); }

/* ---- INFO BANNER ---- */
.info-banner {
  background: rgba(0,20,50,0.4); border: 1px solid #003366;
  border-radius: var(--radius); padding: 12px 18px;
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 14px;
}
.info-link { color: #4499ff; text-decoration: none; font-weight: 700; }
.info-link:hover { color: #66bbff; }

/* ---- ROOMS FILTER ---- */
.rooms-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn {
  background: rgba(20,0,0,0.8); border: 1px solid var(--card-border);
  color: var(--text-muted); padding: 7px 16px; border-radius: 20px;
  cursor: pointer; font-size: 13px; transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--blood); border-color: var(--blood-bright); color: #fff;
}

/* ---- ROOMS GRID ---- */
.rooms-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 30px;
}
.room-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; isolation: isolate;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6), inset 0 0 30px rgba(80,0,0,0.15);
}
/* Arxa fon görünsün — overlay daha az tünd */
.room-card::before {
  content:'';
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15,0,0,0.62) 0%,
    rgba(2,0,0,0.70) 55%,
    rgba(10,0,0,0.60) 100%
  );
  z-index: 0;
}
.room-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(180,0,0,0.3); }
/* Ensure all children sit above the overlay */
.room-card .room-header,
.room-card .room-body,
.room-card .room-footer { position: relative; z-index: 1; }
.room-mine { border-color: #004400; box-shadow: 0 0 12px rgba(0,100,0,0.2); }
.room-active { border-color: var(--blood-bright); animation: room-pulse 3s ease-in-out infinite; }
@keyframes room-pulse { 0%,100%{box-shadow:0 0 8px rgba(200,0,0,0.3)} 50%{box-shadow:0 0 20px rgba(200,0,0,0.6)} }
.room-header { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; background:rgba(40,0,0,0.4); }
.room-num { font-weight:700; font-size:14px; }
.room-body { padding:10px 12px; }
.room-players-bar { height:6px; background:rgba(80,0,0,0.3); border-radius:3px; margin-bottom:6px; overflow:hidden; }
.bar-fill { height:100%; background:linear-gradient(90deg,#8B0000,#FF2200); border-radius:3px; transition:width 0.5s; }
.room-count { font-size:12px; color:var(--text-muted); }
.room-meta { display:flex; justify-content:space-between; margin-top:8px; font-size:12px; color:var(--text-muted); }
.room-meta strong { color:var(--gold); }
.room-footer { padding:8px 12px; border-top:1px solid rgba(80,0,0,0.3); }
.btn-full-room { opacity:0.5; cursor:not-allowed; background:rgba(40,0,0,0.6); border:1px solid #440000; color:#c98a8a; padding:7px 14px; border-radius:6px; font-size:13px; display:inline-block; }

/* ---- STATUS BADGES ---- */
.room-status, .status-badge {
  font-size:11px; padding:2px 8px; border-radius:12px; font-weight:700;
}
.status-waiting  { background:rgba(50,50,0,0.4);  color:#aaaa00; border:1px solid #555500; }
.status-active   { background:rgba(80,0,0,0.4);   color:#ff4444; border:1px solid #880000; animation:blink-red 1.5s ease-in-out infinite; }
.status-finished { background:rgba(0,40,0,0.4);   color:#44aa44; border:1px solid #005500; }
.status-pending   { background:rgba(50,50,0,0.3);  color:#aaaa00; }
.status-completed { background:rgba(0,40,0,0.3);   color:#44aa44; }
.status-rejected  { background:rgba(80,0,0,0.3);   color:#ff4444; }
@keyframes blink-red { 0%,100%{opacity:1} 50%{opacity:0.6} }

/* ---- VIP SECTION ---- */
.vip-section { margin-bottom: 35px; }
.vip-title { font-family:'Creepster',cursive; font-size:28px; color:var(--gold); text-shadow:0 0 20px rgba(255,215,0,0.5); margin-bottom:16px; text-align:center; }
.room-vip { border-color: var(--gold) !important; box-shadow: 0 0 30px rgba(255,215,0,0.25); max-width:400px; margin:0 auto; }
.room-vip .room-num { color:var(--gold); }

/* ---- MODAL ---- */
.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.85);
  display:flex; align-items:center; justify-content:center;
  z-index:9000;
}
.modal-box {
  background: linear-gradient(135deg,rgba(20,0,0,0.98),rgba(10,0,0,0.98));
  border: 2px solid var(--blood); border-radius:12px;
  padding:35px 30px; max-width:420px; width:90%;
  text-align:center; box-shadow:0 0 50px rgba(180,0,0,0.5);
  animation: modal-in 0.3s ease;
}
@keyframes modal-in { from{transform:scale(0.8);opacity:0} to{transform:scale(1);opacity:1} }
.modal-skull { font-size:60px; margin-bottom:15px; animation:skull-pulse 2s ease-in-out infinite; }
.modal-box h2 { color:var(--fire); font-family:'Creepster',cursive; font-size:26px; margin-bottom:12px; }
.modal-box p  { color:var(--text-muted); font-size:14px; margin-bottom:10px; }
.modal-btns   { display:flex; gap:12px; justify-content:center; margin-top:20px; }

/* ---- ELIMINATION MODAL ---- */
.elim-modal {
  position:fixed; inset:0;
  background:rgba(0,0,0,0.95);
  display:flex; align-items:center; justify-content:center;
  z-index:9999;
}
.elim-reaper {
  text-align:center;
  animation: elim-appear 0.5s ease;
}
@keyframes elim-appear { from{transform:scale(0.5) translateY(50px);opacity:0} to{transform:scale(1) translateY(0);opacity:1} }
.reaper-figure {
  font-size:120px;
  animation: reaper-sway 1s ease-in-out infinite;
  display:block; filter:drop-shadow(0 0 30px rgba(200,0,0,0.8));
}
@keyframes reaper-sway { 0%,100%{transform:rotate(-5deg) scale(1)} 50%{transform:rotate(5deg) scale(1.05)} }
.elim-content { margin-top:20px; }
.elim-avatar-wrap { margin-bottom:15px; }
.elim-avatar {
  width:80px; height:80px; border-radius:50%;
  border:3px solid var(--blood); margin:0 auto;
  display:flex; align-items:center; justify-content:center;
  font-size:32px; background:rgba(80,0,0,0.3);
  animation: avatar-shake 0.5s ease-in-out infinite;
}
@keyframes avatar-shake {
  0%,100%{transform:translate(0,0) rotate(0deg)}
  20%{transform:translate(-4px,-2px) rotate(-3deg)}
  40%{transform:translate(4px,2px) rotate(3deg)}
  60%{transform:translate(-2px,4px) rotate(-2deg)}
  80%{transform:translate(2px,-2px) rotate(2deg)}
}
.elim-title {
  font-family:'Creepster',cursive; font-size:42px; color:#ff0000;
  text-shadow:0 0 30px #ff0000;
  animation:flicker 0.3s linear infinite;
}
@keyframes flicker { 0%,100%{opacity:1} 50%{opacity:0.8} }
.elim-text { color:var(--text-muted); margin:12px 0 20px; font-size:15px; }

/* ---- ROOM LAYOUT ---- */
.room-layout { display:grid; grid-template-columns:1fr 380px; gap:24px; align-items:start; }
@media(max-width:900px){ .room-layout{ grid-template-columns:1fr; } }

/* ---- PLAYERS PANEL ---- */
.players-panel, .chat-panel {
  background:var(--card-bg); border:1px solid var(--card-border);
  border-radius:var(--radius); overflow:hidden;
}
.panel-title {
  font-family:'Creepster',cursive; font-size:20px; color:var(--fire);
  padding:15px 18px; background:rgba(40,0,0,0.5); border-bottom:1px solid var(--card-border);
  display:flex; align-items:center; gap:10px;
}
.badge-count {
  background:var(--blood); color:#fff; font-size:13px; font-family:Raleway,sans-serif;
  padding:1px 8px; border-radius:12px; font-weight:700;
}

.votes-left-bar {
  padding:12px 18px; background:rgba(30,0,0,0.3); border-bottom:1px solid rgba(60,0,0,0.3);
  font-size:14px; display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.vote-dots { display:flex; gap:5px; }
.vote-dot {
  width:12px; height:12px; border-radius:50%;
  background:rgba(80,0,0,0.3); border:1px solid #440000;
}
.dot-active { background:var(--fire); border-color:var(--fire); box-shadow:0 0 8px rgba(255,50,0,0.6); }
.dot-used   { background:rgba(40,0,0,0.4); }

.players-list { padding:12px; max-height:600px; overflow-y:auto; }

.player-card {
  display:flex; align-items:center; gap:12px;
  background:rgba(20,0,0,0.4); border:1px solid rgba(60,0,0,0.4);
  border-radius:var(--radius); padding:12px; margin-bottom:8px;
  transition:all 0.2s; position:relative;
}
.player-card:hover { border-color:var(--blood); background:rgba(40,0,0,0.5); }
.player-me     { border-color:#004400 !important; background:rgba(0,30,0,0.3) !important; }
.player-danger { border-color:#ff2200 !important; animation:danger-pulse 1s ease-in-out infinite; }
@keyframes danger-pulse { 0%,100%{box-shadow:none} 50%{box-shadow:0 0 15px rgba(255,50,0,0.5)} }

.player-rank { color:var(--text-muted); font-size:13px; font-weight:700; min-width:26px; }
.player-avatar {
  width:44px; height:44px; border-radius:50%; overflow:hidden; position:relative; flex-shrink:0;
  border:2px solid rgba(100,0,0,0.5);
}
.player-avatar img { width:100%; height:100%; object-fit:cover; }
.avatar-placeholder {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg,#3a0000,#600000);
  color:#ff6666; font-weight:700; font-size:18px;
}
.danger-skull {
  position:absolute; bottom:-4px; right:-4px; font-size:16px;
  animation:skull-pulse 1s ease-in-out infinite;
}
.player-info { flex:1; min-width:0; }
.player-name  { display:block; font-weight:700; font-size:14px; color:var(--text); }
.player-votes { display:block; font-size:12px; color:var(--blood-bright); margin-top:2px; }
.danger-text  { display:block; font-size:11px; color:#ff2200; font-weight:700; }
.me-tag { color:#00cc44; font-size:11px; font-weight:400; }
.player-actions { display:flex; flex-direction:column; gap:6px; flex-shrink:0; }

.elim-history { border-top:1px solid rgba(60,0,0,0.4); padding:12px; }
.elim-row { display:flex; gap:10px; align-items:center; padding:7px 0; border-bottom:1px solid rgba(40,0,0,0.3); font-size:13px; }
.elim-day  { color:var(--text-muted); min-width:50px; }
.elim-name { flex:1; color:#cc6666; font-weight:700; }
.elim-date { color:#a87575; font-size:11px; }

/* ---- CHAT PANEL ---- */
.chat-messages {
  height:480px; overflow-y:auto; padding:12px;
  display:flex; flex-direction:column; gap:6px;
}
.chat-messages::-webkit-scrollbar { width:4px; }
.chat-messages::-webkit-scrollbar-track { background:rgba(30,0,0,0.3); }
.chat-messages::-webkit-scrollbar-thumb { background:var(--blood); border-radius:2px; }
.chat-msg { font-size:13px; line-height:1.5; padding:6px 8px; border-radius:6px; background:rgba(20,0,0,0.3); }
.chat-user  { color:var(--fire); font-weight:700; margin-right:5px; }
.chat-text  { color:var(--text); }
.chat-time  { color:#a37a7a; font-size:11px; margin-left:6px; }
.chat-input-wrap { display:flex; gap:8px; padding:12px; border-top:1px solid rgba(60,0,0,0.3); }
.chat-input {
  flex:1; background:rgba(15,0,0,0.8); border:1px solid var(--card-border);
  border-radius:var(--radius); color:var(--text); padding:8px 12px; font-size:14px; outline:none;
}
.chat-input:focus { border-color:var(--blood-bright); }
.chat-hint { padding:0 12px 10px; font-size:11px; color:#a37a7a; font-style:italic; }

/* ---- ROOM INFO ---- */
.room-info-row { display:flex; align-items:center; gap:15px; flex-wrap:wrap; margin-top:10px; font-size:14px; color:var(--text-muted); }
.countdown-wrap { color:var(--fire); }
.countdown-wrap strong { font-size:16px; }

.winner-banner {
  background:rgba(50,50,0,0.3); border:1px solid #555500;
  border-radius:var(--radius); padding:15px 20px; margin-bottom:20px;
  color:var(--gold); text-align:center; font-size:16px; font-weight:700;
}
.winner-banner a { color:var(--gold); }

/* ---- LEADERBOARD ---- */
.my-rank-banner {
  background:rgba(0,40,0,0.3); border:1px solid #005500;
  border-radius:var(--radius); padding:12px 20px;
  color:#44cc44; margin-bottom:20px; font-size:15px;
}
.leaderboard-table-wrap { overflow-x:auto; }
.leaderboard-table {
  width:100%; border-collapse:collapse;
  background:var(--card-bg); border:1px solid var(--card-border); border-radius:var(--radius); overflow:hidden;
}
.leaderboard-table th {
  background:rgba(60,0,0,0.5); color:var(--text-muted); text-align:left;
  padding:14px 18px; font-size:13px; font-weight:700; border-bottom:2px solid var(--blood);
}
.leaderboard-table td { padding:13px 18px; border-bottom:1px solid rgba(40,0,0,0.5); font-size:14px; }
.leaderboard-table tr:last-child td { border-bottom:none; }
.leaderboard-table tr:hover td { background:rgba(40,0,0,0.3); }
.lb-me td { background:rgba(0,40,0,0.2); }
.lb-rank  { font-size:20px; text-align:center; }
.lb-top   { font-size:28px; }
.lb-user  { display:flex; align-items:center; gap:10px; }
.lb-avatar { width:36px; height:36px; border-radius:50%; background:rgba(80,0,0,0.5); border:2px solid var(--blood); display:flex; align-items:center; justify-content:center; font-weight:700; flex-shrink:0; overflow:hidden; }
.lb-avatar img { width:100%; height:100%; object-fit:cover; }
.lb-wins .wins-badge { background:rgba(80,0,0,0.3); border:1px solid var(--blood); padding:3px 10px; border-radius:12px; color:var(--fire); font-weight:700; }
.lb-earned { color:var(--gold); font-weight:700; }

/* ---- WALLET ---- */
.balance-card {
  background: linear-gradient(135deg,rgba(60,0,0,0.5),rgba(20,0,0,0.8));
  border:2px solid var(--blood); border-radius:12px; padding:30px; margin-bottom:30px; text-align:center;
  box-shadow:0 0 40px rgba(180,0,0,0.3);
}
.balance-label { color:var(--text-muted); font-size:13px; margin-bottom:8px; }
.balance-amount { font-size:48px; font-weight:700; color:var(--gold); margin-bottom:20px; text-shadow:0 0 20px rgba(255,215,0,0.4); }
.balance-stats { display:flex; justify-content:center; gap:30px; flex-wrap:wrap; }
.balance-stats div { text-align:center; }
.balance-stats span { display:block; color:var(--text-muted); font-size:12px; margin-bottom:3px; }
.balance-stats strong { color:var(--text); font-size:15px; }
.wallet-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:30px; }
@media(max-width:700px){ .wallet-grid{grid-template-columns:1fr;} }
.wallet-section { background:var(--card-bg); border:1px solid var(--card-border); border-radius:var(--radius); padding:24px; }
.section-title { font-family:'Creepster',cursive; font-size:20px; color:var(--fire); margin-bottom:20px; }
.wallet-form { }
.quick-amounts { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.quick-btn { background:rgba(40,0,0,0.5); border:1px solid var(--blood); color:var(--text); padding:6px 14px; border-radius:20px; cursor:pointer; font-size:13px; transition:all 0.2s; }
.quick-btn:hover { background:var(--blood); color:#fff; }
.payment-methods { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.pm-badge { background:rgba(0,20,50,0.4); border:1px solid #003366; border-radius:6px; padding:4px 10px; font-size:12px; color:#6699cc; }
.txn-section { margin-top:10px; }
.txn-table-wrap { overflow-x:auto; }
.txn-table { width:100%; border-collapse:collapse; background:var(--card-bg); border:1px solid var(--card-border); border-radius:var(--radius); overflow:hidden; }
.txn-table th { background:rgba(60,0,0,0.5); color:var(--text-muted); padding:12px 16px; text-align:left; font-size:13px; border-bottom:1px solid var(--blood); }
.txn-table td { padding:11px 16px; border-bottom:1px solid rgba(40,0,0,0.4); font-size:13px; }
.txn-table tr:last-child td { border-bottom:none; }
.txn-plus { color:#44cc44; font-weight:700; }
.txn-minus { color:#cc4444; font-weight:700; }
.txn-amount { white-space:nowrap; }

/* ---- PROFILE ---- */
.profile-layout { display:grid; grid-template-columns:300px 1fr; gap:24px; margin-bottom:30px; }
@media(max-width:700px){ .profile-layout{grid-template-columns:1fr;} }
.profile-card { background:var(--card-bg); border:1px solid var(--card-border); border-radius:var(--radius); padding:30px; text-align:center; }
.profile-avatar-big { width:80px; height:80px; border-radius:50%; margin:0 auto 15px; background:linear-gradient(135deg,#3a0000,#600000); border:3px solid var(--blood); display:flex; align-items:center; justify-content:center; font-size:36px; font-weight:700; color:#ff6666; overflow:hidden; }
.profile-avatar-big img { width:100%; height:100%; object-fit:cover; }
.profile-username { font-family:'Creepster',cursive; font-size:24px; color:var(--fire); margin-bottom:4px; }
.profile-email { color:var(--text-muted); font-size:13px; margin-bottom:15px; }
.profile-stats { display:flex; gap:15px; justify-content:center; margin-bottom:12px; }
.pstat { text-align:center; }
.pstat span { display:block; font-size:20px; font-weight:700; color:var(--fire); }
.pstat small { font-size:11px; color:var(--text-muted); }
.profile-joined { font-size:12px; color:#a37a7a; }
.profile-edit { background:var(--card-bg); border:1px solid var(--card-border); border-radius:var(--radius); padding:24px; }
.game-history-section { margin-top:10px; }

/* ---- HOW TO PLAY ---- */
.howto-container { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; margin-bottom:40px; }
.howto-card {
  background:var(--card-bg); border:1px solid var(--card-border);
  border-radius:var(--radius); padding:25px 20px; text-align:center;
  transition:transform 0.2s, box-shadow 0.2s;
}
.howto-card:hover { transform:translateY(-4px); box-shadow:0 8px 25px rgba(180,0,0,0.3); }
.howto-vip { border-color:var(--gold); }
.howto-icon { font-size:48px; margin-bottom:12px; display:block; }
.howto-card h3 { color:var(--fire); font-family:'Creepster',cursive; font-size:20px; margin-bottom:10px; }
.howto-card p  { color:var(--text-muted); font-size:13px; line-height:1.7; }
.howto-card strong { color:var(--text); }

/* ---- AUTH PAGE ---- */
.auth-body { display:flex; justify-content:center; align-items:flex-start; min-height:100vh; padding:40px 15px; }
.auth-container { position:relative; z-index:50; width:100%; max-width:420px; }
.auth-logo { text-align:center; margin-bottom:30px; }
.logo-text {
  font-family:'Creepster',cursive; font-size:48px;
  color:var(--fire); text-shadow:0 0 30px rgba(255,50,0,0.8), 0 0 60px rgba(180,0,0,0.4);
  letter-spacing:4px; animation:title-flicker 4s ease-in-out infinite;
}
.logo-sub { color:var(--text-muted); font-size:13px; margin-top:5px; font-style:italic; }
.auth-tabs { display:flex; margin-bottom:20px; border-radius:var(--radius); overflow:hidden; border:1px solid var(--card-border); }
.auth-tab { flex:1; padding:12px; text-align:center; color:var(--text-muted); text-decoration:none; font-weight:700; font-size:15px; transition:all 0.2s; background:rgba(15,0,0,0.6); }
.auth-tab.active { background:var(--blood); color:#fff; }
.auth-tab:hover:not(.active) { background:rgba(50,0,0,0.5); color:var(--text); }
.auth-form { background:var(--card-bg); border:1px solid var(--card-border); border-radius:var(--radius); padding:25px; }
.form-note { font-size:11px; color:#a87575; text-align:center; margin-top:12px; font-style:italic; }

/* ---- FOOTER ---- */
.site-footer { position:relative; z-index:50; text-align:center; padding:25px; color:#a87575; font-size:13px; border-top:1px solid rgba(60,0,0,0.3); margin-top:auto; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:rgba(10,0,0,0.5); }
::-webkit-scrollbar-thumb { background:var(--blood); border-radius:3px; }

/* ---- RESPONSIVE ---- */
@media(max-width:600px){
  .navbar { padding:0 8px; height:52px; flex-wrap:nowrap; overflow:hidden; }
  .navbar-brand { font-size:17px; letter-spacing:1px; white-space:nowrap; flex-shrink:0; }
  .page-wrapper { padding:14px 12px 60px; }
  .rooms-grid { grid-template-columns:repeat(2,1fr); }
  .stats-bar { gap:10px; }
  .stat-item { padding:10px; }
  .stat-num { font-size:18px; }
  .balance-amount { font-size:36px; }
  .balance-stats { gap:15px; }
  .navbar-right { gap:5px; flex-wrap:nowrap; flex-shrink:0; }
  .nav-username { display:none; }
  .nav-balance { padding:3px 8px; font-size:12px; white-space:nowrap; }
  .nav-icon-btn { font-size:17px; padding:2px; }
  .btn-horror.btn-sm { padding:4px 10px; font-size:11px; white-space:nowrap; }
}

/* ============================================================
   VIP OTAQ — DAHİYANƏ DİZAYN (Canlı Video Background)
   ============================================================ */

.vip-section {
  position: relative;
  margin-bottom: 50px;
  overflow: hidden;
}

/* VIP başlıq */
.vip-title {
  font-family: 'Creepster', cursive;
  font-size: clamp(22px, 4vw, 38px);
  text-align: center;
  color: #FFD700;
  text-shadow:
    0 0 10px rgba(255,215,0,0.9),
    0 0 30px rgba(255,165,0,0.7),
    0 0 60px rgba(255,100,0,0.4),
    0 0 100px rgba(200,0,0,0.3);
  letter-spacing: 4px;
  margin-bottom: 20px;
  animation: vip-title-pulse 2s ease-in-out infinite;
}
@keyframes vip-title-pulse {
  0%,100%{ text-shadow:0 0 10px rgba(255,215,0,0.9),0 0 30px rgba(255,165,0,0.7),0 0 60px rgba(255,100,0,0.4); letter-spacing:4px; }
  50%    { text-shadow:0 0 20px rgba(255,215,0,1.0),0 0 50px rgba(255,165,0,0.9),0 0 100px rgba(255,100,0,0.6),0 0 140px rgba(200,0,0,0.4); letter-spacing:5px; }
}

/* VIP KART — ANA KONTEYNER */
.room-vip {
  position: relative;
  width: 100%;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #FFD700;
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.2),
    0 0 40px rgba(255,165,0,0.5),
    0 0 80px rgba(180,0,0,0.4),
    0 0 160px rgba(100,0,0,0.3),
    inset 0 0 80px rgba(0,0,0,0.6);
  background: none !important;
  animation: vip-card-glow 3s ease-in-out infinite;
}
@keyframes vip-card-glow {
  0%,100%{ box-shadow:0 0 40px rgba(255,165,0,0.5),0 0 80px rgba(180,0,0,0.4),0 0 160px rgba(100,0,0,0.3),inset 0 0 80px rgba(0,0,0,0.6); border-color:#FFD700; }
  50%    { box-shadow:0 0 60px rgba(255,165,0,0.8),0 0 120px rgba(200,0,0,0.6),0 0 200px rgba(120,0,0,0.4),inset 0 0 100px rgba(0,0,0,0.5); border-color:#FFA500; }
}

/* VİDEO ARXA FONU */
#vip-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
  filter: saturate(1.4) hue-rotate(-10deg) brightness(0.75);
}

/* VİDEO ÜZƏRƏ OVERLAY LAYERLƏR */
.vip-overlay-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(150,80,0,0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(120,0,0,0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(100,0,0,0.5) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

.vip-overlay-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

/* Uçan qan hissəcikləri VIP kartda */
.vip-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: vip-particle-float linear infinite;
}
@keyframes vip-particle-float {
  0%   { transform: translateY(100%) scale(0); opacity: 0; }
  10%  { opacity: 1; transform: scale(1); }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-120%) scale(0.5); opacity: 0; }
}

/* VIP KART İÇƏRİSİ — kontent */
.vip-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 35px 40px;
  min-height: 420px;
}

.vip-info { display: flex; flex-direction: column; gap: 16px; }

/* Tac ikonu animasiyası */
.vip-crown {
  font-size: 64px;
  display: inline-block;
  animation: vip-crown-spin 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.9)) drop-shadow(0 0 40px rgba(255,165,0,0.6));
  line-height: 1;
}
@keyframes vip-crown-spin {
  0%,100%{ transform: scale(1) rotate(-3deg); filter:drop-shadow(0 0 20px rgba(255,215,0,0.9)); }
  25%    { transform: scale(1.1) rotate(3deg); filter:drop-shadow(0 0 35px rgba(255,215,0,1.0)) drop-shadow(0 0 60px rgba(255,165,0,0.8)); }
  50%    { transform: scale(1.05) rotate(-2deg); }
  75%    { transform: scale(1.12) rotate(2deg); }
}

.vip-room-name {
  font-family: 'Creepster', cursive;
  font-size: clamp(28px, 5vw, 52px);
  color: #FFD700;
  text-shadow: 0 0 15px rgba(255,215,0,0.9), 0 0 40px rgba(255,165,0,0.5);
  line-height: 1.1;
  letter-spacing: 2px;
}

.vip-subtitle {
  font-size: 14px;
  color: rgba(255,200,100,0.8);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

/* VIP stats — horizontal badges */
.vip-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.vip-stat-badge {
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,165,0,0.5);
  border-radius: 30px;
  padding: 8px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 0 12px rgba(255,165,0,0.2), inset 0 1px 0 rgba(255,215,0,0.1);
  transition: all 0.3s;
}
.vip-stat-badge:hover {
  border-color: rgba(255,215,0,0.8);
  box-shadow: 0 0 25px rgba(255,165,0,0.5);
  transform: translateY(-2px);
}

.vip-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255,215,0,0.7);
  font-family: 'Creepster', cursive;
}
.vip-stat-label {
  font-size: 10px;
  color: rgba(255,200,100,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Players bar in VIP */
.vip-players-wrap { width: 100%; }
.vip-players-bar {
  height: 8px;
  background: rgba(0,0,0,0.5);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,165,0,0.3);
  margin-bottom: 6px;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
}
.vip-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8B0000, #FFD700, #FF8C00);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255,165,0,0.7), 0 0 20px rgba(255,100,0,0.4);
  transition: width 0.8s ease;
  animation: vip-bar-shimmer 2s linear infinite;
  background-size: 200% 100%;
}
@keyframes vip-bar-shimmer {
  0%  { background-position: 200% 0; }
  100%{ background-position: -200% 0; }
}
.vip-players-count {
  font-size: 12px;
  color: rgba(255,200,100,0.7);
  text-align: right;
}

/* VIP ACTION PANEL — sağ tərəf */
.vip-action-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 180px;
}

/* VIP STATUS BADGE */
.vip-status-badge {
  background: rgba(0,0,0,0.8);
  border: 1px solid #FFD700;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFD700;
  box-shadow: 0 0 15px rgba(255,215,0,0.4);
  animation: vip-status-blink 2s ease-in-out infinite;
}
@keyframes vip-status-blink {
  0%,100%{ box-shadow:0 0 15px rgba(255,215,0,0.4); }
  50%    { box-shadow:0 0 30px rgba(255,215,0,0.8); }
}

/* VIP ENTER BUTTON — super stilized */
.btn-vip-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg,
    #5a3a00 0%,
    #8B6914 20%,
    #FFD700 50%,
    #8B6914 80%,
    #5a3a00 100%);
  background-size: 200% 100%;
  color: #000;
  border: 2px solid #FFD700;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Creepster', cursive;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow:
    0 0 20px rgba(255,215,0,0.6),
    0 0 40px rgba(255,165,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.3);
  letter-spacing: 1px;
  animation: vip-btn-shimmer 3s linear infinite;
  white-space: nowrap;
}
@keyframes vip-btn-shimmer {
  0%  { background-position:200% 0; }
  100%{ background-position:-200% 0; }
}
.btn-vip-enter:hover {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 0 40px rgba(255,215,0,0.9), 0 0 80px rgba(255,165,0,0.5), 0 8px 30px rgba(0,0,0,0.5);
  color: #000;
}
.btn-vip-enter:active { transform: scale(1.02) translateY(0); }

/* VIP LOCKED badge */
.vip-lock-info {
  text-align: center;
  font-size: 11px;
  color: rgba(255,165,0,0.6);
  max-width: 160px;
  line-height: 1.5;
}
.vip-lock-icon {
  font-size: 36px;
  opacity: 0.7;
  animation: vip-lock-shake 4s ease-in-out infinite;
}
@keyframes vip-lock-shake {
  0%,100%{ transform:rotate(0deg); }
  92%{ transform:rotate(0deg); }
  94%{ transform:rotate(-8deg); }
  96%{ transform:rotate(8deg); }
  98%{ transform:rotate(-4deg); }
}

/* VIP KƏNARLARI BOYUNCA ALIŞIB-SÖNƏN EFEKTİ */
.vip-border-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  z-index: 3;
  box-shadow: inset 0 0 2px 2px rgba(255,215,0,0.15);
  animation: vip-border-pulse 2.5s ease-in-out infinite;
}
@keyframes vip-border-pulse {
  0%,100%{ box-shadow:inset 0 0 2px 2px rgba(255,215,0,0.15); }
  50%    { box-shadow:inset 0 0 20px 4px rgba(255,215,0,0.35); }
}

/* Köhnə .room-vip .room-header/body/footer dəstəyi qaldırılır — yeni dizayna yer açmaq üçün */
.room-vip .room-header,
.room-vip .room-body,
.room-vip .room-footer { display: none !important; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .vip-content { grid-template-columns: 1fr; padding: 24px 20px; }
  .vip-action-panel { width: 100%; }
  .btn-vip-enter { width: 100%; }
  .vip-crown { font-size: 44px; }
  .room-vip { min-height: 360px; }
}

/* ============================================================
   PERFORMANCE OPTİMİZASİYASI — Donma Azaldılır
   ============================================================ */

/* CSS animasiyalarını GPU-ya yük ver */
#lightning-canvas,
.blood-overlay,
.fog-layer, .fog-layer2,
.flicker-overlay,
.vignette-overlay,
.blood-drip-bar {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Flicker daha az tez-tez — performans */
.flicker-overlay {
  animation: screen-flicker 4s steps(1) infinite !important;
}

/* Body breathe — daha yavaş */
body {  }


/* ========================================
   OTAQ #1 — TOP LABEL BADGE
   ======================================== */
.r1-top-label {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  z-index: 10;
  font-family: 'Creepster', cursive;
  font-size: 13px;
  color: #FF2200;
  background: rgba(30,0,0,0.85);
  border: 1px solid rgba(180,0,0,0.6);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 3px 16px 5px;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(255,0,0,0.9);
  pointer-events: none;
  animation: r1-label-glow 2s ease-in-out infinite;
  will-change: text-shadow, color;
}
@keyframes r1-label-glow {
  0%,100% { color: #FF2200; text-shadow: 0 0 10px rgba(255,0,0,0.7); }
  50%     { color: #FF6600; text-shadow: 0 0 20px rgba(255,80,0,1), 0 0 40px rgba(180,0,0,0.6); }
}

/* ============================================================
   QAN XƏTTİ — BLOOD BAR SYSTEM
   ============================================================ */

/* Blood Panel wrapper */
.blood-panel {
  background: rgba(15,0,0,0.92);
  border: 1px solid rgba(120,0,0,0.6);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(80,0,0,0.4), inset 0 1px 0 rgba(200,0,0,0.08);
}

/* Blood Bank row (completed 500ml bars) */
.blood-bank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(100,60,0,0.25);
  border: 1px solid rgba(200,140,0,0.35);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #f0c060;
}
.blood-bank-icon { font-size: 20px; }
.blood-bank-label { font-weight: 700; color: #ffd060; }
.blood-bank-count { color: #e8b040; }

/* Bar wrapper */
.blood-bar-wrap { margin-bottom: 16px; }
.blood-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  font-size: 12px;
}
.blood-bar-label-left { color: #cc4444; font-weight: 700; letter-spacing: 0.5px; }
.blood-bar-label-right { color: #c98a8a; font-size: 11px; }

/* The track and fill */
.blood-bar-track {
  position: relative;
  background: rgba(20,0,0,0.85);
  border: 1px solid rgba(100,0,0,0.5);
  border-radius: 20px;
  height: 22px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
}
.blood-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a0000, #8B0000 30%, #cc0000 60%, #ff2200 100%);
  border-radius: 20px;
  transition: width 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
  box-shadow: 0 0 12px rgba(180,0,0,0.7), inset 0 1px 0 rgba(255,100,100,0.3);
  animation: blood-bar-drip 2.5s ease-in-out infinite;
}
@keyframes blood-bar-drip {
  0%,100% { box-shadow: 0 0 10px rgba(180,0,0,0.6), inset 0 1px 0 rgba(255,100,100,0.3); }
  50%      { box-shadow: 0 0 22px rgba(220,0,0,0.9), inset 0 1px 0 rgba(255,120,120,0.45); }
}
.blood-bar-fill::after {
  content: '';
  position: absolute;
  top: 2px; left: 6px; right: 6px;
  height: 5px;
  background: rgba(255,120,120,0.22);
  border-radius: 10px;
}
.blood-bar-pct-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,220,220,0.85);
  text-shadow: 0 0 4px rgba(0,0,0,0.9);
  pointer-events: none;
  white-space: nowrap;
}

.blood-bar-full-msg {
  margin-top: 6px;
  font-size: 12px;
  color: #ffd060;
  text-align: center;
  animation: flick 1.5s ease-in-out infinite;
}
@keyframes flick {
  0%,100%{opacity:1} 50%{opacity:.6}
}
.blood-total-info {
  margin-top: 8px;
  font-size: 12px;
  color: #b07c7c;
}
.blood-total-info strong { color: #cc4444; }

/* Give blood section */
.blood-give-section {
  border-top: 1px solid rgba(80,0,0,0.4);
  padding-top: 16px;
  margin-top: 16px;
}
.blood-give-title {
  font-size: 13px;
  color: #cc4444;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.btn-blood-give {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  letter-spacing: 1px;
  animation: blood-give-pulse 2s ease-in-out infinite;
}
@keyframes blood-give-pulse {
  0%,100%{ box-shadow: 0 0 12px rgba(180,0,0,0.5); }
  50%     { box-shadow: 0 0 28px rgba(220,0,0,0.8), 0 4px 20px rgba(100,0,0,0.5); }
}
.blood-limit-msg {
  background: rgba(0,30,0,0.4);
  border: 1px solid rgba(0,100,0,0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #66aa66;
  text-align: center;
}

/* Buy blood section */
.blood-buy-section {
  border-top: 1px solid rgba(80,0,0,0.4);
  padding-top: 16px;
  margin-top: 16px;
}
.blood-buy-sub {
  font-size: 12px;
  color: #b07c7c;
  margin-bottom: 12px;
}
.blood-buy-sub strong { color: #cc4444; }
.blood-buy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 7px;
}
.blood-buy-btn {
  background: rgba(25,0,0,0.9);
  border: 1px solid rgba(100,0,0,0.55);
  border-radius: 8px;
  color: #cc4444;
  cursor: pointer;
  padding: 9px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
  font-family: 'Raleway', sans-serif;
}
.blood-buy-btn:hover:not(:disabled) {
  background: rgba(60,0,0,0.9);
  border-color: rgba(180,0,0,0.8);
  box-shadow: 0 0 12px rgba(140,0,0,0.5);
  transform: translateY(-2px);
}
.blood-buy-btn:disabled { opacity: 0.38; cursor: not-allowed; }
.buy-ml { font-size: 14px; font-weight: 700; color: #ff4444; }
.buy-cost { font-size: 10px; color: #c98a8a; }

/* Own profile blood info */
.blood-own-info {
  border-top: 1px solid rgba(80,0,0,0.3);
  padding-top: 14px;
  margin-top: 14px;
  font-size: 13px;
  color: #b07c7c;
  line-height: 1.7;
}
.blood-own-info strong { color: #cc4444; }

/* Share link row */
.blood-share-row {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(80,0,0,0.35);
  text-align: left;
}
.blood-share-label { font-size: 12px; color: #c98a8a; display: block; margin-bottom: 8px; }
.blood-share-input-row { display: flex; gap: 8px; }
.blood-share-url {
  flex: 1;
  background: rgba(10,0,0,0.8);
  border: 1px solid rgba(80,0,0,0.5);
  border-radius: 6px;
  color: #cc4444;
  font-size: 11px;
  padding: 7px 10px;
  font-family: monospace;
  min-width: 0;
}
.blood-share-url:focus { outline: none; border-color: rgba(140,0,0,0.8); }

/* Responsive */
@media (max-width: 640px) {
  .blood-buy-grid { grid-template-columns: repeat(4, 1fr); }
  .blood-share-input-row { flex-direction: column; }
}

/* Storm Flash — body-nin animation-ını pozmasın deyə ayrı div istifadə edirik */
@keyframes flash-blue { 0%{opacity:0} 10%{opacity:1} 100%{opacity:0} }
@keyframes flash-red  { 0%{opacity:0} 15%{opacity:1} 100%{opacity:0} }
#storm-flash-div {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0;
}
#storm-flash-div.flash-blue {
  background: radial-gradient(ellipse at 50% 0%, rgba(100,160,255,0.22) 0%, transparent 70%);
  animation: flash-blue 0.22s ease-out forwards;
}
#storm-flash-div.flash-red {
  background: radial-gradient(ellipse at 50% 0%, rgba(180,0,0,0.18) 0%, transparent 70%);
  animation: flash-red 0.45s ease-out forwards;
}
