﻿/* ============================================
   ONYX MINE - CLEAN MODERN THEME
   ============================================ */

@supports not (backdrop-filter: blur(1px)) {
  .navbar { background: rgba(10,10,15,0.95); }
  .footer { background: rgba(10,10,15,0.85); }
}
@font-face { font-family: 'Peyda'; src: url('fonts/peyda/01%20Font%20Family/Peyda-ExtraLight.ttf') format('truetype'); font-weight: 100; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('fonts/peyda/01%20Font%20Family/Peyda-ExtraLight.ttf') format('truetype'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('fonts/peyda/01%20Font%20Family/Peyda-ExtraLight.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('fonts/peyda/01%20Font%20Family/Peyda-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('fonts/peyda/01%20Font%20Family/Peyda-Regular.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('fonts/peyda/01%20Font%20Family/Peyda-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('fonts/peyda/01%20Font%20Family/Peyda-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('fonts/peyda/01%20Font%20Family/Peyda-Bold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('fonts/peyda/01%20Font%20Family/Peyda-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Minecraft Five'; src: url('fonts/minecraft-five-bold.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'MinecraftBold1'; src: url('fonts/MinecraftBold1.otf') format('opentype'); font-weight: 400; font-display: swap; }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
img, video, iframe { max-width: 100%; }

:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-card-alt: rgba(10, 10, 20, 0.92);
  --border: #1f1f2a;
  --border-light: rgba(141, 93, 240, 0.2);
  --text: #e8e8f0;
  --text-dim: #8a8a9a;
  --text-muted: #8a8a9a;
  --primary: #8d5df0;
  --primary-light: #a78bfa;
  --primary-dark: #7c3aed;
  --primary-glow: rgba(141, 93, 240, 0.25);
  --online: #10b981;
  --success: #10b981;
  --warning: #fbbf24;
  --error: #ef4444;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 35px rgba(141,93,240,0.35);
  --transition-fast: 0.15s cubic-bezier(0.4,0,0.2,1);
  --transition-base: 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-hover: 0.2s cubic-bezier(0.4,0,0.2,1);
  --glass-blur: blur(18px);
}


body {
  font-family: 'Peyda';
  font-weight: 900;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Minecraft subtle pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(139,92,246,0.02) 2px,
      rgba(139,92,246,0.02) 4px);
  pointer-events: none;
  z-index: -1;
}

main { padding-top: 5rem; }
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(6px);
  transform: scale(1.1);
}

.page-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(2,2,8,0.85);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #06060a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary), var(--primary-dark)); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6.5rem 2rem 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); text-align: center; }
h3 { font-size: clamp(1.3rem, 4vw, 1.8rem); }
p { color: var(--text-dim); margin-bottom: 1rem; }

/* ===== Navbar ===== */
.navbar {
  padding: 0.8rem 0;
  position: fixed;
  top: 0;
  left: 5%;
  right: 5%;
  width: 90%;
  border-radius: 0 0 16px 16px;
  background: rgba(10,10,15,0.4);
  transition: background 0.3s ease, all 0.35s ease;
  z-index: 100;
}
.navbar.scrolled {
  background: rgba(10,10,15,0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  padding: 0.5rem 0;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  user-select: none;
}

.logo img { height: 32px; }

.logo span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  user-select: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.6rem;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  border-radius: 8px;
  position: relative;
}

.nav-links a:hover { color: var(--primary-light); background: rgba(139,92,246,0.06); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.2s;
}
.nav-links a:hover::after { transform: translateX(-50%) scaleX(1); }

.auth-btn, .nav-links a.auth-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  padding: 4px 14px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.8rem;
  border: none;
  box-shadow: 0 3px 12px rgba(141, 93, 240, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-btn::after { display: none; }

.auth-btn:hover, .nav-links a.auth-btn:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(141, 93, 240, 0.45);
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 5rem 0 1rem;
}

.hero h1 {
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroFadeIn 0.4s ease-out;
}

.hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 550px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Status Card */
.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.75rem 1.5rem;
  max-width: 450px;
  margin: 2rem auto 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.status-card:hover { border-color: var(--primary); box-shadow: 0 0 30px rgba(139,92,246,0.06); }

.online-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: var(--online);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--online);
}

.online-text {
  color: var(--online);
  font-size: 0.9rem;
  font-weight: 600;
}

.ip-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.8rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
  font-family: 'Minecraft Five';
  font-weight: 400;
  color: var(--primary-light);
}

.ip-box:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
}

.copy-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ===== Buttons ===== */
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 900;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(141,93,240,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(141,93,240,0.55);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-light);
  color: var(--primary-light);
}

