
:root{
  --amu-purple:#7c3aed;
  --amu-purple-2:#9f67ff;
  --amu-black:#0b0b0f;
  --amu-gray:#16161D;
  --bs-body-bg: var(--amu-black);
  --bs-body-color: #e9e9f1;
  --bs-link-color: var(--amu-purple-2);
}

/* Background with subtle gradients */
body {
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(124,58,237,.18), transparent),
    radial-gradient(900px 600px at 10% 110%, rgba(159,103,255,.12), transparent),
    var(--amu-black);
     
}

/* Glassy navbar */
.glass-nav {
  background: rgba(15, 15, 20, .6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124,58,237,.3);
}
.brand-logo { font-weight: 800; letter-spacing: .6px; }

/* Bordered nav buttons */
.nav-btn {
  border: 1px solid rgba(124,58,237,.75);
  color: #e9e9f1;
  padding: .45rem .9rem;
  border-radius: .75rem;
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease;
  text-decoration: none;
  display: inline-flex; align-items: center; gap:.4rem;
}
.nav-btn:hover {
  background: linear-gradient(180deg, rgba(124,58,237,.18), rgba(124,58,237,.08));
  box-shadow: 0 0 0 .2rem rgba(124,58,237,.15);
  transform: translateY(-1px);
  color: #fff;
}
.nav-btn.active { background: rgba(124,58,237,.28); color: #fff; }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  border: 1px solid rgba(124,58,237,.22);
  background: linear-gradient(180deg, rgba(124,58,237,.10), rgba(15,15,20,.4));
  border-radius: 1.25rem;
  overflow: hidden;
}
.aurora {
  position: absolute; inset: -10% -10% auto auto; height: 540px; width: 540px;
  background: radial-gradient(closest-side, rgba(124,58,237,.25), transparent 70%);
  filter: blur(14px); z-index: -1; animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(20px, -30px) rotate(0deg) scale(1); }
  to   { transform: translate(-40px, 10px) rotate(15deg) scale(1.1); }
}

.badge-soft {
  background: rgba(124,58,237,.18);
  border: 1px solid rgba(124,58,237,.35);
  color: #fff;
}

/* Cards & containers */
.card.amubox { background: var(--amu-gray); border: 1px solid rgba(124,58,237,.18); }
.hover-3d { transition: transform .2s ease, box-shadow .2s ease; }
.hover-3d:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(124,58,237,.15); }

/* Latest Updates Box - Reduced spacing */
.latest-updates-box {
  border-width: 1px !important;
  border-color: rgba(124, 58, 237, 0.25) !important;
}

.latest-updates-box .card-body {
  padding: 0.5rem 0.875rem !important;
}

.latest-updates-box h5 {
  margin-bottom: 0.5rem !important;
  font-size: 0.95rem;
}

.latest-updates-box ul li {
  margin-bottom: 0.225rem !important;
  padding-bottom: 0.225rem !important;
}

.latest-updates-box ul li:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* Right Column Wrapper - For alignment */
.right-column-wrapper {
  gap: 0.75rem;
  justify-content: flex-start;
}

.right-column-wrapper > * {
  flex-shrink: 0;
}

/* Ensure Latest Updates and Social boxes match stat-item styling */
.latest-updates-box,
.social-box {
  border-radius: 12px;
}

.latest-updates-box:hover,
.social-box:hover {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 
    0 8px 20px rgba(124, 58, 237, 0.3),
    0 0 30px rgba(124, 58, 237, 0.2);
}

/* Latest Updates Box - Reduced spacing */
.latest-updates-box {
  border-width: 1px !important;
  border-color: rgba(124, 58, 237, 0.25) !important;
}

.latest-updates-box .card-body {
  padding: 0.5rem 0.875rem !important;
}

.latest-updates-box h5 {
  margin-bottom: 0.5rem !important;
  font-size: 0.95rem;
}

.latest-updates-box ul li {
  margin-bottom: 0.625rem !important;
  padding-bottom: 0.625rem !important;
}

.latest-updates-box ul li:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* Social Boxes (Discord & Facebook) - Shared Styles */
.social-box {
  background: var(--amu-gray);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 58, 237, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.social-box:hover {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 
    0 8px 25px rgba(124, 58, 237, 0.3),
    0 0 40px rgba(124, 58, 237, 0.2);
  transform: translateY(-2px) scale(1.02);
}

.social-box:hover::before {
  left: 100%;
}

.social-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
}

.social-link:hover {
  text-decoration: none;
  color: inherit;
}

.social-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.social-box:hover .social-icon-wrapper {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.social-icon {
  font-size: 2rem;
  transition: all 0.3s ease;
}

.social-box:hover .social-icon {
  transform: scale(1.1);
}

.social-text {
  flex: 1;
  text-align: left;
}

.social-text h5 {
  color: #ffffff;
  font-weight: 600;
  transition: color 0.3s ease;
}

.social-box:hover .social-text h5 {
  color: #c4a1ff;
}

.social-text small {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.social-box:hover .social-text small {
  color: rgba(196, 161, 255, 0.8);
}

.social-arrow {
  font-size: 1.25rem;
  color: rgba(196, 161, 255, 0.6);
  transition: all 0.3s ease;
}

.social-box:hover .social-arrow {
  color: #c4a1ff;
  transform: translateX(5px);
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6));
}

/* Discord Box Specific */
.discord-box .social-icon-wrapper {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(124, 58, 237, 0.2));
}

.discord-box:hover .social-icon-wrapper {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.4), rgba(124, 58, 237, 0.4));
}

.discord-box .social-icon {
  color: #5865f2;
  filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.4));
}

.discord-box:hover .social-icon {
  color: #7289da;
  filter: drop-shadow(0 0 15px rgba(88, 101, 242, 0.8));
}

/* Discord Statistics */
.discord-stats {
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  text-align: center;
}

.discord-stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #e9e9f1;
}

.discord-stat-online {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4caf50;
  font-weight: 600;
}

.discord-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.8);
  animation: discordPulse 2s ease-in-out infinite;
}

@keyframes discordPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.discord-stat-separator {
  color: rgba(124, 58, 237, 0.5);
  font-weight: 300;
}

.discord-stat-total {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #c4a1ff;
  font-weight: 600;
}

.discord-stat-total i {
  color: #9f67ff;
  font-size: 0.95rem;
}

/* Responsive Discord Stats */
@media (max-width: 768px) {
  .discord-stat-item {
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  
  .discord-stats {
    padding: 0.625rem;
  }
}

/* Facebook Box Specific */
.facebook-box .social-icon-wrapper {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.2), rgba(124, 58, 237, 0.2));
}

.facebook-box:hover .social-icon-wrapper {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.4), rgba(124, 58, 237, 0.4));
}

.facebook-box .social-icon {
  color: #1877f2;
  filter: drop-shadow(0 0 8px rgba(24, 119, 242, 0.4));
}

.facebook-box:hover .social-icon {
  color: #42a5f5;
  filter: drop-shadow(0 0 15px rgba(24, 119, 242, 0.8));
}

/* Responsive Social Boxes */
@media (max-width: 992px) {
  .right-column-wrapper {
    gap: 0.625rem;
  }
  
  .social-box .card-body {
    padding: 0.875rem !important;
  }
  
  .social-icon-wrapper {
    width: 40px;
    height: 40px;
  }
  
  .social-icon {
    font-size: 1.75rem;
  }
  
  .social-text h5 {
    font-size: 1rem;
  }
  
  .social-text small {
    font-size: 0.8rem;
  }
  
  .latest-updates-box .card-body {
    padding: 0.5rem 0.75rem !important;
  }
}

@media (max-width: 768px) {
  .right-column-wrapper {
    gap: 0.75rem;
  }
  
  .social-link > div {
    flex-direction: column;
    gap: 1rem !important;
    text-align: center;
  }
  
  .social-text {
    text-align: center;
  }
  
  .social-arrow {
    display: none;
  }
  
  .social-icon-wrapper {
    width: 56px;
    height: 56px;
  }
  
  .social-icon {
    font-size: 2.25rem;
  }
}

