:root{
  --navy-dark:#0a1628;
  --navy-medium:#1e3a5f;
  --navy-light:#2c5282;
  --gold:#ffd700;
  --gold-dark:#b8860b;
  --ocean:#006994;
  --ocean-light:#00a8e8;
  --white:#ffffff;
  --text:#f0f0f0;
  --muted:#cbd5e1;
  --danger:#dc3545;
  --success:#28a745;
  --shadow:0 20px 60px rgba(0,105,148,0.35);
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:'Montserrat',sans-serif;
  color:var(--text);
  background:linear-gradient(135deg,var(--navy-dark) 0%,var(--navy-medium) 100%) !important;
  min-height:100vh;
  overflow-x:hidden;
  scroll-behavior:smooth;
}

/* Critical fixes for white background issue */
html, body {
  background:var(--navy-dark) !important;
  color:var(--text) !important;
  opacity:1 !important;
  visibility:visible !important;
}
html {
  background:linear-gradient(135deg,var(--navy-dark) 0%,var(--navy-medium) 100%) !important;
}
/* Ensure no modal overlays are blocking content */
.modal:not(.active){
  display:none !important;
}
/* Force all main containers to be visible */
.container, main {
  opacity:1 !important;
  visibility:visible !important;
  background:transparent !important;
}
section:not(.hero):not(.hero-banner) {
  opacity:1 !important;
  visibility:visible !important;
  background:transparent !important;
}
/* Preserve hero banner background images */
.hero, .hero-banner, [style*="background-image"] {
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}
/* Specifically preserve hero section styling */
section.hero.hero-banner[style*="background-image"] {
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}

/* Back to Top Button */
#backToTop{
  position:fixed;bottom:30px;right:30px;z-index:1000;
  width:50px;height:50px;border-radius:50%;
  background:linear-gradient(135deg,var(--gold),var(--gold-dark));
  color:var(--navy-dark);border:none;cursor:pointer;
  display:none;align-items:center;justify-content:center;
  font-size:18px;transition:all 0.3s ease;
  box-shadow:0 4px 15px rgba(255,215,0,0.3);
}
#backToTop:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(255,215,0,0.4);
}
#backToTop.show{display:flex;animation:fadeInUp 0.3s ease;}

/* Loading Animation */
.loading-spinner{
  display:inline-block;width:20px;height:20px;
  border:3px solid rgba(255,215,0,0.3);
  border-radius:50%;border-top-color:var(--gold);
  animation:spin 1s ease-in-out infinite;
}

/* Critical Resource Loading */
.critical-resource-loaded{opacity:1;transition:opacity 0.3s ease;}
.critical-resource-loading{opacity:0.7;}

/* Performance Optimization & Sharp Image Rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
  /* Prevent blurry transforms */
  backface-visibility: hidden;
  transform: translateZ(0);
  /* Sharp scaling */
  object-fit: contain;
  object-position: center;
  /* Anti-aliasing */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Force sharp rendering for all navbar images */
.navbar img, 
.navbar-logo, 
.navbar-logo-big, 
.jolan-flag, 
.roblox-icon, 
.discord-icon, 
.youtube-icon {
  will-change: transform;
  transform: translateZ(0);
  /* Override browser smoothing */
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
  image-rendering: pixelated !important;
  -ms-interpolation-mode: nearest-neighbor !important;
  /* Force sharp scaling */
  filter: contrast(1.02) saturate(1.02);
  /* Prevent subpixel rendering blur */
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Force integer pixel positioning */
  transform-style: preserve-3d;
}

/* Lazy Loading Skeleton */
.skeleton{
  background:linear-gradient(90deg,rgba(255,215,0,0.1) 25%,rgba(255,215,0,0.2) 50%,rgba(255,215,0,0.1) 75%);
  background-size:200% 100%;animation:skeleton-loading 2s infinite;
}
@keyframes skeleton-loading{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* Focus Management */
.skip-link{
  position:absolute;top:-40px;left:6px;background:var(--gold);color:#000;
  padding:8px;z-index:9999;text-decoration:none;border-radius:4px;
}
.skip-link:focus{top:6px;}

/* Reduced Motion Support */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:0.01ms!important;animation-iteration-count:1!important;transition-duration:0.01ms!important;}
}

/* Fade In Animation */
.fade-in{
  opacity:0;transform:translateY(20px);
  animation:fadeInUp 0.6s ease forwards;
}

/* Mobile Navigation Toggle */
.nav-toggle{
  display:none;flex-direction:column;cursor:pointer;padding:5px;
}
.nav-toggle span{
  width:25px;height:3px;background:var(--gold);margin:3px 0;
  transition:0.3s;border-radius:2px;
}
.nav-toggle.active span:nth-child(1){transform:rotate(-45deg) translate(-5px,6px);}
.nav-toggle.active span:nth-child(2){opacity:0;}
.nav-toggle.active span:nth-child(3){transform:rotate(45deg) translate(-5px,-6px);}

/* Image Optimization */
.navbar-logo{
  height:80px;width:auto;object-fit:contain;
  transition:transform 0.3s ease;
}
.navbar-logo:hover{
  transform:scale(1.05);
}
.hero-banner{
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  background-attachment:scroll;
  min-height:50vh;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.hero-banner.png-banner{
  background-size:contain;
  background-position:center center;
  background-repeat:no-repeat;
}
/* PNG Banner specific styles */
.page-hero.hero-banner,.hero.hero-banner{
  position:relative;overflow:hidden;
}

.page-hero .hero-title,.page-hero .hero-sub,.page-hero .hero-ctas,
.hero .hero-title,.hero .hero-sub,.hero .hero-ctas{
  position:relative;z-index:2;
}
.member-avatar,.event-image,.battle-screenshot{
  width:100%;height:200px;object-fit:cover;
  border-radius:8px;transition:transform 0.3s ease;
}
.member-avatar:hover,.event-image:hover,.battle-screenshot:hover{
  transform:scale(1.05);
}
.lazy-image{
  opacity:0;transition:opacity 0.3s ease;
}
.lazy-image.loaded{opacity:1;}

/* Image Gallery */
.image-gallery{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;padding:20px 0;
}
.gallery-item{
  position:relative;overflow:hidden;border-radius:8px;
  box-shadow:var(--shadow);transition:transform 0.3s ease;
}
.gallery-item:hover{transform:translateY(-5px);}
.gallery-item img{width:100%;height:200px;object-fit:cover;}
.gallery-overlay{
  position:absolute;bottom:0;left:0;right:0;
  background:linear-gradient(transparent,rgba(0,0,0,0.8));
  color:white;padding:15px;transform:translateY(100%);
  transition:transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay{transform:translateY(0);}

/* Keyframes */
@keyframes fadeInUp{
  to{opacity:1;transform:translateY(0);}
}
@keyframes spin{
  to{transform:rotate(360deg);}
}

/* Animated background waves */
body::before{
  content:'';
  position:fixed;inset:0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,168,232,0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(255,215,0,0.05) 0%, transparent 55%),
    radial-gradient(circle at 40% 20%, rgba(0,105,148,0.08) 0%, transparent 60%);
  animation:sea 22s ease-in-out infinite;
  pointer-events:none;z-index:0;
}
@keyframes sea {
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-18px)}
}

/* Navbar */
.navbar{
  position:sticky;top:0;z-index:1000;
  background:linear-gradient(180deg,rgba(10,22,40,0.98) 0%, rgba(10,22,40,0.9) 100%);
  backdrop-filter:blur(12px);
  border-bottom:2px solid var(--gold);
  box-shadow:0 4px 30px rgba(0,0,0,0.3);
}

