:root {
    --primary-color: #ff8c00;
    /* Orange Neon */
    --secondary-color: #000000;
    --bg-dark: #0a0a0a;
    --panel-bg: #141414;
    --text-main: #e0e0e0;
    --text-dim: #888888;
    --border-color: #333333;
    --glow: 0 0 10px rgba(255, 140, 0, 0.5);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.app-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    z-index: 1;
}

/* Background Effects */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 140, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.bg-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, black 100%);
    z-index: -1;
    pointer-events: none;
}

/* HUD Corner Accents */
.corner-accents {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-color);
    opacity: 0.7;
}

.corner.topleft {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.corner.topright {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.corner.bottomleft {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.corner.bottomright {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* Header & Nav */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
    position: relative;
    z-index: 100;
    backdrop-filter: blur(10px);
    /* Glassmorphism */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-svg {
    filter: drop-shadow(0 0 5px var(--primary-color));
    animation: pulseLogo 3s infinite;
}

@keyframes pulseLogo {
    0% {
        filter: drop-shadow(0 0 5px var(--primary-color));
    }

    50% {
        filter: drop-shadow(0 0 15px var(--primary-color));
    }

    100% {
        filter: drop-shadow(0 0 5px var(--primary-color));
    }
}

/* Removed .logo-hex */

.logo-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-shadow: var(--glow);
    display: flex;
    flex-direction: column;
    line-height: 0.8;
}

.sub-logo {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 4px;
    margin-left: 2px;
}

/* Retro Scanline Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.3;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    /* Increased gap */
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    /* More spacing */
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
    box-shadow: 0 0 5px var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

/* Header Extras */
.header-extras {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mission-status-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 12px;
    border: 1px solid #333;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    color: #ccc;
    display: none;
    /* Hidden on very small screens? No, show it */
}

@media (min-width: 900px) {
    .mission-status-compact {
        display: flex;
    }
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

.status-dot.pulse {
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cta-button {
    text-decoration: none;
    background: linear-gradient(45deg, rgba(255, 140, 0, 0.1), transparent);
    border: 1px solid var(--primary-color);
    padding: 12px 30px;
    color: var(--primary-color);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    clip-path: polygon(15px 0, 100% 0, 100% 70%, calc(100% - 15px) 100%, 0 100%, 0 30%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--primary-color);
    color: black;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.6);
    transform: scale(1.05);
}

.admin-top-btn {
    color: #444;
    font-size: 14px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #222;
    padding: 8px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.admin-top-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 20px;
    position: relative;
    overflow-y: auto;
}

/* Hero Section */
.hero-content {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    animation: fadeIn 1s ease-out;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.6);
    line-height: 1.2;
}

.main-title .highlight {
    color: white;
    font-size: 1.2em;
    display: block;
    margin-top: 10px;
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.divisions-area {
    display: flex;
    flex-direction: column;
}

.events-area {
    position: sticky;
    top: 20px;
}

.section-label {
    text-align: left;
    color: var(--primary-color);
    font-size: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    padding-bottom: 8px;
    font-family: var(--font-heading);
    letter-spacing: 3px;
    opacity: 0.8;
}

/* Division Cards Grid Adjustment */
.divisions-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.hex-card {
    aspect-ratio: 1 / 1.1;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hex-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.hex-inner {
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.7);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 140, 0, 0.2);
    transition: all 0.3s ease;
}

.hex-card:hover .hex-inner {
    border-color: var(--primary-color);
    background: rgba(25, 25, 25, 0.8);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.15) inset;
}

.icon-wrapper {
    font-size: 42px;
    color: var(--text-dim);
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hex-card:hover .icon-wrapper {
    color: var(--primary-color);
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--primary-color));
}

.hex-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 18px;
    letter-spacing: 1px;
}

.hex-content p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.4;
    margin-top: 8px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Events Preview */