/* Primary button */
.btn-amu {
  background: linear-gradient(90deg, #6c32ff, #b083ff);
  border: none;
  color: #fff;
  border-radius: .9rem;
  transition: all 0.3s ease;
}
.btn-amu:hover {
  box-shadow: 0 0 15px rgba(183, 120, 255, 0.8);
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Border Purple */
.border-purple {
  border-color: #7a42ff !important;
}
.soft-outline { border-color: rgba(124,58,237,.5) !important; border-radius: .9rem; }

/* Status badge */
.status-badge {
  background: rgba(56,142,60,.25); 
  border:1px solid rgba(76,175,80,.45);
}

/* Live bar (ticker) */
.livebar-wrap { border-top: 1px solid rgba(124,58,237,.18); border-bottom: 1px solid rgba(124,58,237,.18); background: rgba(15,15,20,.5); }
.livebar {
  white-space: nowrap; overflow: hidden; display: block; padding:.5rem 0;
  animation: ticker 28s linear infinite;
}
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Modal glass */
.modal-glass {
  background: rgba(22,22,29,.96);
  border: 1px solid rgba(124,58,237,.35);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* Footer */
footer { border-top: 1px solid rgba(124,58,237,.25); }

.text-gradient-purple{
  background: linear-gradient(90deg, #b08cff, #7c3aed 60%, #d1c2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Stage System Module */
.stage-system-wrapper {
  position: relative;
  margin-right: 1.5rem; /* Add separation from nav buttons */
  padding-right: 1.5rem; /* Visual separator */
  border-right: 1px solid rgba(124, 58, 237, 0.2); /* Visual divider */
}

.stage-system-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(124, 58, 237, 0.15));
  border: 2px solid rgba(124, 58, 237, 0.6);
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
  position: relative;
  overflow: hidden;
}

.stage-system-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.stage-system-btn:hover::before {
  left: 100%;
}

.stage-system-btn:hover,
.stage-system-btn:focus,
.stage-system-btn.show {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(124, 58, 237, 0.25));
  border-color: rgba(124, 58, 237, 0.9);
  color: #fff;
  box-shadow: 
    0 0 25px rgba(124, 58, 237, 0.5),
    0 0 40px rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.stage-system-icon {
  font-size: 1.25rem;
  color: #c4a1ff;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6));
  transition: all 0.3s ease;
}

.stage-system-btn:hover .stage-system-icon,
.stage-system-btn.show .stage-system-icon {
  color: #ffffff;
  filter: drop-shadow(0 0 12px rgba(196, 161, 255, 0.8));
  transform: scale(1.1);
}

.stage-system-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}

.stage-indicator {
  color: #ffc107;
  font-weight: 700;
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.6);
}

.stage-dropdown-icon {
  font-size: 0.75rem;
  color: rgba(196, 161, 255, 0.7);
  transition: transform 0.3s ease, color 0.3s ease;
}

.stage-system-btn.show .stage-dropdown-icon {
  transform: rotate(180deg);
  color: #c4a1ff;
}

/* Remove old countdown styles from button */
.stage-system-content {
  display: none; /* Hidden - timer moved to dropdown */
}

.stage-countdown {
  display: none; /* Hidden - timer moved to dropdown */
}

@keyframes pulseRed {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
  }
  50% {
    opacity: 0.8;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
  }
}

/* Stage Dropdown Menu */
.stage-dropdown-menu {
  background: rgba(22, 22, 29, 0.98);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 12px;
  padding: 0;
  min-width: 400px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(124, 58, 237, 0.3);
  backdrop-filter: blur(10px);
  margin-top: 0.5rem !important;
  animation: dropdownFadeIn 0.3s ease;
}

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

.stage-dropdown-header {
  padding: 1rem 1.25rem;
  background: rgba(124, 58, 237, 0.15);
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}

.current-stage-info {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.current-stage-info strong {
  color: #c4a1ff;
}

.current-stage-info span {
  color: #ffc107;
  font-weight: 700;
}

.current-stage-timer {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(233, 233, 241, 0.9);
  font-family: 'Courier New', monospace;
  font-weight: 600;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  margin-top: 0.5rem;
}

.current-stage-timer i {
  color: #9f67ff;
  font-size: 1rem;
}

.current-stage-timer.urgent {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.4);
  animation: pulseRed 1s ease-in-out infinite;
  background: rgba(255, 107, 107, 0.1);
}

.current-stage-timer.urgent i {
  color: #ff6b6b;
}

.current-stage-timer span {
  font-weight: 700;
  margin-left: 0.25rem;
}

.stage-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  transition: all 0.2s ease;
}

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

.stage-item:hover {
  background: rgba(124, 58, 237, 0.1);
}

.stage-item.active {
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid #ffc107;
}

.stage-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.stage-item-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.stage-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stage-badge-active {
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.5);
  color: #ffc107;
}

.stage-badge:not(.stage-badge-active) {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #9f67ff;
}

.stage-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stage-detail-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(233, 233, 241, 0.8);
}

.stage-detail-row i {
  color: #c4a1ff;
  width: 18px;
  text-align: center;
}

.stage-detail-row strong {
  color: #ffffff;
}

/* Responsive Stage System */
@media (max-width: 991px) {
  .stage-system-wrapper {
    order: -1;
    width: 100%;
    margin-bottom: 1rem;
    margin-right: 0;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    padding-bottom: 1rem;
  }
  
  .stage-system-btn {
    width: 100%;
    justify-content: space-between;
  }
  
  .stage-dropdown-menu {
    min-width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .stage-system-text {
    font-size: 0.9rem;
  }
  
  .stage-dropdown-menu {
    min-width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
  }
}

/* Login button */
.btn-login {
  margin-left: 1rem;
  background: linear-gradient(180deg, rgba(124,58,237,.9), rgba(124,58,237,.65));
  border: 1px solid rgba(124,58,237,.35);
  color: #fff;
  padding: .5rem 1.2rem;
  border-radius: .9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease, border-color .2s ease;
}
.btn-login:hover {
  filter: brightness(1.1);
  border-color: rgba(124,58,237,.6);
  box-shadow: 0 0 0 .2rem rgba(124,58,237,.2);
  transform: translateY(-1px);
  color: #fff;
}
.btn-login:active {
  transform: translateY(0);
}

/* Login Form Styling */
.form-control-dark {
  background: rgba(15, 15, 20, .6);
  border: 1px solid rgba(124,58,237,.3);
  color: #e9e9f1;
  border-radius: .75rem;
  padding: .6rem .9rem;
}
.form-control-dark:focus {
  background: rgba(15, 15, 20, .8);
  border-color: rgba(124,58,237,.6);
  color: #fff;
  box-shadow: 0 0 0 .2rem rgba(124,58,237,.2);
}
.form-control-dark::placeholder {
  color: rgba(233,233,241,.5);
}

.link-forgot {
  text-decoration: none;
  transition: color .2s ease;
}
.link-forgot:hover {
  color: var(--amu-purple-2) !important;
}

/* Dashboard Container */
.dashboard-container {
  min-height: calc(100vh - 200px);
  animation: fadeIn 0.5s ease-in;
}

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

/* Character Avatar */
.character-avatar {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,58,237,.1);
  border-radius: 50%;
  border: 2px solid rgba(124,58,237,.3);
  position: relative;
  overflow: hidden;
}
.character-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
#characterIcon {
  display: block;
}

/* Dashboard Menu Items */
.dashboard-menu-item {
  display: flex;
  align-items: center;
  padding: .75rem 1rem;
  background: rgba(15, 15, 20, .4);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: .75rem;
  color: #e9e9f1;
  text-decoration: none;
  transition: all .2s ease;
  margin-bottom: .5rem;
}
.dashboard-menu-item:hover {
  background: rgba(124,58,237,.15);
  border-color: rgba(124,58,237,.4);
  color: #fff;
  transform: translateX(4px);
  text-decoration: none;
}
.dashboard-menu-item i {
  color: var(--amu-purple-2);
}

