/* ═══════════════════════════════════════════════════════════════
   QueenCMS – styles.css
   Premium Dark Theme
   ═══════════════════════════════════════════════════════════════ */


.ms-auto{
  margin-left: 0 !important;
}   
/* ── Inline SVG Icon Base ─────────────────────────────────── */
.qicon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -.125em;
  fill: currentColor;
  flex-shrink: 0;
}
.qicon.fs-4 { width: 1.5rem; height: 1.5rem; }

/* ── Auth Logo ─────────────────────────────────────────────── */
.auth-logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}
.auth-landing-content:empty { display: none; }

:root {
  --bg-body: #050304;
  --bg-surface: #050304;
  --bg-card: #000000;
  --bg-card-hover: #1a1a30;
  --bg-input: #10101e;
  --border: #252545;
  --border-light: #303060;
  --primary: #f59e0b;
  --primary-hover: #f59e0b;
  --primary-glow: #f59e0b;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-glow: rgba(245, 158, 11, .25);
  --success: #10b981;
  --danger: #ef4444;
  --text: #e8eaf0;
  --text-muted: #6b7294;
  --sidebar-w: 240px;
  --topbar-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ── Global ────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.form-control, .form-select {
  background: var(--bg-input) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
}
.input-group-text {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
}

.table-dark { --bs-table-bg: transparent; --bs-table-border-color: var(--border); }
.table-dark th { color: var(--text-muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  font-weight: 600; color: #000; background: var(--primary) !important; border-color: var(--primary) !important;
}
.btn-primary:hover { background: var(--primary-hover) !important; border-color: var(--primary-hover) !important; }

.btn-accent, .btn-outline-accent:hover {
  background: var(--accent) !important; border-color: var(--accent) !important; color: #000 !important; font-weight: 600;
}
.btn-accent:hover { background: var(--accent-hover) !important; }
.btn-outline-accent {
  border-color: var(--accent) !important; color: var(--accent) !important; background: transparent !important;
}

.btn-outline-primary { border-color: var(--primary) !important; color: var(--primary) !important; }
.btn-outline-primary:hover { background: var(--primary) !important; color: #fff !important; }

.badge.bg-primary { background: var(--primary) !important; }
.badge.bg-info { background: #3b82f6 !important; }

/* text-accent utility */
.text-accent { color: var(--accent) !important; }

/* ══════════════════════════════════════════════════════════════
   AUTH PAGE
   ══════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124,58,237,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(245,158,11,.08) 0%, transparent 50%),
    var(--bg-body);
}
.auth-wrapper { width: 100%; max-width: 440px; padding: 1rem; }
.auth-wrapper.landing-wide { max-width: 1200px; }
.auth-landing-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  color: var(--text);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.auth-landing-box:empty { display: none; }
.auth-landing-box h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.auth-landing-box h4 { font-size: 1rem; color: var(--accent); }
.auth-landing-box p { color: var(--text-muted); }
.auth-landing-box ul { color: var(--text); }
.auth-landing-box hr { border-color: var(--border); }
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.brand-icon { font-size: 3rem; color: var(--primary); margin-bottom: .5rem; }
.brand-icon i { filter: drop-shadow(0 0 20px var(--primary-glow)); }
.brand-title { font-size: 2rem; font-weight: 800; letter-spacing: -1px; }
.brand-title span { color: var(--accent); }

.demo-accounts { border-top: 1px solid var(--border); padding-top: 1rem; }
.demo-grid { display: flex; gap: .5rem; flex-wrap: wrap; }
.demo-btn { font-size: .75rem !important; }

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════ */
#sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 1000;
  transition: transform .3s ease;
}
.sidebar-brand {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: .75rem;
  padding: 0 1.5rem;
  font-size: 1.3rem; font-weight: 800;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.sidebar-brand i { color: var(--primary); font-size: 1.5rem; }

.sidebar-nav { max-height: 100%; overflow: auto; list-style: none; padding: 1rem .75rem; margin: 0; flex: 1; }
.sidebar-nav li { margin-bottom: .25rem; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem;
  color: var(--text-muted); font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.sidebar-nav a:hover { background: var(--bg-card); color: var(--text); }
.sidebar-nav a.active { background: var(--primary); color: #000; }
.sidebar-nav a i { font-size: 1.15rem; width: 22px; text-align: center; }

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}
.sidebar-footer a { color: var(--text-muted); display: flex; align-items: center; gap: .5rem; }
.sidebar-footer a:hover { color: var(--danger); }

#sidebarToggle {
  position: fixed; top: 12px; left: 12px; z-index: 1100;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm);
}

@media (max-width: 991.98px) {
  #sidebar { transform: translateX(-100%); }
  #sidebar.open { transform: translateX(0); box-shadow: 10px 0 40px rgba(0,0,0,.5); }
  #main-content { margin-left: 0 !important; }
}

/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════════════════════ */
#main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ── Topbar ───────────────────────────────────────────────── */
#topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem 0 2rem;
  position: sticky; top: 0; z-index: 900;
  backdrop-filter: blur(12px);
}
.topbar-right { display: flex; align-items: center; gap: 1.5rem; }

@media (max-width: 991.98px) {
  #topbar { padding-left: 4rem; }
}

.wallet-badge {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: .4rem .75rem .4rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  color: var(--accent);
}
.wallet-badge i { font-size: 1.1rem; }

.user-info { display: flex; align-items: center; gap: .5rem; }

/* ── Views ────────────────────────────────────────────────── */
.view { display: none; padding: 1.5rem 2rem 3rem; flex: 1; max-width: 1400px; margin-left: auto; margin-right: auto; width: 100%; }
.view.active { display: block; animation: fadeIn .3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Cards ────────────────────────────────────────────────── */
.qcms-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.qcms-card:hover {
  border-color: var(--border-light);
}

.stat-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  min-height: 200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.stat-card h2,
.stat-card h3 {
  min-width: 60px;
  min-height: 1.2em;
}

.stat-card .placeholder-glow {
  width: 60px;
  height: 1.2em;
}

.qcms-modal {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

/* ══════════════════════════════════════════════════════════════
   FEED / POSTS
   ══════════════════════════════════════════════════════════════ */
.feed-grid {margin: 0 auto; }

.post-card { overflow: hidden; }
.post-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem;
}
.post-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg-surface);
}
.post-image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .4s ease;
}

