/* BattleBoard - Wilmington Theme */
/* Fan community for BattleHouse Laser Combat */

/* CSS Variables for consistent theming */
:root {
    --primary-yellow: #ffcc00;
    --primary-yellow-dark: #e6b800;
    --dark-bg: #111;
    --dark-card: #363732;
    --light-text: #fff;
    --gray-text: #ccc;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 10px rgba(255, 204, 0, 0.2);
    --shadow-md: 0 6px 15px rgba(255, 204, 0, 0.3);
    --shadow-lg: 0 12px 25px rgba(255, 204, 0, 0.2);
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 12px;
    --status-booked: #66bb6a;
    --status-interested: var(--primary-yellow);
    --status-canceled: #ef5350;
    --transition-fast: all 0.2s ease;
    --hero-gradient: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
                    url('images/events/event-wilmington-springbreak.png') center/cover no-repeat;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    padding-top: calc(90px + env(safe-area-inset-top, 0px));
}

#app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-yellow {
    background-color: var(--primary-yellow);
    color: #000;
    box-shadow: var(--shadow-sm);
}

.btn-yellow:hover {
    background-color: var(--primary-yellow-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background-color: var(--primary-yellow);
    color: #000;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-yellow {
    background-color: var(--primary-yellow);
    color: #000;
}

.btn-yellow:hover {
    background-color: var(--primary-yellow-dark);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary-yellow);
    color: #000;
}

.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--dark-card);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-yellow), transparent);
    animation: titleBarPulse 2s ease-in-out infinite;
}

@keyframes titleBarPulse {
    0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.7; }
    50% { transform: translateX(-50%) scaleX(1.8); opacity: 1; }
}

.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Navbar */
.navbar {
    background-color: rgba(17, 17, 17, 0.95);
    padding: 20px 0;
    padding-top: max(20px, env(safe-area-inset-top));
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-yellow);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(17, 17, 17, 0.99);
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar .logo {
    flex-shrink: 0;
}

.navbar .logo img {
    height: 50px;
    width: auto;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--primary-yellow);
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    flex: 1;
    text-align: center;
    min-width: 0;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-shrink: 0;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: var(--light-text);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-yellow);
    transition: width 0.3s ease;
    z-index: 1;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--primary-yellow);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
                url('images/brand/battleboard-logo.png') center/cover no-repeat;
    flex: 1;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    color: var(--primary-yellow);
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
    position: relative;
    animation: titleGlow 2s infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 5px rgba(255, 204, 0, 0.3); }
    100% { text-shadow: 0 0 20px rgba(255, 204, 0, 0.8), 0 0 30px rgba(255, 204, 0, 0.6); }
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--light-text);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto 40px auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-title {
    font-size: 4rem;
    color: var(--primary-yellow);
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--dark-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 204, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.3s; }
.feature-card:nth-child(3) { animation-delay: 0.5s; }

.feature-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.15);
}

.feature-card h3 {
    color: var(--primary-yellow);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--gray-text);
}

/* Sort Controls */
.sort-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.sort-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--gray-text);
    letter-spacing: 2px;
    margin-right: 5px;
}

.sort-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 204, 0, 0.3);
    color: var(--gray-text);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sort-btn:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.sort-btn.active {
    background: var(--primary-yellow);
    color: #000;
    border-color: var(--primary-yellow);
}

/* Weapon Cards */
.weapons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}


.weapon-card {
    background-color: var(--dark-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 204, 0, 0.1);
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    /* Ensure consistent card sizing */
    min-width: 280px;
}

.weapon-card:nth-child(1) { animation-delay: 0.1s; }
.weapon-card:nth-child(2) { animation-delay: 0.2s; }
.weapon-card:nth-child(3) { animation-delay: 0.3s; }
.weapon-card:nth-child(4) { animation-delay: 0.4s; }
.weapon-card:nth-child(5) { animation-delay: 0.5s; }
.weapon-card:nth-child(6) { animation-delay: 0.6s; }
.weapon-card:nth-child(7) { animation-delay: 0.7s; }
.weapon-card:nth-child(8) { animation-delay: 0.8s; }
.weapon-card:nth-child(9) { animation-delay: 0.9s; }
.weapon-card:nth-child(10) { animation-delay: 1.0s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.weapon-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-yellow);
}