.events-preview-container {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #222;
    padding: 24px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.event-item:hover {
    background: rgba(255, 140, 0, 0.05);
    border-color: rgba(255, 140, 0, 0.2);
}

.event-item .date {
    background: #111;
    border: 1px solid #333;
    padding: 8px;
    min-width: 54px;
    text-align: center;
    color: var(--primary-color);
    font-family: var(--font-heading);
    line-height: 1.1;
}

.event-item .date small {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* Internal Division Navigation */
.divisions-internal-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.div-nav-btn {
    background: #111;
    border: 1px solid #333;
    color: #888;
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.div-nav-btn:hover,
.div-nav-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 140, 0, 0.1);
}

/* Responsive Dashboard */
@media (max-width: 1050px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    .events-area {
        position: static;
        order: 2;
        /* Put events below divisions on mobile */
    }

    .divisions-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}





/* Footer */
footer {
    padding: 30px 40px;
    background: #050505;
    border-top: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #111;
    padding-top: 20px;
    font-size: 11px;
    letter-spacing: 1px;
}

.auth-link {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links a {
    color: #666;
    margin-right: 15px;
    font-size: 18px;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    display: flex;
    gap: 2px;
}

.status-indicator .bar {
    width: 6px;
    height: 12px;
    background: #333;
    transform: skewX(-20deg);
}

.status-indicator .bar.filled {
    background: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

.status-text {
    color: #00ff00;
    font-weight: bold;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.blink {
    animation: blink 1s step-end infinite;
    color: var(--primary-color);
    margin-right: 5px;
}

/* Utility Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Sections visibility */
section {
    display: none;
    width: 100%;
}

section.active-section {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.hidden-section {
    color: white;
    text-align: center;
    padding: 50px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .main-nav {
        flex-direction: column;
        gap: 10px;
    }

    .separator {
        display: none;
    }

    .divisions-container {
        flex-direction: column;
        align-items: center;
    }

    .timeline {
        flex-wrap: wrap;
        /* Allow events to wrap on small screens */
    }

    .event-item {
        min-width: 45%;
    }
}

/* Community Section */
.community-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Division Content Area Styling */
.detail-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.placeholder-select {
    margin-top: 50px;
    color: #666;
    font-style: italic;
    border: 1px dashed #444;
    padding: 30px;
}

.detail-card {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--primary-color);
    padding: 40px;
    margin-top: 30px;
    position: relative;
    clip-path: polygon(20px 0, 100% 0,
            100% calc(100% - 20px), calc(100% - 20px) 100%,
            0 100%, 0 20px);
    animation: fadeIn 0.5s ease-out;
}

.detail-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.highlight-desc {
    font-size: 18px;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 300;
}

.features-box {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-left: 3px solid var(--primary-color);
    text-align: left;
}

.features-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.features-box ul {
    list-style-type: none;
    padding: 0;
}

.features-box li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    color: #ccc;
    display: flex;
    align-items: center;
}

.features-box li:before {
    content: '>>';
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 12px;
}

/* Calendar Grid */
.calendar-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.calendar-card {
    background: #111;
    border: 1px solid #333;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.calendar-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.calendar-card .cal-date {
    display: flex;
    flex-direction: column;
    color: var(--primary-color);
    font-family: var(--font-heading);
    line-height: 1;
}

.calendar-card .d {
    font-size: 40px;
    font-weight: 900;
}

.calendar-card .m {
    font-size: 14px;
    letter-spacing: 2px;
}

.cal-info h4 {
    margin-top: 20px;
    font-size: 16px;
    color: white;
}

.cal-info .tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 10px;
    padding: 2px 8px;
    border: 1px solid #555;
    color: #aaa;
}

.cal-info .tag.aerea,
.cal-info .tag.aerea_combate,
.cal-info .tag.aerea_civil,
.cal-info .tag.heli,
.cal-info .tag.espacial {
    color: #00d2ff;
    border-color: #00d2ff;
    background: rgba(0, 210, 255, 0.05);
}

.cal-info .tag.tactica,
.cal-info .tag.milsim,
.cal-info .tag.cqb,
.cal-info .tag.recon,
.cal-info .tag.sniper,
.cal-info .tag.tanques,
.cal-info .tag.artilleria,
.cal-info .tag.paracaidismo,
.cal-info .tag.especial {
    color: #ff4d4d;
    border-color: #ff4d4d;
    background: rgba(255, 77, 77, 0.05);
}

.cal-info .tag.maritima,
.cal-info .tag.naval,
.cal-info .tag.submarino {
    color: #00ffcc;
    border-color: #00ffcc;
    background: rgba(0, 255, 204, 0.05);
}

.cal-info .tag.f1,
.cal-info .tag.gt3,
.cal-info .tag.rally,
.cal-info .tag.drift,
.cal-info .tag.karting,
.cal-info .tag.endurance,
.cal-info .tag.moto,
.cal-info .tag.offroad {
    color: #ff9f00;
    border-color: #ff9f00;
    background: rgba(255, 159, 0, 0.05);
}

.cal-info .tag.truck,
.cal-info .tag.bus,
.cal-info .tag.ferro,
.cal-info .tag.agricola,
.cal-info .tag.construccion {
    color: #e0e0e0;
    border-color: #666;
}

.cal-info .tag.policial,
.cal-info .tag.bomberos,
.cal-info .tag.ems {
    color: #5d9cec;
    border-color: #5d9cec;
    background: rgba(93, 156, 236, 0.05);
}

.cal-info .tag.global,
.cal-info .tag.entrenamiento,
.cal-info .tag.reclutamiento,
.cal-info .tag.briefing,
.cal-info .tag.social,
.cal-info .tag.vr,
.cal-info .tag.esports {
    color: #ac92ec;
    border-color: #ac92ec;
    background: rgba(172, 146, 236, 0.05);
}

/* Community Layout */
.community-layout {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.community-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.community-card.big {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 30px;
    width: 100%;
}

.community-card.big .card-icon {
    font-size: 50px;
    margin-right: 20px;
    margin-bottom: 0;
}

/* Live Chat Terminal */
.live-chat-terminal {
    flex: 1.5;
    background: #000;
    border: 2px solid #333;
    display: flex;
    flex-direction: column;
    height: 400px;
    font-family: 'Consolas', monospace;
    position: relative;
}

.live-chat-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            rgba(0, 255, 0, 0.05) 0px,
            rgba(0, 255, 0, 0.05) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
}

.terminal-header {
    background: #111;
    padding: 10px;
    border-bottom: 1px solid #333;
    color: #00ff00;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.terminal-body {
    flex: 1;
    padding: 10px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: 12px;
}

.msg {
    margin-bottom: 5px;
    line-height: 1.4;
}

.msg.fade-in {
    animation: fadeIn 0.3s;
}

.msg.system {
    color: #555;
    font-style: italic;
}

.terminal-input {
    padding: 10px;
    border-top: 1px solid #333;
    background: #0a0a0a;
}

.terminal-input button {
    width: 100%;
    background: #222;
    color: #00ff00;
    border: 1px solid #333;
    padding: 10px;
    cursor: pointer;
    font-family: 'Consolas', monospace;
    transition: 0.2s;
}

.terminal-input button:hover {
    background: #333;
    border-color: #00ff00;
}

/* Responsive Community */
@media (max-width: 800px) {
    .community-layout {
        flex-direction: column;
    }
}

/* Contact Section */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.9);
    padding: 40px;
    border: 1px solid #333;
    border-left: 4px solid var(--primary-color);
}

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

