/* ============================================
   ایران کانتر - Main Stylesheet
   Modern Gaming Community Theme
   ============================================ */

/* ---- CSS Custom Properties (Dark Theme Default) ---- */
:root {
  /* Colors - Dark Theme */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2332;
  --bg-card: #141c2b;
  --bg-card-hover: #1a2538;
  --bg-input: #1a2332;
  --bg-overlay: rgba(0, 0, 0, 0.7);

  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0e17;

  --accent-primary: #6366f1;
  --accent-primary-hover: #818cf8;
  --accent-primary-glow: rgba(99, 102, 241, 0.4);
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);

  --online: #10b981;
  --offline: #ef4444;
  --maintenance: #f59e0b;

  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-strong: rgba(255, 255, 255, 0.12);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--accent-primary-glow);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-primary: 'Vazirmatn', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-gaming: 'Orbitron', 'Rajdhani', monospace;
  --font-display: 'Gandom', 'Vazirmatn', 'Segoe UI', system-ui, sans-serif;
  --font-hero: 'Lalezar', 'Gandom', 'Vazirmatn', sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', monospace;

  --header-height: 72px;
  --container-max: 1320px;
  --sidebar-width: 300px;
}

/* ---- Light Theme ---- */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #f1f5f9;
  --bg-overlay: rgba(0, 0, 0, 0.5);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #f0f4f8;

  --border-color: rgba(0, 0, 0, 0.06);
  --border-color-strong: rgba(0, 0, 0, 0.12);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.2);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent-primary);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary-hover);
}

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-family: var(--font-primary);
  font-weight: 900;
  letter-spacing: -0.3px;
}
h2 {
  font-size: clamp(1.3rem, 3vw, 2.25rem);
  font-family: var(--font-primary);
  font-weight: 800;
  letter-spacing: -0.2px;
}
h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-family: var(--font-primary);
  font-weight: 700;
}
h4 { font-size: 1.15rem; font-weight: 700; }
h5 { font-size: 1.05rem; font-weight: 600; }

/* ---- Gaming Display Titles ---- */
.gaming-title {
  font-family: var(--font-hero);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.gaming-title-lg {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.5px;
  line-height: 1.25;
}

.title-glow {
  text-shadow: 0 0 20px var(--accent-primary-glow),
               0 0 40px rgba(99, 102, 241, 0.15);
}

.title-glow-strong {
  text-shadow: 0 0 10px var(--accent-primary-glow),
               0 0 20px var(--accent-primary-glow),
               0 0 40px rgba(99, 102, 241, 0.2),
               0 0 80px rgba(99, 102, 241, 0.1);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(1.3rem, 3.5vw, 2.25rem);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
  text-shadow: none;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-primary-glow);
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px var(--accent-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--accent-primary-glow);
  color: white;
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color-strong);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-outline {
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: 16px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--border-color-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-online {
  background: var(--success-bg);
  color: var(--success);
}

.badge-offline {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-maintenance {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-featured {
  background: var(--accent-primary-glow);
  color: var(--accent-primary-hover);
}

/* ---- Forms ---- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
  height: var(--header-height);
}

[data-theme="light"] .header {
  background: rgba(248, 250, 252, 0.85);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-base);
  letter-spacing: -0.5px;
}

.logo:hover {
  color: var(--accent-primary-hover);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 4px 12px var(--accent-primary-glow);
}

.logo-text {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: 1.35rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
}

.nav-link.active {
  font-weight: 600;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.theme-toggle:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: rotate(15deg);
}

.music-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.music-toggle:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.music-toggle.playing {
  color: var(--success);
  border-color: var(--success);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 12px 4px rgba(16, 185, 129, 0.2); }
}

.user-menu {
  position: relative;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--border-color-strong);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.user-avatar:hover {
  border-color: var(--accent-primary);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--border-radius);
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 1001;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.user-dropdown a:hover {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
}

.user-dropdown .divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-size: 1.3rem;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  padding: 20px;
  overflow-y: auto;
  z-index: 999;
  animation: slideDown 0.3s ease;
}

.mobile-nav.show {
  display: block;
}

.mobile-nav .nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--accent-primary-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 40px;
  color: var(--accent-primary-hover);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-family: var(--font-hero);
  font-size: clamp(1.8rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
  letter-spacing: 0.5px;
}

.hero-title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-gaming);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  line-height: 1.1;
  direction: ltr;
  filter: drop-shadow(0 0 8px var(--accent-primary-glow));
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* ---- Stat Value (reusable gaming stat numbers) ---- */
.stat-value {
  font-family: var(--font-gaming);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  direction: ltr;
  filter: drop-shadow(0 0 6px var(--accent-primary-glow));
}

.stat-value-lg {
  font-size: 2rem;
  line-height: 1.1;
}

.stat-value-md {
  font-size: 1.5rem;
  line-height: 1.2;
}

.stat-value-sm {
  font-size: 1.2rem;
  line-height: 1.2;
}

/* ---- Sections ---- */
.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
}

/* ---- Server Status Section ---- */
.servers-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 16px 20px;
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.server-card:hover {
  border-color: var(--border-color-strong);
  box-shadow: var(--shadow-card);
}

.server-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.server-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.server-card-left .server-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-lock-icon-hp {
  flex-shrink: 0;
}

.server-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.server-card-bottom .server-info {
  flex: 1;
}

.server-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 200px;
  flex: 1;
}

.server-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.server-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
}