.weapon-card img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

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

.weapon-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-yellow);
    font-size: 1.5rem;
    position: relative;
    margin-bottom: 10px;
    text-align: center;
}

.weapon-card h3::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-yellow), transparent);
    animation: titleBarPulse 2s ease-in-out infinite;
}

.weapon-card > p {
    padding: 0 20px;
    color: var(--gray-text);
    font-size: 0.95rem;
    text-align: center;
}

/* Weapon Stats */
.weapon-stats {
    padding: 15px 20px 20px;
    background-color: rgba(20, 20, 20, 0.7);
    border-top: 1px solid rgba(255, 204, 0, 0.1);
}

.stat-bar {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.stat-label {
    width: 60px;
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-right: 10px;
    white-space: nowrap;
}

.bar-container {
    flex: 1;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    position: relative;
    background: linear-gradient(90deg, #e6b800, #ffcc00, #ffe066);
    background-size: 200% 100%;
    width: 0 !important;
    transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* When card is in view, fill to target width (set by JS via data-width) */
.weapon-card.in-view .bar-fill {
    width: var(--bar-target) !important;
    animation: barPulse 3s ease-in-out 1.4s 1 both;
}

.bar-fill.damage,
.bar-fill.ammo,
.bar-fill.reload,
.bar-fill.fire-rate,
.bar-fill.ttk {
    background: linear-gradient(90deg, #cc8800, #ffcc00, #ffe066);
    background-size: 200% 100%;
}

/* Stagger each stat bar's fill */
.weapon-card.in-view .stat-bar:nth-child(1) .bar-fill { transition-delay: 0s; }
.weapon-card.in-view .stat-bar:nth-child(2) .bar-fill { transition-delay: 0.12s; }
.weapon-card.in-view .stat-bar:nth-child(3) .bar-fill { transition-delay: 0.24s; }
.weapon-card.in-view .stat-bar:nth-child(4) .bar-fill { transition-delay: 0.36s; }
.weapon-card.in-view .stat-bar:nth-child(5) .bar-fill { transition-delay: 0.48s; }

/* Laser scan line — positioned at leading edge of bar fill */
.bar-fill::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -1px;
    width: 3px;
    height: calc(100% + 4px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px 3px rgba(255, 238, 140, 0.8), 0 0 16px 6px rgba(255, 204, 0, 0.4);
    border-radius: 2px;
    opacity: 0;
}

/* Laser appears during fill, fades out when bar stops growing */
.weapon-card.in-view .bar-fill::after {
    animation: laserRide 1.2s ease-out forwards;
}

/* Stagger laser to match each bar's fill delay */
.weapon-card.in-view .stat-bar:nth-child(1) .bar-fill::after { animation-delay: 0s; }
.weapon-card.in-view .stat-bar:nth-child(2) .bar-fill::after { animation-delay: 0.12s; }
.weapon-card.in-view .stat-bar:nth-child(3) .bar-fill::after { animation-delay: 0.24s; }
.weapon-card.in-view .stat-bar:nth-child(4) .bar-fill::after { animation-delay: 0.36s; }
.weapon-card.in-view .stat-bar:nth-child(5) .bar-fill::after { animation-delay: 0.48s; }

/* Subtle energy pulse on the bar gradient */
@keyframes barPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Laser fades in at start of fill, rides the edge, fades out at end */
@keyframes laserRide {
    0% { opacity: 0; }
    8% { opacity: 1; }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

.stat-value {
    width: 60px;
    text-align: right;
    font-size: 0.75rem;
    color: var(--light-text);
    margin-left: 10px;
    line-height: 1.2;
    flex-shrink: 0;
}

/* Enhanced weapon stats for better visual impact */
.weapon-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-yellow), transparent);
}

.weapon-card:hover .weapon-stats {
    background-color: rgba(30, 30, 30, 0.8);
}

/* Mission Cards */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.mission-card {
    background-color: var(--dark-card);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 204, 0, 0.1);
    box-shadow: var(--shadow);
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.mission-card:nth-child(1) { animation-delay: 0.1s; }
.mission-card:nth-child(2) { animation-delay: 0.3s; }
.mission-card:nth-child(3) { animation-delay: 0.5s; }
.mission-card:nth-child(4) { animation-delay: 0.7s; }

.mission-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.mission-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 15px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.mission-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary-yellow);
}