.btn-outline:hover {
  background: rgba(141,93,240,0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(141,93,240,0.35);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(141,93,240,0.15);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(141,93,240,0.25);
}

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; border-radius: 12px; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

/* ===== Section Headers ===== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2.5rem 0 1.25rem;
}

.section-title {
  text-align: center;
  font-size: 1.3rem;
  user-select: none;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: #fff;
}

.section-icon {
  display: block;
  width: 40px;
  height: 40px;
  vertical-align: middle;
  filter: brightness(0) saturate(100%) invert(1) brightness(1.8) drop-shadow(0 0 4px rgba(255,255,255,0.6));
  opacity: 1;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.inline-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  filter: brightness(0) saturate(100%) invert(1) brightness(1.8) drop-shadow(0 0 4px rgba(255,255,255,0.6));
  opacity: 1;
}

.svg-icon {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  display: inline-block;
  filter: brightness(0) saturate(100%) invert(1) brightness(1.8) drop-shadow(0 0 4px rgba(255,255,255,0.6));
  opacity: 1;
  transition: filter 0.2s;
}

.svg-icon:hover {
  filter: brightness(0) saturate(100%) invert(1) brightness(2) drop-shadow(0 0 8px rgba(255,255,255,0.8));
}

.emoji {
  display: inline-block;
}

.section {
  padding: 8rem 2rem 3rem;
}

.section-container {
  max-width: 1000px;
  margin: 1.5rem auto 0;
}

/* ===== Account Panel Layout ===== */
.section-container:has(.acc-sidebar) {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.acc-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
  position: sticky;
  top: 6rem;
}

.acc-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.acc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.acc-user-info { flex: 1; min-width: 0; }
.acc-user-name { font-size: 0.9rem; font-weight: 700; color: #fff; }
.acc-user-num { font-size: 0.7rem; color: var(--text-muted); }

.acc-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.acc-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.acc-nav-item:hover { background: rgba(141,93,240,0.1); color: var(--primary-light); }
.acc-nav-active { background: rgba(141,93,240,0.15); color: var(--primary-light); }
.acc-nav-logout { margin-top: auto; }
.acc-nav-logout:hover { background: rgba(239,68,68,0.1); color: #ef4444; }
.acc-nav-label { flex: 1; }

.acc-main { flex: 1; min-width: 0; min-height: 400px; }

/* Top bar (mobile) */
.acc-topbar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.85rem;
}

.acc-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.acc-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: 0.2s;
}

.acc-topbar-title { flex: 1; font-size: 0.9rem; font-weight: 700; color: #fff; }
.acc-topbar-badge {
  font-size: 0.65rem;
  background: rgba(141,93,240,0.2);
  color: var(--primary-light);
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  font-weight: 600;
}

.acc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

/* ===== Dashboard Stats ===== */
.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.acc-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.acc-stat:hover { border-color: var(--border-light); transform: translateY(-2px); }
.acc-stat-value { font-size: 1.5rem; font-weight: 900; color: var(--primary-light); margin-bottom: 0.25rem; }
.acc-stat-label { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 0.35rem; }

.acc-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }

.acc-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
}
.acc-info-title { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.acc-info-table { width: 100%; border-collapse: collapse; }
.acc-info-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.acc-info-table td:first-child { color: var(--text-muted); width: 110px; }
.acc-info-table tr:last-child td { border-bottom: none; }

/* ===== Account Tables ===== */
.acc-table-wrap { overflow-x: auto; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.acc-table th { text-align: right; color: var(--text-muted); font-weight: 600; padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--border); font-size: 0.8rem; }
.acc-table td { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--border); color: var(--text); }
.acc-table tr:hover td { background: rgba(141,93,240,0.03); }

/* ===== Glass Card ===== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
}

/* ===== Page Header ===== */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.5rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 0.5rem; }

/* ===== Utility Layout ===== */
.container-page { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.row { display: flex; flex-wrap: wrap; }
.col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 0.75rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== Table Wrapper ===== */
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.table th { text-align: right; color: var(--text-muted); font-weight: 600; padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--border); font-size: 0.8rem; }
.table td { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--border); color: var(--text); }
.table tr:hover td { background: rgba(141,93,240,0.03); }

/* ===== Messenger / Tickets ===== */
.acc-tickets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-msg-label { color: var(--primary-light); }
.admin-msg-badge {
  display: none;
  background: var(--error);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.1rem 0.5rem;
  border-radius: 50px;
  font-weight: 600;
}

.messenger-container {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  min-height: 560px;
}
.messenger-sidebar {
  width: 300px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.15);
}
.messenger-sidebar-header {
  padding: 1.1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.ticket-count-badge {
  background: rgba(141,93,240,0.2);
  color: var(--primary-light);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-weight: 600;
}
.messenger-ticket-list { flex: 1; overflow-y: auto; padding: 0.65rem; }
.messenger-ticket-item {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.3rem;
  border: 1px solid transparent;
}
.messenger-ticket-item:hover { background: rgba(141,93,240,0.07); border-color: var(--border-light); }
.messenger-ticket-item.active { background: rgba(141,93,240,0.12); border-color: var(--border-light); }
.ticket-item-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.ticket-item-subject { font-size: 0.85rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-item-date { font-size: 0.7rem; color: var(--text-muted); }
.messenger-empty { padding: 2.5rem 1rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

.messenger-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: rgba(0,0,0,0.08); }
.messenger-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.12);
}
.messenger-messages { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.messenger-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; color: var(--text-muted); font-size: 0.85rem; text-align: center; }
.placeholder-icon { opacity: 0.2; }
.placeholder-icon img { width: 3rem; height: 3rem; }
.messenger-input {
  display: flex;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.12);
}
.messenger-input textarea {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  outline: none;
  transition: border-color 0.2s;
}
.messenger-input textarea:focus { border-color: var(--primary); }
.messenger-input .btn { border-radius: 14px; padding: 0.7rem 1.25rem; white-space: nowrap; }

