/* Military Display Fonts */
@font-face {
    font-family: 'BLACK OPS';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/blops.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Digital';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/digital-7.ttf') format('truetype');
    font-display: swap;
}

/* Base Styles */
:root {
    --color-primary: #282828;
    --color-secondary: #0dcaf0;
    --color-background: #222222;
    --color-text: #ffffff;
    --font-hero: 'Michroma', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
    --font-military: 'Digital', 'BLACK OPS', 'Orbitron', monospace;
    
    /* Responsive navbar heights */
    --navbar-height: 5.5rem;
    --navbar-height-tablet: 4rem;
    --navbar-height-mobile: 3.5rem;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: linear-gradient(to bottom, var(--color-primary), var(--color-background));
    line-height: 1.6;
    padding-top: var(--navbar-height);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-family: var(--font-heading); /* Michroma */
    font-size: 4.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-family: var(--font-section); /* Orbitron */
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

h3 {
    font-family: var(--font-section); /* Orbitron */
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

h4 {
    font-family: var(--font-body); /* Exo 2 */
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 0.5rem 0;
  background: linear-gradient(to bottom, rgba(32, 32, 32, 0.95), rgba(10, 10, 10, 0.95));
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle underline accent (not full glow) */
.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, rgba(0, 255, 255, 0.15), rgba(0, 255, 255, 0));
  opacity: 0.4;
  pointer-events: none;
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--navbar-height);
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1rem;
}


/* Logo */
.logo a {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 2rem;
    max-width: 11rem;
    object-fit: contain;
    display: block;
    position: relative;
    top: -2px; /* Nudge up slightly for vertical alignment */
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    :root {
        --navbar-height: var(--navbar-height-tablet);
    }
    
    .logo-img {
        height: 1rem;
        max-width: 3rem;
    }
    
    .hero-video .title {
        font-size: 2.5rem;
    }
    
        
    .hero-button {
        font-size: 1.3rem;
        padding: 0.8rem 1.5rem;
        min-width: 180px;
    }
    
    .hero-video .hero-content {
        padding: 1.5rem 1rem;
    }
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);       /* Use Outfit for better readability */
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1;
    padding: 0.75rem 0;
    display: inline-block;
    position: relative;
    top: 1px;                             /* Helps visually center text */
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-secondary);
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 290px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 400;
    transition: all 0.3s ease;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    background-color: #0b5ed7;
    color: #fff;
}

.btn-secondary {
    border: 1px solid var(--color-secondary);
    color: var(--color-text);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

/* Hero Section with Full-Width Video */
.hero-video {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: var(--navbar-height);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.hero-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    z-index: 0;
    opacity: 0.9;
}

.hero-video::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.75));
}


.hero-video .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 2rem 1rem;
    color: #fff;
}

.hero-video .title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.8), 0 0 24px rgba(0, 255, 255, 0.4);
  margin-bottom: 1rem;
  text-align: center;
}

.hero-video .subtitle {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  color: #a6eaff; /* neon-cyan but readable */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

/* Buttons */

@keyframes subtlePulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


.hero-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-button {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 999px;
    border: 2px solid var(--color-secondary);
    background-color: var(--color-secondary);
    color: var(--color-primary);
    text-decoration: none;
    display: inline-block;
    min-width: 200px;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(13, 202, 240, 0.25);

    animation: subtlePulse 2.5s ease-in-out infinite;
}

.hero-button:hover {
    background-color: transparent;
    color: var(--color-secondary);
    transform: translateY(-4px);
    box-shadow: 0 0 0 3px rgba(13, 202, 240, 0.3), 0 8px 24px rgba(13, 202, 240, 0.4);
}




/* Features Section */
.features {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.05);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* How to Play Section */
.how-to-play {
    padding: 60px 0;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--color-secondary);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 400;
    margin: 0 auto 1rem;
}