.mission-card h3 {
    color: var(--primary-yellow);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* Location Section */
.location-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.location-info h3 {
    color: var(--primary-yellow);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.location-info p {
    color: var(--gray-text);
    margin-bottom: 5px;
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background-color: #222;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
    border: 2px solid rgba(255, 204, 0, 0.2);
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--dark-card);
    padding: 30px;
    border-radius: var(--border-radius);
}

.review-card .stars {
    color: var(--primary-yellow);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-card p {
    margin-bottom: 15px;
    color: var(--gray-text);
}

.review-author {
    color: var(--primary-yellow);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    padding: 20px 0;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-yellow), transparent);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.footer-brand img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-brand:hover img {
    transform: scale(1.05);
}

.vet-badge {
    color: var(--primary-yellow);
    font-weight: 600;
    margin-top: 10px;
    font-size: 0.9rem;
    position: relative;
}

.vet-badge::before {
    content: '★';
    margin-right: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.footer-bottom {
    text-align: center;
    color: var(--gray-text);
    padding-top: 30px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-column h4 {
    color: var(--primary-yellow);
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    color: var(--gray-text);
    padding-top: 30px;
}

/* Form Styles */
.form-section {
    padding: 80px 0;
    min-height: 80vh;
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 204, 0, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--dark-card);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 204, 0, 0.1);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.form-container:hover {
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-align: center;
    color: var(--primary-yellow);
    margin-bottom: 10px;
    font-size: 2rem;
}

.form-subtitle {
    text-align: center;
    color: var(--gray-text);
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-text);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius);
    border: 1px solid #444;
    background-color: #222;
    color: var(--light-text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-top: 5px;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    text-align: center;
}

.form-link {
    color: var(--gray-text);
    font-size: 0.95rem;
}

.form-link:hover {
    color: var(--primary-yellow);
}

.status-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background-color: #222;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.status-option:hover {
    background-color: #333;
}

.status-option-active {
    background-color: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.4);
}

.status-option-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-option-disabled:hover {
    background-color: #222;
}

.status-option input[type="radio"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: var(--primary-yellow);
    margin-right: 8px;
}

.option-label {
    color: var(--light-text);
}

.message-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
}

.message-box.success {
    background-color: rgba(0, 255, 128, 0.1);
    border: 1px solid rgba(0, 255, 128, 0.3);
    color: #00ff80;
}

.message-box.error {
    background-color: rgba(255, 64, 64, 0.1);
    border: 1px solid rgba(255, 64, 64, 0.3);
    color: #ff4040;
}

/* Signups Section */
.signup-section {
    padding: 80px 0;
    min-height: 80vh;
}

.signup-form-container {
    max-width: 500px;
    margin: 0 auto 40px;
}

.sub-section-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--primary-yellow);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-top: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.signups-list {
    max-width: 100%;
}