/* Fancy Imperial Navbar */
.fancy-navbar {
  background: linear-gradient(135deg, #0a1628 0%, #152238 50%, #1a2a42 100%);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3), 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 8px 0;
}

.imperial-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 5px 15px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 50%, rgba(255, 215, 0, 0.1) 100%);
  border-radius: 25px;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.brand-ornament {
  position: relative;
}

.imperial-logo, .imperial-flag {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
}

.imperial-logo:hover, .imperial-flag:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.brand-center {
  text-align: center;
  flex: 1;
}

.imperial-title {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  letter-spacing: 3px;
  margin: 0;
}

.brand-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: rgba(255, 215, 0, 0.8);
  letter-spacing: 2px;
  margin-top: -2px;
}

.imperial-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.imperial-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 25px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.imperial-nav-link:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.5s ease;
}

.imperial-nav-link:hover:before {
  left: 100%;
}

.imperial-nav-link:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.6);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.imperial-nav-link.active {
  background: linear-gradient(135deg, var(--gold), #e6c200);
  border: 1px solid #d4af00;
  color: var(--navy-dark);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.imperial-social .social {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.roblox-btn {
  background: linear-gradient(135deg, #00A2FF, #0081CC);
  color: white;
}

.discord-btn {
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: white;
}

.youtube-btn {
  background: linear-gradient(135deg, #FF0000, #CC0000);
  color: white;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.1);
  border: 2px solid var(--gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Brand with Flag Container */
.brand-with-flag {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Bigger Logo - Force Sharp Rendering */
.navbar-logo-big {
  height: 100px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  /* Force sharp pixel rendering */
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: -moz-crisp-edges !important;
  image-rendering: crisp-edges !important;
  image-rendering: auto !important;
  -ms-interpolation-mode: bicubic !important;
  /* Prevent blur on transforms */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  /* Force hardware acceleration */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  /* Sharp scaling */
  min-width: 100px;
  max-width: 100px;
}

.navbar-logo-big:hover {
  transform: scale(1.05) translate3d(0, 0, 0);
}

/* Flag Container - Same Scale as Badge */
.flag-container {
  display: flex;
  align-items: center;
}

.jolan-flag {
  height: 100px;
  width: auto;
  object-fit: contain;
  border-radius: 3px;
  /* Force sharp pixel rendering */
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: -moz-crisp-edges !important;
  image-rendering: crisp-edges !important;
  image-rendering: auto !important;
  -ms-interpolation-mode: bicubic !important;
  /* Prevent blur on transforms */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  /* Force hardware acceleration */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  /* Sharp scaling */
  min-width: auto;
  max-height: 100px;
}
.nav-inner{
  max-width:1400px;margin:0 auto;padding:16px 20px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.brand{display:flex;align-items:center;gap:18px}
.logo-circle{
  width:90px;height:90px;border-radius:50%;
  background:radial-gradient(circle,var(--gold) 0%,var(--gold-dark) 100%);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 50px rgba(255,215,0,0.7);
  animation:pulse 2.4s infinite;
  color:#2b2b2b;font-size:44px;
  transition:transform 0.3s ease;
}
.logo-circle:hover{
  transform:scale(1.08);
}
@keyframes pulse {0%,100%{transform:scale(1)} 50%{transform:scale(1.06)}}
.brand-name{
  font-family:'Cinzel',serif;font-weight:700;font-size:36px;
  background:linear-gradient(90deg,var(--gold) 0%, var(--white) 50%, var(--gold) 100%);
  background-clip:text;-webkit-background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
  animation:shine 4s linear infinite;
  letter-spacing:1px;
}
@keyframes shine {to{background-position:200% center}}

.nav-menu{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.nav-item{position:relative}
.nav-link{
  color:var(--text);text-decoration:none;font-weight:600;
  padding:8px 12px;border-radius:6px;transition:.25s;
}
.nav-link:hover{color:var(--gold);background:rgba(255,215,0,0.08)}
.nav-link.active{color:var(--gold);background:rgba(255,215,0,0.15)}
/* Dropdown */
.dropdown:hover .dropdown-menu{display:block}
.dropdown-menu{
  display:none;position:absolute;top:40px;left:0;
  background:rgba(10,22,40,0.95);border:1px solid rgba(255,215,0,0.25);
  border-radius:8px;min-width:220px;box-shadow:var(--shadow);padding:8px;
}
.dropdown-menu a{
  display:block;padding:10px 12px;color:var(--text);text-decoration:none;border-radius:6px;
}
.dropdown-menu a:hover{background:rgba(255,215,0,0.08);color:var(--gold)}

.cta-group{display:flex;gap:10px;align-items:center}
.btn{
  padding:12px 18px;border-radius:10px;border:none;cursor:pointer;font-weight:700;
  transition:all 0.3s ease;font-size:14px;text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--gold),var(--gold-dark));color:#1a1a1a;
  box-shadow:0 4px 12px rgba(255,215,0,0.25);
}
.btn:hover{
  filter:brightness(1.05);transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(255,215,0,0.35);
}
.btn-gold{
  background:linear-gradient(135deg,var(--gold),var(--gold-dark));color:#1a1a1a;
  font-size:16px;padding:14px 24px;font-weight:800;
}
.btn-gold:hover{
  filter:brightness(1.05);transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(255,215,0,0.35);
}
.btn-outline{
  background:rgba(255,215,0,0.1);color:var(--gold);
  border:2px solid var(--gold);box-shadow:0 2px 8px rgba(255,215,0,0.15);
}
.btn-outline:hover{
  background:rgba(255,215,0,0.2);transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(255,215,0,0.25);
}

/* Navbar Right Container */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social{display:flex;gap:12px;margin-left:8px}
.social a{
  width:40px;height:40px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  border:2px solid var(--gold);color:var(--gold);text-decoration:none;transition:.25s;
}
.social a:hover{background:var(--gold);color:#0a1628;box-shadow:0 6px 18px rgba(255,215,0,0.35)}

/* Colored social icons */
.social a[title*="Discord"]{
  border-color:#7289da;color:#7289da;
}
.social a[title*="Discord"]:hover{
  background:#7289da;color:white;box-shadow:0 6px 18px rgba(114,137,218,0.4);
}

/* Override for gold Discord buttons */
.btn-gold[data-social="discord"], 
.btn-gold[data-social="discord"]:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: #1a1a1a !important;
  border-color: var(--gold) !important;
}
.btn-gold[data-social="discord"]:hover {
  box-shadow: 0 6px 16px rgba(255,215,0,0.35) !important;
}
.social a[title*="YouTube"]{
  border-color:#ff0000;color:#ff0000;
}
.social a[title*="YouTube"]:hover{
  background:#ff0000;color:white;box-shadow:0 6px 18px rgba(255,0,0,0.4);
}
.social a[title*="Roblox"]{
  border-color:#00b2ff;color:#00b2ff;
}
.social a[title*="Roblox"]:hover{
  background:#00b2ff;color:white;box-shadow:0 6px 18px rgba(0,178,255,0.4);
}

/* Custom Social Media Icons */
.roblox-icon, .discord-icon, .youtube-icon{
  width:20px;height:20px;
  object-fit:contain;
  transition:all 0.3s ease;
}
.social a[title*="Roblox"]:hover .roblox-icon,
.social a[title*="Discord"]:hover .discord-icon,
.social a[title*="YouTube"]:hover .youtube-icon{
  filter:brightness(1.3) contrast(1.1);
  transform:scale(1.1);
}
.contact-method h4 .roblox-icon,
.contact-method h4 .discord-icon{
  width:18px;height:18px;margin-right:8px;
}

/* Social media area */
.social{display:flex;gap:12px;align-items:center;}

/* Hero */
.hero{
  position:relative;margin-top:0;padding:100px 20px 70px;min-height:70vh;
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
}
.hero-logo{
  width:280px;height:280px;margin-bottom:20px;margin-top:-130px;
  background:transparent;
  box-shadow: none;
  border: none;
  display:grid;place-items:center;
  position: relative;
  overflow: visible;
  padding: 0;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
  animation: shieldFloat 4s ease-in-out infinite;
  filter: 
    drop-shadow(0 5px 15px rgba(0,0,0,0.3))
    drop-shadow(0 0 20px rgba(255,215,0,0.5));
  transition: all 0.3s ease;
  position: relative;
  z-index: 3;
}


@keyframes shieldFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
.hero-title{
  font-family:'Bebas Neue',cursive;font-size:76px;letter-spacing:2px;
  background:linear-gradient(90deg,var(--white),var(--gold),var(--white));
  background-clip:text;-webkit-background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
  text-shadow:0 0 30px rgba(255,215,0,0.22);margin-bottom:16px;
}
.hero-sub{font-size:22px;color:var(--ocean-light);font-weight:400;margin-bottom:24px}
.hero-ctas{
  display:flex;gap:16px;flex-wrap:wrap;justify-content:center;
  margin-top:32px;align-items:center;
}
@media(max-width:768px){
  .hero-ctas{gap:12px;flex-direction:column;width:100%;max-width:300px;}
  .hero-ctas .btn{width:100%;text-align:center;}
}

/* Page hero (smaller for other pages) */
.page-hero{
  position:relative;margin-top:0;padding:80px 20px 60px;
  min-height:50vh;max-height:80vh;
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
}
.page-hero .hero-title{
  font-size:clamp(36px, 5vw, 56px);
  line-height:1.2;
}
.page-hero .hero-sub{
  font-size:clamp(16px, 2.5vw, 22px);
  max-width:800px;
  line-height:1.4;
}

/* Seasonal banners (hero background variants) */
.hero.winter, .page-hero.winter { background: url('https://images.unsplash.com/photo-1602407298397-2c66a3bd5a05?q=80&w=1600&auto=format&fit=crop') no-repeat center/cover; }
.hero.summer, .page-hero.summer { background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=1600&auto=format&fit=crop') no-repeat center/cover; }
.hero.autumn, .page-hero.autumn { background: url('https://images.unsplash.com/photo-1504609813442-a8924e83f76e?q=80&w=1600&auto=format&fit=crop') no-repeat center/cover; }
.hero.spring, .page-hero.spring { background: url('https://images.unsplash.com/photo-1520975625370-1b4e28a0376b?q=80&w=1600&auto=format&fit=crop') no-repeat center/cover; }

/* Sections */
.container{max-width:1400px;margin:0 auto;padding:40px 20px;position:relative;z-index:3}
.section-title{
  font-family:'Cinzel',serif;font-size:38px;margin-bottom:10px;
  background:linear-gradient(90deg,var(--gold),var(--white));
  background-clip:text;-webkit-background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
  text-align:center;
}
.divider{width:200px;height:3px;margin:18px auto;background:linear-gradient(90deg,transparent,var(--gold),transparent)}

/* Forums */
.forums{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.card{
  background:linear-gradient(135deg,rgba(30,58,95,0.7),rgba(10,22,40,0.85));
  border:1px solid rgba(255,215,0,0.2);border-radius:14px;padding:20px;transition:.25s;position:relative;
  display:flex;flex-direction:column;
}
.card:hover{transform:translateY(-6px);border-color:var(--gold);box-shadow:var(--shadow)}
.card h4{margin-bottom:12px}
.card p{margin-bottom:12px;flex-grow:1;}
.card .btn{margin-top:auto;}
.card-actions{margin-top:16px;display:flex;gap:10px;flex-wrap:wrap;}
.card-actions .btn{flex:1;min-width:120px;}
.badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.badge{font-size:12px;padding:6px 10px;border-radius:999px;background:rgba(255,215,0,0.15);color:var(--gold);font-weight:700}
.likes{display:flex;align-items:center;gap:8px;margin-top:10px}
.like-btn{background:transparent;border:1px solid rgba(255,215,0,0.35);color:var(--gold);padding:6px 10px;border-radius:8px;cursor:pointer}
.search-bar{margin:16px 0;display:flex;gap:10px}
.input{flex:1;padding:10px 12px;border-radius:8px;border:1px solid rgba(255,215,0,0.25);background:rgba(255,255,255,0.06);color:var(--text)}

/* Strategy guides */
.guides{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}
.guide-media{border-radius:10px;overflow:hidden;margin-top:10px}
.guide-actions{display:flex;gap:10px;margin-top:12px}
.btn-print{background:linear-gradient(135deg,var(--gold),var(--gold-dark));color:#1a1a1a;border:2px solid var(--gold);}
@media print {.navbar, .hero, .social, .btn, .guide-media, .footer{display:none !important}}

/* Events */
.events{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}
.event-meta{color:var(--muted);margin:6px 0}
.countdown{font-weight:900;color:var(--gold);margin:8px 0}
.rsvp{display:flex;gap:10px;margin-top:10px}

/* Ranks */
.ranks{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.rank-step{position:relative}
.rank-step .req{font-size:13px;color:var(--muted);margin-top:8px}
.rank-step:hover::after{
  content:'Requisitos: Actividad + Batallas ganadas + Disciplina';
  position:absolute;bottom:10px;left:10px;background:rgba(0,0,0,0.6);
  padding:8px 10px;border-radius:8px;border:1px solid rgba(255,215,0,0.3);font-size:12px
}

/* Members */
.members{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:25px;
  grid-auto-rows:auto;
  align-items:stretch;
  justify-items:stretch;
}
.members .card{
  height:auto;
  min-height:450px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:25px 20px;
  position:relative;
  overflow:visible;
  box-sizing:border-box;
}
.avatar{
  width:76px;height:76px;border-radius:50%;border:3px solid var(--gold);
  background:linear-gradient(135deg,var(--ocean-light),var(--ocean));
  display:grid;place-items:center;margin-bottom:15px;font-size:28px;
  flex-shrink:0;box-shadow:0 4px 12px rgba(255,215,0,0.2);
}
.members .card h4{
  margin:10px 0;
  flex-shrink:0;
  word-wrap:break-word;
  hyphens:auto;
}
.members .card .badges{
  margin:10px 0;
  flex-shrink:0;
  display:flex;
  gap:8px;
  justify-content:center;
  flex-wrap:wrap;
}
.member-meta{
  font-size:13px;color:var(--muted);margin:15px 0;
  flex-grow:1;text-align:left;width:100%;
  line-height:1.6;
  word-wrap:break-word;
}
.members .card > div:last-child{
  margin-top:auto;
  padding-top:20px;
  width:100%;
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.directory-actions{display:flex;gap:10px;margin-bottom:12px;justify-content:center;flex-wrap:wrap;}

/* Staff Contact specific styles */
#staff-contact{
  overflow:hidden;
  position:relative;
}
#staff-contact .members{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
#staff-contact .members .card{
  contain:layout;
  transform:translateZ(0);
}

/* Media gallery */
.media{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.media img, .media iframe{width:100%;border-radius:12px;border:1px solid rgba(255,215,0,0.25)}

/* Contact */
.contact-form{max-width:720px;margin:0 auto}
.contact-form .input, .contact-form textarea{width:100%}
.contact-form textarea{min-height:120px;resize:vertical}

/* Modals */
.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.75);backdrop-filter:blur(6px);z-index:2000;align-items:center;justify-content:center}
.modal.active{display:flex}
.modal-card{
  background:linear-gradient(135deg,var(--navy-medium),var(--navy-dark));
  border:1px solid var(--gold);border-radius:16px;padding:22px;max-width:520px;width:92%;box-shadow:var(--shadow);position:relative
}
.modal-title{font-family:'Cinzel',serif;font-size:24px;margin-bottom:10px;color:var(--gold)}
.close{position:absolute;top:12px;right:14px;color:var(--muted);cursor:pointer}
.close:hover{color:var(--gold)}
.form-row{margin:16px 0}
.label{display:block;margin-bottom:8px;color:var(--ocean-light);font-weight:700}
.input, textarea{
  padding:12px 14px;border-radius:10px;border:1px solid rgba(255,215,0,0.25);
  background:rgba(255,255,255,0.06);color:var(--text);font-family:inherit;
  width:100%;box-sizing:border-box;transition:border-color 0.3s ease;
}
.input:focus, textarea:focus{border-color:var(--gold);outline:none;}
.modal-card .btn{margin-top:20px;width:100%;}

/* Footer */
/* Recruitment Side Images */
.recruitment-side-images {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.side-image {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.side-image.left-side {
  left: 30px;
  animation: floatLeft 8s ease-in-out infinite alternate;
}

.side-image.right-side {
  right: 30px;
  animation: floatRight 8s ease-in-out infinite alternate;
}

.side-officer-img {
  width: 350px;
  height: auto;
  border: 3px solid rgba(255, 215, 0, 0.6);
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
  filter: brightness(1.3) contrast(1.2) saturate(1.1);
  transition: all 0.3s ease;
}

.side-image:hover {
  opacity: 0.9;
}

.side-image:hover .side-officer-img {
  filter: brightness(1.4) contrast(1.3) saturate(1.2);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
}

@keyframes floatLeft {
  0% { 
    transform: translateY(-50%) translateX(0px);
    opacity: 0.7;
  }
  100% { 
    transform: translateY(-50%) translateX(15px);
    opacity: 0.8;
  }
}

@keyframes floatRight {
  0% { 
    transform: translateY(-50%) translateX(0px);
    opacity: 0.7;
  }
  100% { 
    transform: translateY(-50%) translateX(-15px);
    opacity: 0.8;
  }
}

/* Responsive adjustments for side images */
@media(max-width: 1400px) {
  .side-officer-img {
    width: 200px;
  }
  
  .side-image.left-side {
    left: 10px;
  }
  
  .side-image.right-side {
    right: 10px;
  }
}

@media(max-width: 1024px) {
  .side-officer-img {
    width: 150px;
  }
  
  .side-image.left-side {
    left: 5px;
  }
  
  .side-image.right-side {
    right: 5px;
  }
  
  .side-image {
    opacity: 0.3;
  }
}

@media(max-width: 768px) {
  .recruitment-side-images {
    display: none;
  }
}

.footer{
  margin-top:40px;padding:40px 20px;border-top:2px solid var(--gold);
  background:linear-gradient(180deg,var(--navy-dark), #050a15);text-align:center;color:var(--muted)
}

/* Responsive - Tablet */
@media(max-width:1024px) and (min-width:769px){
  .members{
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
  }
}

/* Responsive */
@media(max-width:768px){
  .hero-title{font-size:48px}
  .nav-menu{
    display:none;position:absolute;top:100%;left:0;right:0;
    background:var(--navy-dark);flex-direction:column;padding:20px;
    box-shadow:var(--shadow);border-top:2px solid var(--gold);
  }
  .nav-menu.active{display:flex;}
  .nav-menu .nav-link{padding:15px 0;border-bottom:1px solid rgba(255,215,0,0.1);}
  .nav-menu .dropdown-menu{position:static;box-shadow:none;padding-left:20px;}
  
  .nav-toggle{display:flex;}
  .navbar .cta-group{flex-wrap:wrap;gap:10px;}
  .social{margin-left:0;margin-top:10px;}
  
  /* Mobile Logo Adjustments */
  .navbar-logo{height:60px;}
  .logo-circle{width:70px;height:70px;font-size:34px;}
  .brand-name{font-size:28px;letter-spacing:0.5px;}
  .brand{gap:14px;}
  
  /* Mobile Back to Top */
  #backToTop{bottom:20px;right:20px;width:45px;height:45px;font-size:16px;}
  
  /* Mobile Cards */
  .forums,.guides,.events,.members,.media{grid-template-columns:1fr;}
  .card{margin-bottom:15px;}
  
  /* Mobile Members Grid */
  .members{
    grid-template-columns:1fr;
    gap:20px;
  }
  .members .card{
    min-height:auto;
    padding:20px 15px;
  }
  .member-meta{
    font-size:12px;
    line-height:1.5;
  }
  .avatar{
    width:64px;
    height:64px;
    font-size:24px;
  }
  
  /* Mobile Hero */
  .hero{padding:60px 20px;text-align:center;min-height:60vh;}
  .page-hero{padding:50px 15px 40px;min-height:45vh;}
  .hero-banner, .page-hero.hero-banner{
    min-height:45vh;
    background-size:cover;
    background-position:center center;
  }
}

/* ========================================
   ENHANCED FEATURES - ULTIMATE NAVAL CLAN
   ======================================== */

/* Rotating Anchor Animation */
@keyframes anchorSpin {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes waveEffect {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(2deg); }
  50% { transform: translateY(0px) rotate(0deg); }
  75% { transform: translateY(-3px) rotate(-2deg); }
}

/* Hero logo hover effects */
.hero-logo:hover {
  transform: scale(1.05);
}

.hero-logo:hover .hero-logo-img {
  transform: scale(1.02);
  filter: 
    drop-shadow(0 8px 20px rgba(0,0,0,0.4))
    drop-shadow(0 0 30px rgba(255,215,0,0.7));
}

/* Enhanced Hero Section */
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.hero-badge {
  background: linear-gradient(135deg, 
    rgba(255,215,0,0.95) 0%, 
    rgba(255,193,7,0.9) 50%, 
    rgba(255,215,0,0.95) 100%);
  border: 3px solid var(--gold);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 900;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: badgeGlow 3s ease-in-out infinite;
  backdrop-filter: blur(15px);
  box-shadow: 
    0 8px 32px rgba(255,215,0,0.4),
    0 0 20px rgba(255,215,0,0.6),
    inset 0 2px 4px rgba(255,255,255,0.3);
  text-shadow: 
    0 1px 2px rgba(0,0,0,0.8),
    0 0 10px rgba(255,215,0,0.8);
  position: relative;
  transition: all 0.3s ease;
}



.hero-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 12px 40px rgba(255,215,0,0.6),
    0 0 30px rgba(255,215,0,0.8),
    inset 0 2px 4px rgba(255,255,255,0.4);
}

.hero-badge:nth-child(1) {
  animation-delay: 0s;
}

.hero-badge:nth-child(2) {
  animation-delay: 1s;
}

.hero-badge:nth-child(3) {
  animation-delay: 2s;
}

@keyframes badgeGlow {
  0%, 100% { 
    transform: translateY(0px);
    box-shadow: 
      0 8px 32px rgba(255,215,0,0.4),
      0 0 20px rgba(255,215,0,0.6),
      inset 0 2px 4px rgba(255,255,255,0.3);
  }
  50% { 
    transform: translateY(-8px);
    box-shadow: 
      0 12px 40px rgba(255,215,0,0.6),
      0 0 30px rgba(255,215,0,0.8),
      inset 0 2px 4px rgba(255,255,255,0.4);
  }
}



.btn-pulse {
  animation: buttonPulse 2s ease-in-out infinite;
}

.btn-urgent {
  position: relative;
  overflow: hidden;
  animation: urgentGlow 1.5s ease-in-out infinite;
}

.btn-urgent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.btn-urgent:hover::before {
  left: 100%;
}

@keyframes buttonPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255,215,0,0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(255,215,0,0.8); }
}

@keyframes urgentGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,215,0,0.6); }
  50% { box-shadow: 0 0 40px rgba(255,215,0,1), 0 0 60px rgba(255,69,0,0.5); }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  padding: 15px 20px;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 15px;
  min-width: 120px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hero-stat:hover {
  transform: translateY(-5px);
  background: rgba(255,215,0,0.2);
  border-color: var(--gold);
}

.hero-stat .stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  font-family: 'Bebas Neue', cursive;
  line-height: 1;
}

.hero-stat .stat-text {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(30,58,95,0.8) 100%);
  border-radius: 20px;
  padding: 40px;
  margin: 40px 0;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.stat-card {
  background: linear-gradient(145deg, var(--navy-medium), var(--navy-light));
  border: 2px solid var(--gold);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,215,0,0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.stat-card:hover::before {
  animation: shimmer 1.5s ease-in-out;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(255,215,0,0.4);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  font-family: 'Bebas Neue', cursive;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-icon {
  font-size: 2rem;
  margin-top: 10px;
  opacity: 0.8;
}

@keyframes shimmer {
  0% { opacity: 0; transform: translateX(-100%) rotate(45deg); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%) rotate(45deg); }
}

/* Leaders Section */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.leader-card {
  background: linear-gradient(145deg, var(--navy-medium), var(--navy-light));
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.leader-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,215,0,0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.leader-card:hover::after {
  opacity: 1;
}

.leader-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(255,215,0,0.3);
}

.leader-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}

.leader-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  transition: all 0.3s ease;
}

.leader-card:hover .leader-avatar img {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255,215,0,0.6);
}

.leader-rank-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: linear-gradient(135deg, var(--gold) 0%, #ffed4e 50%, var(--gold) 100%);
  color: #1a1a1a;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 900;
  border: 3px solid #1a1a1a;
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.8),
    0 0 40px rgba(255, 215, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(255, 215, 0, 0.6);
  transition: all 0.3s ease;
  animation: starGlow 2s ease-in-out infinite;
}

.leader-rank-badge:hover {
  transform: scale(1.1);
  box-shadow: 
    0 0 30px rgba(255, 215, 0, 1),
    0 0 60px rgba(255, 215, 0, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

@keyframes starGlow {
  0%, 100% { 
    box-shadow: 
      0 0 20px rgba(255, 215, 0, 0.8),
      0 0 40px rgba(255, 215, 0, 0.4),
      inset 0 2px 4px rgba(255, 255, 255, 0.3);
  }
  50% { 
    box-shadow: 
      0 0 30px rgba(255, 215, 0, 1),
      0 0 50px rgba(255, 215, 0, 0.6),
      inset 0 2px 4px rgba(255, 255, 255, 0.4);
  }
}

.leader-info h4 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 5px;
  text-align: center;
}

.leader-rank {
  color: var(--ocean-light);
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.leader-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.leader-stats .stat {
  background: rgba(255,215,0,0.1);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(255,215,0,0.3);
}

.leader-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  margin-top: 15px;
}

/* Officer Cards */
.officer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.officer-card {
  background: linear-gradient(145deg, var(--navy-medium), var(--navy-light));
  border: 2px solid var(--ocean-light);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.officer-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 15px 35px rgba(0,168,232,0.3);
}

.officer-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.officer-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.officer-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--ocean-light);
  object-fit: cover;
}

.officer-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--navy-dark);
}

.officer-status.online {
  background: var(--success);
  animation: pulse 2s infinite;
}

.officer-status.away {
  background: #ffa500;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.officer-info h4 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.officer-rank {
  color: var(--ocean-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.officer-department {
  color: var(--muted);
  font-size: 0.8rem;
}

.officer-specialties {
  margin-bottom: 15px;
}

.officer-specialties strong {
  color: var(--gold);
  font-size: 0.9rem;
}

.officer-specialties ul {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
}

.officer-specialties li {
  font-size: 0.85rem;
  padding: 3px 0;
  color: var(--text);
}

.officer-availability {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
}

.availability-item {
  font-size: 0.8rem;
  margin-bottom: 5px;
  color: var(--muted);
}

.availability-item strong {
  color: var(--text);
}

.officer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.officer-actions .btn {
  flex: 1;
  min-width: 120px;
  font-size: 0.8rem;
  padding: 8px 12px;
}

/* History Section */
.history-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

/* Empire Information Sidebar */
.empire-info-sidebar {
  background: linear-gradient(145deg, var(--navy-medium), var(--navy-light));
  border: 2px solid var(--gold);
  border-radius: 15px;
  padding: 22px;
  height: fit-content;
  position: sticky;
  top: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(255,215,0,0.2);
  backdrop-filter: blur(10px);
}

.info-section {
  margin-bottom: 22px;
  padding: 2px;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section h4 {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-align: center;
  border-bottom: 2px solid rgba(255,215,0,0.4);
  padding-bottom: 8px;
  text-shadow: 0 2px 8px rgba(255,215,0,0.5);
  letter-spacing: 0.5px;
}

/* Compact Empire Stats */
.empire-stats-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(255,215,0,0.2);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #b8d4ff;
  padding: 6px 8px;
  background: rgba(255,215,0,0.05);
  border-radius: 6px;
  border-left: 3px solid rgba(255,215,0,0.3);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.stat-row strong {
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Compact Allies */
.allies-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ally-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(0,0,0,0.2), rgba(255,215,0,0.08));
  border-radius: 8px;
  border: 1px solid rgba(255,215,0,0.3);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ally-item:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(255,215,0,0.15));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,215,0,0.2);
}

.ally-item strong {
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

.ally-badge {
  font-size: 0.8rem;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,215,0,0.35));
  border: 1px solid rgba(255,215,0,0.5);
  border-radius: 12px;
  color: #ffd700;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 2px 6px rgba(255,215,0,0.3);
}

