/* =========================================================
   Blue Lightning — Gaming & Rewards
   Theme: dark blue + neon green / purple / blue
   ========================================================= */
:root {
  --bg: #050a1e;
  --bg-2: #0a1233;
  --card: rgba(16, 27, 70, 0.72);
  --card-solid: #0f1a45;
  --border: rgba(110, 150, 255, 0.16);
  --border-strong: rgba(110, 150, 255, 0.32);
  --green: #39ff88;
  --purple: #9d4dff;
  --purple-2: #6d28d9;
  --blue: #2d8cff;
  --cyan: #22d3ee;
  --pink: #ff4d9d;
  --gold: #ffc53d;
  --danger: #ff5470;
  --text: #e8eeff;
  --muted: #8d9bcc;
  --radius: 20px;
  --sidebar-w: 256px;
  --glow-green: 0 0 18px rgba(57, 255, 136, 0.45);
  --glow-purple: 0 0 22px rgba(157, 77, 255, 0.45);
  --glow-blue: 0 0 22px rgba(45, 140, 255, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 10% -10%, rgba(45, 140, 255, 0.20), transparent 60%),
    radial-gradient(800px 500px at 110% 10%, rgba(157, 77, 255, 0.20), transparent 60%),
    radial-gradient(700px 500px at 50% 120%, rgba(57, 255, 136, 0.10), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
h1, h2, h3, h4, h5, h6 { color: inherit; }
a:hover { color: var(--green); }
::selection { background: var(--purple); color: #fff; }

.text-muted-bl { color: var(--muted) !important; }
.text-neon { color: var(--green) !important; }
.text-purple { color: #c39bff !important; }
.text-blue { color: #7cb8ff !important; }
.text-gold { color: var(--gold) !important; }
.fw-800 { font-weight: 800; }
.font-display { font-family: "Orbitron", "Poppins", sans-serif; letter-spacing: .5px; }
.small-xs { font-size: .75rem; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(110, 150, 255, .25); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* ================= LAYOUT ================= */
.bl-sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, rgba(10, 18, 51, .96), rgba(5, 10, 30, .98));
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  display: flex; flex-direction: column;
  z-index: 1030;
  overflow-y: auto;
}
.bl-main { min-height: 100vh; padding-bottom: 40px; }
.bl-content { padding: 22px 28px; max-width: 1400px; margin: 0 auto; }

@media (min-width: 992px) { .bl-main { margin-left: var(--sidebar-w); } }
@media (max-width: 991.98px) {
  .bl-sidebar { display: none; }
  .bl-main { padding-bottom: 110px; }
  .bl-content { padding: 16px 14px; }
}

.bl-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.bl-brand img { width: 42px; height: 42px; filter: drop-shadow(0 0 8px rgba(57, 255, 136, .5)); }
.bl-brand .name { font-family: "Orbitron", sans-serif; font-weight: 800; font-size: 1.05rem; line-height: 1; text-transform: uppercase; }
.bl-brand .name span { display: block; font-size: .72rem; letter-spacing: 3px; color: var(--green); margin-top: 3px; }
.bl-brand:hover { color: var(--text); }

.bl-nav { list-style: none; padding: 0; margin: 26px 0 0; }
.bl-nav li { margin-bottom: 4px; }
.bl-nav a, .bl-nav button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; border-radius: 12px; border: 0; background: transparent; text-align: left;
  color: var(--muted); font-weight: 500; font-size: .94rem;
  transition: all .2s ease; position: relative;
}
.bl-nav a i, .bl-nav button i { font-size: 1.15rem; width: 22px; text-align: center; }
.bl-nav a:hover, .bl-nav button:hover { background: rgba(45, 140, 255, .10); color: var(--text); }
.bl-nav a.active { background: linear-gradient(90deg, rgba(57, 255, 136, .16), rgba(45, 140, 255, .06)); color: var(--green); }
.bl-nav a.active::before {
  content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--green); box-shadow: var(--glow-green);
}
.bl-nav .nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: 1.5px; color: #5a6aa0; padding: 16px 14px 6px; }

.bl-sidebar-promo {
  margin-top: 24px;
  border-radius: 18px; padding: 16px;
  background: linear-gradient(135deg, rgba(157, 77, 255, .35), rgba(45, 140, 255, .25));
  border: 1px solid var(--border-strong);
  text-align: center;
}
.bl-sidebar-promo i { font-size: 1.8rem; color: var(--gold); }

/* header */
.bl-header {
  position: sticky; top: 0; z-index: 1020;
  background: rgba(5, 10, 30, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.bl-header-inner { display: flex; align-items: center; gap: 12px; padding: 12px 28px; max-width: 1400px; margin: 0 auto; }
@media (max-width: 991.98px) { .bl-header-inner { padding: 10px 14px; gap: 8px; } }
.bl-header .page-title { font-weight: 700; font-size: 1.2rem; margin: 0; }
.bl-header .bl-brand img { width: 34px; height: 34px; }
.bl-header .bl-brand .name { font-size: .88rem; }

.header-balance {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 6px 5px 12px; border-radius: 30px;
  background: rgba(57, 255, 136, .08); border: 1px solid rgba(57, 255, 136, .3);
  font-weight: 700; color: var(--green); white-space: nowrap; font-size: .9rem;
}
.header-balance .plus {
  width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: var(--green); color: #04130a; display: grid; place-items: center; font-size: .9rem;
}
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); flex-shrink: 0;
  display: inline-grid; place-items: center; position: relative; font-size: 1.15rem;
  transition: all .2s ease;
}
.icon-btn:hover { border-color: var(--blue); color: var(--cyan); box-shadow: var(--glow-blue); }
.icon-btn .dot {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--pink); color: #fff; font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.icon-btn .dot:empty, .icon-btn .dot[data-count="0"] { display: none; }
.header-avatar { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; border: 2px solid var(--purple); flex-shrink: 0; }
.header-user { display: flex; align-items: center; gap: 10px; color: var(--text); }
.header-user .meta { line-height: 1.15; }
.header-user .meta small { color: var(--muted); font-size: .72rem; }
@media (max-width: 359.98px) { .header-balance .amt-text { display: none; } }

/* ================= BOTTOM NAV (mobile) ================= */
.bl-bottom-nav {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 1040;
  height: 68px; border-radius: 22px;
  background: rgba(12, 20, 56, .95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  display: flex; align-items: center; justify-content: space-around;
}
@media (min-width: 992px) { .bl-bottom-nav { display: none; } }
.bl-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); font-size: .7rem; font-weight: 500;
}
.bl-bottom-nav a i { font-size: 1.3rem; }
.bl-bottom-nav a.active { color: var(--green); }
.bl-bottom-nav a.active i { filter: drop-shadow(0 0 6px rgba(57, 255, 136, .7)); }
.bl-bottom-nav .add-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; }
.bl-add-btn {
  width: 66px; height: 66px; margin-top: -38px; border-radius: 50%;
  border: 5px solid var(--bg); padding: 0;
  background: conic-gradient(from 180deg, var(--green), var(--cyan), var(--blue), var(--purple), var(--green));
  color: #fff; font-size: 2rem; display: grid; place-items: center;
  position: relative; animation: addPulse 2.4s ease-in-out infinite;
}
.bl-add-btn::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: linear-gradient(145deg, #1b2c77, #0b1440); }
.bl-add-btn i { position: relative; z-index: 1; color: var(--green); text-shadow: 0 0 10px rgba(57, 255, 136, .8); }
.bl-add-btn:active { transform: scale(.94); }
.add-wrap small { font-size: .7rem; color: var(--green); font-weight: 600; margin-top: 1px; }
@keyframes addPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(57, 255, 136, .45), 0 0 32px rgba(157, 77, 255, .3); }
  50% { box-shadow: 0 0 30px rgba(57, 255, 136, .75), 0 0 50px rgba(157, 77, 255, .5); }
}