.signup-card {
    background-color: var(--dark-card);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border: 1px solid rgba(255, 204, 0, 0.1);
    border-left: 4px solid var(--primary-yellow);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.signup-card:hover {
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.signup-card.booked {
    border-left-color: var(--status-booked);
}

.signup-card.interested {
    border-left-color: var(--primary-yellow);
}

.signup-card h4 {
    color: var(--light-text);
    margin-bottom: 10px;
}

.signup-card p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.no-signups {
    text-align: center;
    color: var(--gray-text);
    padding: 40px;
}

/* Responsive Design */
/* Hamburger Menu Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-yellow);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .navbar {
        padding: 8px 0;
        padding-top: max(8px, env(safe-area-inset-top));
    }

    .navbar.scrolled {
        padding: 6px 0;
        padding-top: max(6px, env(safe-area-inset-top));
    }

    .navbar .logo img {
        height: 30px;
    }

    .page-title {
        font-size: 0.78rem;
        letter-spacing: 2px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 15px 20px;
        gap: 0;
        border-bottom: 2px solid var(--primary-yellow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 12px 0;
        font-size: 0.9rem;
    }

    body {
        padding-top: calc(46px + env(safe-area-inset-top, 0px));
    }
}

@media (max-width: 968px) and (min-width: 769px) {
    .nav-links {
        gap: 12px;
    }

    .nav-links li a {
        font-size: 0.88rem;
    }

    .page-title {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .location-details {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .features-grid,
    .reviews-grid,
    .missions-grid {
        grid-template-columns: 1fr;
    }

    .weapons-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 10px 0;
    }

    .weapons-grid::-webkit-scrollbar {
        display: none;
    }

    .weapons-grid .weapon-card {
        flex-shrink: 0;
        width: 280px;
    }

    .form-container {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

/* Calendar & Date Picker */
.form-group input[type="date"] {
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius);
    border: 1px solid #444;
    background-color: #222;
    color: var(--light-text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

/* Spinner */
.spinner {
    border: 4px solid rgba(255, 204, 0, 0.1);
    border-left-color: var(--primary-yellow);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Time Slots Grid */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Slot Card */
.slot-card {
    background-color: var(--dark-card);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 204, 0, 0.1);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.slot-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.slot-card .slot-time {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.slot-card .slot-slots {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.slot-card .slot-max {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.slot-card .slot-signups {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.8rem;
}

.slot-card .slot-booked {
    color: var(--status-booked);
}

.slot-card .slot-interested {
    color: var(--primary-yellow);
}

.slot-card .slot-select-btn {
    width: 100%;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--dark-card);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid var(--primary-yellow);
    box-shadow: var(--shadow-lg);
}

.modal-content h3 {
    color: var(--primary-yellow);
    margin-bottom: 20px;
    text-align: center;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-text);
    font-weight: 500;
}

.modal-content input[readonly] {
    background-color: #333;
    color: var(--gray-text);
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .time-slots-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 25px;
    }
}

/* Prevent browser autofill styling issues */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--dark-card) inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Suppress Bootstrap autofill error */
[aria-label="Autofill message"] {
    display: none !important;
}

.autofill-class {
    display: none !important;
}

/* Mobile Horizontal Scroll Wrapper */
@media (max-width: 768px) {
    .mobile-scroll-wrapper {
        position: relative;
        overflow: hidden;
    }

    .mobile-scroll-wrapper::before,
    .mobile-scroll-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        z-index: 2;
        pointer-events: none;
    }

    .mobile-scroll-wrapper::before {
        left: 0;
        background: linear-gradient(90deg, var(--dark-bg), transparent);
    }

    .mobile-scroll-wrapper::after {
        right: 0;
        background: linear-gradient(270deg, var(--dark-bg), transparent);
    }
}

/* Utility Classes */
.status-description {
    font-size: 0.8rem;
    color: var(--gray-text);
    font-weight: 400;
}

.status-hint {
    font-size: 0.75rem;
    color: rgba(255, 204, 0, 0.5);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.form-section-divider {
    margin-top: 30px;
}

/* Disclaimer Popup */
.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: disclaimerFadeIn 0.3s ease;
}

.disclaimer-overlay.disclaimer-closing {
    animation: disclaimerFadeOut 0.3s ease forwards;
}

.disclaimer-modal {
    background-color: var(--dark-card);
    border: 2px solid rgba(255, 60, 60, 0.6);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(255, 60, 60, 0.15);
}

.disclaimer-modal h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #ff4040;
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.disclaimer-modal p {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.disclaimer-modal strong {
    color: #ff6b6b;
}

.disclaimer-modal a {
    color: var(--primary-yellow);
    text-decoration: underline;
    font-weight: 600;
}

.disclaimer-modal a:hover {
    color: #fff;
}

.disclaimer-dismiss {
    margin-top: 10px;
}

@keyframes disclaimerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes disclaimerFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* PWA Install Banner */
.pwa-banner {
    position: fixed;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    z-index: 899;
    width: 420px;
    max-width: calc(100% - 24px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.pwa-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--dark-card);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-banner-text strong {
    display: block;
    color: var(--primary-yellow);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.pwa-banner-text span {
    font-size: 0.82rem;
    color: var(--gray-text);
    line-height: 1.4;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-btn {
    padding: 8px 16px;
    font-size: 0.78rem;
    border-radius: 6px;
    white-space: nowrap;
}

.pwa-dismiss-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.pwa-dismiss-btn:hover {
    color: var(--light-text);
}

@media (max-width: 768px) {
    .pwa-banner {
        bottom: 52px;
        left: 8px;
        right: 8px;
        width: auto;
        max-width: none;
        transform: translateX(0) translateY(100%);
    }

    .pwa-banner.visible {
        transform: translateX(0) translateY(0);
    }

    .pwa-banner-content {
        padding: 12px 14px;
    }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 360px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    font-family: 'Exo 2', sans-serif;
}

.chat-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: var(--dark-card);
    border: 1px solid rgba(255, 204, 0, 0.25);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.chat-toggle:hover {
    border-color: var(--primary-yellow);
    background: rgba(54, 55, 50, 0.95);
}

.chat-toggle-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-yellow);
    letter-spacing: 2px;
}

.chat-toggle-status {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1;
    margin-left: auto;
    margin-right: 8px;
    transition: color 0.2s ease;
}

.chat-widget.open .chat-toggle-status {
    color: rgba(255, 255, 255, 0.7);
}

.chat-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #ff4040;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    animation: chatPulse 1.5s ease-in-out infinite;
}

@keyframes chatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.chat-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0 4px;
    cursor: grab;
    touch-action: none;
}

.chat-drag-handle span {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 204, 0, 0.3);
    transition: background 0.2s ease;
}

.chat-drag-handle:active span {
    background: var(--primary-yellow);
}

.chat-body {
    display: none;
    flex-direction: column;
    height: 350px;
    background: rgba(30, 30, 28, 0.98);
    border: 1px solid rgba(255, 204, 0, 0.25);
    border-top: 1px solid rgba(255, 204, 0, 0.08);
    border-radius: 0;
    backdrop-filter: blur(12px);
    touch-action: none;
}

.chat-widget.open .chat-toggle {
    border-color: var(--primary-yellow);
}

.chat-widget.open .chat-body {
    border-color: var(--primary-yellow);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 204, 0, 0.25) transparent;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 204, 0, 0.25);
    border-radius: 2px;
}