/* Locked state */
.post-image-wrap.locked .post-image {
  filter: blur(28px) brightness(.5);
}
.post-lock-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.post-lock-overlay:hover { background: rgba(124, 58, 237, .35); }
.post-lock-overlay i { font-size: 3rem; margin-bottom: .5rem; filter: drop-shadow(0 0 10px rgba(0,0,0,.5)); }
.post-lock-overlay span { font-weight: 600; font-size: 1rem; }

.post-body { padding: 1rem 1.25rem; }
.post-body h5 { margin-bottom: .5rem; }
.post-body p { color: var(--text-muted); margin-bottom: .75rem; }
.post-actions { display: flex; gap: .5rem; align-items: center; }

/* ══════════════════════════════════════════════════════════════
   CHAT
   ══════════════════════════════════════════════════════════════ */
.chat-layout {
  display: flex;
  height: calc(100vh - var(--topbar-h) - 8rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.chat-sidebar {
  width: 340px; min-width: 280px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: var(--bg-surface);
}
.chat-sidebar-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem; border-bottom: 1px solid var(--border);
}
.conversation-list { flex: 1; overflow-y: auto; }
.conversation-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.conversation-item:hover { background: var(--bg-card); }
.conversation-item.active { background: var(--primary); color: #fff; }
.conversation-item.active .text-muted { color: rgba(255,255,255,.65) !important; }
.conv-info { flex: 1; min-width: 0; }

.chat-main { flex: 1; display: flex; flex-direction: column; }
.chat-placeholder {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.chat-placeholder i { font-size: 4rem; margin-bottom: 1rem; }

.chat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: .5rem;
}

.chat-bubble { max-width: 70%; 
  padding: .65rem 1rem; 
  border-radius: var(--radius); 
}
.chat-bubble.mine {
  align-self: flex-end;
  background: #222;
  color: #fff;
  border: 1px solid var(--border);
  border-bottom-right-radius: 4px;
}
.chat-bubble.theirs {
  align-self: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.bubble-text { word-break: break-word; }
.bubble-meta { font-size: .7rem; margin-top: .25rem; opacity: .6; }

.chat-input {
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

@media (max-width: 767.98px) {
  .chat-sidebar { width: 100%; min-width: unset; position: absolute; z-index: 10; }
  .chat-layout { position: relative; }
  .chat-main { margin-top: 200px; }
}

/* ══════════════════════════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,.3); }
.gallery-img-wrap {
  position: relative; aspect-ratio: 1; overflow: hidden;
}
.gallery-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: filter .3s;
}
.gallery-img-wrap.locked img {
  filter: blur(20px) brightness(.4);
}
.gallery-lock-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
  background: rgba(0,0,0,.3);
}
.gallery-lock-overlay i { font-size: 2rem; margin-bottom: .25rem; }
.gallery-caption {
  padding: .6rem .75rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem;
}

/* ══════════════════════════════════════════════════════════════
   STARS
   ══════════════════════════════════════════════════════════════ */
.star-card {
  transition: transform .2s, box-shadow .2s;
}
.star-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(124,58,237,.15);
  border-color: var(--primary);
}

/* ══════════════════════════════════════════════════════════════
   SHOP
   ══════════════════════════════════════════════════════════════ */
.shop-card {
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(124,58,237,.15);
  border-color: var(--primary);
}
.shop-cover {
  width: 100%; height: 180px; object-fit: cover;
  border-bottom: 1px solid var(--border, #2a3942);
}
.shop-cover-placeholder {
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-secondary, #111b21);
  border-bottom: 1px solid var(--border, #2a3942);
  color: var(--text-muted, #8696a0);
}
.shop-audio-player audio {
  border-radius: 8px;
}

/* ══════════════════════════════════════════════════════════════
   PROFILE
   ══════════════════════════════════════════════════════════════ */
.profile-header {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124,58,237,.08) 100%);
}
.profile-stat { margin-bottom: .25rem; font-size: 1.1rem; }

/* ══════════════════════════════════════════════════════════════
   AVATARS
   ══════════════════════════════════════════════════════════════ */
.avatar-xs {
  width: 24px; height: 24px; min-width: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .65rem;
}
.avatar-sm {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
}
.profile-avatar {
  width: 90px; height: 90px; min-width: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 2.2rem;
  box-shadow: 0 8px 30px var(--primary-glow);
}

/* ══════════════════════════════════════════════════════════════
   TOPUP / TRIBUTE GRID
   ══════════════════════════════════════════════════════════════ */
.topup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: .5rem;
}
.topup-grid .btn {
  display: flex; flex-direction: column; align-items: center;
  padding: .5rem; font-size: 1.1rem; font-weight: 700;
}
.topup-grid .btn small { font-size: .65rem; font-weight: 400; opacity: .7; }

/* ══════════════════════════════════════════════════════════════
   TOAST OVERRIDE
   ══════════════════════════════════════════════════════════════ */
.toast {
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,.3);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 575.98px) {
  .view { padding: 0; }
  .auth-card { padding: 1.5rem 1.25rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-left h4 { font-size: 1rem; }
  .wallet-badge { font-size: .85rem; padding: .3rem .5rem .3rem .75rem; }
}

/* ══════════════════════════════════════════════════════════════
   UPLOAD UI
   ══════════════════════════════════════════════════════════════ */
.avatar-upload-area {
  width: 120px; height: 120px;
  border: 2px dashed var(--border-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
}
.avatar-upload-area:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.avatar-upload-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-muted);
  text-align: center;
  gap: .25rem;
}
.avatar-upload-placeholder span { font-size: .7rem; }
.avatar-preview-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.upload-btn-sm {
  display: inline-flex; align-items: center; gap: .25rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .35rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .2s;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-btn-sm:hover { border-color: var(--primary); color: var(--text); }

.upload-preview {
  display: flex; align-items: center; gap: .5rem;
  flex-wrap: wrap; overflow: hidden; max-width: 100%; min-width: 0;
}
.upload-preview .video-label {
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; min-width: 0;
}
.upload-preview img {
  height: 48px; width: 48px;
  object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.chat-attach-img {
  max-width: 220px; max-height: 180px;
  border-radius: var(--radius-sm);
  margin-bottom: .25rem;
  cursor: pointer;
}
.chat-attach-img:hover { opacity: .85; }
.chat-attach-img.blurred { filter: blur(16px) brightness(.5); }
.bubble-attachment { margin-bottom: .25rem; position: relative; }
.bubble-attachment .paid-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent); color: #000;
  font-size: .65rem; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}

/* Free/Paid Toggle */
.free-paid-toggle { display: flex; align-items: center; gap: .5rem; }
.free-paid-toggle .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }

/* Star Profile View */
.star-profile-header {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124,58,237,.1) 100%);
}