/* Dashboard Button */
.dashboard-btn {
  background: linear-gradient(90deg, #6a00ff, #9b5de5);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.dashboard-btn:hover {
  box-shadow: 0 0 10px rgba(155, 93, 229, 0.8);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
  filter: brightness(1.1);
}

/* Fade transition for main content */
#mainContent {
  transition: opacity 0.3s ease;
}
#mainContent.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Login Error Alert */
.alert-danger {
  background: rgba(220, 53, 69, .15);
  border: 1px solid rgba(220, 53, 69, .4);
  color: #ff6b6b;
  border-radius: .75rem;
}

/* Ranking Table Styles - Black Background with White Text */
.ranking-table {
  background: rgba(15, 15, 25, 0.8);
  border-radius: 12px;
  color: #ffffff;
  border: 1px solid rgba(140, 80, 255, 0.4) !important;
  overflow: hidden; /* Keep for rounded corners */
  border-collapse: collapse !important;
  width: 100%;
  border-spacing: 0;
  table-layout: fixed; /* Fixed layout for consistent column widths */
}

/* Override Bootstrap table defaults */
.ranking-table.table {
  border-collapse: collapse !important;
  border-spacing: 0;
  border: none !important;
}

.ranking-table thead th {
  color: #b693ff;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: none !important; /* Remove all header borders */
  padding: 1rem 0.75rem;
  background: rgba(0, 0, 0, 0.8);
  margin: 0;
}

/* Class icon styling */
.class-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid rgba(120, 60, 255, 0.3);
  background: rgba(20, 20, 35, 0.5);
  padding: 2px;
}

/* Rank column - fixed width and center alignment */
.ranking-table thead th:first-child,
.ranking-table tbody td:first-child {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  text-align: center;
  padding-left: 1rem; /* Indent toward Character column */
  padding-right: 1.5rem; /* Spacing before Character column */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  line-height: 1.5;
}

.ranking-table tbody td:first-child {
  white-space: nowrap;
  word-break: keep-all;
  display: table-cell;
}

.ranking-table tbody td {
  color: #ffffff;
  vertical-align: middle;
  padding: 0.75rem;
  border: none !important; /* Remove all cell borders */
  margin: 0;
}

.ranking-table tbody tr {
  border: none !important; /* Remove row borders */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(15px);
  position: relative;
  background: #000000;
  margin: 0;
}

.ranking-table tbody tr.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth Glow and Bounce Effect on Hover */
.ranking-table tbody tr:hover {
  background: rgba(20, 20, 20, 0.95) !important;
  box-shadow: 
    0 0 30px rgba(255, 255, 255, 0.3),
    0 0 60px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: rowBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rowBounce {
  0%, 100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(-4px);
  }
}

.ranking-table tbody tr:hover td {
  color: #ffffff;
}

/* Keep regular hero names white on hover */
.ranking-table tbody tr:hover td:not(.premium-player) {
  color: #ffffff !important;
}

/* Keep premium player golden gradient even on hover */
.ranking-table tbody tr:hover .premium-player {
  background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Character name styling - Regular players use white color */
.ranking-table tbody td:not(.premium-player) {
  color: #ffffff;
}

/* Character name column - ensure even alignment */
.ranking-table tbody td:nth-child(2) {
  text-align: left;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  position: relative; /* For absolute positioning of star emoji */
  font-weight: 500;
  line-height: 1.5;
  display: table-cell;
  vertical-align: middle;
}

.ranking-table thead th:nth-child(2) {
  text-align: left;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Premium player names - same padding as regular names, only color changes */
.ranking-table tbody td:nth-child(2).premium-player {
  padding-left: 0.75rem; /* Same padding as regular names */
  font-weight: 700;
}

/* Hero Name Bounce Animation */
@keyframes heroBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-4px) scale(1.05);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
  }
  75% {
    transform: translateY(-3px) scale(1.03);
  }
}

.hero-name.bounce-hover {
  animation: heroBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ensure premium players bounce correctly */
.premium-player.bounce-hover {
  animation: heroBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), premiumShine 3s ease-in-out infinite;
}

/* Premium Player VIP Styling - Golden Gradient (color only, no shifting) */
.premium-player {
  background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  display: inline-block;
  animation: premiumShine 3s ease-in-out infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 12px rgba(255, 165, 0, 0.6));
  vertical-align: baseline;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Premium Player Shine Animation */
@keyframes premiumShine {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes starPulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.9;
  }
}

/* Enhanced fade-in animation for rows */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ranking-table tbody tr.ranking-row.visible {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Pagination Container */
.pagination-container {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
}

.pagination-wrapper {
  flex-wrap: nowrap;
  gap: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pagination Buttons */
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  min-width: 44px;
  width: auto;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  vertical-align: middle;
  box-sizing: border-box;
}

.pagination-btn:hover:not(.disabled):not(.pagination-active) {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.pagination-btn.pagination-active {
  background: rgba(124, 58, 237, 0.4);
  border-color: rgba(124, 58, 237, 0.8);
  color: #ffffff;
  font-weight: 700;
  cursor: default;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-btn i {
  font-size: 0.9rem;
}

.pagination-prev,
.pagination-next {
  padding: 0.5rem 1.25rem;
  gap: 0.5rem;
}

/* Pagination Ellipsis */
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  vertical-align: middle;
  min-width: 20px;
}
.table tbody tr:hover {
  background: rgba(120, 60, 200, 0.1);
  transition: 0.3s ease;
}

.table thead th {
  color: #b997ff;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-bottom: 2px solid rgba(124, 58, 237, 0.3);
}

.table thead th small.text-muted {
  font-size: 0.7rem;
  display: block;
  margin-top: 2px;
  text-transform: none;
  font-weight: normal;
  opacity: 0.7;
}

.table tbody td {
  color: #e9e9f1;
  vertical-align: middle;
}

.table tbody tr {
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

/* Stats Section */
.stats-section {
  margin-top: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-width: 180px;
  flex: 1;
  max-width: 250px;
}

.stat-item:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.6);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 20px rgba(124, 58, 237, 0.3),
    0 0 30px rgba(124, 58, 237, 0.2);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 10px;
  font-size: 1.5rem;
  color: #c4a1ff;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover .stat-icon {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(124, 58, 237, 0.3));
  border-color: rgba(124, 58, 237, 0.8);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}

.stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.stat-item:hover .stat-value {
  color: #c4a1ff;
  text-shadow: 0 0 10px rgba(196, 161, 255, 0.5);
}

/* Alternative Stat Box Styling (optional) */
.stat-box {
  background: rgba(15, 15, 30, 0.9);
  border: 1px solid rgba(120, 60, 255, 0.5);
  box-shadow: 0 0 15px rgba(120, 60, 255, 0.2);
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.stat-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
  border-color: rgba(255, 215, 0, 0.8);
}

/* Server Info Section - Compact Size */
.server-info-section {
  margin-top: 1.5rem;
}

.server-info-section .stat-item {
  min-width: 200px;
  padding: 0.75rem 1.25rem; /* Reduced from 1rem 1.5rem */
}

.server-info-section .stat-icon {
  width: 40px; /* Reduced from 48px */
  height: 40px; /* Reduced from 48px */
  font-size: 1.2rem; /* Reduced from 1.5rem */
}

.server-info-section .stat-label {
  font-size: 0.75rem; /* Reduced from 0.85rem */
}

.server-info-section .stat-value {
  font-size: 1.25rem; /* Reduced from 1.5rem */
}

/* Server Status Indicator - Smaller */
.server-info-section .status-indicator {
  width: 12px; /* Reduced from 16px */
  height: 12px; /* Reduced from 16px */
}

/* Online Players Progress Bar - Compact */
.server-info-section .players-progress-container {
  margin-top: 0.5rem; /* Reduced from 0.75rem */
}

.server-info-section .players-progress-bar {
  height: 6px; /* Reduced from 8px */
  margin-bottom: 0.4rem; /* Reduced from 0.5rem */
}

.server-info-section .players-progress-text {
  font-size: 0.7rem; /* Reduced from 0.75rem */
}

/* Server Time Card Special Styling */
.server-time-card .stat-value {
  font-family: 'Courier New', monospace;
  letter-spacing: 1.5px; /* Reduced from 2px */
}

/* Server Status Indicator */
.status-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  animation: statusPulse 2s ease-in-out infinite;
  position: relative;
}