/* ================= CARDS ================= */
.bl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
  position: relative;
}
@media (max-width: 575.98px) { .bl-card { padding: 16px; } }
.bl-card.hover-lift { transition: transform .25s ease, border-color .25s ease; }
.bl-card.hover-lift:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.bl-card-title { font-weight: 700; font-size: 1.02rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }
.ico-green { background: rgba(57, 255, 136, .14); color: var(--green); }
.ico-purple { background: rgba(157, 77, 255, .18); color: #c39bff; }
.ico-blue { background: rgba(45, 140, 255, .18); color: #7cb8ff; }
.ico-gold { background: rgba(255, 197, 61, .15); color: var(--gold); }
.ico-pink { background: rgba(255, 77, 157, .15); color: var(--pink); }
.ico-cyan { background: rgba(34, 211, 238, .15); color: var(--cyan); }
.ico-red { background: rgba(255, 84, 112, .14); color: #ff8aa0; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-head h2 { font-size: 1.2rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2 i { color: var(--green); }
.section-head a { font-size: .86rem; font-weight: 600; white-space: nowrap; }

.welcome-banner {
  border-radius: 24px; padding: 24px; position: relative; overflow: hidden;
  background:
    radial-gradient(400px 200px at 90% 0%, rgba(57, 255, 136, .25), transparent 70%),
    linear-gradient(120deg, #1a1560 0%, #2a1a8c 40%, #0f3fa8 100%);
  border: 1px solid rgba(157, 77, 255, .4);
}
.welcome-banner::after {
  content: ""; position: absolute; right: -30px; bottom: -50px; width: 240px; height: 240px;
  background: url("../images/logo.svg") no-repeat center / contain; opacity: .16; transform: rotate(12deg);
}
.welcome-banner > * { position: relative; z-index: 1; }
.welcome-banner h1 { font-weight: 800; font-size: clamp(1.35rem, 3vw, 1.9rem); }

.balance-card {
  border-radius: 24px; padding: 22px; position: relative; overflow: hidden; height: 100%;
  background: linear-gradient(135deg, #6d28d9 0%, #3b3fe0 45%, #1d7bff 100%);
  box-shadow: 0 14px 40px rgba(109, 40, 217, .4);
  border: 1px solid rgba(255, 255, 255, .15);
}
.balance-card::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -60px; top: -80px; background: rgba(255, 255, 255, .1); }
.balance-card::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: 40px; bottom: -90px; background: rgba(57, 255, 136, .18); }
.balance-card > * { position: relative; z-index: 1; }
.balance-amount { font-family: "Orbitron", sans-serif; font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; line-height: 1.1; }
.balance-card .label { opacity: .85; font-size: .88rem; }
.refresh-btn {
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); color: #fff;
  border-radius: 12px; padding: 7px 12px; font-size: .84rem; font-weight: 600;
}
.refresh-btn:hover { background: rgba(255, 255, 255, .22); }
.spinning i { animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-stat { background: rgba(0, 0, 0, .2); border-radius: 14px; padding: 10px 12px; }
.mini-stat small { opacity: .8; font-size: .72rem; display: block; }
.mini-stat strong { font-size: 1rem; }

.cred-field {
  display: flex; align-items: center; gap: 6px;
  background: rgba(5, 10, 30, .6); border: 1px solid var(--border);
  border-radius: 14px; padding: 6px 6px 6px 14px;
}
.cred-field .val { flex: 1; min-width: 0; font-family: "Orbitron", monospace; font-weight: 600; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cred-field .mini-btn {
  border: 0; width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(45, 140, 255, .15); color: #8ec2ff; display: grid; place-items: center;
}
.cred-field .mini-btn:hover { background: rgba(57, 255, 136, .18); color: var(--green); }
.cred-label { font-size: .78rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }

/* ================= BUTTONS ================= */
.btn { border-radius: 14px; font-weight: 600; padding: .6rem 1.1rem; transition: all .2s ease; }
.btn-sm { border-radius: 10px; padding: .35rem .8rem; }
.btn-lg { border-radius: 16px; padding: .85rem 1.4rem; }
.btn-neon { background: linear-gradient(135deg, var(--green), #1ee3b0); color: #03140b; border: 0; box-shadow: 0 6px 20px rgba(57, 255, 136, .3); }
.btn-neon:hover, .btn-neon:focus { color: #03140b; box-shadow: 0 8px 28px rgba(57, 255, 136, .55); transform: translateY(-1px); }
.btn-purple { background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: #fff; border: 0; box-shadow: 0 6px 20px rgba(157, 77, 255, .3); }
.btn-purple:hover, .btn-purple:focus { color: #fff; box-shadow: 0 8px 28px rgba(157, 77, 255, .55); transform: translateY(-1px); }
.btn-blue { background: linear-gradient(135deg, var(--blue), #1b5fe0); color: #fff; border: 0; box-shadow: 0 6px 20px rgba(45, 140, 255, .3); }
.btn-blue:hover, .btn-blue:focus { color: #fff; box-shadow: 0 8px 28px rgba(45, 140, 255, .55); transform: translateY(-1px); }
.btn-glass { background: rgba(255, 255, 255, .06); border: 1px solid var(--border-strong); color: var(--text); }
.btn-glass:hover, .btn-glass:focus { background: rgba(255, 255, 255, .12); color: #fff; border-color: var(--blue); }
.btn-outline-neon { border: 1px solid var(--green); color: var(--green); background: transparent; }
.btn-outline-neon:hover { background: rgba(57, 255, 136, .12); color: var(--green); box-shadow: var(--glow-green); }
.btn-danger-soft { background: rgba(255, 84, 112, .12); border: 1px solid rgba(255, 84, 112, .4); color: #ff8aa0; }
.btn-danger-soft:hover { background: rgba(255, 84, 112, .22); color: #fff; }
.btn:disabled, .btn.disabled { opacity: .5; transform: none !important; box-shadow: none !important; }

.btn-play {
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 50%, var(--blue) 100%);
  background-size: 200% 100%; color: #04130a; border: 0; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; animation: playShift 4s ease infinite;
  box-shadow: 0 8px 26px rgba(57, 255, 136, .4);
}
.btn-play:hover, .btn-play:focus { color: #04130a; transform: translateY(-2px); box-shadow: 0 10px 34px rgba(57, 255, 136, .6); }
@keyframes playShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.quick-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 6px; border-radius: 18px; text-align: center; height: 100%;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  font-weight: 600; font-size: .8rem; transition: all .2s ease; width: 100%;
}
.quick-action .ico { width: 46px; height: 46px; border-radius: 15px; font-size: 1.3rem; }
.quick-action:hover { border-color: var(--border-strong); transform: translateY(-3px); color: #fff; }

/* ================= GAMES ================= */
.search-box { position: relative; }
.search-box > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); z-index: 2; }
.search-box input { padding-left: 44px !important; }

.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap; border: 1px solid var(--border); background: var(--card); color: var(--muted);
  padding: 8px 16px; border-radius: 30px; font-size: .85rem; font-weight: 600; transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: linear-gradient(135deg, rgba(57, 255, 136, .2), rgba(45, 140, 255, .15)); color: var(--green); border-color: rgba(57, 255, 136, .5); }
.chip .count { background: rgba(255, 255, 255, .1); border-radius: 10px; padding: 0 7px; margin-left: 4px; font-size: .74rem; }

.game-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; height: 100%;
  display: flex; flex-direction: column;
}
.game-card:hover { transform: translateY(-5px); border-color: rgba(57, 255, 136, .45); box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 20px rgba(57, 255, 136, .15); }
.game-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer; background: #0b1440; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.game-card:hover .game-thumb img { transform: scale(1.07); }
.game-thumb .badge-cat {
  position: absolute; left: 10px; top: 10px; background: rgba(5, 10, 30, .7);
  border: 1px solid var(--border-strong); color: var(--text); font-size: .66rem; padding: 3px 9px; border-radius: 20px; font-weight: 600;
}
.game-thumb .badge-hot {
  position: absolute; left: 10px; top: 38px; background: linear-gradient(135deg, #ff4d9d, #ff7a45);
  color: #fff; font-size: .64rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase;
}
.fav-btn {
  position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(5, 10, 30, .65);
  color: #fff; display: grid; place-items: center; font-size: .95rem; transition: all .2s; z-index: 2;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.active { color: var(--pink); background: rgba(255, 77, 157, .2); border-color: var(--pink); box-shadow: 0 0 12px rgba(255, 77, 157, .5); }
.fav-btn.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }
.game-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-body h6 { margin: 0; font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-body .meta { font-size: .72rem; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.game-body .btn { margin-top: auto; font-size: .82rem; }

.empty-state { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty-state i { font-size: 3rem; color: var(--purple); opacity: .7; }

.game-modal-img { width: 100%; border-radius: 18px; aspect-ratio: 16 / 10; object-fit: cover; }
.loader-bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--cyan), var(--purple)); border-radius: 10px; transition: width .15s linear; }

/* ================= REWARDS ================= */
.points-hero {
  border-radius: 24px; padding: 24px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f5132 0%, #0b6b54 35%, #0e4fa8 100%);
  border: 1px solid rgba(57, 255, 136, .35);
  box-shadow: 0 14px 40px rgba(57, 255, 136, .15);
}
.points-hero > * { position: relative; z-index: 1; }
.points-hero .big { font-family: "Orbitron", sans-serif; font-size: clamp(2rem, 5vw, 2.7rem); font-weight: 800; }
.points-hero .trophy { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 6rem; opacity: .18; z-index: 0; }

.streak-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
@media (max-width: 420px) { .streak-row { gap: 4px; } .streak-day { padding: 8px 2px !important; font-size: .64rem !important; } }
.streak-day {
  border-radius: 14px; padding: 10px 4px; text-align: center; background: rgba(5, 10, 30, .5);
  border: 1px solid var(--border); font-size: .72rem; color: var(--muted);
}
.streak-day i { font-size: 1.25rem; display: block; margin: 4px 0; }
.streak-day strong { color: var(--text); font-size: .76rem; }
.streak-day.done { background: rgba(57, 255, 136, .12); border-color: rgba(57, 255, 136, .45); color: var(--green); }
.streak-day.done i { color: var(--green); }
.streak-day.today { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple), var(--glow-purple); color: #d7bcff; }
.streak-day.today i { color: var(--gold); }

.task-item {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px;
  background: rgba(5, 10, 30, .45); border: 1px solid var(--border); margin-bottom: 10px;
}
.task-item:last-child { margin-bottom: 0; }
.task-item .t-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.task-item .t-body { flex: 1; min-width: 0; }
.task-item .t-title { font-weight: 600; font-size: .9rem; }
.task-item .t-sub { font-size: .74rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.task-item .t-reward { color: var(--gold); font-weight: 700; white-space: nowrap; }
.task-item .t-action .btn { min-width: 96px; }
.task-item.claimed { opacity: .6; }
@media (max-width: 575.98px) {
  .task-item { flex-wrap: wrap; }
  .task-item .t-action { width: 100%; }
  .task-item .t-action .btn { width: 100%; }
}

.bl-progress { height: 8px; border-radius: 10px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 7px; }
.bl-progress .bar { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--green), var(--cyan)); transition: width .6s ease; box-shadow: 0 0 10px rgba(57, 255, 136, .5); }
.bl-progress.purple .bar { background: linear-gradient(90deg, var(--purple), var(--blue)); box-shadow: 0 0 10px rgba(157, 77, 255, .5); }
.bl-progress.gold .bar { background: linear-gradient(90deg, var(--gold), #ff8a3d); box-shadow: 0 0 10px rgba(255, 197, 61, .5); }
.bl-progress.lg { height: 12px; }

.vip-tier {
  border-radius: 18px; padding: 16px 10px; text-align: center; background: rgba(5, 10, 30, .5);
  border: 1px solid var(--border); height: 100%; transition: all .2s;
}
.vip-tier i { font-size: 1.9rem; }
.vip-tier .tier-name { font-weight: 700; margin-top: 4px; }
.vip-tier small { color: var(--muted); font-size: .72rem; display: block; }
.vip-tier.current { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 20px rgba(255, 197, 61, .3); background: rgba(255, 197, 61, .07); }
.vip-tier.locked { opacity: .55; }

.referral-card { background: linear-gradient(135deg, rgba(157, 77, 255, .3), rgba(45, 140, 255, .18)); border: 1px solid rgba(157, 77, 255, .4); }
.code-pill {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 14px;
  background: rgba(5, 10, 30, .6); border: 1px dashed rgba(57, 255, 136, .5);
}
.code-pill span { flex: 1; min-width: 0; font-family: "Orbitron", monospace; font-weight: 700; color: var(--green); letter-spacing: 1.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= FORMS ================= */
.form-control, .form-select {
  background-color: rgba(5, 10, 30, .6) !important; border: 1px solid var(--border) !important;
  color: var(--text) !important; border-radius: 14px; padding: .7rem 1rem;
}
.form-select option { background: var(--bg-2); }
.form-control::placeholder { color: #5f6d9e; }
.form-control:focus, .form-select:focus { border-color: var(--green) !important; box-shadow: 0 0 0 .2rem rgba(57, 255, 136, .15) !important; }
.form-label { font-size: .84rem; color: var(--muted); font-weight: 500; }
.input-group > .form-control { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-group > .btn { border-radius: 0 14px 14px 0; }
.input-group > .btn-toggle-pw { background: rgba(5, 10, 30, .6); border: 1px solid var(--border); border-left: 0; color: var(--muted); }
.input-group > .btn-toggle-pw:hover { color: var(--green); }
.form-check-input { background-color: rgba(5, 10, 30, .6); border-color: var(--border-strong); }
.form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.form-control.is-invalid { border-color: var(--danger) !important; }
.invalid-feedback { color: #ff8aa0; }

.amount-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amount-chip {
  padding: 12px 4px; border-radius: 14px; border: 1px solid var(--border); background: rgba(5, 10, 30, .5);
  color: var(--text); font-weight: 700; text-align: center;
}
.amount-chip.active, .amount-chip:hover { border-color: var(--green); color: var(--green); background: rgba(57, 255, 136, .1); }

/* ================= MODALS / OFFCANVAS / TOAST ================= */
.modal-content {
  background: linear-gradient(180deg, #111c4d, #0a1233); border: 1px solid var(--border-strong);
  border-radius: 24px; color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.modal-header, .modal-footer { border-color: var(--border); }
.modal-title { font-weight: 700; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
.modal-backdrop.show { opacity: .75; }

.offcanvas { background: linear-gradient(180deg, #0f1a45, #070d28) !important; color: var(--text) !important; border-left: 1px solid var(--border-strong) !important; }
.offcanvas-header { border-bottom: 1px solid var(--border); }
.notif-item {
  display: flex; gap: 12px; padding: 12px; border-radius: 14px; margin-bottom: 8px; cursor: pointer;
  background: rgba(5, 10, 30, .5); border: 1px solid var(--border); position: relative;
}
.notif-item.unread { border-color: rgba(57, 255, 136, .35); background: rgba(57, 255, 136, .05); }
.notif-item.unread::after { content: ""; position: absolute; right: 12px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: var(--glow-green); }
.notif-item .ico { width: 38px; height: 38px; border-radius: 12px; }
.notif-item .n-title { font-weight: 600; font-size: .88rem; padding-right: 14px; }
.notif-item .n-text { font-size: .78rem; color: var(--muted); }
.notif-item .n-time { font-size: .68rem; color: #6b79ab; margin-top: 3px; }

.toast-wrap { position: fixed; top: 16px; right: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; max-width: calc(100% - 32px); }
@media (max-width: 575.98px) { .toast-wrap { left: 16px; right: 16px; } }
.bl-toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; min-width: 240px;
  background: rgba(15, 26, 69, .97); border: 1px solid var(--border-strong); color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: .88rem; font-weight: 500;
  animation: toastIn .3s ease;
}
.bl-toast i { font-size: 1.2rem; }
.bl-toast.success { border-color: rgba(57, 255, 136, .5); } .bl-toast.success i { color: var(--green); }
.bl-toast.error { border-color: rgba(255, 84, 112, .5); } .bl-toast.error i { color: var(--danger); }
.bl-toast.info { border-color: rgba(45, 140, 255, .5); } .bl-toast.info i { color: var(--blue); }
.bl-toast.hide { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }

/* ================= PROFILE ================= */
.profile-card { padding: 0; overflow: hidden; }
.profile-cover {
  height: 140px;
  background:
    radial-gradient(300px 150px at 20% 100%, rgba(57, 255, 136, .35), transparent 70%),
    linear-gradient(120deg, #3b1d8f, #1d4fd8 60%, #0e7490);
}
.profile-head { padding: 0 22px 22px; margin-top: -60px; }
.profile-avatar-wrap { position: relative; width: 120px; height: 120px; }
.profile-avatar { width: 120px; height: 120px; border-radius: 30px; object-fit: cover; border: 4px solid var(--bg-2); box-shadow: 0 0 0 2px var(--purple), var(--glow-purple); background: var(--bg-2); }
.avatar-edit {
  position: absolute; right: -6px; bottom: -6px; width: 38px; height: 38px; border-radius: 12px; border: 3px solid var(--bg-2);
  background: var(--green); color: #04130a; display: grid; place-items: center; cursor: pointer; margin: 0;
}
.info-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: 0; }
.info-row .ico { width: 42px; height: 42px; border-radius: 13px; }
.info-row small { color: var(--muted); display: block; font-size: .74rem; }
.info-row strong { font-weight: 600; word-break: break-word; }
.menu-link {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; color: var(--text);
  background: rgba(5, 10, 30, .4); border: 1px solid var(--border); margin-bottom: 8px; width: 100%; text-align: left;
  transition: all .2s; font-weight: 500;
}
.menu-link:hover { border-color: var(--border-strong); color: #fff; transform: translateX(3px); }
.menu-link .chev { margin-left: auto; color: var(--muted); }
.menu-link.danger { color: #ff8aa0; }
.menu-link.danger:hover { border-color: rgba(255, 84, 112, .5); color: #ff8aa0; }

.pw-strength { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 8px; }
.pw-strength span { display: block; height: 100%; width: 0; transition: all .3s; border-radius: 6px; }

/* ================= SUPPORT CHAT ================= */
.support-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 18px; height: calc(100vh - 130px); min-height: 540px; }
@media (max-width: 991.98px) { .support-wrap { grid-template-columns: 1fr; height: auto; min-height: 0; } }
.agents-panel { display: flex; flex-direction: column; overflow: hidden; }
.agents-list { overflow-y: auto; flex: 1; margin: 0 -8px; padding: 0 8px; }
@media (max-width: 991.98px) {
  .agents-list { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
  .agents-list .agent-item { min-width: 210px; margin-bottom: 0 !important; border-color: var(--border); }
}
.agent-item {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; cursor: pointer;
  border: 1px solid transparent; margin-bottom: 6px; transition: all .2s; background: transparent; width: 100%; text-align: left; color: var(--text);
}
.agent-item:hover { background: rgba(45, 140, 255, .08); }
.agent-item.active { background: linear-gradient(90deg, rgba(57, 255, 136, .12), rgba(45, 140, 255, .06)); border-color: rgba(57, 255, 136, .35); }
.agent-avatar { position: relative; width: 46px; height: 46px; flex-shrink: 0; }
.agent-avatar .av { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 1rem; }
.status-dot { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--card-solid); }
.status-dot.online { background: var(--green); box-shadow: var(--glow-green); }
.status-dot.away { background: var(--gold); }
.status-dot.offline { background: #5f6d9e; }
.agent-item .a-name { font-weight: 600; font-size: .9rem; }
.agent-item .a-role { font-size: .72rem; color: var(--muted); }
.a-status { font-size: .7rem; font-weight: 600; }
.a-status.online { color: var(--green); } .a-status.away { color: var(--gold); } .a-status.offline { color: var(--muted); }
.agent-item .unread-count { margin-left: auto; background: var(--pink); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 10px; padding: 1px 7px; }

.chat-panel { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
@media (max-width: 991.98px) { .chat-panel { height: calc(100vh - 320px); min-height: 440px; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 80%; display: flex; flex-direction: column; }
.msg .bubble { padding: 10px 14px; border-radius: 18px; font-size: .88rem; line-height: 1.45; word-wrap: break-word; }
.msg .time { font-size: .66rem; color: var(--muted); margin-top: 3px; }
.msg.agent { align-self: flex-start; }
.msg.agent .bubble { background: rgba(45, 140, 255, .14); border: 1px solid rgba(45, 140, 255, .25); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.user .bubble { background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; border-bottom-right-radius: 6px; }
.msg.system { align-self: center; max-width: 100%; }
.msg.system .bubble { background: rgba(255, 255, 255, .05); color: var(--muted); font-size: .72rem; padding: 4px 12px; border-radius: 20px; }
.typing .bubble { display: flex; gap: 4px; padding: 14px; }
.typing .bubble span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: blink 1.2s infinite; }
.typing .bubble span:nth-child(2) { animation-delay: .2s; } .typing .bubble span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.quick-replies { display: flex; gap: 8px; overflow-x: auto; padding: 0 18px 10px; scrollbar-width: none; }
.quick-replies::-webkit-scrollbar { display: none; }
.quick-replies button { white-space: nowrap; font-size: .76rem; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border-strong); background: rgba(5, 10, 30, .5); color: var(--cyan); }
.quick-replies button:hover { border-color: var(--green); color: var(--green); }
.chat-input { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); }
.chat-input .form-control { border-radius: 30px; }
.chat-input .send-btn { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; padding: 0; display: grid; place-items: center; font-size: 1.1rem; }

/* ================= AUTH PAGES ================= */
.auth-body { display: flex; align-items: center; justify-content: center; padding: 24px 14px; }
.auth-shell {
  width: 100%; max-width: 1040px; display: grid; grid-template-columns: 1.05fr 1fr;
  border-radius: 28px; overflow: hidden; border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); background: rgba(10, 18, 51, .88);
}
@media (max-width: 991.98px) { .auth-shell { grid-template-columns: 1fr; max-width: 480px; } .auth-side { display: none !important; } }
.auth-side {
  position: relative; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; gap: 30px;
  background:
    radial-gradient(400px 260px at 10% 0%, rgba(57, 255, 136, .35), transparent 70%),
    radial-gradient(400px 300px at 100% 100%, rgba(157, 77, 255, .5), transparent 70%),
    linear-gradient(135deg, #140f52, #0d2a86);
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side .bolt-bg { position: absolute; right: -70px; top: 50%; transform: translateY(-50%) rotate(10deg); width: 360px; opacity: .18; z-index: 0; }
.auth-side h2 { font-weight: 800; font-size: 2rem; line-height: 1.2; }
.auth-feature { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .92rem; }
.auth-feature i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: var(--green); flex-shrink: 0; }
.auth-form { padding: 40px; }
@media (max-width: 575.98px) { .auth-form { padding: 28px 20px; } }
.auth-form h3 { font-weight: 800; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* misc */
.badge-soft { padding: 4px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600; display: inline-block; }
.badge-soft.green { background: rgba(57, 255, 136, .14); color: var(--green); }
.badge-soft.purple { background: rgba(157, 77, 255, .18); color: #c39bff; }
.badge-soft.gold { background: rgba(255, 197, 61, .15); color: var(--gold); }
.badge-soft.blue { background: rgba(45, 140, 255, .18); color: #8ec2ff; }
.stat-tile { padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); height: 100%; }
.stat-tile small { color: var(--muted); font-size: .76rem; }
.stat-tile .v { font-family: "Orbitron", sans-serif; font-weight: 700; font-size: 1.25rem; }
.install-banner { background: linear-gradient(135deg, rgba(34, 211, 238, .2), rgba(157, 77, 255, .25)); border: 1px solid rgba(34, 211, 238, .35); }
.fade-up { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }

/* ================= PHP VERSION ADDITIONS ================= */
.bl-dropdown { border-radius: 14px; background: #0f1a45 !important; border: 1px solid rgba(110, 150, 255, .3) !important; }
.bl-dropdown .dropdown-item { color: var(--text); border-radius: 8px; }
.bl-dropdown .dropdown-item:hover { background: rgba(45, 140, 255, .15); }
.auth-ig { background: rgba(5, 10, 30, .6) !important; border: 1px solid var(--border) !important; border-right: 0 !important; color: var(--muted) !important; border-radius: 14px 0 0 14px !important; }
.input-group .form-control.pw-end { border-radius: 0 14px 14px 0 !important; }
.input-group .form-control.pw-mid { border-radius: 0 !important; }
.form-control:disabled { opacity: .6; }
.notif-count-plain { font-family: "Orbitron", sans-serif; }

/* banners */
.promo-banner {
  display: flex; align-items: center; gap: 16px; min-height: 150px; padding: 22px 26px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(300px 160px at 85% 50%, rgba(57, 255, 136, .25), transparent 70%), linear-gradient(120deg, #0f3fa8, #3b1d8f 60%, #6d28d9);
  border: 1px solid rgba(157, 77, 255, .4);
}
.promo-banner .pb-text { flex: 1; min-width: 0; }
.promo-banner h3 { font-weight: 800; font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-bottom: 4px; }
.promo-banner p { opacity: .8; font-size: .88rem; margin-bottom: 12px; }
.promo-banner img { width: 120px; height: 120px; object-fit: cover; border-radius: 20px; flex-shrink: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
@media (max-width: 575.98px) { .promo-banner { padding: 18px; padding-bottom: 30px; } .promo-banner img { width: 84px; height: 84px; } }
.carousel-indicators [data-bs-target] { width: 18px; height: 5px; border-radius: 4px; background: var(--green); }

/* tables */
.bl-table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); --bs-table-hover-bg: rgba(45, 140, 255, .06); --bs-table-hover-color: var(--text); font-size: .88rem; vertical-align: middle; }
.bl-table thead th { color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .6px; border-bottom-color: var(--border-strong); white-space: nowrap; }
.bl-table td, .bl-table th { padding: .7rem .6rem; }
.glow-line { height: 2px; background: linear-gradient(90deg, transparent, var(--green), var(--purple), transparent); border: 0; opacity: .6; }

/* play page */
.play-body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.play-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(5, 10, 30, .9); border-bottom: 1px solid var(--border); }
.play-stage { flex: 1; position: relative; }
.play-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.play-placeholder { max-width: 520px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.play-placeholder img { width: 180px; height: 180px; border-radius: 30px; object-fit: cover; box-shadow: 0 0 40px rgba(57, 255, 136, .3); }

/* ================= ADMIN ================= */
.admin-body .bl-sidebar { width: 250px; }
.admin-body .bl-nav a { padding: 9px 14px; font-size: .9rem; }
.admin-badge { font-size: .62rem; background: var(--purple); color: #fff; padding: 2px 8px; border-radius: 10px; letter-spacing: 1px; }
.nav-count { margin-left: auto; background: var(--pink); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 10px; padding: 1px 7px; }
.kpi { padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); height: 100%; display: flex; gap: 14px; align-items: center; }
.kpi .ico { width: 50px; height: 50px; border-radius: 15px; font-size: 1.35rem; }
.kpi small { color: var(--muted); font-size: .78rem; display: block; }
.kpi .v { font-family: "Orbitron", sans-serif; font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.admin-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-toolbar .form-control, .admin-toolbar .form-select { width: auto; min-width: 160px; padding: .45rem .8rem; }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; }
.admin-chat { height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: rgba(5, 10, 30, .4); border-radius: 16px; border: 1px solid var(--border); }
.admin-chat .msg.user { align-self: flex-start; align-items: flex-start; }
.admin-chat .msg.user .bubble { background: rgba(45, 140, 255, .14); border: 1px solid rgba(45, 140, 255, .25); color: var(--text); border-radius: 18px 18px 18px 6px; }
.admin-chat .msg.agent { align-self: flex-end; align-items: flex-end; }
.admin-chat .msg.agent .bubble { background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; border: 0; border-radius: 18px 18px 6px 18px; }
.convo-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid transparent; color: var(--text); margin-bottom: 4px; }
.convo-item:hover { background: rgba(45, 140, 255, .08); color: var(--text); }
.convo-item.active { border-color: rgba(57, 255, 136, .35); background: rgba(57, 255, 136, .07); }
.pagination-bl .btn { min-width: 38px; }
.admin-body .bl-sidebar { background: linear-gradient(180deg, rgba(10, 18, 51, .98), rgba(5, 10, 30, .99)) !important; }
@media (max-width: 991.98px) {
  .admin-body .bl-sidebar { display: flex; width: 270px; border-right: 1px solid var(--border-strong); }
  .admin-body .bl-main { padding-bottom: 40px; }
}
@media (min-width: 992px) { .admin-body .bl-sidebar { visibility: visible !important; transform: none !important; } }