/* Compact Specialties */
.specialties-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.specialty-tag {
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.25));
  border: 1px solid rgba(255,215,0,0.4);
  border-radius: 14px;
  font-size: 0.8rem;
  color: #e6f3ff;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.specialty-tag:hover {
  background: linear-gradient(135deg, rgba(255,215,0,0.3), rgba(255,215,0,0.45));
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(255,215,0,0.3);
}

/* Compact Achievements */
.achievements-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.achievement {
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.25));
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #e6f3ff;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  letter-spacing: 0.3px;
}

.achievement:hover {
  background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,215,0,0.4));
  border-left-width: 6px;
  transform: translateX(5px) translateY(-1px);
  box-shadow: 0 5px 15px rgba(255,215,0,0.3);
  color: var(--gold);
}

.history-chapter {
  margin-bottom: 30px;
  padding: 25px;
  background: rgba(255,215,0,0.05);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  transition: all 0.3s ease;
}

.history-chapter:hover {
  background: rgba(255,215,0,0.1);
  transform: translateX(10px);
}

.history-chapter h3 {
  color: var(--gold);
  margin-bottom: 15px;
  font-family: 'Cinzel', serif;
}

.history-achievements {
  background: linear-gradient(145deg, var(--navy-medium), var(--navy-light));
  padding: 30px;
  border-radius: 15px;
  border: 2px solid var(--gold);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.history-achievements h4 {
  color: var(--gold);
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Cinzel', serif;
}

.achievements-list {
  list-style: none;
  padding: 0;
}

.achievements-list li {
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,215,0,0.2);
  transition: all 0.3s ease;
}