.status-indicator.online {
  background: #4caf50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.8), 0 0 20px rgba(76, 175, 80, 0.4);
}

.status-indicator.offline {
  background: #f44336;
  box-shadow: 0 0 10px rgba(244, 67, 54, 0.8), 0 0 20px rgba(244, 67, 54, 0.4);
}

.status-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.5;
  animation: statusRipple 2s ease-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes statusRipple {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.status-text {
  text-transform: capitalize;
}

/* Online Players Progress Bar */
.players-progress-container {
  margin-top: 0.75rem;
  width: 100%;
}

.players-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.5rem;
}

.players-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4caf50, #66bb6a);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease, box-shadow 0.5s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

.players-progress-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.players-progress-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-weight: 500;
}

/* Server Time Card Special Styling */
.server-time-card .stat-value {
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stat-item {
    min-width: 100%;
    max-width: 100%;
  }
  
  .server-info-section .stat-item {
    min-width: 100%;
  }
}

/* Castle Siege Owner Section */
.castle-siege-section {
  width: 100%;
}

.castle-siege-card {
  min-width: 100%;
  max-width: 100%;
  padding: 1.5rem;
  background: rgba(15, 15, 25, 0.85);
  background-image: url('/images/eventimg/csiege5.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  border: 2px solid rgba(124, 58, 237, 0.6);
  border-radius: 12px;
  box-shadow: 
    0 0 15px rgba(124, 58, 237, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.castle-siege-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  border-radius: 12px;
  z-index: 0;
}

.castle-siege-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.castle-siege-card:hover {
  border-color: rgba(124, 58, 237, 1);
  box-shadow: 
    0 8px 30px rgba(124, 58, 237, 0.5),
    0 0 50px rgba(124, 58, 237, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  background: rgba(15, 15, 25, 0.85);
  background-image: url('/images/eventimg/csiege5.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.castle-siege-card:hover::after {
  background: rgba(0, 0, 0, 0.45);
}

.castle-siege-card:hover::before {
  opacity: 1;
}

.castle-siege-content {
  text-align: left;
  position: relative;
  z-index: 2;
}

.castle-siege-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.castle-siege-title i {
  color: #c4a1ff;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6));
}

.castle-siege-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.guild-logo-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  border: 2px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 2;
}

.castle-siege-card:hover .guild-logo-wrapper {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
  transform: scale(1.05);
}

.guild-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guild-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(196, 161, 255, 0.5);
}

/* Guild Emblem Styles */
.guild-emblem-wrapper {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 2;
}

.guild-emblem {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 10px;
  background-color: rgba(20, 20, 40, 0.7);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(255, 193, 7, 0.6) !important;
  padding: 4px;
}

.guild-emblem:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  border-color: rgba(255, 193, 7, 1) !important;
}

.castle-siege-card:hover .guild-emblem-wrapper {
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.5);
}

.guild-emblem-placeholder {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(196, 161, 255, 0.5);
  background: rgba(124, 58, 237, 0.1);
  border-radius: 10px;
  border: 2px solid rgba(255, 193, 7, 0.3);
}

/* Guild Logo Grid (8×8) */
.guild-logo-grid {
  display: grid;
  grid-template-columns: repeat(8, 8px);
  grid-template-rows: repeat(8, 8px);
  gap: 1px;
  width: 96px;
  height: 96px;
  background: rgba(20, 20, 40, 0.7);
  border: 2px solid rgba(255, 193, 7, 0.6);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  justify-content: center;
  align-content: center;
}

.guild-logo-grid:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  border-color: rgba(255, 193, 7, 1);
}

.guild-logo-cell {
  width: 8px;
  height: 8px;
  background-color: #000000;
  border: none;
  margin: 0;
  padding: 0;
}

.guild-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
  position: relative;
  z-index: 2;
}

/* Castle Owner Guild - Gold styling with pulse animation */
.castle-owner-guild {
  color: #ffd86b !important;
  text-shadow: 
    0 0 10px rgba(255, 216, 107, 0.8),
    0 0 20px rgba(255, 216, 107, 0.5),
    0 0 30px rgba(255, 216, 107, 0.3);
  font-weight: 900;
  animation: castleOwnerPulse 3s ease-in-out infinite;
}

@keyframes castleOwnerPulse {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(255, 216, 107, 0.8),
      0 0 20px rgba(255, 216, 107, 0.5),
      0 0 30px rgba(255, 216, 107, 0.3);
    transform: scale(1);
  }
  50% {
    text-shadow: 
      0 0 15px rgba(255, 216, 107, 1),
      0 0 25px rgba(255, 216, 107, 0.7),
      0 0 35px rgba(255, 216, 107, 0.5);
    transform: scale(1.02);
  }
}

.guild-master-name {
  font-size: 1.1rem;
  color: #e9e9f1;
  position: relative;
  z-index: 2;
}

.guild-master-name strong {
  color: #ffffff;
}

.guild-master-name .text-gradient-purple {
  font-weight: 700;
  font-size: 1.2rem;
}

/* Castle Timer Section */
.castle-event-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.castle-event-display:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateX(5px);
}

.event-icon-wrapper {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.event-content {
  flex: 1;
}

.event-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0.25rem;
  opacity: 0.7;
}

.event-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
}

.event-countdown {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* Current Event - Gold Theme */
.castle-event-display.current-event {
  border-color: rgba(255, 193, 7, 0.3);
  background: rgba(255, 193, 7, 0.05);
}

.castle-event-display.current-event:hover {
  border-color: rgba(255, 193, 7, 0.5);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
}

.castle-event-display.current-event .event-icon-wrapper {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.castle-event-display.current-event .event-label {
  color: rgba(255, 193, 7, 0.8);
}

.castle-event-display.current-event .event-name {
  color: #ffc107;
  text-shadow: 
    0 0 10px rgba(255, 193, 7, 0.6),
    0 0 20px rgba(255, 193, 7, 0.4);
  animation: goldGlow 2s ease-in-out infinite;
}

.castle-event-display.current-event .event-countdown {
  color: rgba(255, 193, 7, 0.9);
}

@keyframes goldGlow {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(255, 193, 7, 0.6),
      0 0 20px rgba(255, 193, 7, 0.4);
  }
  50% {
    text-shadow: 
      0 0 15px rgba(255, 193, 7, 0.8),
      0 0 30px rgba(255, 193, 7, 0.6),
      0 0 40px rgba(255, 193, 7, 0.4);
  }
}

/* Next Event - Purple Theme */
.castle-event-display.next-event {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.05);
}

.castle-event-display.next-event:hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.castle-event-display.next-event .event-icon-wrapper {
  background: rgba(124, 58, 237, 0.2);
  color: #9f67ff;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.castle-event-display.next-event .event-label {
  color: rgba(196, 161, 255, 0.8);
}

.castle-event-display.next-event .event-name {
  color: #c4a1ff;
  text-shadow: 
    0 0 10px rgba(124, 58, 237, 0.6),
    0 0 20px rgba(124, 58, 237, 0.4);
  animation: purpleGlow 2s ease-in-out infinite;
}

.castle-event-display.next-event .event-countdown {
  color: #9f67ff;
  font-family: 'Courier New', monospace;
}

@keyframes purpleGlow {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(124, 58, 237, 0.6),
      0 0 20px rgba(124, 58, 237, 0.4);
  }
  50% {
    text-shadow: 
      0 0 15px rgba(124, 58, 237, 0.8),
      0 0 30px rgba(124, 58, 237, 0.6),
      0 0 40px rgba(124, 58, 237, 0.4);
  }
}

