[x-cloak] { display: none !important; }
/* =========================================================
   Alpha Kal Online — 2026 Premium Dark Fantasy MMORPG Theme
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --bg-primary:   #07090e;
  --bg-secondary: #0d111a;
  --bg-card:      rgba(13, 17, 26, 0.80);
  --border-card:  rgba(0, 242, 254, 0.12);
  --neon-cyan:    #00f2fe;
  --neon-blue:    #4facfe;
  --neon-purple:  #a855f7;
  --neon-gold:    #fbbf24;
  --neon-emerald: #10b981;
  --neon-pink:    #ec4899;
  --neon-red:     #ef4444;
}

/* ─── Base & Custom KalOnline Game Cursor ─────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  cursor: url('../images/cursor.png'), default;
}

a, button, input[type="button"], input[type="submit"], [role="button"], select, label, .clickable, .cursor-pointer {
  cursor: url('../images/pointer.png'), pointer !important;
}

a:hover, button:hover {
  cursor: url('../images/pointer.png'), pointer !important;
}

html { scroll-behavior: smooth; }

body {
  background-color: #07090e;
  color: #e2e8f0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  filter: brightness(0.90) contrast(1.05);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 198, 251, 0.12) 0%, transparent 65%),
    linear-gradient(
      to bottom,
      rgba(3, 5, 8, 0.50) 0%,
      rgba(7, 9, 14, 0.35) 140px,
      rgba(7, 9, 14, 0.72) 55%,
      rgba(7, 9, 14, 0.95) 100%
    );
  z-index: -1;
  pointer-events: none;
}

/* ─── Global Translucent Header (matches Home) ──────────── */
header.glass-panel, header {
  background: rgba(3, 5, 8, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ─── Typography ────────────────────────────────────────── */
.font-game-title {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.04em;
}

.font-game-hud {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.06em;
}

/* ─── Glassmorphism Cards ───────────────────────────────── */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
  border-radius: 1rem;
}

/* ─── Neon Glow Text ────────────────────────────────────── */
.text-glow-cyan   { text-shadow: 0 0 10px rgba(0,242,254,0.6), 0 0 28px rgba(0,242,254,0.3); }
.text-glow-gold   { text-shadow: 0 0 10px rgba(251,191,36,0.6), 0 0 28px rgba(251,191,36,0.3); }
.text-glow-purple { text-shadow: 0 0 10px rgba(168,85,247,0.6), 0 0 28px rgba(168,85,247,0.3); }
.text-glow-red    { text-shadow: 0 0 10px rgba(239,68,68,0.6), 0 0 28px rgba(239,68,68,0.3); }

/* ─── Navigation Link ───────────────────────────────────── */
.nav-link {
  position: relative;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link.active {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0,242,254,0.5);
}

/* ─── Gaming Buttons ────────────────────────────────────── */
.btn-gaming {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.6rem 1.4rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-gaming:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.btn-cyan {
  background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0,198,251,0.35);
}
.btn-cyan:hover:not(:disabled) {
  background: linear-gradient(135deg, #38f9d7 0%, #00c6fb 100%);
  box-shadow: 0 6px 28px rgba(0,198,251,0.55);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  color: #07090e;
  box-shadow: 0 4px 20px rgba(245,158,11,0.35);
}
.btn-gold:hover:not(:disabled) {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  box-shadow: 0 6px 28px rgba(245,158,11,0.55);
  transform: translateY(-2px);
}

.btn-purple {
  background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(147,51,234,0.35);
}
.btn-purple:hover:not(:disabled) {
  background: linear-gradient(135deg, #c026d3 0%, #9333ea 100%);
  box-shadow: 0 6px 28px rgba(147,51,234,0.55);
  transform: translateY(-2px);
}

.btn-red {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(239,68,68,0.35);
}
.btn-red:hover:not(:disabled) {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  box-shadow: 0 6px 28px rgba(239,68,68,0.55);
  transform: translateY(-2px);
}

.btn-dark {
  background: rgba(15, 23, 42, 0.85);
  color: #94a3b8;
  border: 1px solid rgba(148,163,184,0.18);
}
.btn-dark:hover:not(:disabled) {
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
  border-color: rgba(0,242,254,0.4);
  box-shadow: 0 0 14px rgba(0,242,254,0.15);
}

/* ─── Gaming Inputs ─────────────────────────────────────── */
.gaming-input {
  width: 100%;
  background: rgba(7, 11, 20, 0.85) !important;
  border: 1px solid rgba(51, 65, 85, 0.7) !important;
  color: #f8fafc !important;
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gaming-input::placeholder { color: #4b5563; }

.gaming-input:focus {
  outline: none;
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 0 3px rgba(0,242,254,0.12), 0 0 16px rgba(0,242,254,0.18) !important;
}

/* ─── Status Pulse ──────────────────────────────────────── */
.status-pulse-online {
  animation: pulseGreen 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulseGreen {
  0%  { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100%{ box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.status-pulse-offline {
  animation: pulseRed 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulseRed {
  0%  { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
  70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  100%{ box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* ─── Character Card ────────────────────────────────────── */
.character-card {
  position: relative;
  border-radius: 0.875rem;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(15,23,42,0.75) 0%, rgba(7,9,14,0.95) 100%);
  border: 1px solid rgba(148,163,184,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.character-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,242,254,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.character-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -8px rgba(0,0,0,0.8), 0 0 32px rgba(0,242,254,0.12);
  border-color: rgba(0,242,254,0.3);
}

/* Shimmer sweep on hover */
.character-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
  transition: left 0.55s ease;
}
.character-card:hover::after { left: 160%; }

/* ─── Neon Border Utilities ─────────────────────────────── */
.neon-border-cyan   { border-color: rgba(0,242,254,0.35) !important; }
.neon-border-gold   { border-color: rgba(251,191,36,0.35) !important; }
.neon-border-purple { border-color: rgba(168,85,247,0.35) !important; }
.neon-border-emerald{ border-color: rgba(16,185,129,0.35) !important; }
.neon-border-pink   { border-color: rgba(236,72,153,0.35) !important; }

/* ─── Hero Section ──────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 8s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(7,9,14,0.75) 0%, rgba(7,9,14,0.25) 50%, rgba(7,9,14,0.6) 100%),
    linear-gradient(to top, rgba(7,9,14,0.98) 0%, rgba(7,9,14,0.1) 40%, transparent 80%);
}

.hero-section:hover .hero-bg { transform: scale(1.0); }

/* ─── Ambient Glow Orbs ─────────────────────────────────── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.18;
}
.glow-orb-cyan   { background: var(--neon-cyan); }
.glow-orb-purple { background: var(--neon-purple); }
.glow-orb-gold   { background: var(--neon-gold); }

/* ─── Rank Badge ────────────────────────────────────────── */
.rank-badge-1 { background: rgba(234,179,8,0.15); color: #fbbf24; border: 1px solid rgba(234,179,8,0.4); }
.rank-badge-2 { background: rgba(148,163,184,0.1); color: #cbd5e1; border: 1px solid rgba(148,163,184,0.3); }
.rank-badge-3 { background: rgba(180,83,9,0.15);  color: #d97706; border: 1px solid rgba(180,83,9,0.4); }

/* ─── Tab Button ────────────────────────────────────────── */
.tab-btn {
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

/* ─── Divider Line ──────────────────────────────────────── */
.neon-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,242,254,0.3), rgba(168,85,247,0.3), transparent);
}

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #07090e; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,242,254,0.5); }

/* ─── Badge Colors for Classes ──────────────────────────── */
.badge-knight  { background: linear-gradient(135deg,#b45309,#92400e); }
.badge-mage    { background: linear-gradient(135deg,#2563eb,#1d4ed8); }
.badge-archer  { background: linear-gradient(135deg,#059669,#047857); }
.badge-thief   { background: linear-gradient(135deg,#7c3aed,#5b21b6); }
.badge-shaman  { background: linear-gradient(135deg,#db2777,#9d174d); }

/* ─── Table Rows ────────────────────────────────────────── */
tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: rgba(0,242,254,0.04); }

/* ─── Floating Label Form ───────────────────────────────── */
.form-group { position: relative; }
.form-group label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

/* ─── Section Title ─────────────────────────────────────── */
.section-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

/* ─── Shimmer animation ─────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.shimmer {
  background: linear-gradient(90deg, rgba(30,41,59,0.5) 25%, rgba(51,65,85,0.4) 50%, rgba(30,41,59,0.5) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
}

/* ─── Responsive Helpers ────────────────────────────────── */
@media (max-width: 640px) {
  .hero-section { min-height: 70vh; }
  .btn-gaming   { padding: 0.55rem 1rem; font-size: 0.7rem; }
  .glass-panel  { border-radius: 0.75rem; }
}

/* ─── Responsive Mobile Navigation & Touch Optimization ─────────────────────── */
@media (max-width: 1024px) {
  header > div, #navbar > div {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  header > div::-webkit-scrollbar, #navbar > div::-webkit-scrollbar {
    display: none;
  }
  header nav, #navbar nav, #navbar .flex.items-center {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }
  .nav-link, .nav-item {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.85rem !important;
    padding: 0.5rem 0.6rem !important;
  }
  .max-w-7xl, .max-w-screen-xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