.chat-date-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 10px;
    font-size: 0.62rem;
    color: rgba(255, 204, 0, 0.45);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

.chat-date-separator::before,
.chat-date-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 204, 0, 0.12);
}

.chat-date-separator span {
    white-space: nowrap;
}

.chat-message {
    margin-bottom: 12px;
    line-height: 1.45;
}

.chat-sender {
    font-weight: 600;
    color: var(--primary-yellow);
    font-size: 0.82rem;
    margin-right: 6px;
}

.chat-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.28);
}

.chat-text {
    display: block;
    color: var(--light-text);
    font-size: 0.88rem;
    word-break: break-word;
    margin-top: 2px;
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 204, 0, 0.1);
    background: rgba(0, 0, 0, 0.25);
}

.chat-input input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 204, 0, 0.18);
    border-radius: 6px;
    padding: 10px 14px;
    color: var(--light-text);
    font-size: 0.88rem;
    font-family: 'Exo 2', sans-serif;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.chat-input input:focus {
    border-color: var(--primary-yellow);
    background: rgba(255, 255, 255, 0.06);
}

.chat-send {
    padding: 10px 16px;
    font-size: 0.78rem;
    flex-shrink: 0;
    border-radius: 6px;
}

.chat-login-prompt {
    padding: 14px;
    text-align: center;
    border-top: 1px solid rgba(255, 204, 0, 0.1);
    background: rgba(0, 0, 0, 0.25);
}