.server-status-dot.online {
  background: var(--online);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

.server-status-dot.offline {
  background: var(--offline);
}

.server-status-dot.maintenance {
  background: var(--maintenance);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.server-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  flex: 2;
}

.server-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.server-info-item i {
  color: var(--accent-primary);
  width: 18px;
  text-align: center;
}

.server-players-bar {
  margin-top: 16px;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.server-players-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent-gradient);
  transition: width var(--transition-slow);
}

/* ---- Features Section ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 40px 28px;
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--accent-primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--accent-primary);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--accent-gradient);
  color: white;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 25px var(--accent-primary-glow);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Shop Section ---- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ---- Product Card with Neon Border ---- */
.product-card {
  padding: 0;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: none;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  z-index: 0;
  overflow: visible;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  padding: 2px;
  background: conic-gradient(
    from var(--card-angle, 0deg),
    #6366f1, #8b5cf6, #06b6d4, #10b981, #6366f1
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: productNeonSpin 3s linear infinite;
  pointer-events: none;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  background: var(--bg-card);
  z-index: -1;
  transition: background 0.35s ease;
}
.product-card:hover::before {
  opacity: 1;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), 0 0 40px rgba(139, 92, 246, 0.15), 0 12px 40px rgba(99, 102, 241, 0.2);
}
.product-card:hover::after {
  background: var(--bg-card-hover);
}
.product-card .product-image,
.product-card .product-body {
  position: relative;
  z-index: 2;
}