/* Chat image toggle */
.chat-img-toggle { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text-muted); }
.chat-img-toggle .form-check-input { margin-top: 0; }

/* ── Sidebar Legal Links ─────────────────────────────────── */
.sidebar-legal {
  display: block;
}
.sidebar-legal a {
  font-size: .7rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.sidebar-legal a:hover { color: var(--primary); }

/* ── Legal Page Content ──────────────────────────────────── */
.legal-content {
  line-height: 1.8;
  color: var(--text-main);
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
  max-width: 100%;
}
.legal-content h2 { color: var(--primary); margin-bottom: 1rem; overflow-wrap: break-word; }
.legal-content h4 { color: var(--accent); margin-top: 1.5rem; margin-bottom: .5rem; overflow-wrap: break-word; }
.legal-content p { margin-bottom: .75rem; overflow-wrap: break-word; }
.legal-content img, .legal-content table, .legal-content pre { max-width: 100%; overflow-x: auto; }

/* ── Anti-Copy / Anti-Crawl Protection ───────────────────── */
.protected-text {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.protected-text .pw {
  display: inline;
  white-space: pre-wrap;
}
.protected-text .pc {
  display: inline;
  white-space: pre-wrap;
}
.protected-text .pd {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  font-size: 0;
  line-height: 0;
}

/* ── Star Profile Tabs (Gallery etc.) ────────────────────── */
#spTabs .nav-link {
  color: var(--text-muted) !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  padding: .6rem 1.25rem;
  transition: color .2s, border-color .2s;
}
#spTabs .nav-link:hover {
  color: var(--text) !important;
  border-bottom-color: var(--border-light) !important;
}
#spTabs .nav-link.active {
  color: var(--accent) !important;
  border-bottom-color: var(--accent) !important;
  background: transparent !important;
}

