/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Apply animations */
.header {
    animation: slideInDown 0.8s ease-out;
}

.hero-content {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.hero-title {
    transform: translateY(20px);
    opacity: 0;
    animation: slideInLeft 0.8s ease-out 0.5s forwards;
}

.hero-subtext {
    transform: translateY(20px);
    opacity: 0;
    animation: slideInRight 0.8s ease-out 0.7s forwards;
}

.discord-cta {
    animation: pulse 2s infinite 1.5s;
    transition: all 0.3s ease;
}

.discord-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

/* Card hover effects */
.heist-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.heist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Navigation link hover effect */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #4cc9f0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Button hover effect */
.btn, button {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn:hover, button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Heist Rules Cards */
.heist-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.heist-card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 320px;
    border: 1px solid rgba(76, 201, 240, 0.1);
}

.heist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    border-color: rgba(76, 201, 240, 0.3);
}

.heist-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.heist-card-content {
    position: relative;
    padding: 0;
    box-sizing: border-box;
}

@keyframes tv-cta-pulse {
    0%,
    100% {
        transform: translateX(-20%) scale(0.96);
        opacity: 0.75;
    }
    45% {
        transform: translateX(-20%) scale(1);
        opacity: 1;
    }
    70% {
        transform: translateX(-20%) scale(0.93);
        opacity: 0.82;
    }
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: #8fffe9;
    color: #000000;
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background-color: rgb(255, 255, 255);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link:hover {
    color: #000000;
}

.discord-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 30px;
    background: #000000;
    color: white;
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.discord-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.45);
    background: #4752C4;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 160px 40px 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('herobg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    flex: 1 1 100%;
    max-width: 1200px;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-subtext {
    font-size: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0 auto 40px;
    max-width: 800px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 30px;
    background: linear-gradient(135deg, #0038ff, #00aaff);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 12px 30px rgba(0, 104, 255, 0.35);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 104, 255, 0.45);
}

/* Hide the image element since we're using it as background */
.hero-media {
    display: none;
}

.latest-videos {
    width: 100%;
    padding: 120px 0 100px;
}

.videos-inner {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.videos-header {
    margin-bottom: 32px;
}

.videos-title {
    font-size: clamp(2rem, 2vw + 1rem, 3rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.videos-accent {
    display: inline-block;
    width: 120px;
    height: 4px;
    background: linear-gradient(135deg, #0038ff, #00aaff);
    border-radius: 999px;
}

.videos-grid {
    display: grid;
    grid-template-columns: minmax(180px, 280px) 1fr;
    gap: 36px;
    align-items: stretch;
}

.videos-gallery {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gallery-thumb {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.videos-player {
    background: rgba(12, 17, 29, 0.65);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
}

.player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.join-server {
    padding: 120px 0;
    position: relative;
}

.join-inner {
    width: min(1200px, 92%);
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 48px;
}

.join-content {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.join-title {
    font-size: clamp(2.2rem, 2.6vw + 1rem, 3.4rem);
    letter-spacing: 2px;
}

.join-subtext {
    font-size: 1.05rem;
    line-height: 1.9;
    opacity: 0.85;
    max-width: 520px;
}

.join-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.join-steps li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(12, 17, 29, 0.55);
    border-radius: 18px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.step-number {
    font-weight: 700;
    letter-spacing: 1px;
    color: #00ffea;
    font-size: 1.1rem;
}

.step-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.85;
}

.join-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.join-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00ffe0, #0090ff);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 15px 35px rgba(0, 144, 255, 0.3);
}

.join-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(0, 144, 255, 0.4);
}

.join-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.join-secondary:hover {
    border-color: #00ffea;
    color: #00ffea;
}

.join-panel {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.panel-card {
    width: 100%;
    max-width: 420px;
    padding: 32px;
    border-radius: 28px;
    background: rgba(8, 12, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel-card h3 {
    font-size: 1.6rem;
    letter-spacing: 1.5px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #00ffea;
}

.status-indicator::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff6a;
    box-shadow: 0 0 12px rgba(0, 255, 123, 0.7);
}

.panel-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.6;
}

.panel-note {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: #ffffff;
    color: rgb(0, 0, 0);
    padding: 20px 0;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 18px;
}

.social-link {
    display: inline-flex;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #000000;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    color: #0058ff;
    background: rgba(0, 88, 255, 0.12);
    box-shadow: 0 12px 24px rgba(0, 88, 255, 0.25);
}

body.rules-page {
    background-color: #000000;
    color: #ffffff;
}

.rules-panel,
.rules-panel h3,
.rules-panel h4,
.rules-panel p,
.rules-panel li,
.rules-panel td,
.rules-panel th,
.rules-panel span,
.accordion-body,
.accordion-list,
.accordion-list li {
    color: #ffffff !important;
}

.accordion-item[open] summary,
.accordion-item summary:hover,
.accordion-item summary:focus {
    color: #ffffff !important;
}

.rules-panel a {
    color: #ffffff;
    text-decoration: underline;
}

.rules-panel a:hover {
    color: #e0e0e0;
}

.about-page {
    background-color: #8fffe9;
}

.join-main {
    min-height: 100vh;
    padding: 0;
}

.join-hero {
    min-height: 100vh;
    width: 100%;
    background-image: url('assets/join_server/mainbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.join-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
    backdrop-filter: blur(2px);
}

.join-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0));
}

.join-hero-overlay {
    position: relative;
    z-index: 1;
    width: min(1020px, 96vw);
    aspect-ratio: 4 / 3.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform-style: preserve-3d;
    animation: tv-drift 6s ease-in-out infinite;
}

.tv-frame {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.55));
}

.tv-screen {
    position: absolute;
    inset: 14% 16% 18% 16%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 4;
    pointer-events: auto;
}

.mtw-roleplay-text {
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.0rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.8);
    letter-spacing: 2px;
    position: relative;
    z-index: 5;
    align-self: flex-start;
    margin-left: 40%;
    transform: translateX(-50%);
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #fff;
    animation: 
        typing 2.5s steps(40, end) forwards,
        blink-caret 0.75s step-end 3.5s;
    width: 0;
}

@keyframes typing {
    to { width: 35% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #fff; }
}

.tv-screen-logo {
    width: 46%;
    max-width: 220px;
    object-fit: contain;
    opacity: 0.92;
    transform: translateX(-30%);
    animation: tv-screen-pulse 2.8s ease-in-out infinite;
}

.tv-cta {
    font-family: 'Press Start 2P', 'VT323', 'Courier New', monospace;
    font-size: 1vh;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(229, 245, 255, 0.88);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 999px;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    transform: translateX(-20%);
    animation: tv-cta-pulse 2.8s ease-in-out infinite;
}

.tv-cta:hover,
.tv-cta:focus-visible {
    color: rgba(255, 255, 255, 0.97);
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.12), 0 12px 24px rgba(0, 174, 255, 0.35);
}

.tv-cta:focus-visible {
    outline: 2px solid rgba(0, 174, 255, 0.55);
    outline-offset: 4px;
}

@keyframes tv-drift {
    0% {
        transform: translate3d(0, -16px, 0);
    }
    25% {
        transform: translate3d(0, 8px, 0);
    }
    50% {
        transform: translate3d(0, 18px, 0);
    }
    75% {
        transform: translate3d(0, 6px, 0);
    }
    100% {
        transform: translate3d(0, -16px, 0);
    }
}

@keyframes tv-screen-pulse {
    0%,
    100% {
        transform: translateX(-30%) scale(1);
        opacity: 0.9;
    }
    45% {
        transform: translateX(-30%) scale(1.05);
        opacity: 1;
    }
    70% {
        transform: translateX(-30%) scale(0.98);
        opacity: 0.85;
    }
}

.screen-noise {
    display: none;
}

.screen-glow {
    display: none;
}

.rules-hero {
    padding: 140px 0 90px;
    text-align: center;
    background-color: #8fffe9;
}

.rules-hero-content {
    width: min(780px, 90%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rules-hero-content h1 {
    font-size: clamp(2.5rem, 3.5vw + 1rem, 4rem);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.rules-hero-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.8;
}

.rules {
    padding: 110px 0;
    background-color: #000000;
}

.rules-inner {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.rules-header {
    text-align: center;
    margin-bottom: 48px;
}

.rules-title {
    font-size: clamp(2.2rem, 3vw + 1rem, 3.5rem);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.rules-subtext {
    max-width: 620px;
    margin: 16px auto 0;
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.75;
}

.rules-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 48px auto 40px;
    width: min(900px, 100%);
}

.rules-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(8, 12, 24, 0.6);
    color: #a8f8ff;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 255, 234, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.rules-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(0, 255, 234, 0.25);
}

.rules-tab.active {
    background-color: #00ffea;
    color: #001728;
    box-shadow: 0 12px 28px rgba(0, 144, 255, 0.25);
}

.rules-panels {
    display: grid;
    gap: 48px;
}

.rules-panel {
    display: none;
    background: rgb(0, 0, 0);
    border-radius: 26px;
    border: 1px solid rgb(0, 0, 0);
    padding: 36px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.rules-panel.active {
    display: block;
    animation: panelActivate 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.panel-title {
    font-size: clamp(1.8rem, 1.5vw + 1rem, 2.4rem);
    margin-bottom: 32px;
    letter-spacing: 2px;
    color: #00ffea;
    opacity: 0;
    transform: translateY(24px);
}

.rules-panel.active .panel-title {
    animation: panelTitleRise 0.6s 0.08s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.rules-accordion {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.accordion-item {
    background: rgba(4, 8, 18, 0.85);
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 234, 0.12);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(24px) scale(0.94);
}

.accordion-item[open] {
    border-color: rgba(0, 255, 234, 0.45);
}

.rules-panel.active .accordion-item {
    animation: accordionReveal 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.rules-panel.active .accordion-item:nth-of-type(1) {
    animation-delay: 0.18s;
}

.rules-panel.active .accordion-item:nth-of-type(2) {
    animation-delay: 0.28s;
}

.rules-panel.active .accordion-item:nth-of-type(3) {
    animation-delay: 0.38s;
}

.rules-panel.active .accordion-item:nth-of-type(4) {
    animation-delay: 0.48s;
}

.rules-panel.active .accordion-item:nth-of-type(5) {
    animation-delay: 0.58s;
}

.rules-panel.active .accordion-item:nth-of-type(6) {
    animation-delay: 0.68s;
}

.rules-panel.active .accordion-icon {
    animation: iconGlow 1.2s 0.35s ease-out alternate 2;
}

.rules-panel.active .accordion-item summary span {
    animation: summaryWave 0.85s 0.25s ease-out forwards;
}

@keyframes panelActivate {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-6px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes panelTitleRise {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    70% {
        opacity: 1;
        transform: translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes accordionReveal {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.94);
    }
    70% {
        opacity: 1;
        transform: translateY(-4px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconGlow {
    0% {
        opacity: 0.5;
        transform: rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: rotate(8deg);
    }
    100% {
        opacity: 0.7;
        transform: rotate(0deg);
    }
}

@keyframes summaryWave {
    0% {
        color: #b8fbff;
        letter-spacing: 1px;
    }
    60% {
        color: #0066ff;
        letter-spacing: 2px;
    }
    100% {
        color: #e9ffff;
        letter-spacing: 1.2px;
    }
}

.accordion-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #e9ffff;
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-icon {
    width: 28px;
    height: 28px;
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.accordion-item[open] .accordion-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.accordion-body {
    padding: 0 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.accordion-list {
    list-style: disc inside;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(223, 253, 255, 0.9);
}

.accordion-list li {
    padding-inline-start: 4px;
}

.rules-support {
    padding: 110px 0;
    background-color: #000000;
}

.rules-support-inner {
    width: min(780px, 90%);
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-main {
    padding-top: 160px;
    padding-bottom: 120px;
}

.about-hero {
    padding: 40px 0 60px;
}

.about-hero-inner {
    width: min(720px, 90%);
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-hero-inner h1 {
    font-size: clamp(2.4rem, 3vw + 1rem, 3.8rem);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-hero-inner p {
    font-size: 1.05rem;
    line-height: 1.75;
    opacity: 0.85;
}

.about-profile {
    width: min(960px, 92%);
    margin: 0 auto;
}

.profile-card {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 32px;
    padding: 36px;
    border-radius: 28px;
    background: rgba(6, 10, 22, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
    color: #e9ffff;
}

.profile-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: min(100%, 320px);
    border-radius: 24px;
    border: 2px solid rgba(0, 255, 234, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.profile-name {
    font-size: clamp(1.8rem, 1.8vw + 1rem, 2.8rem);
    letter-spacing: 1.5px;
}

.profile-role {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    width: fit-content;
    border-radius: 999px;
    background: rgba(0, 255, 234, 0.15);
    border: 1px solid rgba(0, 255, 234, 0.4);
    color: #00c8ff;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.profile-description {
    font-size: 1rem;
    line-height: 1.75;
    opacity: 0.85;
}

.rules-support-inner h2 {
    font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
    letter-spacing: 2px;
}

.rules-support-inner p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.8;
}

.rules-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        width: 100%;
        padding: 140px 30px 80px;
        text-align: center;
        justify-content: center;
        gap: 32px;
    }

    .hero-content {
        flex: 1 1 auto;
        max-width: 100%;
        text-align: center;
        margin-left: 0;
    }

    .hero-media {
        justify-content: center;
        width: 100%;
    }

    .hero-image {
        max-width: 320px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .videos-gallery {
        flex-direction: row;
        justify-content: center;
    }

    .videos-gallery img {
        max-width: 200px;
    }

    .videos-player {
        padding: 18px;
    }

    .join-inner {
        flex-direction: column;
        gap: 40px;
    }

    .join-content {
        gap: 24px;
    }

    .panel-card {
        max-width: none;
    }

    .rules-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rules-tab {
        padding: 14px 18px;
        font-size: 0.85rem;
    }

    .rules-panel {
        padding: 28px;
    }

    .rules-actions {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 130px 20px 60px;
    }

    .hero-image {
        max-width: 260px;
    }

    .videos-gallery {
        flex-direction: column;
        align-items: center;
    }

    .videos-gallery img {
        max-width: 100%;
    }

    .videos-player {
        padding: 15px;
    }

    .join-server {
        padding: 90px 0;
    }

    .rules-tabs {
        grid-template-columns: 1fr;
    }

    .rules-tab {
        padding: 12px 16px;
        font-size: 0.8rem;
    }

    .rules-panel {
        padding: 24px;
    }

    .join-steps li {
        flex-direction: column;
        gap: 12px;
    }

    .join-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .join-cta,
    .join-secondary {
        width: 100%;
        justify-content: center;
    }

    .panel-stats {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background: #ffffff;
    color: rgb(0, 0, 0);
    padding: 20px 0;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


.game-terms {
    /* ... existing styles ... */
    color: #ffffff;  /* Add this line to set default text color to white */
    /* ... rest of the styles ... */
}

.game-terms td:last-child {
    color: #ffffff;  /* Update this from #333 to #ffffff */
    font-family: 'Courier New', monospace;
    opacity: 0.9;    /* Optional: Slightly transparent for better readability */
}

/* Rules Page Title Styling */
.rules-title {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    margin: 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.rules-subtext {
    text-align: center;
    color: #b8c2cc;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    line-height: 1.6;
}

.rules-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem auto;
    padding: 0 1rem;
    max-width: 1000px;
}

.rules-tab {
    padding: 0.8rem 1.5rem;
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid #4cc9f0;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-align: center;
    min-width: 140px;
}

.rules-tab.active,
.rules-tab:hover {
    background: #4cc9f0;
    color: #0a192f;
    transform: translateY(-2px);
}

.panel-title {
    text-align: center;
    font-size: 1.8rem;
    color: #4cc9f0;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(76, 201, 240, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Heist Cards Styling */
.heist-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.heist-card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 320px;
    position: relative;
    border: 1px solid rgba(76, 201, 240, 0.1);
}

.heist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    border-color: rgba(76, 201, 240, 0.3);
}

.heist-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.heist-card-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    z-index: 2;
}

.heist-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transition: all 0.3s ease;
    z-index: 1;
}

.heist-card:hover .heist-card-image {
    opacity: 0.8;
    transform: scale(1.05);
}

.heist-card-title {
    position: relative;
    font-size: 1.4rem;
    margin: 0 0 1rem 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 2;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.heist-card-button {
    position: relative;
    z-index: 2;
    margin-top: auto;
    background: rgba(76, 201, 240, 0.9);
    color: #0a192f;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: center;
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.2);
}

.heist-card-button:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 201, 240, 0.3);
}

/* Modal Styles */
.heist-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.heist-modal.active {
    opacity: 1;
    visibility: visible;
}

.heist-modal-content {
    background: #0f1624;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(76, 201, 240, 0.2);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.heist-modal.active .heist-modal-content {
    transform: translateY(0);
}

.heist-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.heist-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.heist-modal-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.heist-modal-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.heist-modal-text {
    padding: 1vh;
    overflow-y: auto;
    max-height: calc(90vh - 250px);
}

.heist-modal-title {
    color: #4cc9f0;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.heist-modal-description {
    list-style: none;
    padding: 0;
    margin: 0;
}

.heist-modal-description li {
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    margin-bottom: 0.8rem;
    background: rgba(76, 201, 240, 0.05);
    border-radius: 8px;
    position: relative;
    line-height: 1.6;
    border-right: 3px solid #4cc9f0;
    transition: all 0.2s ease;
}

.heist-modal-description li:before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    width: 8px;
    height: 8px;
    background-color: #4cc9f0;
    border-radius: 50%;
}

.heist-modal-description li:hover {
    background: rgba(76, 201, 240, 0.1);
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .heist-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .heist-modal-body {
        flex-direction: column;
    }
    
    .heist-modal-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .heist-cards {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    .heist-card {
        height: 280px;
    }
    
    .heist-modal-content {
        width: 95%;
    }
    
    .heist-modal-text {
        padding: 1.5rem;
    }
    
    .heist-modal-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .heist-cards {
        grid-template-columns: 1fr;
    }
    
    .heist-card {
        height: 260px;
    }
    
    .heist-modal-text {
        padding: 1.25rem;
    }
    
    .heist-modal-title {
        font-size: 1.3rem;
    }
    
    .heist-modal-description li {
        padding: 0.7rem 0.8rem 0.7rem 2rem;
        font-size: 0.95rem;
    }
}