/* ═══════════════════════════════════════════════════════════════
   Tech Talent League 
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --bg-base: #0b0b0f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(139, 92, 246, 0.08);
  --bg-nav: rgba(11, 11, 15, 0.92);
  --purple-400: #00f2ff;
  --purple-500: #00d4ff;
  --purple-600: #00a8cc;
  --purple-glow: rgba(0, 242, 255, 0.35);
  --pink-400: #f472b6;
  --text-primary: #f1f0ff;
  --text-secondary: #b8b8cc;
  --text-muted: #9a9aba;
  --border: rgba(0, 212, 255, 0.18);
  --border-bright: rgba(0, 212, 255, 0.55);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(.4, 0, .2, 1);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.25), 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(168, 85, 247, 0.09) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--purple-400);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--purple-400);
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-600);
  border-radius: 3px;
}

/* ── Navbar ── */
.navbar {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  color: #fff !important;
  -webkit-text-fill-color: initial;
  background: none;
}

.brand-text {
  background: linear-gradient(135deg, #fff, var(--purple-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--purple-400) !important;
  background: rgba(139, 92, 246, 0.1);
}

.navbar-toggler {
  border: 1px solid var(--border);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ── Buttons ── */
.btn-primary,
.btn-purple {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-purple::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover,
.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--purple-glow);
  color: #fff;
}

.btn-primary:hover::before,
.btn-purple:hover::before {
  opacity: 1;
}

.btn-outline-purple {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--purple-400);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn-outline-purple:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--purple-400);
  color: var(--purple-400);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}

.btn-danger {
  background: var(--danger);
  border: none;
}

.btn-success {
  background: var(--success);
  border: none;
}

.btn-warning {
  background: var(--warning);
  border: none;
  color: #000;
}

/* ── Cards ── */
.card,
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.card:hover,
.glass-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.card-header {
  background: rgba(139, 92, 246, 0.08);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  border-radius: var(--radius) var(--radius) 0 0 !important;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ── Forms ── */
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  transition: all var(--transition);
}

.form-control:focus,
.form-select:focus {
  background: rgba(139, 92, 246, 0.06);
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  color: var(--text-primary);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-select option {
  background: #1a1a2e;
  color: var(--text-primary);
}

.input-group-text {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border);
  color: var(--purple-400);
}

.form-check-input:checked {
  background-color: var(--purple-500);
  border-color: var(--purple-500);
}

/* ── Badges ── */
.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-approved {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-400);
  border: 1px solid var(--border-bright);
}

.badge-draft {
  background: rgba(107, 107, 128, 0.2);
  color: var(--text-muted);
  border: 1px solid rgba(107, 107, 128, 0.3);
}

.badge-custom {
  padding: 0.3em 0.75em;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Alerts ── */
.alert {
  border-radius: var(--radius-sm);
  border: none;
  padding: 0.85rem 1.2rem;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border-left: 3px solid var(--success);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-left: 3px solid var(--danger);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border-left: 3px solid var(--warning);
}

.alert-info {
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  border-left: 3px solid var(--info);
}

/* ── Stat Cards ── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-500), var(--pink-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.stat-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.1));
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Countdown Timer ── */
.countdown-wrap {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-block {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  text-align: center;
  min-width: 80px;
  box-shadow: 0 0 20px var(--purple-glow);
}

.countdown-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--purple-400);
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.countdown-expired {
  color: var(--danger);
  font-weight: 700;
}

/* ── Tables ── */
.table-dark-custom {
  background: transparent;
  color: var(--text-primary);
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-dark-custom thead th {
  background: rgba(139, 92, 246, 0.1);
  border-bottom: 1px solid var(--border-bright);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1rem;
}

.table-dark-custom tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 0.9rem;
}

.table-dark-custom tbody tr:hover td {
  background: rgba(139, 92, 246, 0.05);
}

.table-dark-custom tbody tr:last-child td {
  border-bottom: none;
}

/* ── Sidebar ── */
.sidebar {
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid var(--border);
  min-height: calc(100vh - 60px);
  padding: 1.5rem 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--purple-400);
  background: rgba(139, 92, 246, 0.08);
  border-left-color: var(--purple-500);
}

.sidebar-link i {
  width: 18px;
  text-align: center;
  font-size: 1rem;
}

.sidebar-section {
  padding: 0.5rem 1.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0.75rem 0 0.25rem;
}