@keyframes productNeonSpin {
  to { --card-angle: 360deg; }
}
@property --card-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.product-card .product-image {
  height: 280px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card .product-body {
  padding: 20px;
}

.product-category {
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.product-price .current {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--success);
  font-family: var(--font-primary);
  letter-spacing: -0.3px;
}

.product-price .original {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-price .currency {
  font-size: 0.8rem;
  color:var(--text-secondary);
}



/* ---- Blog Section ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.blog-card .card-image {
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: -28px -28px 20px -28px;
}

.blog-card .card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-title a {
  color: var(--text-primary);
}

.blog-title a:hover {
  color: var(--accent-primary);
}

.blog-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Blog Content (Rich Text) ---- */
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 16px 0;
  display: block;
}
.blog-content video {
  max-width: 100%;
  border-radius: var(--border-radius);
  margin: 16px 0;
}
.blog-content audio {
  width: 100%;
  margin: 16px 0;
  border-radius: var(--border-radius);
}
.blog-content a {
  color: var(--accent-primary);
  text-decoration: underline;
}
.blog-content a:hover {
  color: var(--accent-primary-hover);
}
.blog-content blockquote {
  border-right: 4px solid var(--accent-primary);
  padding-right: 20px;
  margin: 20px 0;
  color: var(--text-muted);
  font-style: italic;
}
.blog-content pre {
  background: var(--bg-tertiary);
  padding: 16px 20px;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 16px 0;
  font-size: 0.9rem;
}
.blog-content code {
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.blog-content pre code {
  background: none;
  padding: 0;
}
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.blog-content td,
.blog-content th {
  border: 1px solid var(--border-color-strong);
  padding: 10px 14px;
  text-align: right;
}
.blog-content th {
  background: var(--bg-tertiary);
  font-weight: 600;
}
.blog-content ul,
.blog-content ol {
  padding-right: 24px;
  margin: 12px 0;
}
.blog-content ul {
  list-style: disc;
}
.blog-content ol {
  list-style: decimal;
}
.blog-content li {
  margin-bottom: 6px;
}
.blog-content h1, .blog-content h2, .blog-content h3,
.blog-content h4, .blog-content h5, .blog-content h6 {
  margin-top: 24px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.blog-content p {
  margin-bottom: 12px;
}
.blog-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 24px 0;
}
.blog-content .align-center {
  text-align: center;
}

/* ---- Forum Section ---- */
.forum-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forum-category {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  cursor: pointer;
}

.forum-category:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.forum-category-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.forum-category-info {
  flex: 1;
}

.forum-category-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.forum-category-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.forum-category-stats {
  display: flex;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.forum-category-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Downloads Section ---- */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.download-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.download-card-image {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--accent-gradient);
}

.download-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.download-card:hover .download-card-image img {
  transform: scale(1.08);
}

.download-card-image .download-icon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.download-card:hover .download-card-image .download-icon-overlay {
  opacity: 1;
}

.download-card-image .download-icon-overlay i {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
}

.download-card-image .dl-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
}

.download-card-image .dl-badge.featured {
  background: rgba(245, 158, 11, 0.85);
}

.download-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-card-body .dl-category {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-card-body .dl-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
}

.download-card-body .dl-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.download-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  gap: 12px;
}

.download-card-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.download-card-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.download-card-stats i {
  font-size: 0.78rem;
  color: var(--accent-primary);
}

/* Legacy download classes (kept for backward compat) */
.download-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.download-info {
  flex: 1;
}

.download-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.download-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- Download Detail Page ---- */
.dl-detail-hero {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

.dl-detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dl-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.3) 60%, transparent 100%);
}

.dl-detail-hero-content {
  position: relative;
  z-index: 1;
  padding: 32px;
  width: 100%;
}

.dl-detail-hero-content h1 {
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.dl-detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.dl-detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dl-detail-meta i {
  color: var(--accent-primary);
}

.dl-detail-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

.dl-detail-description {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text-secondary);
}

.dl-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dl-detail-download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  text-align: center;
}

.dl-detail-download-card .dl-file-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--accent-primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: var(--accent-primary);
}

.dl-detail-download-card .dl-file-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.dl-detail-download-card .dl-file-info span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dl-detail-download-card .btn {
  width: 100%;
}

@media (max-width: 768px) {
  .dl-detail-body {
    grid-template-columns: 1fr;
  }
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 0.92rem;
  line-height: 2;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-social a,
.social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.footer-social a svg,
.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: all var(--transition-fast);
}

.footer-social a::before,
.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
  border-radius: inherit;
}