/* Footer */
.footer {
  background: linear-gradient(135deg, rgba(15,15,20,0.95), rgba(5,5,10,0.95));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 40px 0 20px;
  color: var(--color-text);
  border-top: 1px solid rgba(13, 202, 240, 0.15);
}
fs
.footer::before {
  content: '';
  display: block;
  height: 2px;
  background: radial-gradient(circle, rgba(0,255,255,0.5) 0%, transparent 70%);
  box-shadow: 0 0 10px rgba(0,255,255,0.3);
  margin-bottom: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(13, 202, 240, 0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(13, 202, 240, 0.25);
    border-radius: 50%;
    color: var(--color-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.social-link:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}

/* Simple Icons styling */
.social-link img {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    filter: brightness(0) saturate(100%) invert(73%) sepia(88%) saturate(1018%) hue-rotate(162deg) brightness(103%) contrast(101%);
}

.social-link:hover img {
    filter: brightness(0) saturate(100%) invert(10%) sepia(6%) saturate(1095%) hue-rotate(314deg) brightness(95%) contrast(89%);
    transform: scale(1.1);
}



.footer-title {
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-secondary);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-tagline {
    color: var(--color-secondary) !important;
    font-weight: 500;
}

/* Footer Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 1rem;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-column:first-child {
        grid-column: 1;
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-bottom-content {
        font-size: 0.85rem;
    }
}

@media (min-width: 1280px) {
    .footer-grid {
        gap: 3rem;
    }
}


/* Hamburger Menu (Hidden by default) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Glow button effect from original CSS */
.glow-button, .custom-button {
    color: white !important;
    font-size: 2rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 20px 10px rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    width: auto;
    min-width: 200px;
    max-width: 300px;
    display: inline-block;
}

/* === Auth Offcanvas (Login/Register Panel) === */
:root {
  --cyan-primary: #00bcd4;
  --cyan-glow: #00ffff;
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --bg-dark-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.1);
}

.offcanvas {
  background: linear-gradient(135deg, #000, #0a0a0a);
  color: var(--text-light);
  width: 450px !important;
  max-width: 90vw;
  border-left: 1px solid var(--border-glass);
  /* Increased shadow opacity for better definition */
  box-shadow: -8px 0 20px rgba(0,255,255,0.1);
}

@media (min-width: 768px) {
  .offcanvas {
    width: 550px !important;
  }
}

.offcanvas .btn-close {
  filter: brightness(0) invert(1);
}

.offcanvas .card {
  background-color: var(--bg-dark-glass) !important;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  /* Increased card shadow opacity for more pop */
  box-shadow: 0 0 20px rgba(0,255,255,0.1);
}

.offcanvas .nav-tabs {
  border-bottom: 1px solid rgba(0,255,255,0.2);
}

.offcanvas .nav-tabs .nav-link {
  color: var(--text-muted);
  border: none;
  padding: 10px 15px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.offcanvas .nav-tabs .nav-link.active {
  color: var(--cyan-glow);
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 2px solid var(--cyan-glow);
  text-shadow: 0 0 6px rgba(0,255,255,0.5);
  font-weight: 600;
}

.offcanvas .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  padding: 10px 15px;
  height: auto;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.offcanvas .form-control:focus {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 10px rgba(0,255,255,0.3);
  background-color: rgba(255, 255, 255, 0.1);
}

.offcanvas .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.offcanvas .form-label {
  color: var(--text-light);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.offcanvas .btn-success {
  background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-glow));
  border: none;
  color: #0a0a0a;
  padding: 12px 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.offcanvas .btn-success:hover {
  background: linear-gradient(135deg, var(--cyan-glow), #b2ffff);
  color: #0a0a0a;
  box-shadow: 0 0 30px rgba(0,255,255,0.7);
  transform: translateY(-2px);
}

.offcanvas a {
  color: var(--cyan-glow);
  text-decoration: none;
}

.offcanvas a:hover {
  text-decoration: underline;
  text-shadow: 0 0 5px rgba(0,255,255,0.4);
}

.offcanvas .form-check-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

.offcanvas .form-check-input {
  /* Slightly more visible default checkbox state */
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.offcanvas .form-check-input:checked {
  /* Use primary cyan for background to be less bright */
  background-color: var(--cyan-primary);
  /* Border color slightly less intense than full glow for softer pop */
  border-color: rgba(0, 255, 255, 0.7); /* Custom rgba to control brightness */
  /* Add a subtle shadow for pop, with lower opacity */
  box-shadow: 0 0 6px rgba(0,255,255,0.4);
}

.offcanvas sup {
  color: var(--cyan-glow);
}

/* Section Headers in Forms */
.form-section-title {
  color: var(--cyan-glow);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-shadow: 0 0 8px rgba(0,255,255,0.4);
}

/* Required Field Highlight */
.form-control:required {
  border-left: 3px solid var(--cyan-primary);
}

/* Spacing and Layout Fixes */
.offcanvas .card-body {
  padding: 20px;
}

.offcanvas .tab-content {
  padding-top: 15px;
}

@media (max-width: 767px) {
  .offcanvas .form-control {
    font-size: 16px;
    padding: 8px 12px;
  }

  .offcanvas .form-group {
    margin-bottom: 10px;
  }
}

/* Scrollable Form Behavior */
.offcanvas form {
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 5px;
}

/* WebKit Scrollbar Styling */
.offcanvas form::-webkit-scrollbar {
  width: 5px;
}
.offcanvas form::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.offcanvas form::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}
.offcanvas form::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* User Dropdown Menu */
.btn-user {
    background-color: transparent;
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-user:hover, 
.btn-user:focus {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}

.dropdown-menu-dark {
    background-color: #1f1f2f;
    border: 1px solid var(--color-secondary);
    padding: 0.5rem 0;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.dropdown-menu-dark .dropdown-item {
    color: #f0f0f0;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dropdown-menu-dark .dropdown-item:hover {
    background-color: rgba(13, 202, 240, 0.2);
    color: var(--color-secondary);
}

.dropdown-menu-dark .dropdown-item:active,
.dropdown-menu-dark .dropdown-item:focus {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.dropdown-menu-dark .dropdown-divider {
    border-top: 1px solid rgba(13, 202, 240, 0.2);
    margin: 0.25rem 0;
}

.btn-user.dropdown-toggle {
    padding: 7px 24px !important;
}

.btn-user:hover,
.btn-user:focus {
    background-color: var(--color-secondary);
    color: #111 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}

/* International Telephone Input Styles */
.iti {
    width: 100%;
}

.iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/img/flags@2x.png");
    }
}

.iti__country-list {
    background-color: #1f1f2f !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #f0f0f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.iti__country {
    padding: 8px 10px;
    background-color: #1f1f2f !important;
}

.iti__country-name {
    color: #ffffff !important;
    font-weight: 500;
}

.iti__dial-code {
    color: #14edb3 !important;
}

.iti__country:hover {
    background-color: rgba(20, 237, 179, 0.2) !important;
}

.iti__selected-flag {
    background-color: rgba(255, 255, 255, 0.1);
}

.iti__selected-flag:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Past Hunts Section Styles */
.past-hunts {
    background-color: #0f0f0f; /* Matches active-hunts section */
    padding: 60px 0;
    color: #fff;
}

.past-hunts .hunt-card {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.past-hunts .hunt-card:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.past-hunts .hunt-badge.finished {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
}

.past-hunts .hunt-badge.expired {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
}

.past-hunts .winner-info {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 8px 12px;
    border-radius: 15px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ffd700;
}

.past-hunts .end-date {
    color: #ccc;
    font-size: 0.9rem;
}

.past-hunts h2 {
    color: #fff; /* Neutral white, not turquoise */
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00d4ff;
    color: #00d4ff;
    transform: translateY(-2px);
}

/* Last 6 Treasure Hunts Section */
.last-hunts {
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    padding: 60px 0;
    color: white;
}

.last-hunts h2 {
    color: #00d4ff;
    margin-bottom: 40px;
    text-align: center;
    font-size: 2.2rem;
}

.last-hunt-item {
    transition: all 0.3s ease;
}

.last-hunt-item:hover {
    transform: translateY(-8px);
}

.last-hunt-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.last-hunt-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    height: 120px; /* Fixed height for smaller images */
}

.last-hunt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.last-hunt-item:hover .last-hunt-image img {
    transform: scale(1.1);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #333, #555);
    color: #999;
    font-size: 1.5rem;
}

.last-hunt-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
}

.hunt-status {
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hunt-status.active {
    background: #28a745;
    color: white;
}

.hunt-status.finished {
    background: #007bff;
    color: white;
}

.hunt-status.expired {
    background: #6c757d;
    color: white;
}

.last-hunt-info h4 {
    font-size: 0.9rem;
    margin-bottom: 6px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    height: 2.4em; /* Fixed height for consistency */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.last-hunt-info .prize {
    font-size: 1rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 4px;
}

.last-hunt-info .date {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 0;
}

/* Responsive adjustments for last hunts */
@media (max-width: 768px) {
    .last-hunts h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .last-hunt-image {
        height: 100px;
    }
    
    .last-hunt-info h4 {
        font-size: 0.85rem;
    }
    
    .last-hunt-info .prize {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .last-hunt-image {
        height: 80px;
        border-radius: 8px;
    }
    
    .last-hunt-info h4 {
        font-size: 0.8rem;
    }
    
    .last-hunt-info .prize {
        font-size: 0.85rem;
    }
    
    .last-hunt-info .date {
        font-size: 0.75rem;
    }
    
    .no-image-placeholder {
        font-size: 1.2rem;
    }
}

/* Very specific selectors for index page hunt images */
.active-hunts .hunts-grid .hunt-card .hunt-container .hunt-image {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    overflow: hidden !important;
    background: linear-gradient(45deg, #333, #555) !important;
    max-height: none !important;
    height: auto !important;
}

.active-hunts .hunts-grid .hunt-card .hunt-container .hunt-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
}

/* Also target past hunts section */
.past-hunts .hunts-grid .hunt-card .hunt-container .hunt-image {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    overflow: hidden !important;
    background: linear-gradient(45deg, #333, #555) !important;
    max-height: none !important;
    height: auto !important;
}

.past-hunts .hunts-grid .hunt-card .hunt-container .hunt-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
    max-height: none !important;
    display: block !important;
}

/* Military Style Countdown for Hunt Detail Page */
#huntCountdown {
    font-family: var(--font-military) !important;
    font-size: 3rem !important;
    font-weight: bold !important;
    color: var(--color-secondary) !important;
    text-shadow: 0 0 12px rgba(13, 202, 240, 0.8), 0 0 20px rgba(13, 202, 240, 0.4) !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    text-align: center !important;
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(13, 202, 240, 0.3) !important;
}

/* Enhanced countdown animation */
.countdown {
    animation: subtle-glow 2s ease-in-out infinite alternate;
}

/* Specific styles for hunt card countdowns to ensure proper styling */
.active-hunts .countdown,
.past-hunts .countdown.countdown {
    font-family: var(--font-military) !important;
    font-size: 1.65rem !important;
    font-weight: bold !important;
    color: var(--color-secondary) !important;
    text-shadow: 0 0 8px rgba(13, 202, 240, 0.6), 0 0 15px rgba(13, 202, 240, 0.3) !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

@keyframes subtle-glow {
    from {
        text-shadow: 0 0 8px rgba(13, 202, 240, 0.6), 0 0 15px rgba(13, 202, 240, 0.3);
    }
    to {
        text-shadow: 0 0 12px rgba(13, 202, 240, 0.8), 0 0 20px rgba(13, 202, 240, 0.5);
    }
} 

.hero-heading-glow {
  font-family: var(--font-heading); /* This should be Orbitron */
  font-size: 2.6rem;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.8);
  letter-spacing: 1px;
}

.hunt-instructions-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  backdrop-filter: blur(8px);
}

.hunt-instructions-title {
  font-size: 1.5rem;
  text-align: center;
  color: #ffc107;
  text-shadow: 0 0 8px rgba(255,193,7,0.7);
  margin-bottom: 2rem;
}

.hunt-instructions-line {
  position: absolute;
  top: 4rem;
  bottom: 1.5rem;
  left: calc(2rem + 28px);
  width: 3px;
  background: linear-gradient(to bottom, #0ff, transparent);
  z-index: 0;
  border-radius: 2px;
}

.hunt-instructions-card ul {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hunt-step {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hunt-step:not(:last-child) {
  margin-bottom: 2rem;
}

.hunt-step-icon {
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, #0ff, #00a2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  border: 3px solid #0ff;
  animation: pulseGlow 2.5s ease-in-out infinite;
  color: #000;
}

.accordion-item {
    background-color: transparent; /* Ensure it matches your dark theme */
    border: none; /* Remove default borders */
    margin-bottom: 1rem; /* Space between accordion items */
    /* Keep your .clues-box-glowing-border on .accordion-item */
}

.accordion-header {
    border-bottom: none; /* Remove header border */
}

.accordion-button {
    background-color: var(--dark-glassy-bg); /* Use your glassy background */
    color: var(--text-white); /* Adjust text color */
    border-radius: 0.5rem; /* Match your existing rounded corners */
    padding: 1.25rem 1.5rem; /* Generous padding */
    font-size: 1.2rem; /* Make header text more prominent */
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* Subtle shadow */
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: var(--cyan-glow); /* Color when active/open */
    background-color: rgba(15, 15, 15, 0.9); /* Slightly darker when open */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); /* More prominent shadow when open */
    border-bottom-left-radius: 0; /* Align with body when open */
    border-bottom-right-radius: 0;
}

.accordion-button::after {
    filter: invert(1); /* Invert the caret icon for dark mode */
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-body {
    background-color: rgba(15, 15, 15, 0.7); /* Slightly lighter glassy background for content */
    border-top: 1px solid rgba(255,255,255,0.1); /* Subtle separator */
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    padding: 1.5rem;
    color: rgba(255,255,255,0.8); /* Text color for body */
}

/* Ensure icons in headers inherit good size/color */
.accordion-button i {
    color: var(--cyan-light); /* Or text-info as per your existing code */
    font-size: 1.3rem; /* Slightly larger icons */
    transition: color 0.3s ease;
}
.accordion-button:not(.collapsed) i {
    color: var(--cyan-glow); /* Icon color when active */
}

.form-control:disabled, .form-control[readonly] {
    background-color: #e9ecef3f;
    opacity: 1;
}

.form-control:focus {
    background-color: #0f65706b !important;
}

.btn-login {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.dropdown-menu {
  background: rgba(24, 23, 23, 0.753) !important;
  border: 1px solid rgba(0, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.05);
  border-radius: 5px;
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 1050;
}

.dropdown-menu .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  transition: background 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background: rgba(0, 255, 255, 0.08);
  color: var(--cyan-glow);
}

.dropdown-menu .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 0.3rem 0;
}

.section-heading {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.8);
  text-align: left;
  margin-bottom: 2.5rem;
  color: #fff;
}

/* Active Hunts Section */
.active-hunts {
    padding: 60px 0;
    background: #0F0F0F;
}

.hunts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* Hunt Cards */
.hunt-card {
  position: relative;
  background-color: #0d0d0d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
}

.hunt-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 255, 0.3);
}

.hunt-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1a1a1a;
}

.hunt-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #333, #555);
  color: #bbb;
  font-size: 1.2rem;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease;
}

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

.hunt-title-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.4) 25%,
    rgba(0,0,0,0.25) 50%,
    rgba(0,0,0,0.15) 75%,
    rgba(0,0,0,0) 100%) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  pointer-events: none;
}