/* ── Admin Tabs ──────────────────────────────────────────── */
#adminTabNav .nav-link {
  color: var(--text-muted) !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
  padding: .55rem 1.1rem;
  font-size: .9rem;
  background: transparent !important;
  transition: all .2s;
}
#adminTabNav .nav-link:hover {
  color: var(--text) !important;
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
}
#adminTabNav .nav-link.active {
  color: var(--accent) !important;
  background: var(--bg-card) !important;
  border-color: var(--border) var(--border) var(--bg-card) !important;
  font-weight: 600;
}
.admin-tab-pane {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 1.25rem;
  background: var(--bg-card);
}

/* Admin Pages Editor */
.list-group-item:hover {
  background: rgba(124,58,237,.1) !important;
}

/* ── Auth Page Legal Links ───────────────────────────────── */
.auth-legal-links {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.auth-legal-link {
  font-size: .75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.auth-legal-link:hover { color: var(--primary); }

.auth-legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.auth-legal-box {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

/* ── Page Container ──────────────────────────────────────── */
.page-container {
  flex: 1;
  padding: 10px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ── Header Profile Link ─────────────────────────────────── */
.header-profile-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: color .2s;
}
.header-profile-link:hover {
  color: var(--accent);
}
.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  overflow: hidden;
}
.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Gallery Star Select with Avatar ──────────────────────── */
.gallery-star-dropdown { position: relative; }
.gallery-star-btn {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .35rem .75rem; color: var(--text); cursor: pointer; font-size: .875rem;
  min-width: 160px; transition: border-color .2s;
}
.gallery-star-btn:hover { border-color: var(--accent); }
.gallery-star-btn .gsd-label { display: flex; align-items: center; gap: .5rem; flex: 1; }
.gallery-star-menu {
  position: absolute; top: 100%; left: 0; z-index: 100; min-width: 220px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.4); margin-top: 4px; max-height: 300px; overflow-y: auto;
}
.gsd-item {
  display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem;
  cursor: pointer; transition: background .15s; font-size: .875rem;
}
.gsd-item:hover { background: var(--bg-card-hover, rgba(255,255,255,.05)); }
.gsd-item.active { background: rgba(var(--accent-rgb, 168,85,247), .15); }
.gsd-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.gsd-avatar-placeholder {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: .7rem; flex-shrink: 0; color: #fff;
}
.gsd-count { margin-left: auto; font-size: .75rem; color: var(--text-muted); }

/* ── Chat Paid Unlock Overlay ────────────────────────────── */
.bubble-attachment { position: relative; }
.paid-unlock-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; z-index: 2; cursor: pointer;
  background: rgba(0,0,0,.45); border-radius: 8px; gap: .35rem;
  color: #fff; font-size: .95rem; text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.paid-unlock-overlay i.bi-lock-fill { font-size: 1.5rem; }
.paid-unlock-overlay .btn { pointer-events: auto; }
.paid-unlock-overlay .unlock-btn {
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: .3rem .75rem; font-size: .8rem; font-weight: 600; pointer-events: auto;
  display: inline-flex; align-items: center; gap: .3rem;
}
.paid-unlock-overlay .unlock-btn:hover { filter: brightness(1.15); }
.chat-attach-img.blurred, video.blurred, img.blurred { filter: blur(20px); pointer-events: none; }

/* ── Chat Image Cost Input ───────────────────────────────── */
.chat-img-cost-group { display: flex; align-items: center; gap: .5rem; margin-top: .25rem; }
.chat-img-cost-group input {
  width: 80px; padding: .2rem .4rem; font-size: .85rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text);
}

