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

body {
    font-family: Arial, sans-serif;
    background: #06111f;
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

.navbar {
    width: 100%;
    padding: 18px 6%;
    background: rgba(2, 10, 20, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #f5c542;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

    .navbar nav a {
        font-size: 14px;
        color: #d8e8ff;
        transition: 0.2s;
    }

        .navbar nav a:hover {
            color: #00eaff;
        }

.language-select {
    background: #081a2e;
    color: #fff;
    border: 1px solid #00eaff;
    padding: 6px;
    border-radius: 6px;
}

.hero {
    min-height: 520px;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.75)), radial-gradient(circle at center, #12365f, #06111f 65%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

    .hero::after {
        content: "";
        position: absolute;
        bottom: -40px;
        width: 120%;
        height: 120px;
        background: rgba(0, 234, 255, 0.08);
        border-radius: 50%;
        animation: wave 5s infinite ease-in-out;
    }

@keyframes wave {
    0%, 100% {
        transform: translateX(-30px);
    }

    50% {
        transform: translateX(30px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero h1 {
    font-size: 64px;
    color: #f5c542;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    color: #c8ddff;
    max-width: 600px;
    margin: auto;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.25s;
}

    .btn:hover {
        transform: translateY(-3px);
    }

    .btn.gold {
        background: #f5c542;
        color: #111;
    }

    .btn.cyan {
        background: #00eaff;
        color: #06111f;
    }

    .btn.dark {
        background: #142842;
        color: #fff;
        border: 1px solid #2f5b89;
    }

.section {
    padding: 70px 6%;
    text-align: center;
}

    .section h2 {
        font-size: 32px;
        margin-bottom: 28px;
        color: #00eaff;
    }

.dark-section {
    background: #040b14;
}

    .dark-section p {
        max-width: 800px;
        margin: auto;
        color: #c8ddff;
        line-height: 1.7;
    }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.card {
    background: #0b1d33;
    border: 1px solid rgba(0, 234, 255, 0.18);
    padding: 25px;
    border-radius: 14px;
    transition: 0.25s;
}

    .card:hover {
        transform: translateY(-5px);
        border-color: #00eaff;
        box-shadow: 0 0 18px rgba(0, 234, 255, 0.12);
    }

.media-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.video-placeholder,
.image-placeholder {
    min-height: 220px;
    background: #0b1d33;
    border: 1px solid rgba(245, 197, 66, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5c542;
}

footer {
    padding: 30px 6%;
    background: #020814;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.08);
}

    footer a {
        font-size: 14px;
        color: #b8cfff;
    }

        footer a:hover {
            color: #00eaff;
        }

@media (max-width: 768px) {
    .navbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }
}
.auth-page {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.85)), radial-gradient(circle at top, #14395f, #06111f 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: #0b1d33;
    border: 1px solid rgba(0, 234, 255, 0.18);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 0 30px rgba(0,0,0,0.35);
}

    .auth-box h1 {
        color: #f5c542;
        margin-bottom: 24px;
        text-align: center;
    }

    .auth-box label {
        display: block;
        margin-bottom: 8px;
        color: #c8ddff;
        font-size: 14px;
    }

    .auth-box input {
        width: 100%;
        padding: 13px;
        margin-bottom: 18px;
        background: #06111f;
        border: 1px solid rgba(255,255,255,0.12);
        color: #fff;
        border-radius: 10px;
        outline: none;
    }

        .auth-box input:focus {
            border-color: #00eaff;
        }

    .auth-box p {
        text-align: center;
        margin-top: 16px;
        color: #c8ddff;
    }

        .auth-box p a {
            color: #00eaff;
        }

.btn.full {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.alert {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}

    .alert.error {
        background: rgba(255, 70, 70, 0.12);
        border: 1px solid rgba(255, 70, 70, 0.35);
        color: #ff9999;
    }

    .alert.success {
        background: rgba(0, 255, 160, 0.12);
        border: 1px solid rgba(0, 255, 160, 0.35);
        color: #8fffd2;
    }
.shop-header {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85)), radial-gradient(circle at center, #173b62, #06111f 70%);
    padding-top: 80px;
    padding-bottom: 50px;
}

    .shop-header h1 {
        color: #f5c542;
        font-size: 42px;
        margin-bottom: 12px;
    }

    .shop-header p {
        color: #c8ddff;
    }

.shop-tabs {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

    .shop-tabs a {
        padding: 11px 20px;
        background: #0b1d33;
        border: 1px solid rgba(0,234,255,0.2);
        border-radius: 10px;
        color: #c8ddff;
    }

        .shop-tabs a.active,
        .shop-tabs a:hover {
            background: #00eaff;
            color: #06111f;
        }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.product-card {
    background: #0b1d33;
    border: 1px solid rgba(0, 234, 255, 0.18);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: 0.25s;
}

    .product-card:hover {
        transform: translateY(-5px);
        border-color: #00eaff;
        box-shadow: 0 0 22px rgba(0, 234, 255, 0.12);
    }

    .product-card img {
        width: 72px;
        height: 72px;
        object-fit: contain;
        margin-bottom: 18px;
    }

    .product-card h3 {
        color: #f5c542;
        margin-bottom: 8px;
    }

    .product-card .sku {
        color: #00eaff;
        font-size: 13px;
        margin-bottom: 14px;
    }

.product-desc {
    color: #c8ddff;
    font-size: 14px;
    line-height: 1.5;
    min-height: 42px;
}

.price {
    font-size: 26px;
    font-weight: bold;
    color: #ffffff;
    margin: 20px 0;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 999;
}

    .popup-overlay.show {
        display: flex;
    }

.popup-box {
    width: 100%;
    max-width: 540px;
    background: #0b1d33;
    border: 1px solid rgba(0,234,255,0.25);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 0 35px rgba(0,0,0,0.5);
}

    .popup-box h2 {
        color: #f5c542;
        margin-bottom: 16px;
    }

    .popup-box p,
    .popup-box li {
        color: #c8ddff;
        line-height: 1.6;
        font-size: 14px;
    }

    .popup-box ul {
        margin: 16px 0 16px 18px;
    }

.support-link {
    display: inline-block;
    color: #00eaff;
    margin-bottom: 18px;
}

.checkbox-line {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #ffffff;
    margin-top: 12px;
}

    .checkbox-line input {
        width: 18px;
        height: 18px;
    }

.popup-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.shop-message {
    max-width: 720px;
    margin: 0 auto 28px auto;
    padding: 15px;
    border-radius: 12px;
    background: rgba(0, 234, 255, 0.1);
    border: 1px solid rgba(0, 234, 255, 0.25);
    color: #c8f8ff;
}
.admin-header {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85)), radial-gradient(circle at center, #173b62, #06111f 70%);
    padding-top: 70px;
    padding-bottom: 40px;
}

    .admin-header h1 {
        color: #f5c542;
        font-size: 42px;
        margin-bottom: 10px;
    }

.admin-container {
    padding: 40px 6% 80px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: #0b1d33;
    border: 1px solid rgba(0,234,255,0.18);
    border-radius: 16px;
    padding: 22px;
}

    .admin-stat-card h3 {
        color: #c8ddff;
        font-size: 15px;
        margin-bottom: 10px;
    }

    .admin-stat-card strong {
        color: #f5c542;
        font-size: 32px;
    }

.admin-box {
    background: #0b1d33;
    border: 1px solid rgba(0,234,255,0.15);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
}

    .admin-box h2 {
        color: #00eaff;
        margin-bottom: 20px;
    }

.admin-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

    .admin-form input,
    .admin-form select {
        padding: 12px;
        border-radius: 10px;
        background: #06111f;
        color: #fff;
        border: 1px solid rgba(255,255,255,0.12);
        outline: none;
    }

        .admin-form input:focus,
        .admin-form select:focus {
            border-color: #00eaff;
        }

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

    .admin-table th,
    .admin-table td {
        padding: 13px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        text-align: left;
        font-size: 14px;
    }

    .admin-table th {
        color: #f5c542;
        background: rgba(0,0,0,0.22);
    }

    .admin-table td {
        color: #d8e8ff;
    }

.small-btn {
    background: #142842;
    color: #fff;
    border: 1px solid rgba(0,234,255,0.25);
    padding: 8px 13px;
    border-radius: 8px;
    cursor: pointer;
}

    .small-btn:hover {
        background: #00eaff;
        color: #06111f;
    }

.verified-text {
    color: #00ff9d !important;
    font-size: 26px !important;
}

.not-verified-text {
    color: #ff7777 !important;
    font-size: 24px !important;
}

.admin-form textarea {
    min-height: 140px;
    padding: 12px;
    border-radius: 10px;
    background: #06111f;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    outline: none;
    resize: vertical;
}
.code-box {
    display: inline-block;
    background: rgba(0, 234, 255, 0.12);
    border: 1px solid rgba(0, 234, 255, 0.35);
    color: #00eaff;
    padding: 7px 10px;
    border-radius: 8px;
    font-weight: bold;
    letter-spacing: 1px;
}

.paytr-frame-box {
    background: #0b1d33;
    border: 1px solid rgba(0,234,255,0.18);
    border-radius: 16px;
    padding: 18px;
    max-width: 1000px;
    margin: auto;
}
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
}

    .badge.completed {
        background: rgba(0,255,120,0.15);
        color: #00ff99;
    }

    .badge.pending {
        background: rgba(255,170,0,0.15);
        color: #ffb700;
    }
/* ADMIN PANEL TABLE FIX */

.admin-scroll-box {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 420px;
    padding-bottom: 8px;
}

    .admin-scroll-box.wide .admin-table {
        min-width: 1000px;
    }

.admin-table th,
.admin-table td {
    white-space: nowrap;
}

.provider-cell {
    text-transform: uppercase;
    font-weight: 700;
    color: #00e5ff;
}

.code-box {
    background: rgba(0,229,255,0.12);
    border: 1px solid rgba(0,229,255,0.35);
    padding: 8px 14px;
    border-radius: 10px;
    color: #00e5ff;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 1px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.admin-stat-card {
    min-height: 140px;
}

.code-form {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 16px;
}

    .code-form textarea {
        min-height: 150px;
    }

@media (max-width: 900px) {
    .code-form {
        grid-template-columns: 1fr;
    }
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.small-btn.danger {
    background: rgba(255, 80, 80, 0.18);
    color: #ff7777;
    border: 1px solid rgba(255, 80, 80, 0.35);
}

    .small-btn.danger:hover {
        background: rgba(255, 80, 80, 0.32);
    }

.copy-code-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    background: rgba(245, 197, 66, 0.15);
    color: #f5c542;
    border: 1px solid rgba(245, 197, 66, 0.35);
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

    .copy-btn:hover {
        background: rgba(245, 197, 66, 0.28);
    }

    .copy-btn.copied {
        background: rgba(0, 255, 150, 0.18);
        color: #00ff9d;
        border-color: rgba(0, 255, 150, 0.4);
    }
.revenue-card {
    border-color: rgba(245, 197, 66, 0.35);
    background: linear-gradient(145deg, #0b1d33, #102744);
}

    .revenue-card strong {
        color: #f5c542;
    }
.hero-modern {
    min-height: 680px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(1, 7, 15, 0.65), rgba(1, 7, 15, 0.92)), radial-gradient(circle at 50% 25%, #14558f, #06111f 65%);
}

.hero-ocean {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(0,234,255,0.16), transparent 28%), radial-gradient(circle at 70% 40%, rgba(245,197,66,0.12), transparent 24%);
    animation: oceanGlow 6s ease-in-out infinite alternate;
}

@keyframes oceanGlow {
    from {
        transform: scale(1);
        opacity: 0.75;
    }

    to {
        transform: scale(1.08);
        opacity: 1;
    }
}

.hero-particles::before,
.hero-particles::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(0,234,255,0.08);
    filter: blur(20px);
    animation: floatParticle 7s ease-in-out infinite alternate;
}

.hero-particles::before {
    top: 18%;
    left: 12%;
}

.hero-particles::after {
    right: 12%;
    bottom: 18%;
    background: rgba(245,197,66,0.08);
    animation-delay: 1.5s;
}

@keyframes floatParticle {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-35px);
    }
}

.hero-badge {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(0,234,255,0.12);
    border: 1px solid rgba(0,234,255,0.35);
    color: #00eaff;
    font-weight: bold;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.hero-modern h1 {
    font-size: clamp(48px, 8vw, 92px);
    text-shadow: 0 0 30px rgba(245,197,66,0.25);
}

.hero-modern p {
    font-size: 20px;
    line-height: 1.7;
}

.hero-socials {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

    .hero-socials a {
        padding: 9px 14px;
        background: rgba(11,29,51,0.85);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 999px;
        color: #c8ddff;
        transition: 0.25s;
    }

        .hero-socials a:hover {
            color: #00eaff;
            border-color: #00eaff;
            transform: translateY(-3px);
        }
.epic-hero {
    min-height: 920px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(10,42,76,0.8), rgba(2,7,15,0.98) 65%), linear-gradient(#020712, #06111f);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 40px 80px;
}

.storm-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 35%, rgba(0,234,255,0.12), transparent 28%), radial-gradient(circle at 80% 35%, rgba(255,120,30,0.12), transparent 28%), radial-gradient(circle at 50% 90%, rgba(0,40,90,0.8), transparent 45%);
    animation: stormPulse 7s ease-in-out infinite alternate;
}

@keyframes stormPulse {
    from {
        transform: scale(1);
        opacity: .75;
    }

    to {
        transform: scale(1.07);
        opacity: 1;
    }
}

.epic-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#ffffff55 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: .25;
    animation: starsMove 18s linear infinite;
}

@keyframes starsMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 200px 120px;
    }
}