.footer-social a:hover,
.social-link:hover {
  transform: translateY(-3px);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer-social a:hover::before,
.social-link:hover::before {
  opacity: 1;
}

/* Social brand colors on hover */
.social-telegram:hover,
.social-telegram:hover::before { background: #2AABEE; }

.social-discord:hover,
.social-discord:hover::before { background: #5865F2; }

.social-instagram:hover,
.social-instagram:hover::before { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.social-youtube:hover,
.social-youtube:hover::before { background: #FF0000; }

.social-twitch:hover,
.social-twitch:hover::before { background: #9146FF; }

.social-twitter:hover,
.social-twitter:hover::before { background: #000000; }

.social-github:hover,
.social-github:hover::before { background: #333333; }

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
  padding-right: 8px;
}

.footer-team {
  margin-top: 20px;
}

.footer-team-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.footer-team-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-team-info {
  font-size: 0.85rem;
}

.footer-team-name {
  font-weight: 600;
  color: var(--text-primary);
}

.footer-team-role {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--accent-primary);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--accent-primary-glow); }
  50% { box-shadow: 0 0 20px var(--accent-primary-glow), 0 0 40px rgba(99, 102, 241, 0.2); }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.animate-left {
  transform: translateX(-40px);
}

.animate-on-scroll.animate-left.animated {
  transform: translateX(0);
}

.animate-on-scroll.animate-right {
  transform: translateX(40px);
}

.animate-on-scroll.animate-right.animated {
  transform: translateX(0);
}

.animate-on-scroll.animate-scale {
  transform: scale(0.9);
}

.animate-on-scroll.animate-scale.animated {
  transform: scale(1);
}

.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }
.stagger-delay-5 { transition-delay: 0.5s; }
.stagger-delay-6 { transition-delay: 0.6s; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: 20px;
}

[data-theme="light"] .modal-overlay {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-spring);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 0;
  margin-bottom: 0;
}

.modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 32px 32px;
  flex: 1;
}

/* Scrollbar inside modal-body */
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background: var(--border-color-strong);
  border-radius: 10px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.modal-overlay.show .modal {
  transform: scale(1) translateY(0);
}

/* modal-header moved above modal-body */

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ---- Toast Notifications ---- */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  left: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 450px;
  animation: slideInLeft 0.3s ease, fadeOut 0.3s ease 4.7s;
  font-size: 0.9rem;
}

.toast-success { border-right: 4px solid var(--success); }
.toast-error { border-right: 4px solid var(--danger); }
.toast-warning { border-right: 4px solid var(--warning); }
.toast-info { border-right: 4px solid var(--info); }

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(-100%); }
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.pagination a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.pagination .active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
}

.pagination .disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent-primary);
}

.breadcrumb .separator {
  color: var(--text-muted);
}

/* ---- Loading Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius);
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
  width: 80%;
}

.skeleton-title {
  height: 24px;
  margin-bottom: 12px;
  width: 60%;
}

.skeleton-image {
  height: 200px;
  border-radius: var(--border-radius);
}

/* ---- Premium Dropdown Menu (Gaming Style) ---- */
.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color-strong);
  border-radius: 14px;
  padding: 0;
  min-width: 240px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255,255,255,0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  overflow: hidden;
}

.user-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 14px 14px 0 0;
}

.user-dropdown::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-strong);
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg);
  z-index: 1;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  border-left: 3px solid transparent;
}

.user-dropdown a i {
  width: 20px;
  text-align: center;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.user-dropdown a:hover {
  background: linear-gradient(90deg, var(--accent-primary-glow), transparent);
  color: var(--accent-primary-hover);
  border-left-color: var(--accent-primary);
  padding-right: 22px;
}

.user-dropdown a:hover i {
  transform: scale(1.15);
}

.user-dropdown .dropdown-user-info {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--accent-primary-glow), transparent);
}

.user-dropdown .dropdown-user-info .username {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.user-dropdown .dropdown-user-info .role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-primary-glow);
  color: var(--accent-primary);
  margin-top: 4px;
}

.user-dropdown .dropdown-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
  background: var(--bg-tertiary);
}

.user-dropdown .dropdown-balance .balance-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.user-dropdown .dropdown-balance .balance-value {
  font-weight: 900;
  font-family: var(--font-primary);
  color: var(--success);
  font-size: 0.95rem;
  letter-spacing: -0.3px;
}

.user-dropdown .divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

/* ---- Select Dropdown Premium ---- */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 40px;
  cursor: pointer;
}

/* ---- Ad Banners ---- */
.ad-banner {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin: 20px 0;
  transition: all var(--transition-base);
  position: relative;
}

.ad-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 1;
}

.ad-banner:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-color-strong);
}

.ad-banner:hover::before {
  opacity: 1;
}

.ad-banner-header {
  margin: 8px 0 0;
}

.ad-banner-bottom {
  margin: 0 0 20px;
}