.hunt-title-bar h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
  margin: 0;
  text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 0 4px rgba(0,0,0,0.7);
  pointer-events: auto;
}

.hunt-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.7) 30%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.4) 60%,
    rgba(0,0,0,0.25) 70%,
    rgba(0,0,0,0.05) 80%,
    rgba(0,0,0,0.005) 90%,
    rgba(0,0,0,0) 100%) !important;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 2;
}

.hunt-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1rem 1.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-align: center;
}

.hunt-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

.hunt-prize-box,
.hunt-timer-box {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hunt-prize-box .label,
.hunt-timer-box .timer-label {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hunt-prize-box .value {
  font-size: 1.38rem;
  font-weight: 600;
  color: #ffc107;
  text-shadow: 0 0 6px rgba(0,0,0,0.8);
}

.countdown {
  font-size: 1.65rem;
  font-weight: bold;
  font-family: var(--font-military);
  color: var(--color-secondary);
  text-shadow: 0 0 8px rgba(13, 202, 240, 0.6), 0 0 15px rgba(13, 202, 240, 0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

.hunt-cta-container {
  background-color: #000000;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.hunt-card:hover .hunt-cta-container {
  transform: scale(1.05);
}

.hunt-cta-button {
  background: linear-gradient(90deg, #00e6ff, #007bff);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 10px rgba(0, 255, 255, 0.4) inset;
  animation: pulseGlow 2.5s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
  max-width: 65%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}


.hunt-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.7), 0 0 12px rgba(0, 255, 255, 0.5) inset;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(0,255,255,0.4); }
  50% { box-shadow: 0 0 30px rgba(0,255,255,0.7); }
  100% { box-shadow: 0 0 15px rgba(0,255,255,0.4); }
}

@media screen and (max-width: 768px) {
  .hunts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hunt-title-bar h3 {
    font-size: 1.1rem;
  }
  
  .hunt-prize-box{
    background-color: #2b2a2a88;;
  }

  .hunt-timer-box{
    background-color: #2b2a2a88;;
  }

  .hunt-prize-box .value,
  .countdown {
    font-size: 1.2rem;
  }
  .hunt-cta-button {
    font-size: 1.2rem;
    max-width: 85%;
  }

  .hunt-card {
    min-height: 520px;
    display: flex;
    flex-direction: column;
  }

  .hunt-container {
    background-color: #000000;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hunt-content-overlay {
  background-color: #000000;
  position: relative;
  padding: 1rem;
  padding-top: 0;
  }

  .hunt-gradient-bottom {
  display: none;
  }

  .hunt-title-bar {
  padding: 0.6rem;
  }

  .hunt-stats-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  }
}

/* Back Button Styling */
.back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  display: inline-block;
}