.battle-ship {
    position: absolute;
    width: 390px;
    height: 280px;
    bottom: 230px;
    opacity: .8;
    filter: drop-shadow(0 0 25px rgba(0,0,0,.9));
}

    .battle-ship::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 80px;
        bottom: 25px;
        background: linear-gradient(90deg, #05080d, #172233, #05080d);
        clip-path: polygon(0 35%, 85% 10%, 100% 35%, 82% 75%, 18% 80%);
        border-bottom: 3px solid rgba(245,197,66,.45);
    }

    .battle-ship::after {
        content: "";
        position: absolute;
        width: 170px;
        height: 210px;
        left: 115px;
        bottom: 80px;
        background: linear-gradient(135deg, #050505, #1a1a1a);
        clip-path: polygon(50% 0, 100% 100%, 0 88%);
        border-left: 2px solid rgba(245,197,66,.35);
    }

.ship-left {
    left: 3%;
    transform: rotate(-5deg);
    animation: shipFloat 5s ease-in-out infinite alternate;
}

.ship-right {
    right: 3%;
    transform: scaleX(-1) rotate(-5deg);
    animation: shipFloat 6s ease-in-out infinite alternate-reverse;
}

@keyframes shipFloat {
    from {
        translate: 0 0;
    }

    to {
        translate: 0 -18px;
    }
}

.cannon-shot {
    position: absolute;
    width: 280px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffb43b, #ff3300, transparent);
    box-shadow: 0 0 22px #ff6a00;
    transform: rotate(-13deg);
    opacity: .9;
}

.shot-one {
    left: 25%;
    top: 38%;
    animation: cannonMove 2.7s linear infinite;
}

.shot-two {
    right: 24%;
    top: 32%;
    transform: rotate(18deg);
    animation: cannonMove 3.2s linear infinite reverse;
}

@keyframes cannonMove {
    from {
        opacity: 0;
        scale: .7;
    }

    40% {
        opacity: 1;
    }

    to {
        opacity: 0;
        scale: 1.25;
    }
}

.sea-fog {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: 0;
    height: 300px;
    background: radial-gradient(circle at 30% 40%, rgba(0,234,255,.18), transparent 35%), linear-gradient(transparent, rgba(1,8,18,.98));
    filter: blur(3px);
}

.epic-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
}