.message { max-width: 80%; animation: messageIn 0.3s ease; }
.message-admin { align-self: flex-start; }
.message-user { align-self: flex-end; }
.message-content {
  background: rgba(30,30,50,0.8);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.6;
}
.message-label { font-size: 0.65rem; color: var(--primary-light); font-weight: 600; margin-bottom: 0.2rem; margin-right: 0.25rem; }
.message-time { display: block; font-size: 0.6rem; color: rgba(255,255,255,0.6); margin-top: 0.35rem; direction: ltr; text-align: left; }
.system-msg { opacity: 0.6; font-style: italic; }
.system-label { color: #f59e0b; }

.chat-action-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 8px;
  transition: 0.2s;
  display: flex;
  align-items: center;
}
.chat-action-btn:hover { background: rgba(239,68,68,0.1); color: #ef4444; }
.mobile-back-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}
.status-badge.open { background: rgba(16,185,129,0.15); color: #10B981; }
.status-badge.closed { background: rgba(239,68,68,0.15); color: #ef4444; }
.status-badge.pending { background: rgba(245,158,11,0.15); color: #f59e0b; }
.status-badge.completed { background: rgba(16,185,129,0.15); color: #10B981; }
.status-badge.cancelled { background: rgba(239,68,68,0.15); color: #ef4444; }

@keyframes messageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  max-width: 480px;
  width: 100%;
}
.modal-content {
  background: rgba(20,20,35,0.95);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  padding: 2rem;
  max-width: 500px;
  max-height: 80vh;
  width: 100%;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  animation: fadeIn 0.2s ease;
}

.section-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}

.section-link:hover { color: var(--primary); }

/* ===== CTA Cards ===== */
.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 2.5rem auto; max-width: 900px; }
.cta-card { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem 1rem; text-decoration: none; color: inherit; transition: all 0.25s; text-align: center; }
.cta-card:hover { border-color: var(--primary); transform: scale(1.05); box-shadow: 0 8px 24px rgba(139,92,246,0.12); }
.cta-card .bi { font-size: 2rem; }
.cta-card .bi-discord { color: #5865F2; }
.cta-card .bi-person-plus { color: #10b981; }
.cta-card .bi-gem { color: #f59e0b; }
.cta-card .bi-newspaper { color: var(--primary-light); }
.cta-card-label { font-size: 0.85rem; font-weight: 700; color: #fff; }
.cta-card-desc { font-size: 0.7rem; color: var(--text-dim); }

/* ===== Game Modes ===== */
.modes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.mode-card {
  width: 180px;
  min-height: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  user-select: none;
}

.mode-card[style*="background-image"] {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding-top: 4rem;
  justify-content: flex-end;
}

.mode-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.12);
}

.mode-card[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  border-radius: 20px;
  z-index: 1;
}

.mode-card[style*="background-image"] > * { position: relative; z-index: 2; }


/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.blog-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.08);
}

.blog-img { width: 100%; height: 150px; object-fit: cover; }
.blog-content { padding: 1rem; }
.blog-date { font-size: 0.65rem; color: var(--text-dim); margin-bottom: 0.3rem; }
.blog-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; }
.blog-excerpt { font-size: 0.75rem; color: var(--text-dim); line-height: 1.4; }

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .blog-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px) { .blog-cards { grid-template-columns: 1fr; } }

.blog-card-new {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.2s;
}

.blog-card-new:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.blog-card-img { overflow: hidden; }
.blog-card-img img { width: 100%; height: 160px; object-fit: cover; }
.blog-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-date { font-size: 0.7rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.blog-card-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.blog-card-excerpt { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; margin-bottom: 0.75rem; flex: 1; }

/* ===== Events ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.event-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.08);
}
.event-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 0;
}
.event-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.event-card-body {
  padding: 1rem 1.5rem;
  flex: 1;
}
.event-info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.event-info-row strong {
  color: var(--primary-light);
}
.event-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
  line-height: 1.6;
}
.event-card-footer {
  padding: 0 1.5rem 0.5rem;
}
.event-card-footer .btn {
  width: 100%;
  justify-content: center;
}

/* ===== Features ===== */
.features-grid { display: flex; justify-content: center; gap: 1.75rem; flex-wrap: wrap; }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
  flex: 1;
  min-width: 260px;
  max-width: 340px;
}