.chat-login-prompt a {
    color: var(--primary-yellow);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.chat-login-prompt a:hover {
    color: #fff;
}

/* Chat — mobile */
@media (max-width: 768px) {
    .chat-widget {
        right: 0;
        left: 0;
        width: 100%;
        bottom: env(safe-area-inset-bottom, 0px);
    }

    .chat-toggle {
        border-radius: 12px 12px 0 0;
        border-left: none;
        border-right: none;
        padding: 12px 18px;
        margin: 0 8px;
        border-left: 1px solid rgba(255, 204, 0, 0.25);
        border-right: 1px solid rgba(255, 204, 0, 0.25);
    }

    .chat-widget.open .chat-toggle {
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .chat-body {
        border-left: none;
        border-right: none;
        height: 55dvh;
        max-height: 420px;
    }

    .chat-drag-handle {
        display: none;
    }

    .chat-messages {
        padding: 12px 14px;
    }

    .chat-message {
        margin-bottom: 14px;
    }

    .chat-text {
        font-size: 0.92rem;
    }

    .chat-sender {
        font-size: 0.84rem;
    }

    .chat-input {
        padding: 10px 12px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .chat-input input {
        padding: 12px 14px;
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    .chat-send {
        padding: 12px 18px;
    }
}

/* Date Strip */
.date-strip-wrapper {
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0;
}

.date-strip-wrapper.scroll-start::before,
.mobile-scroll-wrapper.scroll-start::before {
    opacity: 0;
}

.date-strip-wrapper.scroll-end::after,
.mobile-scroll-wrapper.scroll-end::after {
    opacity: 0;
}

.date-strip-wrapper::before,
.date-strip-wrapper::after,
.mobile-scroll-wrapper::before,
.mobile-scroll-wrapper::after {
    transition: opacity 0.2s ease;
}

.date-strip-wrapper::before,
.date-strip-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.date-strip-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--dark-bg), transparent);
}

.date-strip-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, var(--dark-bg), transparent);
}

.date-strip-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 204, 0, 0.3);
    background: var(--dark-card);
    color: var(--primary-yellow);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.date-strip-arrow:hover {
    background: var(--primary-yellow);
    color: #000;
    border-color: var(--primary-yellow);
}

.date-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    flex: 1;
    min-width: 0;
}

.date-strip.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.date-strip::-webkit-scrollbar {
    display: none;
}

.date-card {
    flex-shrink: 0;
    width: 72px;
    padding: 12px 8px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 204, 0, 0.1);
    background-color: var(--dark-card);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.date-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 204, 0, 0.15);
}

.date-card.active {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.date-card .date-dow {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-text);
    margin-bottom: 4px;
}

.date-card .date-day {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light-text);
    line-height: 1;
    margin-bottom: 4px;
}