/* Upload progress bar in chat */
.chat-upload-progress { width: 100%; margin-top: .35rem; }
.chat-upload-progress .progress {
  height: 18px; background: var(--bg-card); border-radius: var(--radius-sm);
  border: 1px solid var(--border); overflow: hidden;
}
.chat-upload-progress .progress-bar {
  font-size: .7rem; line-height: 18px; transition: width .15s ease;
}

/* ══════════════════════════════════════════════════════════════
   PHASE 8 – WEBSOCKET CHAT ENHANCEMENTS
   ══════════════════════════════════════════════════════════════ */

/* ── Connection Status Bar ───────────────────────────────── */
.chat-connection-status {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .75rem;
  font-size: .72rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.status-dot.status-green { background: var(--success); box-shadow: 0 0 6px rgba(16,185,129,.5); }
.status-dot.status-yellow { background: var(--accent); box-shadow: 0 0 6px rgba(245,158,11,.4); }
.status-dot.status-red { background: var(--danger); box-shadow: 0 0 6px rgba(239,68,68,.4); }
.status-text { color: var(--text-muted); }

/* ── Typing Indicator ────────────────────────────────────── */
.chat-typing {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.chat-typing.visible { display: flex; }
.typing-dots {
  display: inline-flex;
  gap: 3px;
}
.typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce .9s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ── Round Chat Buttons ──────────────────────────────────── */
.btn-upload-round,
.btn-emoji-round,
.btn-send-round {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 1rem;
  transition: all .2s;
  cursor: pointer;
}
.btn-upload-round:hover,
.btn-emoji-round:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-card-hover);
}
.btn-send-round {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-send-round:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

/* ── Emoji Picker ────────────────────────────────────────── */
.emoji-picker {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .5rem;
  margin-bottom: .25rem;
  max-height: 180px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}
.emoji-picker.show { display: flex; flex-wrap: wrap; gap: 2px; }
.emoji-item {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s;
}
.emoji-item:hover {
  background: var(--bg-card-hover);
}

/* ── System Messages ─────────────────────────────────────── */
.chat-bubble.system {
  align-self: center !important;
  max-width: 90%;
  background: transparent;
  border: 1px dashed var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: .82rem;
  padding: .4rem .75rem;
  border-radius: 20px;
}
.system-text i { margin-right: .25rem; color: var(--accent); }

/* ── Unread Badges ───────────────────────────────────────── */
.unread-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--danger);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
  margin-left: auto;
}

/* ── Read Ticks ──────────────────────────────────────────── */
.read-tick {
  font-size: .7rem;
  margin-left: .3rem;
  opacity: .5;
}
.read-tick.read {
  color: #3b82f6;
  opacity: 1;
}