.achievements-list li:hover {
  color: var(--gold);
  transform: translateX(5px);
}

.achievements-list li:last-child {
  border-bottom: none;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.value-card {
  background: linear-gradient(145deg, var(--navy-medium), var(--navy-light));
  border: 2px solid var(--ocean-light);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
  transition: all 0.8s ease;
}

.value-card:hover::before {
  left: 100%;
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(255,215,0,0.2);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.3));
}

.value-card h4 {
  color: var(--gold);
  margin-bottom: 15px;
  font-family: 'Cinzel', serif;
}

.value-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* News Cards Enhanced */
.news-urgent {
  border: 3px solid var(--danger) !important;
  background: linear-gradient(145deg, rgba(220,53,69,0.1), var(--navy-medium)) !important;
  animation: urgentPulse 2s infinite;
}

@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(220,53,69,0.3); }
  50% { box-shadow: 0 0 35px rgba(220,53,69,0.6); }
}

.news-urgent h4 {
  color: var(--danger) !important;
}

.badge.urgent {
  background: var(--danger) !important;
  color: white !important;
  animation: flashUrgent 1.5s infinite;
}

@keyframes flashUrgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Emergency Contact */
.emergency-contact {
  border: 3px solid var(--danger) !important;
  background: linear-gradient(145deg, rgba(220,53,69,0.15), var(--navy-medium)) !important;
}