/* ── Hero Section ── */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  color: var(--purple-400);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-400) 0%, var(--pink-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ── Progress Bar ── */
.progress {
  height: 6px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--purple-500), var(--pink-400));
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ── Competition Card ── */
.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.comp-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-500), var(--pink-400));
}

.comp-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.comp-card .prize {
  color: var(--purple-400);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ── Page Header ── */
.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 1.8rem;
}

/* ── File Upload Drop Zone ── */
.drop-zone {
  border: 2px dashed var(--border-bright);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  background: rgba(139, 92, 246, 0.03);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--purple-400);
  background: rgba(139, 92, 246, 0.08);
}

.drop-zone i {
  font-size: 2.5rem;
  color: var(--purple-400);
  margin-bottom: 1rem;
  display: block;
}

.drop-zone p {
  color: var(--text-secondary);
  margin: 0;
}

.drop-zone.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: var(--border);
  pointer-events: none;
}

/* ── Steps / Progress ── */
.steps {
  display: flex;
  gap: 0;
  margin-bottom: 2.5rem;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.step::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}

.step:last-child::after {
  display: none;
}

.step.done::after,
.step.active::after {
  background: var(--purple-500);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}

.step.done .step-num {
  background: var(--purple-500);
  color: #fff;
}

.step.active .step-num {
  background: var(--purple-400);
  color: #fff;
  box-shadow: 0 0 12px var(--purple-glow);
}

.step-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.step.active .step-label {
  color: var(--purple-400);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

/* ── Loading Spinner ── */
.spinner-purple {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--purple-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
  }

  50% {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-fade {
  animation: fadeIn 0.4s ease forwards;
}

.glow-pulse {
  animation: glow 2s ease-in-out infinite;
}

/* ── Utilities ── */
.text-purple {
  color: var(--purple-400) !important;
}

.text-muted-custom {
  color: var(--text-muted) !important;
}

.bg-glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.border-purple {
  border-color: var(--border-bright) !important;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .countdown-num {
    font-size: 1.6rem;
  }

  .countdown-block {
    min-width: 65px;
    padding: 0.75rem 0.5rem;
  }

  .sidebar {
    min-height: unset;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .page-header h1 {
    font-size: 1.4rem;
  }

  .card-body {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .steps {
    display: none;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .comp-card {
    padding: 1.25rem;
  }
}

/* ── Table Responsive Wrapper ── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
}

/* ── Admin Specific ── */
.admin-topbar {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Summernote Dark Fix */
.note-editor.note-frame {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.note-editable {
  background: transparent !important;
  color: #ffffff !important;
}

.note-editor .note-toolbar {
  background: rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.note-btn {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.note-btn:hover {
  background: rgba(139, 92, 246, 0.2) !important;
}

.note-dropdown-menu {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.note-dropdown-item {
  color: #ffffff !important;
}

.note-dropdown-item:hover {
  background: rgba(139, 92, 246, 0.2) !important;
}

.note-modal-content {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
  }

  .admin-content {
    padding: 1rem;
  }
}

/* ── Rules Section ── */
.rules-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.rule-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 0.5rem;
}

.rule-item:last-child {
  margin-bottom: 0;
}

.rule-dot {
  width: 8px;
  height: 8px;
  background: var(--purple-400);
  border-radius: 50%;
  margin-top: 0.6rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--purple-glow);
}

.rule-content {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.rules-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--purple-400), transparent);
}

/* ── Leaderboard Section ── */
.leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-bright);
}

.table-active-user {
  background: rgba(139, 92, 246, 0.1) !important;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.rank-2 {
  background: linear-gradient(135deg, #c0c0c0, #708090);
  color: #000;
  box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}

.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #8b4513);
  color: #fff;
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.4);
}

.rank-number {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 0.5rem;
}

.table-dark-custom tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Premium Rules Layout */
.rule-heading {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--purple-400);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  margin-top: 1.5rem !important;
}

.rule-item-v2 {
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.rule-item-v2:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rule-text {
  line-height: 1.6;
}

/* Rich Content Styling */
.rich-content h1,
.rich-content h2,
.rich-content h3 {
  color: var(--purple-400);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.rich-content h4,
.rich-content h5,
.rich-content h6 {
  color: var(--text-primary);
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.rich-content ul,
.rich-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.rich-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.rich-content a {
  color: var(--purple-400);
  text-decoration: underline;
}

.rich-content p {
  margin-bottom: 1rem;
}