.season-badge {
    display: inline-block;
    padding: 12px 26px;
    border: 1px solid rgba(245,197,66,.45);
    background: rgba(0,0,0,.45);
    color: #f5c542;
    letter-spacing: 4px;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 28px;
    box-shadow: 0 0 25px rgba(245,197,66,.12);
}

.epic-content h1 {
    margin: 0;
    line-height: .82;
    font-family: Georgia, 'Times New Roman', serif;
    color: #f5c542;
    text-shadow: 0 0 18px rgba(245,197,66,.7), 0 0 50px rgba(245,197,66,.28);
}

    .epic-content h1 span {
        display: block;
        font-size: clamp(72px, 12vw, 170px);
        font-weight: 900;
        letter-spacing: 6px;
    }

    .epic-content h1 small {
        display: block;
        font-size: 36px;
        color: #d6d6d6;
        letter-spacing: 18px;
        margin: 10px 0 18px;
    }

.epic-content p {
    color: #d8c9a2;
    font-size: 22px;
    letter-spacing: 4px;
    font-style: italic;
    margin: 28px 0 36px;
}

.epic-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.epic-btn {
    min-width: 250px;
    padding: 20px 28px;
    border-radius: 4px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: .25s;
}

    .epic-btn.gold {
        background: linear-gradient(135deg, #ffd43b, #ff7a00);
        color: #1b1200;
        box-shadow: 0 0 30px rgba(255,154,0,.45);
    }

    .epic-btn.blue {
        background: rgba(4,20,42,.85);
        border: 1px solid rgba(0,234,255,.35);
        color: #e7f6ff;
    }

    .epic-btn:hover {
        transform: translateY(-4px) scale(1.02);
    }

.epic-stats {
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 760px;
    background: rgba(2,10,22,.82);
    border: 1px solid rgba(245,197,66,.28);
    box-shadow: 0 0 30px rgba(0,0,0,.45);
}

    .epic-stats div {
        padding: 18px 20px;
        border-right: 1px solid rgba(255,255,255,.08);
    }

    .epic-stats strong {
        display: block;
        color: #f5c542;
        font-size: 27px;
    }

    .epic-stats small {
        color: #9db0c7;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: 1.5px;
    }

.latest-news-card {
    position: absolute;
    right: 50px;
    bottom: 130px;
    width: 310px;
    z-index: 4;
    background: rgba(2,9,18,.88);
    border: 1px solid rgba(245,197,66,.28);
    padding: 22px;
    box-shadow: 0 0 35px rgba(0,0,0,.65);
}

    .latest-news-card h3 {
        color: #f5c542;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 18px;
    }

.news-mini {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.news-thumb {
    width: 72px;
    height: 58px;
    background: linear-gradient(135deg, #102944, #d87520);
    border-radius: 6px;
}

    .news-thumb.orange {
        background: linear-gradient(135deg, #38130a, #ff7a00);
    }

    .news-thumb.blue {
        background: linear-gradient(135deg, #071b2e, #00a6ff);
    }

.news-mini h4 {
    margin: 0 0 5px;
    color: #f5c542;
    font-size: 13px;
}

.news-mini p {
    margin: 0;
    color: #b8c8da;
    font-size: 12px;
}

.side-socials {
    position: absolute;
    left: 36px;
    bottom: 230px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(2,9,18,.75);
    border: 1px solid rgba(245,197,66,.28);
    padding: 14px;
    border-radius: 12px;
}

    .side-socials a {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 8px;
        background: rgba(245,197,66,.12);
        color: #f5c542;
        font-weight: 900;
    }

@media (max-width: 1100px) {
    .latest-news-card,
    .side-socials,
    .battle-ship {
        display: none;
    }

    .epic-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .epic-hero {
        min-height: 780px;
        padding: 110px 18px 60px;
    }

    .epic-content h1 span {
        font-size: 64px;
    }

    .epic-content p {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .epic-stats {
        grid-template-columns: 1fr;
    }

    .epic-btn {
        width: 100%;
    }
}
.home-media-section {
    padding: 100px 5%;
    background: #030b15;
    text-align: center;
}

    .home-media-section h2 {
        color: #f5c542;
        font-size: 42px;
        margin-bottom: 42px;
        font-family: Georgia, serif;
        text-shadow: 0 0 20px rgba(245,197,66,.35);
    }

.home-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.home-media-card {
    background: rgba(8,24,43,.92);
    border: 1px solid rgba(245,197,66,.22);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,.35);
}

    .home-media-card img,
    .video-frame iframe {
        width: 100%;
        height: 260px;
        object-fit: cover;
    }

.video-frame iframe {
    display: block;
}

.home-media-card h3 {
    color: #f5c542;
    padding: 18px;
}
.youtube-preview {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #06111f;
}

    .youtube-preview img,
    .youtube-preview iframe {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.youtube-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 2px solid rgba(245,197,66,.65);
    background: rgba(0,0,0,.55);
    color: #f5c542;
    font-size: 34px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(245,197,66,.35);
}

.youtube-preview:hover img {
    transform: scale(1.06);
    filter: brightness(.75);
}
.news-thumb {
    background-size: cover;
    background-position: center;
}

.news-open-btn {
    cursor: pointer;
    transition: .25s;
}

    .news-open-btn:hover {
        transform: translateX(5px);
    }

.news-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

    .news-modal.show {
        display: flex;
    }

.news-modal-box {
    width: min(760px, 95%);
    background: #071321;
    border: 1px solid rgba(245,197,66,.35);
    border-radius: 18px;
    padding: 28px;
    color: #c8ddff;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,.65);
}

    .news-modal-box img {
        width: 100%;
        max-height: 340px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .news-modal-box h2 {
        color: #f5c542;
        margin-bottom: 15px;
    }

    .news-modal-box p {
        line-height: 1.8;
        white-space: pre-line;
    }

.news-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: 0;
    color: #f5c542;
    font-size: 34px;
    cursor: pointer;
}

.latest-news-card {
    bottom: 220px;
    max-height: 430px;
    overflow: hidden;
}

.latest-news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-mini {
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding-bottom: 12px;
}

.news-text {
    min-width: 0;
}

    .news-text h4,
    .news-text p {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

.news-date {
    display: block;
    color: #8da4bd;
    font-size: 11px;
    margin: 4px 0 6px;
}

.hidden-news {
    display: none !important;
}

.news-more-btn {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    background: rgba(245,197,66,.12);
    border: 1px solid rgba(245,197,66,.35);
    color: #f5c542;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

    .news-more-btn:hover {
        background: rgba(245,197,66,.22);
    }

.news-modal-box {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-height: 85vh;
    overflow-y: auto;
}
.inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .inline-form select {
        min-width: 130px;
    }


.news-edit-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

    .news-edit-modal.show {
        display: flex;
    }

.news-edit-box {
    width: min(800px,95%);
    background: #071321;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid rgba(245,197,66,.25);
}

    .news-edit-box textarea {
        min-height: 220px;
    }

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 14px;
        padding: 18px;
    }

        .navbar nav {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
        }

    .epic-hero {
        min-height: auto;
        padding: 130px 16px 70px;
    }

    .epic-content h1 span {
        font-size: 58px;
        letter-spacing: 2px;
    }

    .epic-content h1 small {
        font-size: 22px;
        letter-spacing: 10px;
    }

    .season-badge {
        font-size: 11px;
        letter-spacing: 2px;
        padding: 10px 16px;
    }

    .epic-content p {
        font-size: 15px;
        letter-spacing: 1.5px;
    }

    .epic-buttons {
        flex-direction: column;
        width: 100%;
    }

    .epic-btn {
        width: 100%;
        min-width: 0;
        padding: 17px 18px;
        font-size: 13px;
    }

    .latest-news-card {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 45px;
    }

    .side-socials {
        position: fixed;
        left: 10px;
        bottom: 20px;
        z-index: 99;
        padding: 8px;
    }

        .side-socials a {
            width: 34px;
            height: 34px;
            font-size: 14px;
        }

    .home-media-grid {
        grid-template-columns: 1fr;
    }

    .home-media-card img,
    .youtube-preview {
        height: 210px;
    }

    .admin-form {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-scroll-box {
        overflow-x: auto;
    }
}
.side-socials {
    position: absolute;
    left: 36px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 10px;
    border-radius: 18px;
    background: rgba(1, 8, 18, 0.35);
    border: 1px solid rgba(245, 197, 66, 0.35);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6), inset 0 0 18px rgba(245, 197, 66, 0.06);
}

    .side-socials::before,
    .side-socials::after {
        content: "";
        position: absolute;
        left: 50%;
        width: 1px;
        height: 70px;
        background: linear-gradient( transparent, rgba(245, 197, 66, 0.8), transparent );
        transform: translateX(-50%);
    }

    .side-socials::before {
        bottom: 100%;
    }

    .side-socials::after {
        top: 100%;
    }

    .side-socials a {
        width: 58px;
        height: 58px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        text-decoration: none;
        background: radial-gradient(circle at 35% 25%, rgba(255, 230, 120, 0.28), transparent 35%), linear-gradient(145deg, rgba(39, 32, 14, 0.95), rgba(8, 10, 15, 0.95));
        border: 1px solid rgba(245, 197, 66, 0.65);
        color: #f5c542;
        box-shadow: 0 0 16px rgba(245, 197, 66, 0.24), inset 0 0 12px rgba(245, 197, 66, 0.08);
        transition: 0.25s ease;
    }

        .side-socials a span {
            display: block;
            color: #f5c542;
            font-size: 30px;
            font-weight: 900;
            line-height: 1;
            text-shadow: 0 0 12px rgba(245, 197, 66, 0.45);
        }

        .side-socials a:hover {
            transform: translateX(6px) scale(1.07);
            background: radial-gradient(circle at 35% 25%, rgba(255, 230, 120, 0.42), transparent 35%), linear-gradient(145deg, rgba(82, 56, 8, 0.98), rgba(11, 16, 24, 0.98));
            box-shadow: 0 0 25px rgba(245, 197, 66, 0.48), inset 0 0 16px rgba(245, 197, 66, 0.12);
        }

.social-facebook span {
    font-family: Arial, sans-serif;
    font-size: 34px;
}

.social-instagram span {
    font-size: 35px;
}

.social-youtube span {
    font-size: 28px;
    margin-left: 3px;
}

.social-discord span {
    font-size: 28px;
}
@media (max-width: 768px) {
    .side-socials {
        position: fixed;
        left: 12px;
        bottom: 18px;
        top: auto;
        transform: none;
        flex-direction: row;
        padding: 8px;
        border-radius: 14px;
    }

        .side-socials::before,
        .side-socials::after {
            display: none;
        }

        .side-socials a {
            width: 42px;
            height: 42px;
            border-radius: 10px;
        }

            .side-socials a span {
                font-size: 22px;
            }

    .social-facebook span {
        font-size: 25px;
    }

    .social-instagram span {
        font-size: 26px;
    }

    .social-youtube span {
        font-size: 21px;
    }
}

.xsolla-widget-slot {
    min-height: 58px;
    margin-top: 15px;
}

.xsolla-entry-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.xsolla-entry-box {
    width: min(560px, 96%);
    background: linear-gradient(145deg, #0b1d33, #071321);
    border: 1px solid rgba(0,234,255,.28);
    box-shadow: 0 0 45px rgba(0,0,0,.65);
    border-radius: 18px;
    padding: 28px;
    text-align: center;
}

    .xsolla-entry-box h2 {
        color: #00eaff;
        margin-bottom: 16px;
    }

    .xsolla-entry-box p {
        color: #c8ddff;
        line-height: 1.6;
        font-size: 14px;
        margin: 14px 0;
    }

.xsolla-support-link {
    color: #f5c542;
    font-weight: 800;
}

.xsolla-lang-select {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

    .xsolla-lang-select button {
        border: 1px solid rgba(255,255,255,.2);
        background: rgba(255,255,255,.08);
        color: #fff;
        border-radius: 999px;
        padding: 7px 12px;
        cursor: pointer;
        font-weight: 800;
    }

        .xsolla-lang-select button.active {
            border-color: #00eaff;
            color: #00eaff;
            box-shadow: 0 0 12px rgba(0,234,255,.45);
        }

.xsolla-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    color: #dcecff;
    font-size: 13px;
    margin: 18px 0;
}

.xsolla-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex: 0 0 auto;
}

    .xsolla-switch input {
        display: none;
    }

.xsolla-slider {
    position: absolute;
    inset: 0;
    background: #465164;
    border-radius: 999px;
    cursor: pointer;
}

    .xsolla-slider::before {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
        top: 3px;
        left: 3px;
        background: #fff;
        border-radius: 50%;
        transition: .25s;
    }

.xsolla-switch input:checked + .xsolla-slider {
    background: #00eaff;
}

    .xsolla-switch input:checked + .xsolla-slider::before {
        transform: translateX(22px);
    }

#continueBtn {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: 0;
    background: #00eaff;
    color: #001018;
    font-weight: 900;
    opacity: .45;
    cursor: not-allowed;
}

    #continueBtn.enabled {
        opacity: 1;
        cursor: pointer;
    }


.game-navbar {
    height: 88px;
    padding: 0 48px;
    background: rgba(2, 8, 16, 0.92);
    border-bottom: 1px solid rgba(245, 197, 66, 0.32);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
}

.game-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f5c542;
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 31px;
    font-weight: 900;
    text-shadow: 0 0 16px rgba(245, 197, 66, 0.35);
}

.logo-icon {
    font-size: 32px;
    color: #f5c542;
    filter: drop-shadow(0 0 10px rgba(245, 197, 66, 0.45));
}

.game-nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

    .game-nav-links a {
        color: #f3f6ff;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        position: relative;
        transition: 0.25s ease;
    }

    .game-nav-links > a:not(.nav-button):not(.nav-pill)::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -30px;
        width: 0;
        height: 2px;
        background: #f5c542;
        box-shadow: 0 0 14px rgba(245, 197, 66, 0.9);
        transform: translateX(-50%);
        transition: 0.25s ease;
    }

    .game-nav-links > a:not(.nav-button):not(.nav-pill):hover,
    .game-nav-links > a.active {
        color: #f5c542;
    }

        .game-nav-links > a:not(.nav-button):not(.nav-pill):hover::after,
        .game-nav-links > a.active::after {
            width: 42px;
        }

.nav-pill {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: #f3f6ff !important;
}

    .nav-pill i {
        color: #f5c542;
    }

.nav-button {
    display: flex !important;
    align-items: center;
    gap: 9px;
    padding: 14px 20px;
    border: 1px solid rgba(245, 197, 66, 0.55);
    border-radius: 10px;
    color: #f5c542 !important;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 0 12px rgba(245, 197, 66, 0.06), 0 0 18px rgba(0, 0, 0, 0.35);
}

    .nav-button.gold {
        background: linear-gradient(135deg, #ffd34d, #ff8a00);
        color: #1a1000 !important;
        border-color: rgba(255, 210, 80, 0.85);
    }

    .nav-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 22px rgba(245, 197, 66, 0.28);
    }

.lang-form select {
    height: 48px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid rgba(245, 197, 66, 0.55);
    background: rgba(2, 8, 16, 0.9);
    color: #fff;
    font-weight: 800;
    outline: none;
}

/* PREMIUM DOWNLOAD BUTTONS */

.premium-downloads {
    gap: 26px;
}

.premium-btn {
    min-width: 285px;
    height: 76px;
    padding: 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border-radius: 12px;
    font-size: 18px;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}

    .premium-btn i {
        font-size: 30px;
    }

    .premium-btn span {
        position: relative;
        z-index: 2;
    }

    .premium-btn::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 120deg, transparent, rgba(255, 255, 255, 0.22), transparent );
        transform: translateX(-120%);
        transition: 0.55s ease;
    }

    .premium-btn:hover::before {
        transform: translateX(120%);
    }

    .premium-btn.gold {
        background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(135deg, #3a2400, #ffc43b 48%, #ff8500);
        color: #fff;
        border: 1px solid rgba(255, 220, 90, 0.9);
        box-shadow: 0 0 30px rgba(245, 197, 66, 0.45), inset 0 0 18px rgba(255, 255, 255, 0.15);
    }

    .premium-btn.blue {
        background: radial-gradient(circle at 30% 20%, rgba(0, 234, 255, 0.18), transparent 30%), linear-gradient(145deg, rgba(3, 13, 28, 0.96), rgba(9, 31, 55, 0.96));
        color: #f5f8ff;
        border: 1px solid rgba(0, 234, 255, 0.45);
        box-shadow: 0 0 22px rgba(0, 234, 255, 0.18), inset 0 0 16px rgba(0, 234, 255, 0.06);
    }

        .premium-btn.blue:hover {
            border-color: rgba(245, 197, 66, 0.65);
            box-shadow: 0 0 28px rgba(245, 197, 66, 0.23), inset 0 0 16px rgba(245, 197, 66, 0.08);
        }

.account-hero {
    padding-top: 120px;
}

.account-email {
    font-size: 18px !important;
    word-break: break-word;
}

.account-stats {
    margin-bottom: 28px;
}

.copy-code-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

    .news-modal.show {
        display: flex;
    }

.news-modal-box {
    width: min(760px, 95%);
    background: #071321;
    border: 1px solid rgba(245,197,66,.35);
    border-radius: 18px;
    padding: 28px;
    color: #c8ddff;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,.65);
    overflow-wrap: anywhere;
    word-break: break-word;
    max-height: 85vh;
    overflow-y: auto;
}

    .news-modal-box img {
        width: 100%;
        max-height: 340px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .news-modal-box h2 {
        color: #f5c542;
        margin-bottom: 15px;
    }

    .news-modal-box p {
        line-height: 1.8;
        white-space: pre-line;
    }

.news-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: 0;
    color: #f5c542;
    font-size: 34px;
    cursor: pointer;
}

/* =========================================================
   SEA OF LEGEND - ANIMATED SEA BATTLE BACKGROUND
========================================================= */

.sea-battle-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, rgba(0, 76, 120, .25), transparent 38%), linear-gradient(180deg, #020814 0%, #041120 55%, #02070d 100%);
}