.emergency-contact .avatar {
  background: var(--danger) !important;
  color: white !important;
  animation: emergencyBlink 2s infinite;
}

@keyframes emergencyBlink {
  0%, 70%, 100% { opacity: 1; }
  35% { opacity: 0.3; }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .leaders-grid,
  .officer-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .history-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .leader-card,
  .officer-card {
    padding: 20px;
  }
  
  .officer-actions {
    flex-direction: column;
  }
  
  .officer-actions .btn {
    min-width: auto;
  }
}

/* ========================================
   BATTLE CAROUSEL STYLES
   ======================================== */

.battle-carousel {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(145deg, var(--navy-medium), var(--navy-dark));
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 400%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.battle-slide {
  width: 25%;
  height: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.battle-slide.active {
  opacity: 1;
}

.battle-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.battle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.battle-slide:hover .battle-image img {
  transform: scale(1.05);
}

.battle-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 40px 30px 30px;
  color: white;
}

.battle-info h4 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-family: 'Cinzel', serif;
}

.battle-info p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 15px;
  color: var(--text);
}

.battle-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.battle-stats .stat {
  background: rgba(255,215,0,0.2);
  border: 1px solid var(--gold);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,215,0,0.8);
  color: var(--navy-dark);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--gold);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(255,215,0,0.6);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: rgba(0,0,0,0.3);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
  background: var(--gold);
  transform: scale(1.2);
}