/* ── Chat Attachments Viewer ─────────────────────────────── */
.chat-attach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: .5rem;
}
.chat-attach-thumb {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.chat-attach-thumb:hover {
  opacity: .8;
  transform: scale(1.03);
}

/* ── Lightbox Modal ──────────────────────────────────────── */
#lightboxModal .modal-dialog {
  max-width: 90vw;
}
#lightboxModal .modal-content {
  background: rgba(0,0,0,.9) !important;
  border: none !important;
}
#lightboxModal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 50vh;
}
#lightboxModal .modal-body img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ── Topup Packages ──────────────────────────────────────── */
.topup-pkg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .6rem .5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.topup-pkg:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}
.topup-pkg.selected {
  border-color: var(--accent);
  background: rgba(245,158,11,.1);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.topup-pkg small {
  font-size: .65rem;
  font-weight: 400;
  opacity: .7;
  margin-top: 2px;
}

/* ── Gallery Delete Button ───────────────────────────────── */
.gallery-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .75rem;
  opacity: 0;
  transition: opacity .2s;
}
.gallery-item:hover .gallery-delete-btn {
  opacity: 1;
}

/* ── Feed Post Delete Button ─────────────────────────────── */
.btn-delete-post {
  opacity: .5;
  transition: opacity .2s;
}
.btn-delete-post:hover {
  opacity: 1;
}

/* ── Chat Input Area Position Context ────────────────────── */
.chat-input {
  position: relative;
}

/* ── Cursor Utility ──────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }

/* ══════════════════════════════════════════════════════════════
   NEW COMPONENTS – Phase 9
   ══════════════════════════════════════════════════════════════ */

/* ── Create Post Card ────────────────────────────────────── */
.create-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.create-post-title {
  background: transparent !important;
  border: none !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0 !important;
  box-shadow: none !important;
  color: var(--text) !important;
}
.create-post-title::placeholder { color: var(--text-muted); }
.create-post-toolbar {
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.create-post-toolbar label {
  cursor: pointer;
  transition: color .2s;
}
.create-post-toolbar label:hover { color: var(--accent); }

/* ── Gallery Drop Zone ───────────────────────────────────── */
.gal-drop-zone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--bg-input);
}
.gal-drop-zone:hover,
.gal-drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, .08);
}