/* Hall of Fame Section */
.hall-of-fame-section {
  width: 100%;
}

.hall-of-fame-card {
  min-width: 100%;
  max-width: 100%;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(124, 58, 237, 0.4);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hall-of-fame-card:hover {
  border-color: rgba(124, 58, 237, 0.8);
  box-shadow: 
    0 8px 30px rgba(124, 58, 237, 0.4),
    0 0 40px rgba(124, 58, 237, 0.2);
}

.hall-of-fame-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hall-of-fame-title i {
  color: #ffd700;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.hof-winners-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.hof-winner-item {
  position: relative;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hof-winner-item:hover {
  transform: scale(1.1);
  z-index: 10;
}

.hof-winner-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #d4af37;
  text-align: center;
  text-shadow: 
    0 0 8px rgba(212, 175, 55, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hof-winner-item:hover .hof-winner-name {
  color: #c7a0ff;
  text-shadow: 
    0 0 12px rgba(199, 160, 255, 0.8),
    0 0 20px rgba(124, 58, 237, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.hof-portrait-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 215, 0, 0.5);
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hof-winner-item:hover .hof-portrait-wrapper {
  border-color: rgba(255, 215, 0, 0.9);
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.6),
    0 4px 20px rgba(0, 0, 0, 0.7);
  transform: scale(1.05);
}

.hof-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hof-portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(196, 161, 255, 0.5);
}

.hof-crown {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 5;
  animation: crownPulse 2s ease-in-out infinite;
}

.hof-crown i {
  font-size: 0.9rem;
  color: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.8));
}

@keyframes crownPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  }
}

.hof-winner-item:hover .hof-crown {
  animation: crownPulse 0.5s ease-in-out infinite;
  transform: scale(1.15);
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
  .castle-siege-card,
  .hall-of-fame-card {
    padding: 1.25rem;
  }
  
  .guild-logo-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .guild-name {
    font-size: 1.25rem;
  }
  
  .guild-master-name {
    font-size: 1rem;
  }
  
  .castle-schedule-table-wrapper {
    font-size: 0.85rem;
  }
  
  .castle-schedule-table thead th,
  .castle-schedule-table tbody td {
    padding: 0.5rem 0.75rem;
  }
  
  .castle-timer-section {
    font-size: 0.9rem;
  }
  
  .castle-event-display {
    padding: 0.875rem 1rem;
  }
  
  .event-icon-wrapper {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .event-name {
    font-size: 1.1rem;
  }
  
  .event-countdown {
    font-size: 0.85rem;
  }
  
  .hof-portrait-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .hof-crown {
    width: 24px;
    height: 24px;
    top: -6px;
    right: -6px;
  }
  
  .hof-crown i {
    font-size: 0.75rem;
  }
  
  .hof-winners-container {
    gap: 0.75rem;
  }
  
  .hof-winner-name {
    font-size: 0.8rem;
    max-width: 80px;
  }
}

/* Media Section */
.media-section {
  margin-top: 3rem;
}

.media-section h3 {
  color: #ffffff;
  font-weight: 600;
}

.media-section .text-gradient-purple {
  background: linear-gradient(90deg, #b08cff, #7c3aed 60%, #d1c2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Media Cards */
.media-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  border-color: rgba(124, 58, 237, 0.6);
  transform: translateY(-5px);
  box-shadow: 
    0 10px 30px rgba(124, 58, 237, 0.3),
    0 0 40px rgba(124, 58, 237, 0.2);
}

/* Video Cards */
.video-card {
  background: rgba(0, 0, 0, 0.6);
}

.media-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: rgba(0, 0, 0, 0.8);
}

.media-thumbnail iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.media-info {
  padding: 1rem 1.25rem;
}

.media-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.media-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

/* Gallery Cards */
.gallery-card {
  background: rgba(0, 0, 0, 0.6);
}

.gallery-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(124, 58, 237, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.gallery-card:hover .gallery-overlay {
  background: rgba(124, 58, 237, 0.4);
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2.5rem;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-overlay i {
  transform: scale(1);
}

/* Responsive Media Section */
@media (max-width: 768px) {
  .media-section {
    margin-top: 2rem;
  }
  
  .media-section h3 {
    font-size: 1.25rem;
  }
  
  .media-info {
    padding: 0.875rem 1rem;
  }
  
  .media-title {
    font-size: 0.9rem;
  }
  
  .media-description {
    font-size: 0.8rem;
  }
  
  .gallery-overlay i {
    font-size: 2rem;
  }
}

/* Content Creator Rewards Section */
.content-creator-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.creator-rewards-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(30, 20, 50, 0.9));
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 10px 40px rgba(124, 58, 237, 0.2),
    0 0 60px rgba(124, 58, 237, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.creator-rewards-card:hover {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 
    0 15px 50px rgba(124, 58, 237, 0.3),
    0 0 80px rgba(124, 58, 237, 0.2);
  transform: translateY(-3px);
}

/* Left Side: Visual Area */
.creator-visual-area {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(255, 152, 0, 0.1));
  overflow: hidden;
}

.creator-glow-circle {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 152, 0, 0.3), rgba(124, 58, 237, 0.2), transparent 70%);
  filter: blur(40px);
  animation: creatorGlow 4s ease-in-out infinite alternate;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes creatorGlow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.creator-character-image-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.creator-character-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.6)) drop-shadow(0 0 50px rgba(255, 152, 0, 0.4));
  transition: transform 0.3s ease;
}

.creator-rewards-card:hover .creator-character-image {
  transform: scale(1.05);
}

.creator-character-placeholder {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.creator-character-placeholder i {
  font-size: 6rem;
  color: rgba(196, 161, 255, 0.5);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.5));
}

.creator-placeholder-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Right Side: Content Area */
.creator-content-area {
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.4);
}

.creator-content-wrapper {
  max-width: 100%;
}

.creator-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffffff, #c4a1ff, #ffffff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.creator-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Creator Button */
.creator-btn {
  background: linear-gradient(135deg, #ff9800, #ff6f00, #7c3aed);
  background-size: 200% 100%;
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
  animation: buttonGradient 3s ease infinite;
}

@keyframes buttonGradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.creator-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 152, 0, 0.6), 0 0 30px rgba(124, 58, 237, 0.4);
  color: #ffffff;
  background-position: 100% 50%;
}

/* Creator Stats */
.creator-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.creator-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.creator-stat-item:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.5);
  transform: translateX(5px);
}

.creator-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.3), rgba(124, 58, 237, 0.3));
  border-radius: 10px;
  font-size: 1.5rem;
  color: #ff9800;
  flex-shrink: 0;
}

.creator-stat-content {
  flex: 1;
}