/* Enhanced Featured Content */
.featured-video,
.featured-album {
  position: relative;
  overflow: hidden;
}

.featured-video::before,
.featured-album::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--gold), var(--ocean-light), var(--gold));
  z-index: -1;
  border-radius: 15px;
  animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(180deg); }
}

.badge.exclusive {
  background: linear-gradient(45deg, #ff6b6b, #feca57) !important;
  animation: exclusivePulse 2s ease-in-out infinite;
}

.badge.legendary {
  background: linear-gradient(45deg, #a29bfe, #fd79a8) !important;
  animation: legendaryShine 2s ease-in-out infinite;
}

@keyframes exclusivePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes legendaryShine {
  0%, 100% { box-shadow: 0 0 10px rgba(162,155,254,0.6); }
  50% { box-shadow: 0 0 20px rgba(253,121,168,0.8); }
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 15px;
}

.guide-media:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  display: flex;
  gap: 15px;
  color: white;
  font-size: 0.9rem;
}

.view-count,
.rating {
  background: rgba(0,0,0,0.6);
  padding: 5px 10px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.3);
}

/* Mobile Carousel */
@media (max-width: 768px) {
  .carousel-container {
    height: 300px;
  }
  
  .battle-overlay {
    padding: 20px 15px 15px;
  }
  
  .battle-info h4 {
    font-size: 1.1rem;
  }
  
  .battle-info p {
    font-size: 0.8rem;
  }
  
  .battle-stats {
    gap: 8px;
  }
  
  .battle-stats .stat {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .carousel-btn.prev {
    left: 10px;
  }
  
  .carousel-btn.next {
    right: 10px;
  }
}

/* ========================================
   EVENT PAGE STYLES
======================================== */

/* Event Page Body Adjustments */
/* body.event-page {
  overflow-x: hidden;
}

body.event-page .navbar {
  position: relative;
  z-index: 1000;
} */

/* Event Hero Section */
.event-hero {
  min-height: 70vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 4rem 2rem 2rem 2rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  clear: both;
}

.event-hero-content {
  max-width: 1000px;
  width: 100%;
  color: white;
  padding: 0 2rem;
  box-sizing: border-box;
}

.event-badge {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255,107,53,0.4);
  animation: pulse 2s infinite;
}

.event-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  color: var(--gold);
  line-height: 1.2;
  word-spacing: 0.2em;
}

.event-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Event Countdown */
.event-countdown {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 0 auto;
}

.countdown-item {
  background: rgba(0,0,0,0.7);
  border: 2px solid var(--gold);
  border-radius: 15px;
  padding: 1.2rem 1rem;
  text-align: center;
  min-width: 90px;
  max-width: 120px;
  flex: 1;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.countdown-number {
  display: block;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  font-family: 'Bebas Neue', cursive;
  text-shadow: 0 2px 10px rgba(255,215,0,0.5);
  line-height: 1;
}

.countdown-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  opacity: 0.8;
}

.event-live {
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: pulse 1s infinite;
  box-shadow: 0 5px 20px rgba(255,68,68,0.5);
}

/* Event Details Grid */
.event-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 100%;
  box-sizing: border-box;
}

.event-info-card {
  background: linear-gradient(145deg, var(--navy-medium), var(--navy-light));
  border: 2px solid var(--gold);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.event-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.1), transparent);
  transition: left 0.6s ease;
}

.event-info-card:hover::before {
  left: 100%;
}