.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(139,92,246,0.08); }
.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: #fff; }
.long-text { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* ===== Ranks ===== */
.ranks-grid { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }

.rank-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s;
  flex: 1;
  min-width: 150px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 260px;
}

.rank-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(139,92,246,0.08); }
.rank-card.has-image { background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; }
.rank-card.has-image::before { content: ''; position: absolute; inset: 0; border-radius: 20px; background: rgba(0,0,0,0.45); z-index: 0; }
.rank-card.has-image > * { position: relative; z-index: 1; }
.rank-name { font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.rank-price { color: var(--primary-light); font-size: 0.9rem; font-weight: 600; }
.rank-card.has-image .rank-price { background: rgba(0,0,0,0.75); padding: 0.2rem 0.6rem; border-radius: 8px; display: inline-block; }
.rank-badge { font-size: 0.65rem; color: var(--text-dim); margin-top: 0.5rem; }

.rank-card .buy-btn { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.25rem; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 0.4rem 1.2rem; border-radius: 10px; font-size: 0.75rem; font-weight: 700; transition: all 0.2s; text-decoration: none; }
.rank-card .buy-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,92,246,0.3); }
.rank-card .btn-secondary { background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.2); color: #fff; backdrop-filter: blur(4px); }
.rank-card .btn-secondary:hover { background: rgba(141,93,240,0.4); border-color: var(--primary-light); }

.ticket-card { background: rgba(10,10,15,0.6); border: 1px solid var(--border-light); border-radius: 20px; padding: 2rem 1.5rem; text-align: center; max-width: 500px; margin: 3rem auto 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ticket-card-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display:flex;justify-content:center;align-items:center; }
.ticket-card-icon .svg-icon { width:2.5rem;height:2.5rem; }
.ticket-card-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.25rem; }
.ticket-card-btn { display: inline-block; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 0.7rem 2rem; border-radius: 12px; text-decoration: none; font-weight: 700; transition: transform 0.2s, box-shadow 0.2s; }
.ticket-card-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(141,93,240,0.35); }

/* ===== Stats ===== */
.stats-grid { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem 2rem;
  min-width: 200px;
  text-align: center;
  transition: all 0.2s;
}

.stat-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(139,92,246,0.12); }
.stat-label { font-size: 0.7rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.stat-value { font-size: 1.35rem; font-weight: 700; color: #fff; }
.stat-value.primary { color: var(--primary-light); }
.stat-hint { font-size: 0.65rem; color: var(--text-dim); margin-top: 0.25rem; }

/* ===== Footer ===== */


.footer {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 2.5rem;
  width: 86%;
  max-width: 1100px;
  margin: 4rem auto 2rem;
  background: rgba(10,10,15,0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s;
}
.footer:hover { border-color: var(--border-light); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 3rem;
}
.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.footer-right { display: flex; align-items: center; gap: 0.6rem; }
.footer-secure-row { display: flex; align-items: center; gap: 0.25rem; font-size: 0.85rem; color: var(--text-dim); white-space: nowrap; margin-inline-end: 2px; }
.footer-shield-icon { width: 20px; height: 20px; filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255,255,255,0.4)); }
.footer-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.4rem 0.75rem;
  color: var(--text-dim); text-decoration: none;
  font-size: 0.75rem; font-weight: 600;
  transition: all 0.2s; white-space: nowrap;
}
.footer-btn:hover { border-color: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(139,92,246,0.15); }
.footer-btn-icon { width: 0.85em; height: 0.85em; vertical-align: middle; filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(255,255,255,0.35)); }
.footer-badge { display: inline-flex; align-items: center; justify-content: center; max-width: 55px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 4px; transition: all 0.2s; }
.footer-badge:hover { transform: scale(1.05); border-color: var(--primary); }
.footer-badge img { max-width: 100%; height: auto; border-radius: 4px; }
.footer-left > a { display: inline-flex; align-items: center; justify-content: center; max-width: 55px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 4px; transition: all 0.2s; }
.footer-left > a:hover { transform: scale(1.05); border-color: var(--primary); }
.footer-left a img { vertical-align: middle; display: block; max-width: 100%; width: auto !important; height: auto !important; }
.footer-badge-icon { width: 40px; height: 40px; filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255,255,255,0.4)); }
.footer-phone-badge { max-width: 48.5px; }
.footer-left .footer-phone-icon { width: 33.5px !important; height: 33.5px !important; max-width: none !important; filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255,255,255,0.4)); }
.footer-copy { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; font-size: 0.9rem; color: var(--text-dim); margin: 0; white-space: nowrap; }
.footer-credit { display: inline-block; margin-top: 0.35rem; font-family: 'MinecraftBold1'; font-size: 0.85rem; color: var(--primary-light); text-decoration: none; transition: all 0.2s; }
.footer-credit:hover { color: #fff; text-shadow: 0 0 8px rgba(139,92,246,0.6); }

@media (max-width: 1024px) {
  .footer-inner { flex-wrap: wrap; justify-content: center; padding: 0; gap: 0.75rem; }
  .footer-left { flex: 0 0 auto; }
  .footer-right { flex: 0 0 auto; }
  .footer-copy { position: static; transform: none; flex: 0 0 100%; text-align: center; }
}

/* ============================================
   COMPONENTS (from styles1.css)
   ============================================ */

/* Auth Pages */
.auth-card {
  background: var(--bg-card-alt);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  max-width: 460px;
  margin: 2rem auto;
}

.auth-card .field-label,
.acc-card .field-label,
.acc-info .field-label { display: block; margin-bottom: 0.5rem; font-weight: 700; color: var(--text); font-size: 0.9rem; }
.auth-card .field-input,
.acc-card .field-input,
.acc-info .field-input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
  font-family: inherit;
  box-sizing: border-box;
}