.ad-banner-item {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.ad-banner-link {
  display: block;
  transition: transform var(--transition-base);
}

.ad-banner-link:hover {
  transform: scale(1.01);
}

.ad-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

.ad-sidebar {
  margin-bottom: 24px;
}

/* ---- Wallet Section ---- */
.wallet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.wallet-balance {
  text-align: center;
  padding: 24px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.wallet-balance-amount {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-primary);
  letter-spacing: -0.5px;
  color: var(--success);
  line-height: 1.1;
}

.wallet-balance-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.wallet-charge-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.wallet-charge-form .form-group {
  flex: 1;
  margin-bottom: 0;
}

.wallet-transactions {
  margin-top: 24px;
}

.wallet-transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.wallet-transaction-item:last-child {
  border-bottom: none;
}

.wallet-transaction-type {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.wallet-transaction-icon.deposit {
  background: var(--success-bg);
  color: var(--success);
}

.wallet-transaction-icon.withdraw {
  background: var(--danger-bg);
  color: var(--danger);
}

.wallet-transaction-amount {
  font-weight: 700;
  font-family: var(--font-primary);
  letter-spacing: -0.3px;
}

.wallet-transaction-amount.positive {
  color: var(--success);
}

.wallet-transaction-amount.negative {
  color: var(--danger);
}

/* ---- Customer Servers ---- */
.customer-servers-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}

.customer-servers-section .section-title {
  margin-bottom: 32px;
}

.customer-servers-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.customer-server-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  transition: all var(--transition-base);
  position: relative;
}

.customer-server-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--warning), var(--accent-secondary));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.customer-server-card:hover {
  border-color: var(--border-color-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.customer-server-card:hover::after {
  opacity: 1;
}

.customer-server-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--warning-bg);
  color: var(--warning);
  margin-bottom: 12px;
}

/* ---- ZarinPal Payment ---- */
.zarinpal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #1a1a1a;
  border-radius: var(--border-radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.zarinpal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 170, 0, 0.3);
}

.zarinpal-btn i {
  font-size: 1.1rem;
}

/* ---- Utility Classes ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-accent { color: var(--accent-primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-top: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.w-full { width: 100%; }
.hidden { display: none !important; }

/* ---- Page Content Padding ---- */
.page-content {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  min-height: 100vh;
  overflow-x: hidden;
}

.page-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--font-primary);
  font-weight: 900;
}

.page-header p {
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ---- Tab System ---- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 20px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--accent-primary);
}

.tab-btn.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

/* ---- Advertisement Banners ---- */
.ad-banner { padding: 16px 0; text-align: center; }
.ad-banner-header { background: var(--bg-tertiary); border-bottom: 1px solid var(--border-color); }
.ad-banner-bottom { background: var(--bg-tertiary); border-top: 1px solid var(--border-color); margin-top: 20px; padding: 16px 0; }
.ad-banner-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 12px 0; }
.ad-banner-item { display: inline-block; margin: 4px 8px; }
.ad-banner-item img, .ad-footer-item img { max-width: 728px; width: 100%; height: auto; border-radius: var(--border-radius); transition: opacity var(--transition-fast); }
.ad-banner-item img:hover, .ad-footer-item img:hover { opacity: 0.9; }
.ad-banner-link { display: inline-block; }

/* Sidebar Floating Ads */
.ad-sidebar-float {
  position: fixed;
  top: calc(var(--header-height) + 20px);
  width: 160px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ad-sidebar-right { right: 8px; }
.ad-sidebar-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}
.ad-sidebar-item:hover { border-color: var(--accent-primary); box-shadow: var(--shadow-glow); }
.ad-sidebar-item img { width: 100%; height: auto; display: block; }
.ad-sidebar-close {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast);
}
.ad-sidebar-close:hover { background: var(--danger); }