.event-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255,215,0,0.3);
  border-color: #fff;
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.event-info-card h3 {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.event-info-card p {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.event-info-card strong {
  color: var(--gold);
}

/* Event Description */
.event-description-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.description-main {
  background: linear-gradient(145deg, var(--navy-medium), var(--navy-light));
  border: 2px solid var(--gold);
  border-radius: 15px;
  padding: 2.5rem;
}

.event-story h3 {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.event-story h4 {
  color: var(--gold);
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

.event-story ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.event-story li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.event-story strong {
  color: var(--gold);
}

.event-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.event-highlight {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 15px;
  padding: 2rem;
  color: white;
  text-align: center;
  box-shadow: 0 5px 20px rgba(255,107,53,0.3);
}

.event-highlight h4 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.event-stats {
  background: linear-gradient(145deg, var(--navy-medium), var(--navy-light));
  border: 2px solid var(--gold);
  border-radius: 15px;
  padding: 2rem;
}

.event-stats h4 {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,215,0,0.2);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-value {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Registration Section */
.registration-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.registration-info {
  background: linear-gradient(145deg, var(--navy-medium), var(--navy-light));
  border: 2px solid var(--gold);
  border-radius: 15px;
  padding: 2.5rem;
}

.registration-info h3 {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.registration-requirements {
  margin-top: 2rem;
}

.registration-requirements h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.registration-requirements ul {
  list-style: none;
  padding: 0;
}

.registration-requirements li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.registration-form-container {
  background: linear-gradient(145deg, var(--navy-medium), var(--navy-light));
  border: 2px solid var(--gold);
  border-radius: 15px;
  padding: 2.5rem;
}

.registration-form .form-group {
  margin-bottom: 1.5rem;
}

.registration-form label {
  display: block;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.3);
  border: 2px solid rgba(255,215,0,0.3);
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(255,215,0,0.3);
  outline: none;
}

.registration-form input::placeholder,
.registration-form textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.registration-form select option {
  background: var(--navy-dark);
  color: white;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Checkbox Options for Tournament Modes */
.checkbox-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkbox-options .checkbox-label {
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border: 2px solid rgba(255,215,0,0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.checkbox-options .checkbox-label:hover {
  border-color: var(--gold);
  background: rgba(255,215,0,0.1);
}

.checkbox-options .checkbox-label input:checked + .checkmark {
  background: var(--gold);
}

/* Tournament Mode Options */
.tournament-modes {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  border: 1px solid rgba(255,215,0,0.3);
}

.tournament-modes h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.mode-option {
  margin-bottom: 0.8rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.mode-option strong {
  color: var(--gold);
}

/* Leaderboard Preview */
.leaderboard-preview {
  background: linear-gradient(145deg, var(--navy-medium), var(--navy-light));
  border: 2px solid var(--gold);
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.leaderboard-preview h4 {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.leaderboard-section {
  margin-bottom: 1.5rem;
}

.leaderboard-section:last-child {
  margin-bottom: 0;
}

.leaderboard-section h5 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,215,0,0.3);
}

.ranking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  border-left: 3px solid transparent;
}

.ranking-item:first-child {
  border-left-color: #FFD700;
  background: rgba(255,215,0,0.1);
}

.ranking-item:nth-child(2) {
  border-left-color: #C0C0C0;
  background: rgba(192,192,192,0.1);
}

.ranking-item:nth-child(3) {
  border-left-color: #CD7F32;
  background: rgba(205,127,50,0.1);
}

.rank {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  min-width: 30px;
}

.pilot-name {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* Form improvements for new fields */
.registration-form small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  font-style: italic;
}

.btn-large {
  width: 100%;
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1rem;
}

/* Responsive Design for Events */
@media (max-width: 1200px) {
  .event-hero-content {
    max-width: 90%;
    padding: 0 1.5rem;
  }
  
  .countdown-item {
    min-width: 80px;
    max-width: 100px;
  }
}

@media (max-width: 768px) {
  .event-hero {
    min-height: 60vh;
    padding: 2rem 1rem;
    background-attachment: scroll;
  }
  
  .event-hero-content {
    padding: 0 1rem;
  }
  
  .event-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1rem;
  }
  
  .event-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .event-countdown {
    gap: 0.8rem;
    margin: 0 auto;
    max-width: 100%;
  }
  
  .countdown-item {
    padding: 1rem 0.6rem;
    min-width: 70px;
    max-width: 85px;
    flex: 1 1 calc(25% - 0.8rem);
  }
  
  .countdown-number {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .countdown-label {
    font-size: 0.8rem;
  }
  
  .event-description-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .registration-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .event-details-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .event-hero {
    min-height: 50vh;
    padding: 1.5rem 0.5rem;
  }
  
  .event-hero-content {
    padding: 0 0.5rem;
    max-width: 100%;
  }
  
  .event-title {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
    word-spacing: 0.1em;
    line-height: 1.1;
  }
  
  .event-subtitle {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .event-countdown {
    gap: 0.5rem;
    justify-content: space-between;
    padding: 0 0.5rem;
  }
  
  .countdown-item {
    padding: 0.8rem 0.4rem;
    min-width: 60px;
    max-width: 75px;
    flex: 1 1 calc(25% - 0.5rem);
    border-width: 1px;
  }
  
  .countdown-number {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }
  
  .countdown-label {
    font-size: 0.7rem;
  }
  
  .event-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }
}

/* ================================
   IMPERIAL GALLERY STYLES
   ================================ */

/* Gallery Hero Section */
.gallery-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-attachment: fixed;
  overflow: hidden;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255,215,0,0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-ornament {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
  animation: float 3s ease-in-out infinite;
}

.hero-title {
  margin-bottom: 2rem;
}

.title-main {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), #fff, var(--gold));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3s ease-in-out infinite;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 20px rgba(255,215,0,0.3);
}

.title-sub {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-style: italic;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.divider-ornament {
  font-size: 2rem;
  color: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

.divider-line {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Gallery Main Sections */
.gallery-main {
  padding: 4rem 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-ornament {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.5));
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.section-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  font-style: italic;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.section-divider span {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-divider i {
  color: var(--gold);
  font-size: 1.2rem;
}

/* Imperial Chronicles */
.imperial-chronicles {
  padding: 6rem 1rem;
  background: linear-gradient(135deg, rgba(13,27,42,0.3), rgba(27,38,59,0.2));
  margin: 2rem 0;
  border-top: 1px solid rgba(255,215,0,0.2);
  border-bottom: 1px solid rgba(255,215,0,0.2);
}

.chronicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.chronicle-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chronicle-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.card-frame {
  background: linear-gradient(135deg, rgba(30,58,95,0.9), rgba(10,22,40,0.95));
  border: 2px solid rgba(255,215,0,0.3);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.card-frame::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--gold), transparent, var(--gold));
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chronicle-card:hover .card-frame::before {
  opacity: 0.7;
}

.card-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.chronicle-card:hover .card-image img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(13,27,42,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chronicle-card:hover .image-overlay {
  opacity: 1;
}

.overlay-ornament {
  font-size: 4rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,215,0,0.8);
  animation: float 2s ease-in-out infinite;
}

.card-content {
  padding: 2rem;
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,215,0,0.15);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,215,0,0.3);
}

.card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.card-description {
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.detail-item i {
  color: var(--gold);
}

/* Imperial Archives (Video Section) */
.imperial-archives {
  padding: 6rem 1rem;
}

.archives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.archive-item {
  background: linear-gradient(135deg, rgba(30,58,95,0.8), rgba(10,22,40,0.9));
  border: 2px solid rgba(255,215,0,0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.archive-item:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 15px 50px rgba(255,215,0,0.2);
}

.video-frame {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.video-container {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

.imperial-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
  border-radius: 15px;
}

.imperial-video-thumb {
  background: linear-gradient(135deg, rgba(13,27,42,0.9), rgba(27,38,59,0.8)), 
              radial-gradient(circle at center, rgba(255,215,0,0.1), transparent);
  border: 2px solid rgba(255,215,0,0.3);
}

.video-preview-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23001122"/><circle cx="20" cy="30" r="2" fill="%23FFD700" opacity="0.3"/><circle cx="80" cy="70" r="1.5" fill="%23FFD700" opacity="0.2"/><circle cx="60" cy="20" r="1" fill="%23FFD700" opacity="0.4"/><path d="M30,50 Q50,30 70,50 Q50,70 30,50" fill="none" stroke="%23FFD700" stroke-width="0.5" opacity="0.2"/></svg>');
  opacity: 0.3;
}

.video-info-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.video-date, .video-type {
  background: rgba(255,215,0,0.9);
  color: #1a1a1a;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.video-type {
  background: rgba(255,255,255,0.9);
  color: #1a1a1a;
}

.video-thumbnail.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255,215,0,0.95);
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 2rem;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255,215,0,0.5);
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
  background: rgba(255,215,0,1);
  box-shadow: 0 0 30px rgba(255,215,0,0.8);
}

.archive-content {
  padding: 2rem;
}

.archive-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,215,0,0.15);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.archive-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.archive-description {
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.archive-metadata {
  display: flex;
  gap: 2rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.archive-metadata i {
  color: var(--gold);
  margin-right: 0.5rem;
}

/* Battle Chronicles */
.battle-chronicles {
  padding: 6rem 1rem;
  background: linear-gradient(135deg, rgba(13,27,42,0.2), rgba(27,38,59,0.1));
}

.battles-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.battle-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  aspect-ratio: 4/3;
}

.battle-item:hover {
  transform: translateY(-5px) scale(1.02);
}

.battle-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255,215,0,0.3);
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30,58,95,0.5), rgba(10,22,40,0.7));
}

.battle-frame::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, var(--gold), transparent, var(--gold), transparent);
  border-radius: 15px;
  z-index: -1;
  opacity: 0;
  animation: rotate 4s linear infinite;
}

.battle-item:hover .battle-frame::before {
  opacity: 0.6;
}

.battle-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.battle-item:hover .battle-frame img {
  transform: scale(1.1);
}

.battle-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.battle-item:hover .battle-overlay {
  transform: translateY(0);
}

.battle-info {
  color: white;
}

.battle-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,215,0,0.2);
  color: var(--gold);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.battle-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.battle-description {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.battle-metadata {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
}

.battle-date {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Artistic Heritage */
.artistic-heritage {
  padding: 6rem 1rem;
}

.heritage-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.artwork-item {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.artwork-item:hover {
  transform: translateY(-8px) rotate(1deg);
}

.artwork-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139,69,19,0.3), rgba(160,82,45,0.2));
  padding: 15px;
  border: 3px solid rgba(255,215,0,0.4);
  border-radius: 15px;
}