.auth-card .field-input:focus,
.acc-card .field-input:focus,
.acc-info .field-input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(167,139,250,0.15); }

.acc-card select.field-input,
.acc-info select.field-input { cursor: pointer; }

.acc-card input[disabled].field-input,
.acc-info input[disabled].field-input { opacity: 0.5; cursor: not-allowed; }

.acc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
}

.acc-card .acc-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-base);
  font-family: inherit;
  white-space: nowrap;
}

.acc-card .acc-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(141,93,240,0.3); }

.auth-card .auth-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 900;
  border: none;
  border-radius: 14px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.auth-card .auth-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(141,93,240,0.3); }
.auth-card .auth-link { color: var(--primary-light); text-decoration: none; font-size: 0.9rem; }
.auth-card .auth-link:hover { text-decoration: underline; }
.auth-card .auth-divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* User Panel */
.panel-card {
  background: var(--bg-card-alt);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 1.5rem;
  transition: var(--transition-base);
}

.panel-card:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); }

.panel-stat {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.panel-stat-label { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.25rem; }

.panel-table { width: 100%; border-collapse: separate; border-spacing: 0 0.5rem; }
.panel-table th { color: var(--text-dim); font-size: 0.8rem; font-weight: 700; padding: 0.5rem 1rem; text-align: right; }
.panel-table td { background: rgba(15,15,28,0.4); padding: 0.75rem 1rem; color: #fff; font-size: 0.9rem; }
.panel-table tr td:first-child { border-radius: 14px 0 0 14px; }
.panel-table tr td:last-child { border-radius: 0 14px 14px 0; }

.status-badge { display: inline-block; padding: 0.2rem 0.75rem; border-radius: 50px; font-size: 0.78rem; font-weight: 700; }
.status-badge.pending { background: rgba(251,191,36,0.15); color: #fbbf24; }
.status-badge.completed { background: rgba(16,185,129,0.15); color: #10b981; }
.status-badge.cancelled { background: rgba(239,68,68,0.15); color: #ef4444; }
.status-badge.open { background: rgba(59,130,246,0.15); color: #60a5fa; }
.status-badge.closed { background: rgba(107,114,128,0.15); color: #9ca3af; }

/* Notification */
.notif-container {
  position: fixed; top: 5rem; right: 1rem; z-index: 10000;
  display: flex; flex-direction: column; gap: 0.5rem; max-width: 360px; direction: rtl;
}

.notif-item {
  background: var(--bg-card-alt); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light); border-radius: 16px;
  padding: 1rem 1.25rem; box-shadow: var(--shadow-lg);
  overflow: hidden; position: relative; animation: notifIn 0.3s ease;
}

.notif-item.success { border-color: rgba(16,185,129,0.35); }
.notif-item.error { border-color: rgba(239,68,68,0.35); }
.notif-text { color: #fff; font-size: 0.9rem; line-height: 1.6; }
.notif-bar { position: absolute; bottom: 0; left: 0; height: 3px; border-radius: 0 0 16px 16px; animation: notifBar 3s linear forwards; }
.notif-item.success .notif-bar { background: var(--success); }
.notif-item.error .notif-bar { background: var(--error); }
.notif-item.removing { animation: notifOut 0.35s ease forwards; }

@keyframes notifIn { from{transform:translateX(-120%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes notifOut { to{opacity:0;transform:translateX(80px)} }
@keyframes notifBar { from{width:100%} to{width:0%} }

/* Loading */
.loading-overlay {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.4s, visibility 0.4s;
}

.loading-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loading-spinner {
  width: 50px; height: 50px;
  border: 3px solid rgba(141,93,240,0.2);
  border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}

.loading-text { margin-top: 1rem; color: var(--primary-light); font-size: 0.9rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Messenger / Chat */
.messenger-container {
  display: flex;
  background: var(--bg-card-alt); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light); border-radius: 24px;
  overflow: hidden; height: 520px; box-shadow: var(--shadow-md);
}

.messenger-sidebar {
  width: 280px; min-width: 280px;
  border-left: 1px solid var(--border-light);
  display: flex; flex-direction: column;
  background: rgba(10,10,25,0.4);
}

.messenger-sidebar-header {
  padding: 1rem 1.25rem; font-weight: 900; font-size: 1rem;
  color: #fff; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}

.ticket-count-badge {
  background: var(--primary); color: #fff;
  font-size: 0.75rem; padding: 0.15rem 0.6rem;
  border-radius: 50px; font-weight: 700;
}

.messenger-ticket-list { flex: 1; overflow-y: auto; padding: 0.5rem; }

.messenger-ticket-item {
  padding: 0.85rem 1rem; border-radius: 14px; cursor: pointer;
  transition: all var(--transition-fast); margin-bottom: 0.25rem;
  border: 1px solid transparent;
}

.messenger-ticket-item:hover { background: rgba(141,93,240,0.08); border-color: var(--border-light); }
.messenger-ticket-item.active { background: rgba(141,93,240,0.12); border-color: var(--primary); }

.ticket-item-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.5rem; margin-bottom: 0.25rem;
}

.ticket-item-subject {
  font-weight: 700; font-size: 0.9rem; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ticket-item-date { font-size: 0.7rem; color: var(--text-dim); }
.messenger-empty { text-align: center; color: var(--text-dim); padding: 2rem 1rem; font-size: 0.9rem; }
.messenger-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.messenger-chat-header {
  padding: 1rem 1.25rem; font-weight: 900; font-size: 0.95rem;
  color: #fff; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 0.75rem;
}

.mobile-back-btn { display: none; }

.messenger-messages {
  flex: 1; overflow-y: auto; padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  background: rgba(5,5,15,0.3);
}

.messenger-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; color: var(--text-dim);
  text-align: center; gap: 0.5rem;
}

.placeholder-icon { font-size: 3rem; opacity: 0.5; }
.messenger-placeholder p { font-size: 0.9rem; }

.message { display: flex; flex-direction: column; max-width: 80%; animation: messageIn 0.3s ease; }
@keyframes messageIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.message-user { align-self: flex-end; }
.message-admin { align-self: flex-start; }
.message-label { font-size: 0.7rem; font-weight: 900; color: var(--error); margin-bottom: 0.15rem; }

.message-content {
  padding: 0.75rem 1rem; border-radius: 18px;
  line-height: 1.6; font-size: 0.9rem; word-wrap: break-word;
}

.message-user .message-content,
.message-admin .message-content {
  background: rgba(30,30,50,0.8);
  border: 1px solid var(--border-light);
  color: #fff;
}

.message-time { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

.messenger-input {
  display: flex; gap: 0.75rem; padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-light);
  background: rgba(10,10,25,0.3); align-items: flex-end;
}

.messenger-input textarea {
  flex: 1; background: rgba(0,0,0,0.3);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 0.65rem 1rem; color: #fff; font-size: 0.9rem;
  resize: none; outline: none; min-height: 42px; max-height: 120px;
  font-family: inherit;
}

.messenger-input textarea:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(167,139,250,0.15); }
.messenger-input textarea::placeholder { color: var(--text-dim); }

.messenger-input button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; border-radius: 14px;
  padding: 0.65rem 1.5rem; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: all var(--transition-fast);
  white-space: nowrap; min-height: 42px;
}

.messenger-input button:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(141,93,240,0.3); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: var(--bg-card-alt); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light); border-radius: 24px;
  padding: 2rem; max-width: 420px; width: 90%;
  box-shadow: var(--shadow-lg); animation: modalIn 0.25s ease;
}

@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes modalIn { from{opacity:0;transform:scale(0.95) translateY(10px)} to{opacity:1;transform:scale(1) translateY(0)} }

/* Support CTA */
.support-cta {
  background: linear-gradient(135deg, rgba(10,10,25,0.92), rgba(3,3,8,0.96));
  border: 1px solid var(--border-light); border-radius: 32px;
  padding: 3rem; text-align: center;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 280px; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.support-cta:hover { border-color: var(--primary); }

.support-cta-main { position: relative; z-index: 2; }
.support-cta-icon-wrap { position: relative; height: 120px; margin-bottom: 1rem; }
.support-cta-img { max-width: 120px; height: auto; }

.hl { color: var(--primary-light); font-weight: 900; }

/* Utility */
.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }

button, input, textarea, select, .btn { font-family: inherit; }

/* ============================================
   ADMIN PANEL
   ============================================ */



/* ===== Mobile Menu ===== */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.hamburger-line { display: block; width: 26px; height: 3px; background: #fff; border-radius: 3px; }

.mobile-dropdown {
  touch-action: pan-y;
  position: fixed; top: 0; right: 0; width: 260px; height: 100dvh;
  background: rgba(6,6,18,0.97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-light);
  padding: 5rem 0 2rem; display: flex; flex-direction: column;
  z-index: 998; transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}

.mobile-dropdown.open { transform: translateX(0); }

.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 998; opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  touch-action: pan-y;
}

.mobile-overlay.show { opacity: 1; visibility: visible; }

.mobile-dropdown a {
  color: var(--text); text-decoration: none;
  padding: 0.85rem 2rem; font-size: 1rem; font-weight: 700;
  transition: var(--transition-fast);
  border-right: 3px solid transparent;
}

.mobile-dropdown a:hover,
.mobile-dropdown a:active {
  background: rgba(141,93,240,0.08);
  color: var(--primary-light);
  border-right-color: var(--primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  p, span, div, a, h1, h2, h3, h4, h5, h6, li, td, th { overflow-wrap: break-word; word-break: break-word; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .navbar { padding: 0.6rem 0; }
  .page-bg { transform: none; }

  .container {   padding: 6rem 1rem 1.5rem; }
  .nav-inner { padding: 0 1rem; }
  .logo img { height: 26px; }
  .logo span { font-size: 0.65rem; }
  .status-card { padding: 1.25rem 0.8rem; }
  .status-card .btn-group { flex-wrap: wrap; justify-content: center; }
  .mode-card { width: calc(50% - 0.5rem); min-width: 0; min-height: 160px; padding: 1rem 0.75rem; }
  .modes-grid { gap: 0.75rem; }
  .cta-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 1.5rem auto; }
  h1 { font-size: clamp(1.8rem, 6vw, 3rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 2rem); }

  .footer { width: calc(100% - 2rem); padding: 0.75rem 1.5rem; margin: 3rem auto 1.5rem; }
  .footer-inner { flex-wrap: wrap; justify-content: center; padding: 0; gap: 0.75rem; }
  .footer-left { flex: 0 0 auto; }
  .footer-right { flex: 0 0 auto; }
  .footer-copy { position: static; transform: none; flex: 0 0 100%; text-align: center; font-size: 0.7rem; margin-top: 0.5rem; }
  .footer-credit { font-size: 0.9rem; }
  .footer-btn { font-size: 0.65rem; padding: 0.25rem 0.5rem; gap: 0.2rem; border-radius: 6px; }
  .footer-badge { max-width: 35px; }
  .footer-phone-badge { max-width: 34.5px; }
  .footer-left .footer-phone-icon { width: 21.5px !important; height: 21.5px !important; }
  .footer-left > a { max-width: 35px; }
  .footer-btn-icon { width: 0.75em; height: 0.75em; }
  img[src*="enamad"] { max-width: 35px !important; width: auto !important; height: auto !important; }

  .section { padding: 6rem 1rem 2rem !important; }
  .section-header { margin: 1.5rem 0 0.75rem; }
  .section-title { font-size: 1.1rem; gap: 0.3rem; margin-bottom: 0.75rem; }

  .rank-card { min-width: calc(50% - 0.5rem); max-width: calc(50% - 0.5rem); padding: 1rem 0.75rem; }

  .blog-grid { grid-template-columns: 1fr; gap: 1rem; }
  .blog-content { padding: 0.75rem; }
  .blog-title { font-size: 0.85rem; }

  .hero { margin-bottom: 2rem; padding: 1rem 0 0.5rem; }

  .ticket-card { padding: 1.5rem 1rem; margin: 2rem auto 0; }

  .acc-sidebar { position: fixed; top: 0; right: 0; width: 260px; height: 100dvh; z-index: 100; border-radius: 0; border: none; border-left: 1px solid var(--border); padding-top: 5rem; overflow-y: auto; transform: translateX(260px); transition: transform 0.3s; }
  .acc-sidebar.acc-open { transform: translateX(0); }
  .acc-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
  .acc-overlay.acc-show { display: block; }
  .acc-topbar { display: flex; width: 100%; }
  .acc-main { padding: 0; width: 100%; }
  .section-container:has(.acc-sidebar) { flex-wrap: wrap; gap: 0.5rem; }
  section.section:has(.section-container:has(.acc-sidebar)) { padding-top: 3.5rem !important; }
  .acc-actions { flex-wrap: wrap; }
  .acc-actions .btn { flex: 1; min-width: 120px; }
  .acc-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .acc-stat { padding: 1rem; }
  .col-md-8 { flex: 0 0 100%; max-width: 100%; }
  .messenger-container { min-height: 400px; }
  .messenger-sidebar { display: none; }
  .messenger-sidebar.show { display: flex; width: 100%; }
  .messenger-main { display: none; }
  .messenger-main.show { display: flex; }
  .mobile-back-btn { display: none; }
}

@media (max-width: 480px) {
  .mode-card { width: calc(50% - 0.375rem); min-height: 130px; padding: 0.75rem 0.5rem; }
  .cta-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .rank-card { min-width: calc(50% - 0.375rem); max-width: calc(50% - 0.375rem); padding: 0.75rem 0.5rem; }

  .rank-name { font-size: 0.75rem; }
  .rank-price { font-size: 0.7rem; }
  .ranks-grid { gap: 0.5rem; }
  .status-card { padding: 1rem; }
  .acc-stats { grid-template-columns: 1fr; gap: 0.5rem; }
  .acc-actions { flex-direction: column; }
  .acc-actions .btn { width: 100%; }
  .acc-info { padding: 0.75rem; }
  .acc-info-table td { font-size: 0.75rem; }
  .acc-info-table td:first-child { width: 80px; }
  .section { padding: 5.5rem 0.75rem 1.5rem !important; }
  .container { padding: 5.5rem 0.75rem 1rem; }

  .footer { width: calc(100% - 1rem); padding: 0.5rem 0.75rem; margin: 2.5rem auto 1rem; }
  .footer-inner { flex-wrap: wrap; justify-content: center; padding: 0; gap: 0.5rem; }
  .footer-left { flex: 0 0 auto; }
  .footer-right { flex: 0 0 auto; }
  .footer-copy { position: static; transform: none; flex: 0 0 100%; text-align: center; font-size: 0.6rem; margin-top: 0.75rem; }
  .footer-credit { font-size: 0.8rem; }
  .footer-btn { font-size: 0.5rem; padding: 0.15rem 0.35rem; gap: 0.15rem; border-radius: 4px; }
  .footer-badge { max-width: 25px; }
  .footer-phone-badge { max-width: 24.5px; }
  .footer-left .footer-phone-icon { width: 16.5px !important; height: 16.5px !important; }
  .footer-left > a { max-width: 25px; }
  .footer-btn-icon { width: 0.55em; height: 0.55em; }
  img[src*="enamad"] { max-width: 25px !important; width: auto !important; height: auto !important; }
}

/* ===== Bootstrap Icons Helpers ===== */
.bi-icon { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; font-size: inherit; }
.bi-icon::before { line-height: 1; }
.bi-lg { font-size: 1.25em; }
.bi-xl { font-size: 1.5em; }
.bi-2x { font-size: 2em; }
.bi-3x { font-size: 3em; }
.icon-primary { color: var(--primary-light); }
.icon-dim { color: var(--text-dim); }
.icon-white { color: #fff; }
.icon-inline { vertical-align: -0.125em; margin-left: 0.3em; }
.icon-section { display: inline-block; vertical-align: -0.2em; margin-left: 0.4rem; font-size: 1.2em; color: var(--primary-light); }

/* ===== Index Mid Layout (ads sidebars) ===== */
.index-mid { display:flex; width:100%; max-width:100%; justify-content:center; gap:1rem; padding:0 2rem; }
.index-sidebar { width:240px; flex-shrink:0; display:flex; flex-direction:column; gap:4.5rem; }

.page-mid { display:flex; width:100%; max-width:100%; justify-content:center; gap:1rem; padding:0 2rem; }
.page-sidebar { width:240px; flex-shrink:0; display:flex; flex-direction:column; gap:4.5rem; }
@media (max-width:1600px) { .page-sidebar { width:200px; } }
@media (max-width:1400px) { .page-sidebar { width:160px; } }
@media (max-width:1200px) { .page-mid { flex-direction:column; align-items:center; padding:0 1rem; } .page-mid > .section-container { order:1; } .page-mid > .page-sidebar { order:0; width:auto; flex-direction:row; flex-wrap:wrap; justify-content:center; display:inline-flex; } .page-mid .sidebar-slot { min-width:140px; } }
.sidebar-slot { width:100%; border-radius:10px; overflow:hidden; background:var(--bg-card); border:1px solid var(--border); }
.sidebar-slot a { display:block; width:100%; }
.sidebar-slot img,.sidebar-slot video { width:100%; height:100%; object-fit:contain; display:block; }
.sidebar-slot-empty { width:100%; height:100%; border:2px dashed #2D4468; border-radius:10px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.5rem; cursor:pointer; transition:all 0.2s; background:rgba(15,27,45,0.5); padding:1rem; }
.sidebar-slot-empty:hover { border-color:var(--primary-light); background:rgba(15,27,45,0.8); }
.sidebar-slot-label { font-weight:700; color:#5EEAD4; font-size:0.8rem; text-align:center; }
.sidebar-slot-hint { color:#9CA3AF; font-size:0.65rem; text-align:center; }
.inline-ad-slot { display:none; }
@media (max-width:1600px) { .index-sidebar { width:200px; } }
@media (max-width:1400px) { .index-sidebar { width:160px; } }
.title-banner { max-width:360px; margin:0 auto 1.5rem; }
@media (max-width:1200px) { .index-mid { flex-direction:column; align-items:center; padding:0 1rem; } .index-mid > .section-container { order:1; } .index-sidebar { display:none; } .inline-ad-slot { display:block; margin:1rem auto; max-width:300px; } .sidebar-slot { min-width:140px; } .title-banner { max-width:260px; } }