/* Popup Ad Overlay */
.ad-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.ad-popup-content {
  position: relative;
  max-width: 500px;
  max-height: 80vh;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: popupBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ad-popup-item img { width: 100%; height: auto; display: block; }
.ad-popup-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  z-index: 1;
}
.ad-popup-close:hover { background: var(--danger); transform: rotate(90deg); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popupBounce { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Between-content ads */
.ad-between-content {
  margin: 32px 0;
  text-align: center;
  padding: 20px;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}
.ad-between-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 0 auto; display: block; }

/* ---- Custom Dropdown Menu System ---- */
.dropdown {
  position: relative;
  display: inline-flex;
}
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  position: relative;
}
.dropdown-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-right: 4px;
  transition: transform var(--transition-fast);
  opacity: 0.6;
}
.dropdown.open .dropdown-trigger,
.dropdown-trigger:hover {
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
}
.dropdown.open .dropdown-trigger::after {
  transform: rotate(180deg);
  opacity: 1;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--border-radius);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-strong);
  border-bottom: none;
  border-left: none;
  transform: rotate(-45deg);
  border-radius: 2px 0 0 0;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: right;
}
.dropdown-item:hover {
  background: var(--accent-primary-glow);
  color: var(--accent-primary);
  padding-right: 18px;
}
.dropdown-item i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}
.dropdown-item:hover i { opacity: 1; }
.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}
.dropdown-header {
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Custom Select Dropdown (replaces native select) */
.custom-select {
  position: relative;
  width: 100%;
  font-family: var(--font-primary);
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 46px;
}
.custom-select-trigger:hover { border-color: var(--accent-primary); }
.custom-select.open .custom-select-trigger {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
}
.custom-select-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-right: 4px;
}
.custom-select.open .custom-select-trigger::after {
  transform: rotate(180deg);
  border-top-color: var(--accent-primary);
}
.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--border-radius);
  padding: 4px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
  max-height: 250px;
  overflow-y: auto;
}
.custom-select.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select-option {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.custom-select-option:hover {
  background: var(--accent-primary-glow);
  color: var(--accent-primary);
}
.custom-select-option.selected {
  background: var(--accent-primary-glow);
  color: var(--accent-primary);
  font-weight: 600;
}

/* Nav Dropdown (for header navigation) */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--border-radius);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-strong);
  border-bottom: none;
  border-left: none;
  transform: rotate(-45deg);
  border-radius: 2px 0 0 0;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.nav-dropdown-item:hover {
  background: var(--accent-primary-glow);
  color: var(--accent-primary);
  padding-right: 18px;
}
.nav-dropdown-item i { width: 18px; text-align: center; font-size: 0.85rem; }

/* Responsive: Hide sidebar ads on small screens */
@media (max-width: 1280px) {
  .ad-sidebar-float { display: none; }
}

/* ============================================
   Custom Select Dropdown (ic-select)
   Replaces native <select> with beautiful
   styled dropdown matching site design
   ============================================ */
.ic-select {
  position: relative;
  width: 100%;
  font-family: var(--font-primary);
  z-index: 50;
}
.ic-select.open {
  z-index: 100;
}
.ic-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color-strong);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 46px;
  gap: 10px;
  user-select: none;
}
.ic-select-trigger:hover {
  border-color: var(--accent-primary);
}
.ic-select.open .ic-select-trigger {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-glow);
  border-bottom-color: transparent;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.ic-select-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ic-select-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.ic-select.open .ic-select-arrow {
  transform: rotate(180deg);
  color: var(--accent-primary);
}
.ic-select-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--accent-primary);
  border-top: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
  overflow: hidden;
}
.ic-select.open .ic-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ic-select-options {
  max-height: 250px;
  overflow-y: auto;
  padding: 4px;
}
.ic-select-options::-webkit-scrollbar {
  width: 6px;
}
.ic-select-options::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 3px;
}
.ic-select-option {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ic-select-option:hover {
  background: var(--accent-primary-glow);
  color: var(--accent-primary);
}
.ic-select-option.selected {
  background: var(--accent-primary-glow);
  color: var(--accent-primary);
  font-weight: 600;
}
.ic-select-option.selected::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 6px;
  font-size: 0.75rem;
}

/* Style overrides for inline selects in admin */
.ic-select[style*="max-width"] .ic-select-trigger,
.ic-select[style*="width:auto"] .ic-select-trigger {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* ============================================
   Page Loader - Spinning Circle
   Shows until all page elements are loaded
   ============================================ */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-spinner {
  width: 48px;
  height: 48px;
}

.loader-svg {
  width: 100%;
  height: 100%;
  animation: loader-rotate 1s linear infinite;
}

.loader-circle {
  animation: loader-dash 1.5s ease-in-out infinite;
}

@keyframes loader-rotate {
  100% { transform: rotate(360deg); }
}

@keyframes loader-dash {
  0% { stroke-dasharray: 1 126; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 80 126; stroke-dashoffset: -40; }
  100% { stroke-dasharray: 1 126; stroke-dashoffset: -125; }
}

/* Prevent scrolling while loader is visible */
body:not(.page-ready) {
  overflow: hidden !important;
}