label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 1px;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    background: #0f0f0f;
    border: 1px solid #333;
    color: white;
    font-family: var(--font-body);
    font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    border: none;
    color: black;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.3s;
}

.submit-btn:hover {
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
    filter: brightness(1.2);
}

/* Division Content Area Styling */
.detail-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.detail-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--primary-color);
    padding: 40px;
    margin-top: 30px;
    position: relative;
    clip-path: polygon(20px 0, 100% 0,
            100% calc(100% - 20px), calc(100% - 20px) 100%,
            0 100%, 0 20px);
}

.detail-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.detail-card ul {
    text-align: left;
    margin-top: 20px;
    padding-left: 20px;
    list-style-type: square;
    color: var(--primary-color);
}

.detail-card li {
    color: var(--text-main);
    margin-bottom: 10px;
}

/* Admin Specific UI Extras */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.small-btn {
    padding: 6px 15px;
    font-family: var(--font-heading);
    font-size: 11px;
    cursor: pointer;
    transition: 0.3s;
    background: transparent;
    border: 1px solid #444;
    color: #888;
}

.small-btn.add:hover {
    border-color: #00ff00;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.05);
}

.small-btn.delete:hover {
    border-color: #ff0000;
    color: #ff0000;
    background: rgba(255, 0, 0, 0.05);
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--panel-bg);
    border: 2px solid var(--primary-color);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 140, 0, 0.3);
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    animation: modalSlide 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modalSlide {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin: 0;
}

.modal-type {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary-color);
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 10px;
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.modal-body p {
    line-height: 1.6;
    color: var(--text-main);
    font-size: 16px;
}

.modal-footer {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.modal-btn {
    background: var(--primary-color);
    color: black;
    border: none;
    padding: 10px 25px;
    font-family: var(--font-heading);
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}