.creator-stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.creator-stat-value {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Creator Section */
@media (max-width: 768px) {
  .creator-visual-area {
    min-height: 200px;
    padding: 2rem 1rem;
  }
  
  .creator-character-placeholder i {
    font-size: 4rem;
  }
  
  .creator-content-area {
    padding: 1.5rem;
  }
  
  .creator-title {
    font-size: 1.5rem;
  }
  
  .creator-description {
    font-size: 0.95rem;
  }
  
  .creator-stats {
    gap: 0.75rem;
  }
}

/* FAQ SECTION */
.faq-section {
  margin-top: 4rem;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 3rem;
  text-shadow: 
    0 0 20px rgba(124, 58, 237, 0.5),
    0 0 40px rgba(124, 58, 237, 0.3);
}

.faq-title .text-gradient-purple {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  gap: 1rem;
  display: flex;
  flex-direction: column;
}

.faq-item {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.faq-item:hover {
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 
    0 8px 25px rgba(124, 58, 237, 0.3),
    0 0 30px rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
}

.faq-button {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 1.25rem 1.5rem;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-button:not(.collapsed) {
  background: rgba(124, 58, 237, 0.2);
  color: #c4a1ff;
  box-shadow: inset 0 0 20px rgba(124, 58, 237, 0.2);
}

.faq-button:hover {
  background: rgba(124, 58, 237, 0.15);
  color: #c4a1ff;
}

.faq-button:focus {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
  outline: none;
}

.faq-button i {
  font-size: 1.25rem;
  color: rgba(196, 161, 255, 0.8);
  transition: all 0.3s ease;
}

.faq-button:not(.collapsed) i {
  color: #c4a1ff;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6));
}

.faq-button::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(196, 161, 255, 0.6);
  border-bottom: 2px solid rgba(196, 161, 255, 0.6);
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.faq-button:not(.collapsed)::after {
  transform: rotate(225deg);
  border-color: #c4a1ff;
}

.faq-body {
  padding: 1.5rem 1.5rem 1.5rem 3.5rem;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  animation: faqSlideDown 0.3s ease-out;
}

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

.accordion-collapse {
  transition: height 0.35s ease;
}

/* Responsive FAQ */
@media (max-width: 768px) {
  .faq-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 1rem 0;
  }
  
  .faq-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .faq-button {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
  
  .faq-body {
    padding: 1.25rem 1.25rem 1.25rem 2.75rem;
    font-size: 0.95rem;
  }
  
  .faq-button::after {
    right: 1.25rem;
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 576px) {
  .faq-title {
    font-size: 1.75rem;
  }
  
  .faq-button {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
  
  .faq-body {
    padding: 1rem 1rem 1rem 2.5rem;
    font-size: 0.9rem;
  }
}

/* Streamer Box Section - Infinite Marquee */
.streamer-box-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.streamer-section-header {
  margin-bottom: 2.5rem;
}

.streamer-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-shadow: 
    0 0 20px rgba(124, 58, 237, 0.5),
    0 0 40px rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.streamer-section-title .text-gradient-purple {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.streamer-section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.streamer-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1.5rem 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

.streamer-marquee {
  display: flex;
  gap: 1.5rem;
  width: fit-content;
  animation: streamerMarquee 40s linear infinite;
  will-change: transform;
}

/* Pause animation on hover for better interaction */
.streamer-marquee-wrapper:hover .streamer-marquee {
  animation-play-state: paused;
}

@keyframes streamerMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 0.75rem)); /* Account for gap */
  }
}

.streamer-box {
  flex-shrink: 0;
  min-width: 220px;
  width: 220px;
  height: 140px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(30, 20, 50, 0.8));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.streamer-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 58, 237, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.streamer-box:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.1));
  border-color: rgba(124, 58, 237, 0.7);
  transform: translateY(-8px) scale(1.05);
  box-shadow: 
    0 15px 40px rgba(124, 58, 237, 0.5),
    0 0 60px rgba(124, 58, 237, 0.3);
}

.streamer-box:hover::before {
  left: 100%;
}

.streamer-icon {
  font-size: 3rem;
  color: #c4a1ff;
  filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.7));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.streamer-box:hover .streamer-icon {
  color: #ffffff;
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 25px rgba(196, 161, 255, 1));
}

.streamer-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  z-index: 1;
}

.streamer-box:hover .streamer-label {
  color: #c4a1ff;
  text-shadow: 0 0 10px rgba(196, 161, 255, 0.8);
}

/* Platform-specific icon colors */
.streamer-box:nth-child(4n+1) .streamer-icon {
  color: #9146ff; /* Twitch purple */
}

.streamer-box:nth-child(4n+2) .streamer-icon {
  color: #ff0000; /* YouTube red */
}

.streamer-box:nth-child(4n+3) .streamer-icon {
  color: #000000; /* TikTok black */
}

.streamer-box:nth-child(4n+4) .streamer-icon {
  color: #53fc18; /* Kick green */
}

.streamer-box:hover:nth-child(4n+1) .streamer-icon {
  color: #a970ff;
}

.streamer-box:hover:nth-child(4n+2) .streamer-icon {
  color: #ff4444;
}

.streamer-box:hover:nth-child(4n+3) .streamer-icon {
  color: #ffffff;
}

.streamer-box:hover:nth-child(4n+4) .streamer-icon {
  color: #6aff2e;
}

/* Responsive Streamer Box */
@media (max-width: 992px) {
  .streamer-section-title {
    font-size: 2.25rem;
  }
  
  .streamer-section-subtitle {
    font-size: 1.05rem;
  }
  
  .streamer-box {
    min-width: 180px;
    width: 180px;
    height: 120px;
    padding: 1.25rem 1rem;
  }
  
  .streamer-icon {
    font-size: 2.5rem;
  }
  
  .streamer-label {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .streamer-section-header {
    margin-bottom: 2rem;
  }
  
  .streamer-section-title {
    font-size: 2rem;
    letter-spacing: 1.5px;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .streamer-section-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .streamer-box {
    min-width: 160px;
    width: 160px;
    height: 110px;
    padding: 1rem 0.75rem;
    gap: 0.75rem;
  }
  
  .streamer-icon {
    font-size: 2rem;
  }
  
  .streamer-label {
    font-size: 0.875rem;
    letter-spacing: 1px;
  }
  
  .streamer-marquee {
    gap: 1rem;
    animation-duration: 30s; /* Slightly faster on mobile */
  }
  
  @keyframes streamerMarquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-50% - 0.5rem)); /* Account for smaller gap */
    }
  }
}

@media (max-width: 576px) {
  .streamer-section-title {
    font-size: 1.75rem;
    letter-spacing: 1px;
  }
  
  .streamer-section-subtitle {
    font-size: 0.95rem;
    padding: 0 1.5rem;
  }
}

/* =============================
   PREMIUM CARDS (GAMER VIPs)
   ============================= */

.premium-card {
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.95) 0%, rgba(10, 10, 20, 0.9) 100%);
  border: 3px solid rgba(120, 60, 255, 0.7);
  border-radius: 15px;
  box-shadow: 
    0 0 15px rgba(120, 60, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
}

.premium-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  padding: 3px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.premium-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.premium-card:hover {
  transform: translateY(-4px);
}

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

.premium-card:hover::after {
  opacity: 1;
}

/* All Inclusive - Gold Gradient */
.premium-card-all-inclusive {
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.95) 0%, rgba(10, 10, 20, 0.9) 100%);
  border: 3px solid rgba(255, 193, 7, 0.8);
  box-shadow: 
    0 0 15px rgba(255, 193, 7, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 4px 6px rgba(0, 0, 0, 0.2);
}

.premium-card-all-inclusive:hover {
  border-color: rgba(255, 215, 0, 1);
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 0.8),
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-card-all-inclusive::before {
  background: linear-gradient(135deg, rgba(255, 193, 7, 1), rgba(255, 152, 0, 0.8), rgba(255, 193, 7, 0.6));
}

.premium-card-all-inclusive .premium-icon {
  color: #ffc107;
  text-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
}

.premium-card-all-inclusive .premium-title {
  color: #ffc107;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* EXP - Orange/Red Gradient */
.premium-card-exp {
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.95) 0%, rgba(10, 10, 20, 0.9) 100%);
  border: 3px solid rgba(255, 87, 34, 0.8);
  box-shadow: 
    0 0 15px rgba(255, 87, 34, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 4px 6px rgba(0, 0, 0, 0.2);
}

.premium-card-exp:hover {
  border-color: rgba(255, 87, 34, 1);
  box-shadow: 
    0 0 30px rgba(255, 87, 34, 0.8),
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-card-exp::before {
  background: linear-gradient(135deg, rgba(255, 87, 34, 1), rgba(244, 67, 54, 0.8), rgba(255, 87, 34, 0.6));
}

.premium-card-exp .premium-icon {
  color: #ff5722;
  text-shadow: 0 0 20px rgba(255, 87, 34, 0.8);
}

.premium-card-exp .premium-title {
  color: #ff5722;
  text-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
}

/* DROP - Emerald Green Gradient */
.premium-card-drop {
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.95) 0%, rgba(10, 10, 20, 0.9) 100%);
  border: 3px solid rgba(0, 255, 128, 0.8);
  box-shadow: 
    0 0 15px rgba(0, 255, 128, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 4px 6px rgba(0, 0, 0, 0.2);
}