.date-card .date-month {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.65rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-card.active .date-dow,
.date-card.active .date-day,
.date-card.active .date-month {
    color: #000;
}

.date-card.today .date-dow {
    color: var(--primary-yellow);
}

/* Deploy Warning */
.deploy-warning {
    text-align: center;
    padding: 16px 24px;
    margin-bottom: 25px;
    border: 2px solid rgba(255, 60, 60, 0.6);
    border-radius: var(--border-radius);
    background: rgba(255, 60, 60, 0.08);
    color: #ff6b6b;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.deploy-warning strong {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #ff4040;
}

.deploy-warning a {
    color: var(--primary-yellow);
    text-decoration: underline;
    font-weight: 600;
}

.deploy-warning a:hover {
    color: #fff;
}

.security-notice-modal {
    border-color: rgba(255, 160, 0, 0.5);
}

.security-notice-modal h3 {
    color: #ffa000;
}

.security-notice-modal p {
    color: #ddd;
}

.security-notice-modal strong {
    color: #ffb74d;
}

#timeSlotsContainer {
    transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
    .date-strip-arrow { display: none; }

    #timeSlotsContainer .time-slots-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 10px 0;
        gap: 15px;
    }

    #timeSlotsContainer .time-slots-grid::-webkit-scrollbar {
        display: none;
    }

    #timeSlotsContainer .time-slots-grid .slot-card {
        flex-shrink: 0;
        width: 220px;
    }
}

/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.admin-header {
    margin-bottom: 24px;
}

.admin-header h1 {
    color: var(--primary-yellow);
    font-size: 1.8rem;
    letter-spacing: 0.05em;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--gray-text);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.admin-tab:hover {
    color: var(--light-text);
}

.admin-tab.active {
    color: var(--primary-yellow);
    border-bottom-color: var(--primary-yellow);
}

.admin-tab svg {
    flex-shrink: 0;
}

/* Admin Panels */
.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-panel-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-panel-header h2 {
    color: var(--light-text);
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
}

.admin-panel-count {
    color: var(--gray-text);
    font-size: 0.85rem;
}

/* Stat Cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: var(--dark-card);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-stat-card .stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 4px;
}

.admin-stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Scrape Section */
.scrape-section {
    background-color: var(--dark-card);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.scrape-section-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.scrape-section h3 {
    color: var(--primary-yellow);
    margin-bottom: 4px;
    font-size: 1rem;
}

.scrape-section p {
    color: var(--gray-text);
    font-size: 0.85rem;
    margin: 0;
}

.scrape-section .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--dark-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
}

.data-table th {
    background-color: rgba(255, 204, 0, 0.08);
    color: var(--primary-yellow);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-table tr:hover {
    background-color: rgba(255, 204, 0, 0.04);
}

.data-table .cell-label {
    display: none;
}

.role-admin {
    color: var(--primary-yellow);
    font-weight: 600;
}

.role-user {
    color: var(--gray-text);
}

/* Status badges */
.admin-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}

.admin-status.status-booked {
    background: rgba(76, 175, 80, 0.15);
    color: var(--status-booked);
}

.admin-status.status-interested {
    background: rgba(255, 204, 0, 0.15);
    color: var(--status-interested);
}

.admin-status.status-canceled {
    background: rgba(204, 51, 0, 0.15);
    color: var(--status-canceled);
}

/* Admin Card List — hidden on desktop, shown on mobile */
.admin-card-list {
    display: none;
}

.admin-data-card {
    background: var(--dark-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-bottom: 12px;
}

.admin-data-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
}

.admin-data-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--light-text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-data-card-badge {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-text);
}

.admin-data-card-badge.role-admin {
    background: rgba(255, 204, 0, 0.15);
    color: var(--primary-yellow);
}

.admin-data-card-rows {
    padding: 4px 0;
}

.admin-data-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.85rem;
    gap: 12px;
}

.admin-data-card-row .card-label {
    color: var(--gray-text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.admin-data-card-row .card-value-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.admin-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-text);
}

/* Capacity bar for sessions */
.admin-capacity-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    min-width: 80px;
}