/* ── Feed End Message ────────────────────────────────────── */
#feedEndMsg {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ── Topup Modal Contrast Fix ────────────────────────────── */
.topup-pkg {
  color: var(--text) !important;
  border-color: var(--border-light) !important;
}
.topup-pkg:hover {
  color: #fff !important;
  border-color: var(--primary) !important;
  background: var(--bg-card-hover) !important;
}
.topup-pkg.active,
.topup-pkg.selected {
  border-color: var(--accent) !important;
  background: rgba(245,158,11,.15) !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.topup-pkg strong {
  font-size: 1.3rem;
  color: var(--accent);
}
.topup-pkg .small.text-muted {
  color: var(--text) !important;
  opacity: .8;
}
.payment-method-btn {
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.payment-method-btn.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* ── Admin Tabs Overflow ─────────────────────────────────── */
.admin-tabs {
  flex-wrap: wrap;
}
.admin-tabs .nav-link {
  white-space: nowrap;
  font-size: .85rem;
}

/* ── Chat Load More ──────────────────────────────────────── */
#chatLoadMoreBar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg-surface);
}

/* ── Video Label in Chat ─────────────────────────────────── */
.video-label {
  padding: .25rem .5rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}

/* ── Form Switch Color Fix ───────────────────────────────── */
.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* ── Modal Content Contrast Fix ──────────────────────────── */
.qcms-modal {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}
.qcms-modal .modal-header {
  border-color: var(--border) !important;
}
.qcms-modal .modal-footer {
  border-color: var(--border) !important;
}
.qcms-modal .text-muted {
  color: var(--text-muted) !important;
}
.qcms-modal p, .qcms-modal label, .qcms-modal span {
  color: var(--text);
}
.qcms-modal .modal-title {
  color: var(--text) !important;
}

/* ══════════════════════════════════════════════════════════════
   COOKIE BANNER
   ══════════════════════════════════════════════════════════════ */
#qcms-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
  background: var(--card-bg, #1a1d21);
  border-top: 1px solid var(--border, #2a3942);
  box-shadow: 0 -4px 20px rgba(0,0,0,.5);
  padding: 16px 24px;
  animation: slideUp .3s ease-out;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; color: var(--text, #e9edef); font-size: 14px; }
.cookie-banner-link { color: var(--accent, #b48cff); margin-left: 8px; text-decoration: underline; font-size: 13px; }
.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 576px) {
  .cookie-banner-inner { flex-direction: column; text-align: center; }
  .cookie-banner-actions { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   AGE VERIFICATION PAGE
   ══════════════════════════════════════════════════════════════ */
.avs-page-wrapper {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 80px); padding: 30px 16px;
}
.avs-page-card {
  max-width: 600px; width: 100%;
  background: var(--card-bg, #1a1d21);
  border: 1px solid var(--border, #2a3942);
  border-radius: 16px; padding: 40px 30px; text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
}
.avs-page-header h3 { color: var(--text, #e9edef); margin: 16px 0 8px; }
.avs-page-header p { font-size: 15px; line-height: 1.5; }
.avs-providers-row { display: flex; flex-direction: column; gap: 16px; }
.avs-provider-card {
  background: var(--bg-secondary, #111b21);
  border: 1px solid var(--border, #2a3942);
  border-radius: 12px; padding: 24px; text-align: center;
  transition: border-color .2s;
}
.avs-provider-card:hover { border-color: var(--accent, #b48cff); }
.avs-provider-icon { margin-bottom: 12px; }
.avs-provider-card h5 { color: var(--text, #e9edef); margin-bottom: 6px; }
.avs-provider-card .btn { margin-top: 12px; min-width: 200px; }
.avs-msg { font-size: 13px; min-height: 20px; }
.avs-page-footer { margin-top: 24px; }
@media (min-width: 768px) {
  .avs-providers-row { flex-direction: row; }
  .avs-provider-card { flex: 1; }
}

/* ══════════════════════════════════════════════════════════════
   WheelDecide – Tributrad
   ══════════════════════════════════════════════════════════════ */
.wheel-title {
  color: #f59e0b; font-weight: 700; text-shadow: 0 0 20px rgba(245,158,11,.3);
}
.wheel-wrapper {
  position: relative; width: 100%; max-width: 400px; margin: 0 auto;
  aspect-ratio: 1;
}
.wheel-wrapper canvas {
  width: 100%; height: 100%; display: block;
}
.wheel-pointer {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 28px; color: #f59e0b; z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,.6); filter: drop-shadow(0 0 6px #f59e0b);
}
.btn-wheel-spin {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #111; font-weight: 700; font-size: 1.1rem;
  padding: 12px 48px; border: none; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(245,158,11,.4);
  transition: transform .2s, box-shadow .2s;
}
.btn-wheel-spin:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(245,158,11,.6);
}
.btn-wheel-spin:disabled { opacity: .5; cursor: not-allowed; }
.btn-wheel-confirm {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #111; font-weight: 600; border: none; border-radius: 8px;
}
.btn-wheel-confirm:hover { background: linear-gradient(135deg, #f5b342 0%, #e5a00a 100%); color: #111; }
.wheel-result-img {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  border: 3px solid #f59e0b; box-shadow: 0 0 20px rgba(245,158,11,.3);
}
.wheel-result-placeholder {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-surface, #111b21); border: 3px solid #f59e0b;
}
.wheel-result-placeholder i { color: #f59e0b; }
.wheel-result-avatar { display: flex; justify-content: center; }
#wheelHistoryWrap { text-align: center; }
.wheel-history { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.wheel-history-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  background: var(--bg-card, #1a1d21); border: 1px solid var(--border, #2a3942);
  font-size: 14px;
}
.wheel-history-amount { color: #f59e0b; font-weight: 700; }
.wheel-history-star { color: var(--text, #e9edef); font-weight: 500; }

/* ══════════════════════════════════════════════════════════════
   Wallet Roulette
   ══════════════════════════════════════════════════════════════ */
.roulette-star-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px; margin-bottom: 12px;
}
.roulette-star-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 6px; border-radius: 12px; cursor: pointer;
  background: var(--bg-surface, #111b21); border: 2px solid transparent;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.roulette-star-card:hover { border-color: rgba(245,158,11,.4); transform: translateY(-2px); }
.roulette-star-card.selected {
  border-color: #f59e0b; box-shadow: 0 0 16px rgba(245,158,11,.35);
  background: rgba(245,158,11,.08);
}
.roulette-star-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; margin-bottom: 6px; }
.roulette-star-avatar img { width: 100%; height: 100%; object-fit: cover; }
.roulette-star-avatar i { font-size: 2.4rem; color: #f59e0b; }
.roulette-star-name { font-size: 12px; font-weight: 600; text-align: center; color: var(--text, #e9edef); }

/* Active amount button */
.roul-amt.active {
  background: #f59e0b !important; color: #111 !important;
  font-weight: 700; border-color: #f59e0b !important;
  box-shadow: 0 0 14px rgba(245,158,11,.45);
}

/* Color bet buttons */
.roul-color-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; transition: all .2s;
  color: #e9edef; background: var(--bg-surface, #111b21);
}
.roul-color-dot {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%;
}
.roul-color-red:hover, .roul-color-red.active {
  border-color: #dc2626; background: rgba(220,38,38,.15);
  box-shadow: 0 0 14px rgba(220,38,38,.4);
}
.roul-color-black:hover, .roul-color-black.active {
  border-color: #888; background: rgba(100,100,100,.15);
  box-shadow: 0 0 14px rgba(100,100,100,.35);
}

/* Roulette animation */
.roulette-circle {
  width: 320px; height: 320px; margin: 0 auto; border-radius: 50%;
  border: 4px solid #f59e0b; position: relative;
  background: #111;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#rouletteCanvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border-radius: 50%;
  z-index: 1;
}
.roulette-ball {
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  position: absolute; top: 50%; left: 50%;
  margin-top: -8px; margin-left: -8px;
  box-shadow: 0 0 10px rgba(255,255,255,.8), 0 0 3px rgba(0,0,0,.4);
  z-index: 3;
}
.roulette-ball.spinning {
  animation: rouletteSpin 0.35s linear infinite;
}
@keyframes rouletteSpin {
  from { transform: rotate(0deg) translateY(-140px) rotate(0deg); }
  to   { transform: rotate(360deg) translateY(-140px) rotate(-360deg); }
}
.roulette-center-text {
  font-size: 3.2rem; z-index: 5; text-shadow: 0 2px 12px rgba(0,0,0,.7);
  position: relative;
  width: 70px; height: 70px; line-height: 70px; text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1a2e 55%, transparent 100%);
}
.roulette-anim.win-flash .roulette-circle { border-color: #22c55e; box-shadow: 0 0 30px rgba(34,197,94,.5); }
.roulette-anim.lose-flash .roulette-circle { border-color: #dc3545; box-shadow: 0 0 30px rgba(220,53,69,.5); }
.roulette-result-icon { font-size: 3rem; }
.roulette-center-icon { width: 42px; height: 42px; }
.roulette-result-svg { width: 52px; height: 52px; }
.roulette-hist-icon { width: 18px; height: 18px; vertical-align: middle; }
.text-accent { color: #f59e0b !important; }
.roulette-win { border-color: rgba(34,197,94,.3) !important; }
.roulette-lose { border-color: rgba(220,53,69,.3) !important; }

/* ── Lockdown ─────────────────────────────────────────────── */
.lockdown-active-card {
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245,158,11,.08) 0%, rgba(30,30,50,.9) 100%);
  box-shadow: 0 0 24px rgba(245,158,11,.15);
}
.lockdown-star-avatar { display: inline-block; }
.lockdown-countdown {
  font-size: 2rem; font-weight: 700; color: #f59e0b;
  text-shadow: 0 0 12px rgba(245,158,11,.4);
  letter-spacing: 2px;
}
.lockdown-progress {
  height: 24px; border-radius: 12px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.lockdown-progress-bar {
  background: linear-gradient(90deg, #f59e0b, #22c55e);
  border-radius: 12px; font-size: .8rem; font-weight: 700; color: #000;
  transition: width .5s ease;
}
.lockdown-quick-amt { font-size: .85rem; }
.btn-outline-accent {
  border-color: #f59e0b; color: #f59e0b;
}
.btn-outline-accent:hover, .btn-outline-accent:focus {
  background: #f59e0b; color: #000;
}
.topup-grid { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

/* ── QModal (modal helper) ───────────────────────────────── */
.qcms-modal {
  background: var(--bg-card, #1a1d21);
  border: 1px solid var(--border, #2a3942);
  color: var(--text, #e9edef);
}
.qcms-modal .btn-close { filter: invert(1); }