.battle-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* storm light */
.sea-battle-hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 18% 35%, rgba(0, 234, 255, .12), transparent 26%), radial-gradient(circle at 82% 35%, rgba(255, 112, 20, .10), transparent 28%), radial-gradient(circle at 50% 10%, rgba(245, 197, 66, .08), transparent 30%);
    animation: stormPulse 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes stormPulse {
    0%, 100% {
        opacity: .55;
        transform: scale(1);
    }

    50% {
        opacity: .9;
        transform: scale(1.04);
    }
}

/* animated ships */
.war-ship {
    position: absolute;
    bottom: 145px;
    width: 260px;
    height: 190px;
    opacity: .42;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,.7));
    animation: shipFloat 5s ease-in-out infinite;
}

.ship-left {
    left: 7%;
    transform: scale(1.05);
}

.ship-right {
    right: 7%;
    transform: scaleX(-1) scale(1.05);
    animation-delay: -2s;
}

@keyframes shipFloat {
    0%, 100% {
        translate: 0 0;
        rotate: -1deg;
    }

    50% {
        translate: 0 -10px;
        rotate: 1.5deg;
    }
}

.ship-body {
    position: absolute;
    bottom: 18px;
    left: 20px;
    width: 220px;
    height: 42px;
    background: linear-gradient(180deg, #15100a, #050507), linear-gradient(90deg, transparent, rgba(245,197,66,.22), transparent);
    border-radius: 12px 12px 80px 80px;
    border-bottom: 3px solid rgba(245, 197, 66, .28);
}

    .ship-body::before {
        content: "";
        position: absolute;
        left: 25px;
        top: 10px;
        width: 160px;
        height: 12px;
        background: repeating-linear-gradient( 90deg, rgba(245,197,66,.18) 0 8px, transparent 8px 18px );
    }

.ship-mast {
    position: absolute;
    bottom: 52px;
    width: 4px;
    background: #090707;
    box-shadow: 0 0 7px rgba(245,197,66,.25);
}

.mast-one {
    left: 88px;
    height: 135px;
}

.mast-two {
    left: 152px;
    height: 110px;
}

.ship-sail {
    position: absolute;
    background: linear-gradient(135deg, rgba(15, 22, 30, .95), rgba(3, 6, 10, .95));
    border: 1px solid rgba(245,197,66,.12);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.sail-one {
    left: 92px;
    bottom: 92px;
    width: 78px;
    height: 92px;
}

.sail-two {
    left: 156px;
    bottom: 84px;
    width: 62px;
    height: 74px;
}

.ship-fire {
    position: absolute;
    bottom: 48px;
    right: 25px;
    width: 42px;
    height: 22px;
    background: radial-gradient(circle, #ffd25a 0%, #ff6500 42%, transparent 72%);
    filter: blur(1px);
    opacity: 0;
    animation: cannonFlash 3.8s infinite;
}

.ship-right .ship-fire {
    animation-delay: 1.7s;
}

@keyframes cannonFlash {
    0%, 72%, 100% {
        opacity: 0;
        transform: scale(.5);
    }

    74% {
        opacity: 1;
        transform: scale(1.5);
    }

    78% {
        opacity: .3;
        transform: scale(.9);
    }
}

/* cannon balls */
.cannon-ball {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff1b0, #ff7a00 35%, #120400 70%);
    box-shadow: 0 0 22px rgba(255, 118, 0, .95), -45px 0 35px rgba(255, 118, 0, .35);
}

.ball-one {
    left: 18%;
    top: 42%;
    animation: cannonOne 4.2s linear infinite;
}

.ball-two {
    right: 20%;
    top: 34%;
    animation: cannonTwo 5.2s linear infinite;
}

.ball-three {
    left: 28%;
    top: 28%;
    animation: cannonThree 6.5s linear infinite;
}

@keyframes cannonOne {
    0% {
        transform: translate(0, 0) scale(.5);
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    100% {
        transform: translate(850px, -170px) scale(1.15);
        opacity: 0;
    }
}

@keyframes cannonTwo {
    0% {
        transform: translate(0, 0) scale(.5);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(-760px, 130px) scale(1.1);
        opacity: 0;
    }
}

@keyframes cannonThree {
    0% {
        transform: translate(0, 0) scale(.4);
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    100% {
        transform: translate(650px, 210px) scale(1.05);
        opacity: 0;
    }
}

/* explosions */
.explosion {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,236,143,1) 0%, rgba(255,100,0,.8) 24%, rgba(255,0,0,.25) 45%, transparent 70%);
    filter: blur(2px);
    opacity: 0;
    mix-blend-mode: screen;
}

.explosion-one {
    right: 13%;
    bottom: 190px;
    animation: explode 4.2s infinite;
}

.explosion-two {
    left: 12%;
    bottom: 205px;
    animation: explode 5.2s infinite 1.4s;
}

@keyframes explode {
    0%, 78%, 100% {
        opacity: 0;
        transform: scale(.4);
    }

    82% {
        opacity: 1;
        transform: scale(1.25);
    }

    88% {
        opacity: .35;
        transform: scale(1.8);
    }
}

/* sea waves */
.sea-waves {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: 0;
    height: 170px;
    pointer-events: none;
    z-index: 2;
}

.wave-one {
    background: radial-gradient(ellipse at 20% 40%, rgba(0,234,255,.18), transparent 32%), radial-gradient(ellipse at 55% 45%, rgba(255,255,255,.10), transparent 34%), radial-gradient(ellipse at 80% 35%, rgba(0,130,180,.16), transparent 30%);
    animation: waveMoveOne 9s ease-in-out infinite;
}

.wave-two {
    bottom: -35px;
    height: 190px;
    background: repeating-linear-gradient( 165deg, rgba(255,255,255,.08) 0 2px, transparent 2px 30px );
    opacity: .23;
    filter: blur(.4px);
    animation: waveMoveTwo 12s linear infinite;
}

@keyframes waveMoveOne {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(45px) translateY(10px);
    }
}

@keyframes waveMoveTwo {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(80px);
    }
}

/* fog layer */
.sea-fog {
    position: absolute;
    inset: auto -10% 0 -10%;
    height: 280px;
    background: radial-gradient(ellipse at 20% 60%, rgba(0,234,255,.14), transparent 40%), radial-gradient(ellipse at 70% 55%, rgba(255,255,255,.07), transparent 42%), linear-gradient(180deg, transparent, rgba(1,8,16,.85));
    z-index: 3;
    animation: fogDrift 14s ease-in-out infinite;
    pointer-events: none;
}

@keyframes fogDrift {
    0%, 100% {
        transform: translateX(0);
        opacity: .75;
    }

    50% {
        transform: translateX(-60px);
        opacity: .95;
    }
}

/* content always above battle */
.epic-content,
.latest-news-card,
.side-socials {
    position: relative;
    z-index: 5;
}

@media (max-width: 768px) {
    .war-ship {
        width: 170px;
        height: 130px;
        bottom: 210px;
        opacity: .28;
    }

    .ship-left {
        left: -20px;
    }

    .ship-right {
        right: -20px;
    }

    .ship-body {
        width: 150px;
        height: 30px;
    }

    .mast-one {
        left: 62px;
        height: 90px;
    }

    .mast-two {
        left: 105px;
        height: 75px;
    }

    .sail-one {
        left: 66px;
        bottom: 72px;
        width: 52px;
        height: 64px;
    }

    .sail-two {
        left: 110px;
        bottom: 68px;
        width: 42px;
        height: 52px;
    }

    .cannon-ball,
    .explosion {
        display: none;
    }

    .sea-waves {
        height: 120px;
    }
}
/* HERO LAYOUT FIX */

.epic-hero {
    min-height: calc(100vh - 88px);
    padding-top: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epic-content {
    position: relative;
    z-index: 10;
    width: min(900px, 90%);
    margin: 0 auto;
    text-align: center;
    transform: translateY(20px);
}

.latest-news-card {
    position: absolute;
    right: 30px;
    top: 25%;
    bottom: auto;
    transform: translateY(-40%);
    z-index: 12;
    width: 360px;
    max-height: 430px;
}

.side-socials {
    position: absolute;
    left: 34px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 12;
}

.premium-downloads {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
}

.premium-btn {
    min-width: 280px;
}

.sea-waves,
.sea-fog {
    z-index: 2;
}

.battle-layer {
    z-index: 1;
}

@media (max-width: 1200px) {
    .latest-news-card {
        right: 25px;
        width: 310px;
    }

    .premium-btn {
        min-width: 240px;
    }
}

@media (max-width: 900px) {
    .epic-hero {
        min-height: auto;
        padding: 140px 18px 80px;
        display: block;
    }

    .epic-content {
        width: 100%;
        transform: none;
    }

    .latest-news-card {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin: 35px auto 0;
    }

    .side-socials {
        position: fixed;
        left: 12px;
        bottom: 18px;
        top: auto;
        transform: none;
        flex-direction: row;
    }

    .premium-downloads {
        flex-direction: column;
        gap: 14px;
    }

    .premium-btn {
        width: 100%;
        min-width: 0;
    }
}
.latest-news-card {
    max-height: 430px;
    overflow: hidden;
}

.latest-news-list {
    max-height: 285px;
    overflow-y: auto;
    padding-right: 8px;
}

    .latest-news-list::-webkit-scrollbar {
        width: 6px;
    }

    .latest-news-list::-webkit-scrollbar-track {
        background: rgba(255,255,255,.06);
        border-radius: 10px;
    }

    .latest-news-list::-webkit-scrollbar-thumb {
        background: linear-gradient(#f5c542, #ff8a00);
        border-radius: 10px;
    }

        .latest-news-list::-webkit-scrollbar-thumb:hover {
            background: #ffd86b;
        }

.setting-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c8ddff;
    font-weight: 700;
}

    .setting-toggle-row input {
        width: 22px;
        height: 22px;
    }

.rules-page-bg {
    background: radial-gradient(circle at 50% 0%, rgba(0,234,255,.12), transparent 28%), radial-gradient(circle at 20% 20%, rgba(245,197,66,.08), transparent 22%), linear-gradient(180deg, #020814, #06111f 45%, #020814);
    color: #c8ddff;
}

.rules-hero {
    padding: 150px 24px 55px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(245,197,66,.12), transparent 35%), linear-gradient(180deg, rgba(0,0,0,.35), transparent);
}

    .rules-hero h1 {
        color: #f5c542;
        font-family: Georgia, serif;
        font-size: clamp(42px, 7vw, 78px);
        text-shadow: 0 0 28px rgba(245,197,66,.35);
        margin-bottom: 12px;
    }

    .rules-hero p {
        color: #d8c9a2;
        font-size: 18px;
    }

.rules-content-section {
    padding: 30px 5% 90px;
}

.rules-card {
    max-width: 1100px;
    margin: 0 auto;
    padding: 42px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(7,19,33,.94), rgba(4,11,21,.96));
    border: 1px solid rgba(245,197,66,.25);
    box-shadow: 0 0 45px rgba(0,0,0,.45);
}

    .rules-card p,
    .rules-card li {
        color: #c8ddff;
        line-height: 1.8;
        font-size: 15.5px;
    }

    .rules-card h3 {
        color: #f5c542;
        margin: 34px 0 14px;
        font-size: 23px;
        font-family: Georgia, serif;
    }

    .rules-card ul {
        padding-left: 24px;
        margin: 12px 0 18px;
    }

    .rules-card li {
        margin-bottom: 9px;
    }

    .rules-card a {
        color: #00eaff;
        font-weight: 700;
    }

.rules-updated {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #f5c542 !important;
}

@media (max-width: 768px) {
    .rules-hero {
        padding-top: 125px;
    }

    .rules-card {
        padding: 24px;
    }

        .rules-card h3 {
            font-size: 20px;
        }
}

.leaderboard-section {
    padding: 55px 5%;
    background: radial-gradient(circle at center, rgba(0,234,255,.06), transparent 32%), linear-gradient(180deg, #020814, #06111f);
    text-align: center;
}

    .leaderboard-section h2 {
        color: #f5c542;
        font-family: Georgia, serif;
        font-size: 38px;
        margin-bottom: 28px;
    }

.leaderboard-grid-3 {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.leaderboard-mini-card {
    background: rgba(7, 19, 33, .86);
    border: 1px solid rgba(245,197,66,.22);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 0 28px rgba(0,0,0,.35);
}

    .leaderboard-mini-card h3 {
        color: #00eaff;
        font-size: 18px;
        margin-bottom: 14px;
    }

.leaderboard-mini-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 7px;
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    font-size: 13px;
}

    .leaderboard-mini-row span {
        color: #f5c542;
        font-weight: 900;
    }

    .leaderboard-mini-row strong {
        color: #fff;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .leaderboard-mini-row em {
        color: #00eaff;
        font-style: normal;
        font-weight: 800;
        font-size: 12px;
    }

@media (max-width: 900px) {
    .leaderboard-grid-3 {
        grid-template-columns: 1fr;
    }
}

.leaderboard-mini-row.rank-1 {
    background: linear-gradient( 90deg, rgba(255,215,0,.22), rgba(255,215,0,.08) );
    border: 1px solid rgba(255,215,0,.5);
}

.leaderboard-mini-row.rank-2 {
    background: linear-gradient( 90deg, rgba(192,192,192,.22), rgba(192,192,192,.08) );
    border: 1px solid rgba(192,192,192,.5);
}

.leaderboard-mini-row.rank-3 {
    background: linear-gradient( 90deg, rgba(205,127,50,.22), rgba(205,127,50,.08) );
    border: 1px solid rgba(205,127,50,.5);
}
.leaderboard-update-time {
    color: #9fb8d8;
    margin-bottom: 20px;
    font-size: 13px;
    opacity: .85;
}
.mobile-menu-btn {
    display: none;
}

@media (max-width: 900px) {
    .game-navbar {
        height: 72px;
        padding: 0 18px;
        justify-content: space-between;
    }

    .game-logo {
        font-size: 24px;
        z-index: 1002;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border-radius: 12px;
        border: 1px solid rgba(245,197,66,.45);
        background: rgba(7, 19, 33, .95);
        color: #f5c542;
        font-size: 22px;
        cursor: pointer;
        z-index: 1002;
    }

    .game-nav-links {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh;
        padding: 90px 18px 24px;
        background: rgba(3, 10, 20, .98);
        border-right: 1px solid rgba(245,197,66,.25);
        box-shadow: 14px 0 45px rgba(0,0,0,.55);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        transition: left .25s ease;
        z-index: 1001;
    }

    .game-nav-links.mobile-open {
        left: 0;
    }

    .game-nav-links a,
    .game-nav-links .nav-pill,
    .game-nav-links .nav-button {
        width: 100%;
        justify-content: flex-start;
        padding: 13px 14px;
        border-radius: 12px;
        background: rgba(255,255,255,.04);
    }

    .lang-form {
        width: 100%;
    }

    .lang-form select {
        width: 100%;
        height: 42px;
    }

    .epic-hero {
        padding-top: 95px;
    }

    .side-socials {
        position: absolute !important;
        left: 50% !important;
        bottom: 22px !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        flex-direction: row !important;
        z-index: 12;
    }

    .side-socials::before,
    .side-socials::after {
        display: none !important;
    }
}
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: flex !important;
        position: relative;
        z-index: 99999;
    }

    .game-nav-links {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 260px !important;
        height: 100vh !important;
        padding: 90px 18px 24px !important;
        background: rgba(3, 10, 20, .98) !important;
        flex-direction: column !important;
        gap: 12px !important;
        z-index: 99998 !important;
        transition: left .25s ease !important;
    }

    .game-nav-links.mobile-open {
        left: 0 !important;
    }

    .game-nav-links a,
    .game-nav-links button,
    .game-nav-links select {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}
@media (max-width: 900px) {

    .game-navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999999 !important;
    }

    .mobile-menu-btn {
        position: relative !important;
        z-index: 1000001 !important;
    }

    .game-nav-links {
        z-index: 1000000 !important;
    }

    body {
        padding-top: 72px;
    }
}
@media (max-width: 900px) {

    .game-nav-links {
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100vh - 90px) !important;

        top: 72px !important;
        left: -280px !important;

        padding: 14px !important;
        border-radius: 0 0 18px 0;

        overflow-y: auto !important;
    }

    .game-nav-links.mobile-open {
        left: 0 !important;
    }
}
@media (max-width: 900px) {

    .mobile-menu-btn {
        transition: all .3s ease;
    }

    .mobile-menu-btn.menu-open {
        transform: translateX(210px);
    }
}
@media (max-width: 900px) {

    .mobile-menu-btn {
        transition: transform .3s ease;
    }

    .mobile-menu-btn.menu-open {
        transform: translateX(210px);
    }

    .mobile-menu-btn i {
        transition: transform .3s ease;
    }

    .mobile-menu-btn.menu-open i {
        transform: rotate(90deg);
    }
}
@media (max-width: 900px) {

    .mobile-menu-btn {
        transition: all .35s ease;
    }

    .mobile-menu-btn.menu-open {
        transform: translateX(210px);
    }

    .mobile-menu-btn i {
        transition: all .35s ease;
    }

    .mobile-menu-btn.menu-open i {
        transform: rotate(180deg);
    }

    .mobile-menu-btn:hover {
        box-shadow: 0 0 15px rgba(245,197,66,.5);
    }
}