.back-btn:hover {
  background: rgba(0,255,255,0.05);
  border-color: rgba(0,255,255,0.3);
  text-decoration: none;
  transform: translateY(-2px);
  color: var(--cyan-glow);
  box-shadow: 0 0 12px rgba(0,255,255,0.2);
}

.hunt-ribbon {
  position: absolute;
  top: 12px;
  left: -40px;
  width: 140px;
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
  text-align: center;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  transform: rotate(-45deg);
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.hunt-ribbon span {
  display: block;
  padding: 4px 0;
  line-height: 1;
}

.hunt-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.75);
  padding: 0.75rem 1rem;
  z-index: 2;
  position: absolute;
  bottom: 4.5rem; /* just above the CTA button */
  left: 0;
  right: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hunt-meta-row .meta-left .label {
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.hunt-meta-row .meta-left .value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffc107;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
}

.hunt-meta-row .meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hunt-meta-row .winner-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffc107;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hunt-meta-row .winner-value i {
  font-size: 1rem;
}

.winner-announcement-box {
  background: rgba(255, 215, 0, 0.07); /* golden shimmer background */
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15), inset 0 0 10px rgba(255, 215, 0, 0.05);
}

.winner-heading {
  color: #ffd700;
  font-weight: 700;
  font-family: var(--font-heading);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  font-size: 1.3rem;
}

.winner-heading i {
  animation: pulseGoldGlow 2.5s ease-in-out infinite;
}

.winner-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0,255,255,0.6);
}

.winner-detail {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

/* Optional: gold glow animation */
@keyframes pulseGoldGlow {
  0%, 100% {
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.4);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.6);
  }
}