.artwork-frame::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 2px solid rgba(255,215,0,0.6);
  border-radius: 10px;
}

.artwork-frame::after {
  content: '❈';
  position: absolute;
  top: 10px;
  left: 10px;
  color: var(--gold);
  font-size: 1.5rem;
  opacity: 0.7;
}

.artwork-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.5s ease;
}

.artwork-item:hover .artwork-frame img {
  transform: scale(1.05);
}

.artwork-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 2rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.artwork-item:hover .artwork-overlay {
  transform: translateY(0);
}

.artwork-info {
  color: white;
  text-align: center;
}

.artwork-category {
  background: rgba(255,215,0,0.2);
  color: var(--gold);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.artwork-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
}

/* Imperial Achievements */
.imperial-achievements {
  padding: 6rem 1rem;
  background: linear-gradient(135deg, rgba(13,27,42,0.4), rgba(27,38,59,0.3));
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.achievement-card {
  background: linear-gradient(135deg, rgba(30,58,95,0.8), rgba(10,22,40,0.9));
  border: 2px solid rgba(255,215,0,0.3);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,215,0,0.1), transparent);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
}

.achievement-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 15px 40px rgba(255,215,0,0.2);
}

.achievement-card:hover::before {
  transform: rotate(45deg) translate(50%, 50%);
}

.achievement-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.achievement-content {
  position: relative;
  z-index: 2;
}

.achievement-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.achievement-description {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.achievement-date {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Call to Honor */
.call-to-honor {
  padding: 6rem 1rem;
  text-align: center;
  background: radial-gradient(circle at center, rgba(255,215,0,0.1) 0%, transparent 70%);
}

.honor-content {
  max-width: 800px;
  margin: 0 auto;
}

.honor-ornament {
  font-size: 4rem;
  color: var(--gold);
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
}

.honor-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--gold);
  margin-bottom: 2rem;
}

.honor-description {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.honor-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn-imperial {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #1a1a1a;
  border: 2px solid var(--gold);
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.btn-imperial:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255,215,0,0.4);
  background: linear-gradient(135deg, #fff, var(--gold));
}

.btn-alliance {
  background: linear-gradient(135deg, rgba(114,137,218,0.9), rgba(88,101,242,0.9));
  color: white;
  border: 2px solid rgba(114,137,218,0.5);
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.btn-alliance:hover {
  transform: translateY(-3px);
  border-color: #7289da;
  box-shadow: 0 10px 30px rgba(114,137,218,0.4);
}

/* Imperial Footer */
.imperial-footer {
  background: linear-gradient(135deg, rgba(13,27,42,0.9), rgba(10,22,40,0.95));
  border-top: 2px solid rgba(255,215,0,0.3);
  padding: 3rem 1rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-ornament {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer-text {
  color: rgba(255,255,255,0.8);
  font-style: italic;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  border: 1px solid rgba(255,215,0,0.3);
}

.footer-links a:hover {
  background: rgba(255,215,0,0.1);
  transform: translateY(-2px);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .chronicles-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .archives-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .battles-gallery {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .heritage-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  
  .honor-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .imperial-chronicles,
  .imperial-archives,
  .battle-chronicles,
  .artistic-heritage,
  .imperial-achievements,
  .call-to-honor {
    padding: 3rem 0.5rem;
  }
}

/* Imperial Modal Styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal[aria-hidden="false"] {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.imperial-modal {
  background: linear-gradient(135deg, rgba(13,27,42,0.95), rgba(27,38,59,0.98));
  border: 3px solid var(--gold);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,215,0,0.2);
  overflow: hidden;
}

.imperial-modal::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--gold), transparent, var(--gold), transparent);
  border-radius: 20px;
  z-index: -1;
  animation: borderGlow 3s linear infinite;
}

.imperial-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,215,0,0.5);
  color: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10;
}

.imperial-close:hover {
  background: rgba(255,215,0,0.2);
  border-color: var(--gold);
  transform: rotate(90deg) scale(1.1);
}

.modal-header-ornate {
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  background: linear-gradient(135deg, rgba(255,215,0,0.1), transparent);
  position: relative;
}

.modal-header-ornate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.header-ornament {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(255,215,0,0.5);
  animation: float 3s ease-in-out infinite;
}

.modal-title-imperial {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 1rem 0;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 10px rgba(255,215,0,0.3);
}

.title-underline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.title-underline span {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.title-underline i {
  color: var(--gold);
  font-size: 0.8rem;
}

.form-container-ornate {
  padding: 0 2rem 2.5rem;
}

.imperial-row {
  margin-bottom: 2rem;
  position: relative;
}

.imperial-label {
  display: block;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
}

.imperial-label::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.imperial-input, .imperial-textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,215,0,0.3);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: none;
  font-family: 'Montserrat', sans-serif;
}

.imperial-input:focus, .imperial-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.2), 0 0 15px rgba(255,215,0,0.1);
  transform: translateY(-2px);
}

.imperial-input::placeholder, .imperial-textarea::placeholder {
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

.imperial-textarea {
  min-height: 120px;
  resize: vertical;
}

.imperial-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), #b8860b);
  border: 3px solid var(--gold);
  color: #1a1a1a;
  padding: 1rem 2rem;
  border-radius: 15px;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.imperial-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

.imperial-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255,215,0,0.4);
  background: linear-gradient(135deg, #fff, var(--gold));
}

.imperial-submit:hover::before {
  left: 100%;
}

.imperial-submit:active {
  transform: translateY(-1px);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-ornament {
  position: relative;
  z-index: 2;
  font-size: 1rem;
}

/* Modal Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Imperial Disclaimer */
.imperial-disclaimer {
  display: flex;
  gap: 1rem;
  background: rgba(255,215,0,0.05);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
}

.disclaimer-ornament {
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.disclaimer-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

/* Modal Responsive Design */
@media (max-width: 768px) {
  .imperial-modal {
    width: 95%;
    margin: 1rem;
  }
  
  .modal-header-ornate {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .form-container-ornate {
    padding: 0 1.5rem 2rem;
  }
  
  .modal-title-imperial {
    font-size: 1.5rem;
  }
  
  .header-ornament {
    font-size: 2rem;
  }
  
  .imperial-disclaimer {
    flex-direction: column;
    text-align: center;
  }
}