.premium-card-drop:hover {
  border-color: rgba(0, 255, 128, 1);
  box-shadow: 
    0 0 30px rgba(0, 255, 128, 0.8),
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-card-drop::before {
  background: linear-gradient(135deg, rgba(0, 255, 128, 1), rgba(46, 213, 115, 0.8), rgba(0, 255, 128, 0.6));
}

.premium-card-drop .premium-icon {
  color: #00ff80;
  text-shadow: 0 0 20px rgba(0, 255, 128, 0.8);
}

.premium-card-drop .premium-title {
  color: #00ff80;
  text-shadow: 0 0 10px rgba(0, 255, 128, 0.5);
}

/* CRAFT - Bronze/Yellow Gradient */
.premium-card-craft {
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.95) 0%, rgba(10, 10, 20, 0.9) 100%);
  border: 3px solid rgba(205, 127, 50, 0.8);
  box-shadow: 
    0 0 15px rgba(205, 127, 50, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 4px 6px rgba(0, 0, 0, 0.2);
}

.premium-card-craft:hover {
  border-color: rgba(255, 193, 7, 1);
  box-shadow: 
    0 0 30px rgba(255, 193, 7, 0.8),
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-card-craft::before {
  background: linear-gradient(135deg, rgba(205, 127, 50, 1), rgba(255, 193, 7, 0.8), rgba(205, 127, 50, 0.6));
}

.premium-card-craft .premium-icon {
  color: #cd7f32;
  text-shadow: 0 0 20px rgba(205, 127, 50, 0.8);
}

.premium-card-craft .premium-title {
  color: #ffc107;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* Premium Card Header */
.premium-card-header {
  padding: 1.5rem 1.25rem 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.premium-icon-wrapper {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.premium-icon {
  font-size: 3.5rem;
  animation: premiumIconPulse 2s ease-in-out infinite;
}

@keyframes premiumIconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.premium-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.premium-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.price-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffc107;
  text-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.currency {
  font-size: 0.9rem;
  color: #e9e9f1;
  font-weight: 700;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

/* Premium Card Body */
.premium-card-body {
  padding: 0 1.25rem 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.premium-bonuses {
  margin: 0;
  padding: 0;
}

.premium-bonuses li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.premium-bonuses li:last-child {
  border-bottom: none;
}

.bonus-label {
  color: #e9e9f1;
  font-weight: 500;
}

.bonus-value {
  font-weight: 700;
  font-size: 0.95rem;
}

.bonus-percentage {
  color: #00ff80;
  text-shadow: 0 0 8px rgba(0, 255, 128, 0.5);
}

.bonus-time {
  color: #0dcaf0;
  text-shadow: 0 0 8px rgba(13, 202, 240, 0.5);
}

/* Custom text color utilities for premium cards */
.text-emerald {
  color: #00ff80 !important;
}

.text-bronze {
  color: #ffc107 !important;
}

/* Premium Card Footer */
.premium-card-footer {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  position: relative;
  z-index: 2;
}

.premium-duration {
  background: rgba(15, 15, 20, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #e9e9f1;
  max-width: 150px;
}

.premium-duration:focus {
  background: rgba(15, 15, 20, 0.9);
  border-color: rgba(124, 58, 237, 0.6);
  color: #e9e9f1;
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
}

.premium-duration option {
  background: var(--amu-gray);
  color: #e9e9f1;
}

/* Buy Button */
.btn-premium-buy {
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-premium-buy:hover {
  background: linear-gradient(135deg, #218838, #1ea080);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  color: #fff;
}

.btn-premium-buy:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .premium-card {
    margin-bottom: 2rem;
    padding: 20px;
  }
  
  .premium-icon {
    font-size: 3rem;
  }
  
  .premium-title {
    font-size: 1.5rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .premium-card {
    padding: 18px;
    border-radius: 12px;
  }
  
  .premium-card-header {
    padding: 1.25rem 1rem 0.75rem;
  }
  
  .premium-card-body {
    padding: 0 1rem 0.75rem;
  }
  
  .premium-card-footer {
    padding: 0.75rem 1rem 1.25rem;
  }
  
  .premium-bonuses li {
    font-size: 0.85rem;
    padding: 0.4rem 0;
  }
  
  .premium-icon {
    font-size: 2.5rem;
  }
  
  .price-amount {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .premium-card {
    margin-bottom: 1.5rem;
    padding: 15px;
    border-radius: 10px;
  }
  
  .premium-title {
    font-size: 1.25rem;
  }
  
  .price-amount {
    font-size: 1.5rem;
  }
  
  .currency {
    font-size: 0.85rem;
  }
  
  .premium-bonuses li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .bonus-value {
    margin-left: auto;
  }
  
  .premium-icon {
    font-size: 2rem;
  }
}

/* Starter Pack Layout */
.starter-pack-grid {
  width: 100%;
}

.starter-layout {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 10px;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.slot {
  background: rgba(20, 20, 35, 0.8);
  border: 1px solid rgba(140, 80, 255, 0.3);
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(120, 60, 255, 0.2);
  transition: all 0.25s ease;
  cursor: pointer;
}

.slot:hover {
  border-color: #b083ff;
  box-shadow: 0 0 15px rgba(183, 120, 255, 0.7);
  transform: scale(1.05);
}

/* Different slot sizes */
.slot.small { 
  height: 60px; 
}

.slot.medium { 
  height: 90px; 
}

.slot.large { 
  height: 120px; 
}

.slot.tall { 
  height: 150px; 
}

.slot.wide { 
  grid-column: span 2; 
  height: 100px; 
}

/* Extra items row */
.extra-items {
  text-align: center;
}

.extra-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.extra-slot {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(120, 60, 255, 0.4);
  border-radius: 8px;
  background: rgba(15, 15, 30, 0.9);
  transition: all 0.3s ease;
  cursor: pointer;
}

.extra-slot:hover {
  box-shadow: 0 0 12px rgba(145, 80, 255, 0.8);
  transform: scale(1.08);
  border-color: rgba(183, 120, 255, 0.7);
}

/* Responsive adjustments for starter pack layout */
@media (max-width: 768px) {
  .starter-layout {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .slot.small { 
    height: 50px; 
  }
  
  .slot.medium { 
    height: 70px; 
  }
  
  .slot.large { 
    height: 90px; 
  }
  
  .slot.tall { 
    height: 110px; 
  }
  
  .slot.wide { 
    grid-column: span 3; 
    height: 80px; 
  }
  
  .extra-slot {
    width: 50px;
    height: 50px;
  }
}

/* Additional table styling for ranking */
.table-dark {
  background: rgba(15, 15, 25, 0.8);
  border: 1px solid rgba(140, 80, 255, 0.4);
  border-radius: 10px;
}

.table-dark thead th {
  color: #b693ff;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.table-dark tbody tr:hover {
  background: rgba(80, 50, 140, 0.25);
  transition: all 0.2s ease;
}

/* Ranking Table Class Icon Styling */
.ranking-table .class-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(155, 93, 229, 0.3);
}

/* Character Container */
.character-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 5px;
}

.character-container::-webkit-scrollbar {
  height: 6px;
}

.character-container::-webkit-scrollbar-track {
  background: rgba(17, 17, 17, 0.3);
  border-radius: 3px;
}

.character-container::-webkit-scrollbar-thumb {
  background: rgba(155, 93, 229, 0.5);
  border-radius: 3px;
}

.character-container::-webkit-scrollbar-thumb:hover {
  background: rgba(155, 93, 229, 0.7);
}

/* Character Bubbles */
.character-bubble {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: rgba(17, 17, 17, 0.8);
  border: 1px solid #9b5de5;
  border-radius: 12px;
  padding: 8px 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 160px;
  max-width: 200px;
  flex-shrink: 0;
  gap: 10px;
}

.character-bubble:hover {
  box-shadow: 0 0 10px rgba(155, 93, 229, 0.8);
  transform: translateY(-2px);
  border-color: rgba(155, 93, 229, 1);
  background: rgba(17, 17, 17, 0.9);
}

.character-bubble-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(155, 93, 229, 0.5);
  background: rgba(155, 93, 229, 0.1);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.character-bubble:hover .character-bubble-img {
  border-color: rgba(155, 93, 229, 0.9);
  box-shadow: 0 0 6px rgba(155, 93, 229, 0.6);
}

.character-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.char-name {
  margin: 0 0 3px 0;
  font-size: 0.8rem;
  font-weight: 400;
  color: #fff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.1;
}

.char-info {
  display: block;
  font-size: 0.65rem;
  color: rgba(233, 233, 241, 0.85);
  line-height: 1.3;
  margin: 0;
}

/* Account Info Bubble */
.account-info-bubble {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #9b5de5;
  border-radius: 12px;
  padding: 10px 15px;
  width: 100%;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 12px rgba(155, 93, 229, 0.2);
  transition: all 0.2s ease;
}

.account-info-bubble:hover {
  box-shadow: 0 6px 16px rgba(155, 93, 229, 0.3);
  transform: translateY(-2px);
}

.account-info-bubble p {
  margin-bottom: 0;
  color: #e9e9f1;
}

.account-info-bubble p strong {
  color: #fff;
  font-size: 0.95rem;
}

.account-info-bubble .btn {
  margin-top: 4px;
}

/* Responsive adjustments for account info bubble */
@media (max-width: 575.98px) {
  .account-info-bubble {
    max-width: 100%;
  }
}

/* ============================================
   EVENT PAGES STYLES
   ============================================ */

/* Event Navigation */
.event-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.event-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: rgba(22, 22, 29, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 8px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.event-nav-link:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.7);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.event-nav-link.active {
  background: rgba(124, 58, 237, 0.3);
  border-color: rgba(124, 58, 237, 0.8);
  color: #ffca3a;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.event-nav-link i {
  font-size: 1rem;
}

/* Event Section */
.event-section {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(59, 50, 101, 0.6);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  color: #ccc;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.event-title {
  color: #ffca3a;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-subtitle {
  color: #aaa;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Event Time Section */
.event-time {
  background: rgba(17, 17, 17, 0.8);
  padding: 1rem 1.5rem;
  border: 1px solid rgba(34, 34, 34, 0.8);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 3px solid #ffd85e;
}

.event-time h3 {
  color: #ffd85e;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.event-time h3 i {
  color: #ffca3a;
}

.event-time-list {
  color: #ddd;
  font-size: 0.95rem;
  margin: 0;
  font-family: 'Courier New', monospace;
}

/* Event Content (Image + Description) */
.event-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.event-image {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(59, 50, 101, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  background-color: #111;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease-in;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
}

.event-image.loaded {
  opacity: 1;
}

.event-image::before {
  content: none !important;
}

/* Prevent alt text from showing */
.event-image[alt] {
  text-indent: -9999px;
  overflow: hidden;
}

.event-info {
  flex: 1;
  min-width: 300px;
}

.event-info p {
  color: #ddd;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.event-info p:last-child {
  margin-bottom: 0;
}

.event-info strong {
  color: #ffca3a;
  font-weight: 600;
}

/* Event Table */
.event-table {
  width: 100%;
  border-collapse: collapse;
  color: #ddd;
  margin-top: 1rem;
  background: rgba(17, 17, 17, 0.5);
  border-radius: 6px;
  overflow: hidden;
}

.event-table th,
.event-table td {
  border: 1px solid rgba(51, 51, 51, 0.8);
  padding: 0.75rem 1rem;
  text-align: left;
}

.event-table th {
  background: rgba(27, 27, 27, 0.9);
  color: #ffca3a;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-align: center;
}

.event-table td {
  background: rgba(22, 22, 29, 0.5);
  color: #ddd;
  text-align: center;
}

.event-table tbody tr:nth-child(even) {
  background: rgba(17, 17, 17, 0.3);
}

.event-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.1);
  color: #fff;
}

/* Responsive adjustments for event pages */
@media (max-width: 768px) {
  .event-section {
    padding: 1.5rem;
  }

  .event-title {
    font-size: 1.5rem;
  }

  .event-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .event-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .event-info {
    min-width: 100%;
  }

  .event-nav {
    flex-direction: column;
  }

  .event-nav-link {
    width: 100%;
    justify-content: center;
  }

  .event-table {
    font-size: 0.85rem;
  }

  .event-table th,
  .event-table td {
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .event-section {
    padding: 1rem;
  }

  .event-title {
    font-size: 1.25rem;
  }

  .event-table {
    font-size: 0.8rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .event-table th,
  .event-table td {
    padding: 0.4rem 0.5rem;
  }
}

/* ============================================
   EVENT OVERVIEW PAGE STYLES
   ============================================ */

/* Events Header */
.events-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Event Grid */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

/* Event Card */
.event-card {
  background: rgba(15, 15, 25, 0.95);
  border: 1px solid rgba(59, 50, 101, 0.6);
  border-radius: 12px;
  color: #fff;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.event-card:hover {
  box-shadow: 0 8px 30px rgba(155, 93, 229, 0.6);
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.8);
}

/* Event Card Image Wrapper */
.event-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: rgba(22, 22, 29, 0.8);
}

.event-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease-in;
  background-color: #111;
  display: block;
  opacity: 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
}

.event-card-image.loaded {
  opacity: 1;
}

.event-card-image::before {
  content: none !important;
}

/* Prevent alt text from showing */
.event-card-image[alt] {
  text-indent: -9999px;
  overflow: hidden;
}

.event-card:hover .event-card-image {
  transform: scale(1.1);
}

.event-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card:hover .event-card-overlay {
  opacity: 1;
}

.event-card-icon {
  font-size: 3rem;
  color: rgba(255, 202, 58, 0.9);
  filter: drop-shadow(0 0 10px rgba(255, 202, 58, 0.5));
}

/* Event Card Content */
.event-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-card-title {
  color: #ffca3a;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-card-title i {
  color: rgba(124, 58, 237, 0.8);
  margin-right: 0.5rem;
}

.event-card-description {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Event Card Info */
.event-card-info {
  margin-bottom: 1.5rem;
}

.event-card-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #ddd;
}

.event-card-info-item:last-child {
  margin-bottom: 0;
}

.event-card-info-item i {
  color: rgba(124, 58, 237, 0.8);
  margin-right: 0.5rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.event-card-info-label {
  font-weight: 600;
  color: #ffca3a;
  margin-right: 0.5rem;
  min-width: 90px;
}

.event-card-info-value {
  color: #ddd;
  flex: 1;
}

/* Event Card Button */
.event-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(159, 103, 255, 0.8));
  border: 1px solid rgba(124, 58, 237, 0.6);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  margin-top: auto;
}

.event-card-btn:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 1), rgba(159, 103, 255, 1));
  border-color: rgba(124, 58, 237, 1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.event-card-btn i {
  transition: transform 0.3s ease;
}

.event-card-btn:hover i {
  transform: translateX(4px);
}

/* Event Detail Header */
.event-detail-header {
  border-bottom: 2px solid rgba(124, 58, 237, 0.3);
  padding-bottom: 1.5rem;
}

/* Responsive adjustments for event grid */
@media (max-width: 992px) {
  .event-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .event-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0.5rem 0;
  }

  .event-card-image-wrapper {
    height: 180px;
  }

  .event-card-content {
    padding: 1.25rem;
  }

  .event-card-title {
    font-size: 1.25rem;
  }

  .event-card-info-item {
    flex-direction: column;
  }

  .event-card-info-label {
    margin-bottom: 0.25rem;
    min-width: auto;
  }
}

@media (max-width: 575.98px) {
  .event-card-image-wrapper {
    height: 160px;
  }

  .event-card-content {
    padding: 1rem;
  }

  .event-card-title {
    font-size: 1.1rem;
  }

  .event-card-description {
    font-size: 0.85rem;
  }

  .event-card-info-item {
    font-size: 0.85rem;
  }
}