.admin-capacity-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Chat message cell */
.chat-msg-cell {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-id-hint {
    color: var(--gray-text);
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Inline editing */
.admin-editable {
    cursor: pointer;
    border-bottom: 1px dashed rgba(255, 204, 0, 0.25);
    padding: 1px 4px;
    border-radius: 3px;
    transition: background 0.2s ease, border-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.admin-editable:hover {
    background: rgba(255, 204, 0, 0.08);
    border-bottom-color: rgba(255, 204, 0, 0.5);
}

.admin-editable .edit-icon {
    font-size: 0.68rem;
    opacity: 0;
    transition: opacity 0.15s ease;
    color: var(--primary-yellow);
}

.admin-editable:hover .edit-icon {
    opacity: 0.6;
}

.edit-inline {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--primary-yellow);
    border-radius: 4px;
    color: var(--light-text);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.85rem;
    padding: 4px 8px;
    outline: none;
    min-width: 80px;
}

.edit-select {
    min-width: 100px;
    cursor: pointer;
}

.edit-select option {
    background: var(--dark-card);
    color: var(--light-text);
}

.admin-editable.edit-success {
    animation: editFlashSuccess 0.6s ease;
}

.admin-editable.edit-error {
    animation: editFlashError 0.6s ease;
}

@keyframes editFlashSuccess {
    0%, 100% { background: transparent; }
    30% { background: rgba(102, 187, 106, 0.2); }
}

@keyframes editFlashError {
    0%, 100% { background: transparent; }
    30% { background: rgba(239, 83, 80, 0.2); }
}

.cell-readonly {
    color: var(--gray-text);
    font-size: 0.82rem;
}

/* Admin add button */
.btn-admin-add {
    margin-left: auto;
    padding: 6px 16px;
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 204, 0, 0.08);
    color: var(--primary-yellow);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-admin-add:hover {
    background: rgba(255, 204, 0, 0.18);
    border-color: var(--primary-yellow);
}

/* Admin action buttons */
.btn-admin-action {
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: transparent;
    color: var(--gray-text);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-chat-delete {
    border-color: rgba(239, 83, 80, 0.3);
    color: #ef5350;
}

.btn-chat-delete:hover {
    background: rgba(239, 83, 80, 0.15);
    border-color: #ef5350;
}

.btn-restore {
    border-color: rgba(102, 187, 106, 0.3);
    color: #66bb6a;
}

.btn-restore:hover {
    background: rgba(102, 187, 106, 0.15);
    border-color: #66bb6a;
}

/* Deleted row/card styling */
tr.row-deleted td {
    opacity: 0.4;
    text-decoration: line-through;
}

tr.row-deleted td:last-child {
    opacity: 1;
    text-decoration: none;
}

.admin-data-card.card-deleted .admin-data-card-header,
.admin-data-card.card-deleted .admin-chat-text {
    opacity: 0.4;
    text-decoration: line-through;
}

/* Deploy page — slot capacity bar */
.slot-card .slot-capacity-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.slot-card .slot-capacity-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.slot-card .slot-capacity-label {
    color: var(--gray-text);
    font-size: 0.78rem;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.admin-chat-text {
    color: var(--light-text);
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
}

/* Misc */
.btn-delete {
    background-color: #cc3300;
    color: white;
}

.btn-delete:hover {
    background-color: #e64d00;
}

/* Admin responsive — tablet */
@media (max-width: 968px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Admin responsive — mobile */
@media (max-width: 768px) {
    .admin-container {
        padding: 16px 12px;
    }

    .admin-header h1 {
        font-size: 1.3rem;
    }

    .admin-tabs {
        gap: 0;
    }

    .admin-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 0.82rem;
        gap: 6px;
    }

    .admin-tab span {
        display: none;
    }

    .admin-tab svg {
        width: 20px;
        height: 20px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .admin-stat-card {
        padding: 14px;
    }

    .admin-stat-card .stat-value {
        font-size: 1.4rem;
    }

    .scrape-section-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .scrape-section .btn {
        width: 100%;
    }

    /* Hide tables, show card lists */
    .admin-table-wrap {
        display: none;
    }

    .admin-card-list {
        display: block;
    }
}

/* Admin responsive — small phone */
@media (max-width: 380px) {
    .admin-stat-card .stat-value {
        font-size: 1.1rem;
    }

    .admin-stat-card .stat-label {
        font-size: 0.7rem;
    }

    .admin-tab {
        padding: 10px 4px;
    }
}
