@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #11131b;
    --panel: #191c27;
    --panel-2: #202331;
    --gold: #d7ad50;
    --gold-light: #f1d27d;
    --green: #28b957;
    --text: #f5f3ed;
    --muted: #aaa9ad;
    --line: rgba(215,173,80,.38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(ellipse at 50% 35%, rgba(92,65,31,.12), transparent 55%),
        var(--bg);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

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

button { font: inherit; }

.v2-container {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}

.v2-header {
    height: 76px;
    background: rgba(17,19,27,.97);
    border-bottom: 1px solid rgba(215,173,80,.16);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
}

.v2-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.v2-logo {
    color: var(--gold);
    font-size: 29px;
    font-weight: 900;
    letter-spacing: 1px;
}

.v2-links {
    display: flex;
    align-items: center;
    gap: 25px;
    color: #d6d4d0;
    font-size: 13px;
}

.v2-links a:hover,
.v2-links a.active { color: var(--gold-light); }

.v2-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.v2-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 38px;
    padding: 7px 17px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.v2-btn-gold {
    color: #17130b;
    background: linear-gradient(110deg,#b98a31,#f1d27d,#c69b42);
    border-color: #e5bd62;
}

.v2-discord-btn {
    gap: 8px;
    color: #e8c879;
    border-color: rgba(215,173,80,.48);
    background: linear-gradient(120deg,rgba(197,157,78,.12),rgba(23,24,30,.92));
    text-decoration: none;
    white-space: nowrap;
    transition: .2s ease;
}

.v2-discord-btn svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.v2-discord-btn:hover {
    color: #ffe5a3;
    border-color: #e8c879;
    box-shadow: 0 0 15px rgba(215,173,80,.2);
}


/* ===== LOXARA V2 ACCOUNT PROFILE ===== */
.v2-account-trigger {
    font-family: inherit;
}

.v2-profile-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.v2-profile-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.v2-profile-card {
    position: relative;
    width: min(100%, 420px);
    max-height: min(88vh, 680px);
    overflow-y: auto;
    padding: 30px 24px 24px;
    border: 1px solid rgba(241, 210, 125, .65);
    border-radius: 16px;
    background: linear-gradient(145deg, #25232a, #14151c 75%);
    box-shadow: 0 18px 65px rgba(0, 0, 0, .55),
                0 0 25px rgba(215, 173, 80, .12);
    color: var(--text);
}

.v2-profile-close {
    position: absolute;
    top: 10px;
    left: 13px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #20212a;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.v2-profile-heading {
    text-align: center;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.v2-profile-avatar {
    display: block;
    width: 82px;
    height: 82px;
    margin: 0 auto 12px;
    border: 2px solid #d9b45e;
    border-radius: 50%;
    object-fit: cover;
}

.v2-profile-fallback {
    display: grid;
    place-items: center;
    background: #332b1d;
    color: #ffe39a;
    font-size: 34px;
    font-weight: 900;
}

.v2-profile-heading h2 {
    margin: 8px 0 5px;
    color: #ffe39a;
    font-size: 20px;
}

.v2-profile-heading p {
    margin: 0 0 13px;
    color: #b9bac2;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.v2-profile-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    background: #34343b;
    color: #eee;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

.v2-badge-owner,
.v2-badge-gold {
    background: linear-gradient(100deg, #a97825, #ffe39a);
    color: #17130b;
}

.v2-badge-vip {
    background: #47351c;
    color: #f5d58a;
    border: 1px solid #b98a31;
}

.v2-badge-free {
    background: #263b30;
    color: #91dfaa;
}

.v2-profile-details {
    padding-top: 17px;
}

.v2-profile-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-size: 12px;
}

.v2-profile-row span {
    color: #a9aab2;
}

.v2-profile-row strong {
    color: #f1d27d;
    text-align: left;
}

.v2-profile-remaining {
    margin-top: 16px;
    padding: 12px;
    border: 1px solid rgba(215, 173, 80, .2);
    border-radius: 8px;
    background: rgba(215, 173, 80, .07);
    color: #ffe39a;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
}

.v2-profile-admin {
    display: flex;
    margin-top: 18px;
    text-decoration: none;
}

body.v2-profile-open {
    overflow: hidden;
}

@media (max-width: 650px) {
    .v2-profile-card {
        padding: 27px 18px 20px;
    }

    .v2-profile-row {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v2-profile-overlay {
        transition: none;
    }
}
/* ===== END LOXARA V2 ACCOUNT PROFILE ===== */


.v2-hero {
    min-height: 270px;
    margin: 28px auto 48px;
    border: 2px solid #b99042;
    outline: 1px solid rgba(241,210,125,.35);
    outline-offset: 4px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    padding: 34px 45px;
    background:
        linear-gradient(90deg,rgba(12,14,20,.70),rgba(12,14,20,.94)),
        radial-gradient(circle at 20% 50%,#59421e,transparent 45%),
        #171923;
}

.v2-hero::before,
.v2-hero::after {
    content: "✦";
    position: absolute;
    color: var(--gold);
    opacity: .7;
    font-size: 20px;
}

.v2-hero::before { top: 18px; right: 25px; }
.v2-hero::after { bottom: 18px; left: 25px; }

.v2-hero-art {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.v2-hero-art .v2-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--gold);
    border-radius: 9px;
    box-shadow: 0 10px 35px #000;
    box-sizing: border-box;
    opacity: 0;
    transform: scale(1.035);
    transition: opacity 1.1s ease, transform 4s ease;
    pointer-events: none;
}

.v2-hero-art .v2-hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.v2-hero-art .v2-hero-slide > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v2-hero-copy { text-align: right; }

.v2-kicker {
    color: var(--gold-light);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 800;
}

.v2-hero h1 {
    font-size: clamp(23px,3vw,36px);
    line-height: 1.55;
    margin: 8px 0;
    font-weight: 900;
}

.v2-hero h1 span { color: var(--gold-light); }

.v2-hero p {
    color: #c5bdad;
    font-size: 13px;
    line-height: 2;
    max-width: 540px;
}

.v2-section { margin: 48px auto 60px; }

.v2-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    margin-bottom: 20px;
}

.v2-section-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.v2-section-head h2 strong { color: var(--gold); }

.v2-section-head p {
    color: var(--muted);
    margin: 4px 0 0;
    font-size: 12px;
}

.v2-more {
    color: var(--gold-light);
    font-size: 12px;
    white-space: nowrap;
}

.v2-games-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 15px;
}

.v2-game-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(145deg,#202331,#151722);
    border: 1px solid rgba(215,173,80,.28);
    border-radius: 9px;
    padding: 8px;
    transition: transform .2s,border-color .2s;
}

.v2-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.v2-game-image {
    width: 100%;
    aspect-ratio: 1.12 / 1;
    display: block;
    object-fit: cover;
    border-radius: 5px;
    background: #0d0f15;
}

.v2-game-badge {
    position: absolute;
    top: 13px;
    right: 13px;
    padding: 3px 7px;
    color: #211808;
    background: linear-gradient(120deg,#c18f35,#f4d47a);
    font-size: 9px;
    font-weight: 900;
    border-radius: 2px;
}

.v2-exclusive-mark {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    direction: rtl;
    max-width: calc(100% - 26px);
}

.v2-exclusive-label {
    padding: 6px 9px;
    color: #e8c879;
    background: linear-gradient(90deg, #171717, #29251d);
    border-radius: 0 0 0 5px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.v2-crown-ribbon {
    width: 34px;
    height: 53px;
    flex: 0 0 34px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 9px;
    background: linear-gradient(100deg, #bd913d, #f5d77f, #c69b49);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
}

.v2-crown-ribbon svg {
    width: 17px;
    height: 15px;
    display: block;
}

@media(max-width:650px) {
    .v2-exclusive-mark {
        top: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }

    .v2-exclusive-label {
        padding: 4px 6px;
        font-size: 8px;
        color: #ffe39a;
        background: rgba(24, 22, 18, .38);
        border: 1px solid rgba(255, 227, 154, .38);
        border-left: 0;
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
        text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
    }

    .v2-crown-ribbon {
        width: 23px;
        height: 35px;
        flex-basis: 23px;
        padding-top: 6px;
        background: rgba(210, 174, 99, .38);
        border: 1px solid rgba(255, 230, 166, .65);
        border-top: 0;
        backdrop-filter: blur(7px);
        -webkit-backdrop-filter: blur(7px);
        filter: drop-shadow(0 2px 3px rgba(0,0,0,.25));
    }

    .v2-crown-ribbon svg {
        width: 13px;
        height: 11px;
    }
}

.v2-game-badge.free {
    background: #28b957;
    color: #071b0d;
}

.v2-game-card h3 {
    margin: 9px 2px 1px;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.v2-game-card p {
    color: var(--gold-light);
    font-size: 10px;
    text-align: center;
    margin: 0 0 5px;
}

.v2-free .v2-game-card p { color: #65d78a; }

.v2-private {
    margin: 65px auto;
    padding: 35px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        radial-gradient(circle at 15% 50%,rgba(194,145,52,.16),transparent 40%),
        linear-gradient(120deg,#171923,#22202a);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.v2-private h2 { margin: 5px 0; font-size: 25px; }
.v2-private h2 span { color: var(--gold); }
.v2-private p { color: var(--muted); font-size: 12px; }

.v2-platforms {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.v2-platform {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 155px;
    border: 1px solid rgba(211,174,100,.38);
    border-radius: 15px;
    background:
        radial-gradient(ellipse at 82% 45%,rgba(201,158,76,.17),transparent 55%),
        linear-gradient(115deg,#24232b,#111319);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 28px;
    box-shadow: inset 0 0 25px rgba(220,180,100,.035), 0 8px 25px rgba(0,0,0,.2);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.v2-platform:hover {
    transform: translateY(-4px);
    border-color: rgba(235,199,119,.8);
    box-shadow: 0 10px 30px rgba(0,0,0,.3), 0 0 22px rgba(211,174,100,.12);
}

.v2-platform-info {
    display: flex;
    flex-direction: column;
    gap: 9px;
    position: relative;
    z-index: 2;
}

.v2-platform strong {
    color: #f2d28b;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: .4px;
}

.v2-platform-info span {
    color: var(--muted);
    font-size: 11px;
}

.v2-platform-art {
    width: 112px;
    height: 95px;
    display: grid;
    place-items: center;
    color: #e8c477;
    opacity: .88;
    filter: drop-shadow(0 0 12px rgba(218,177,96,.22));
}

.v2-platform-art svg {
    width: 100%;
    height: 100%;
}

.v2-platform-arrow {
    position: absolute;
    bottom: 13px;
    left: 20px;
    color: #d6b66f;
    font-size: 10px;
    opacity: .85;
}

.v2-membership {
    padding: 42px 20px;
    background:
        linear-gradient(rgba(12,14,20,.78),rgba(12,14,20,.94)),
        radial-gradient(ellipse at 50% 10%,#66502b,transparent 70%);
    border-block: 1px solid rgba(215,173,80,.18);
}

.v2-plans {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,230px));
    justify-content: center;
    gap: 16px;
}

.v2-plan {
    padding: 20px 15px;
    background: rgba(25,28,39,.96);
    border: 1px solid rgba(215,173,80,.22);
    border-radius: 10px;
    text-align: center;
}

.v2-plan.featured {
    border: 2px solid var(--gold);
    box-shadow: 0 0 24px rgba(215,173,80,.18);
    transform: translateY(-8px);
}

.v2-plan h3 { margin: 0 0 10px; font-size: 17px; }
.v2-plan .price { color: var(--gold-light); font-size: 27px; font-weight: 900; }
.v2-plan .period { color: var(--muted); font-size: 10px; }
.v2-plan ul { list-style: none; padding: 0; text-align: right; min-height: 105px; }
.v2-plan li { color: #d0cfc9; font-size: 10px; line-height: 2.2; }
.v2-plan li::before { content: "✓"; color: var(--gold); margin-left: 6px; }

.v2-footer {
    position: relative;
    padding: 35px 0 22px;
    border-top: 1px solid rgba(215,173,80,.22);
    background: linear-gradient(180deg,rgba(20,21,28,.55),#101116);
    color: var(--muted);
    font-size: 11px;
}

.v2-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
}

.v2-footer-social h3 {
    margin: 0 0 18px;
    color: #e8c879;
    font-size: 16px;
    font-weight: 900;
}

.v2-social-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 13px;
}

.v2-social-item,
.v2-social-group {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 15px;
    border: 1px solid rgba(215,173,80,.2);
    border-radius: 11px;
    background: linear-gradient(120deg,rgba(40,38,33,.75),rgba(23,24,30,.9));
    color: #e6c477;
    transition: .25s ease;
}

.v2-social-item:hover,
.v2-social-group:hover {
    border-color: rgba(235,199,119,.75);
    background: rgba(197,157,78,.1);
    box-shadow: 0 0 18px rgba(215,173,80,.12);
    transform: translateY(-3px);
}

.v2-social-icon,
.v2-social-item svg {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    color: #e8c879;
}

.v2-social-item span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #eee5d2;
    font-weight: 800;
}

.v2-social-item small {
    color: #a99b7d;
    font-size: 9px;
    font-weight: 500;
}

.v2-youtube-group {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: visible;
}

.v2-youtube-button {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    color: #e8c879;
    cursor: pointer;
    list-style: none;
    font-weight: 900;
}

.v2-youtube-button::-webkit-details-marker {
    display: none;
}

.v2-youtube-button svg {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
}

.v2-youtube-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100;
    min-width: 150px;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 9px;
    border: 1px solid rgba(215,173,80,.35);
    border-radius: 11px;
    background: #17171d;
    box-shadow: 0 10px 30px #0009;
}

.v2-youtube-group[open] .v2-youtube-links {
    display: flex;
}

.v2-youtube-links a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: #eee5d2;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.v2-youtube-links a:hover {
    color: #e8c879;
    background: rgba(197,157,78,.12);
}

.v2-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 19px;
    border-top: 1px solid rgba(215,173,80,.12);
}

.v2-footer-copyright {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c8c1b2;
}

.v2-footer-crown {
    width: 27px;
    height: 24px;
    color: #e8c879;
    filter: drop-shadow(0 0 7px rgba(232,200,121,.35));
}

.v2-footer-bottom .v2-logo {
    color: #e8c879;
}

.v2-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 35px;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 9px;
}

@media(max-width:900px) {
    .v2-links { gap: 12px; }
    .v2-games-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .v2-hero { padding: 25px; }
}

@media(max-width:650px) {
    .v2-header { height: auto; padding: 12px 0; }
    .v2-nav { flex-wrap: wrap; gap: 10px; }
    .v2-logo { font-size: 25px; }
    .v2-links {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding: 8px 0 2px;
        white-space: nowrap;
        justify-content: flex-start;
    }
    .v2-actions { margin-right: auto; }
    .v2-hero {
        grid-template-columns: 1fr;
        padding: 25px 18px;
        text-align: center;
        margin-top: 20px;
    }
    .v2-hero-copy { text-align: center; }
    .v2-hero-art { order: 2; }
    .v2-hero-art { min-height: 155px; }
    .v2-games-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .v2-section-head h2 { font-size: 18px; }
    .v2-private { flex-direction: column; align-items: stretch; padding: 23px; }
    .v2-platforms { grid-template-columns: 1fr; }
    .v2-plans { grid-template-columns: 1fr; max-width: 340px; margin: auto; }
    .v2-plan.featured { transform: none; }
    .v2-footer-inner { gap: 23px; }
    .v2-social-list { gap: 9px; }
    .v2-social-item, .v2-social-group { padding: 9px 11px; }
    .v2-footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
    .v2-footer-copyright { justify-content: center; flex-wrap: wrap; }
}

@media(max-width:380px) {
    .v2-container { width: calc(100% - 22px); }
    .v2-games-grid { gap: 7px; }
    .v2-game-card { padding: 5px; }
    .v2-game-card h3 { font-size: 11px; }
}

/* ===== LOXARA V2 MEMBERSHIP GLOW ===== */
.v2-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1050px;
    margin: 25px auto 0;
    align-items: stretch;
}

.v2-plan {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(215,173,80,.28);
    background: linear-gradient(145deg, #202331, #141720 78%);
    box-shadow: 0 8px 28px rgba(0,0,0,.3);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.v2-plan::before {
    content: "";
    position: absolute;
    top: -80%;
    left: -65%;
    width: 45%;
    height: 260%;
    transform: rotate(25deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    animation: v2-card-shine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes v2-card-shine {
    0%, 65% { left: -65%; }
    100% { left: 140%; }
}

.v2-plan:hover {
    transform: translateY(-7px);
    border-color: var(--gold-light);
    box-shadow: 0 12px 35px rgba(215,173,80,.2);
}

.v2-plan-label {
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.v2-plan ul {
    flex: 1;
    min-height: 170px;
}

.v2-plan li {
    font-size: 12px;
    line-height: 2.35;
}

.v2-plan li.v2-disabled {
    color: #777b87;
}

.v2-plan li.v2-disabled::before {
    content: "✕";
    color: #777b87;
}

.v2-plan .v2-btn {
    display: block;
    margin-top: auto;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.v2-plan-vip {
    border-color: rgba(215,173,80,.48);
    box-shadow: 0 0 18px rgba(215,173,80,.08);
}

.v2-plan.featured {
    border: 2px solid var(--gold);
    box-shadow: 0 0 22px rgba(215,173,80,.22), inset 0 0 22px rgba(215,173,80,.035);
}

.v2-popular-badge {
    display: inline-block;
    align-self: center;
    margin: 0 0 12px;
    padding: 5px 13px;
    border-radius: 30px;
    color: #17130a;
    background: linear-gradient(90deg, #b9872f, #ffe39a, #c99b43);
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 0 16px rgba(241,210,125,.35);
}

.v2-plan-gold {
    border: 1px solid #f1d27d;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(215,173,80,.2), transparent 65%),
        linear-gradient(145deg, #302718, #191923 75%);
    box-shadow: 0 0 16px rgba(215,173,80,.2), inset 0 0 25px rgba(215,173,80,.07);
    animation: v2-gold-glow 3s ease-in-out infinite alternate;
}

.v2-plan-gold .v2-plan-label,
.v2-plan-gold .price {
    color: #ffe39a;
    text-shadow: 0 0 12px rgba(241,210,125,.45);
}

.v2-plan-gold::after {
    content: "✦";
    position: absolute;
    top: 42px;
    left: 17px;
    color: #ffe39a;
    font-size: 23px;
    text-shadow: 0 0 14px #e6bd62;
    animation: v2-star-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes v2-gold-glow {
    from { box-shadow: 0 0 14px rgba(215,173,80,.17), inset 0 0 18px rgba(215,173,80,.04); }
    to { box-shadow: 0 0 32px rgba(241,210,125,.38), inset 0 0 30px rgba(215,173,80,.1); }
}

@keyframes v2-star-pulse {
    from { opacity: .45; transform: scale(.8); }
    to { opacity: 1; transform: scale(1.2); }
}

.v2-plan-support {
    border-color: rgba(70,190,120,.35);
    background: linear-gradient(145deg, #1c2926, #171b22);
}

.v2-plan-support .v2-plan-label {
    color: #79d7a0;
}

.v2-btn-support {
    color: #102018 !important;
    background: linear-gradient(110deg, #83e3a6, #36b96d) !important;
    box-shadow: 0 0 18px rgba(54,185,109,.2);
}

.v2-support-note {
    color: #a9b5ad;
    font-size: 10px;
    line-height: 1.8;
    margin: 12px 0 0;
}

@media (max-width: 900px) {
    .v2-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .v2-plans {
        grid-template-columns: minmax(0, 1fr);
        max-width: 390px;
    }

    .v2-plan {
        padding: 22px 18px;
    }

    .v2-plan ul {
        min-height: 0;
    }

    .v2-plan.featured {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v2-plan::before,
    .v2-plan-gold,
    .v2-plan-gold::after {
        animation: none !important;
    }

    .v2-plan {
        transition: none;
    }
}


/* =========================================
   LOXARA V2 — EPIC ANNOUNCEMENTS
   ========================================= */

.v2-announcements-section {
    position: relative;
}

.v2-announcements-heading {
    margin-bottom: 22px;
}

.v2-announcement-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: #d9b66b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.v2-announcements-list {
    display: grid;
    gap: 16px;
}

.v2-announcement-epic {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 22px;
    overflow: hidden;
    isolation: isolate;
    padding: 24px;
    border: 1px solid rgba(211, 174, 91, .38);
    border-radius: 18px;
    background:
        linear-gradient(115deg, rgba(35, 31, 25, .97), rgba(19, 22, 29, .98) 58%),
        #171b22;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 226, 157, .08);
    animation: v2AnnouncementEnter .65s ease both;
}

.v2-announcement-glow {
    position: absolute;
    z-index: -1;
    top: -90px;
    right: -70px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(206, 164, 76, .12);
    filter: blur(55px);
    pointer-events: none;
}

.v2-announcement-image {
    flex: 0 0 190px;
    overflow: hidden;
    align-self: center;
    border: 1px solid rgba(218, 184, 111, .35);
    border-radius: 12px;
    background: #11151c;
}

.v2-announcement-image img {
    display: block;
    width: 100%;
    height: 135px;
    object-fit: cover;
}

.v2-announcement-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.v2-announcement-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.v2-announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    border: 1px solid rgba(218, 184, 111, .25);
    border-radius: 30px;
    color: #e8cb8c;
    background: rgba(218, 184, 111, .08);
    font-size: 11px;
    font-weight: 700;
}

.v2-announcement-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e4bd68;
    box-shadow: 0 0 10px rgba(228, 189, 104, .8);
}

.v2-announcement-brand {
    color: rgba(226, 199, 143, .48);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.v2-announcement-content h3 {
    margin: 0 0 10px;
    color: #f4dfb1;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 800;
    line-height: 1.6;
}

.v2-announcement-content p {
    margin: 0;
    color: #c2c5cc;
    font-size: 14px;
    line-height: 2;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.v2-announcement-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
    padding: 9px 16px;
    border: 1px solid rgba(222, 187, 111, .45);
    border-radius: 9px;
    color: #171717 !important;
    background: linear-gradient(110deg, #f0d99e, #c59a4e);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease;
}

.v2-announcement-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(197, 154, 78, .22);
}

@keyframes v2AnnouncementEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 650px) {
    .v2-announcement-epic {
        flex-direction: column;
        gap: 15px;
        padding: 18px;
        border-radius: 14px;
    }

    .v2-announcement-image {
        flex-basis: auto;
        width: 100%;
    }

    .v2-announcement-image img {
        height: 175px;
    }

    .v2-announcement-content p {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v2-announcement-epic {
        animation: none;
    }

    .v2-announcement-link {
        transition: none;
    }
}


/* =========================================
   LOXARA V2 — UPCOMING GAME SHOWCASE
   ========================================= */

.v2-upcoming-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #d9b66b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.v2-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.v2-upcoming-game-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(211, 174, 91, .32);
    border-radius: 16px;
    background: linear-gradient(145deg, #22232a, #141820);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
    transition: border-color .25s ease, transform .25s ease;
}

.v2-upcoming-game-card:hover {
    transform: translateY(-3px);
    border-color: rgba(225, 190, 111, .7);
}

.v2-upcoming-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    overflow: hidden;
    background: #11151c;
}

.v2-upcoming-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.v2-upcoming-game-card:hover .v2-upcoming-cover img {
    transform: scale(1.045);
}

.v2-upcoming-cover-label {
    position: absolute;
    top: 13px;
    right: 13px;
    padding: 7px 13px;
    border: 1px solid rgba(236, 204, 139, .4);
    border-radius: 30px;
    color: #f1d89f;
    background: rgba(15, 17, 22, .82);
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.v2-upcoming-cover-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: radial-gradient(ellipse at center, #383020, #151922 72%);
    text-align: center;
}

.v2-upcoming-cover-placeholder span {
    color: #d9b66b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 4px;
}

.v2-upcoming-cover-placeholder strong {
    color: #f1dfb9;
    font-size: 19px;
    line-height: 1.7;
}

.v2-upcoming-info {
    padding: 18px;
}

.v2-upcoming-info h3 {
    margin: 0 0 15px;
    color: #f0d69c;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.v2-upcoming-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #b9bdc6;
    font-size: 12px;
}

.v2-upcoming-date time {
    color: #e5c783;
    font-weight: 700;
    direction: ltr;
}

.v2-upcoming-details {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding: 10px 15px;
    border: 1px solid rgba(222, 187, 111, .4);
    border-radius: 9px;
    color: #171717 !important;
    background: linear-gradient(110deg, #f0d99e, #c59a4e);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

@media (max-width: 650px) {
    .v2-upcoming-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }


    .v2-upcoming-info {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v2-upcoming-game-card,
    .v2-upcoming-cover img {
        transition: none;
    }
}


/* Clickable upcoming game cover */
.v2-upcoming-cover-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.v2-upcoming-cover-link:focus-visible {
    outline: 2px solid #e1be6f;
    outline-offset: 4px;
}


/* ===== LOXARA V2 IMPROVEMENTS ===== */

/* عرض صور الألعاب كاملة دون قص الشعارات */
.v2-hero-art .v2-hero-slide > img {
    object-fit: contain;
    background: #0d0f15;
}

.v2-game-image {
    object-fit: contain;
    aspect-ratio: 16 / 10;
    background: #0d0f15;
}

/* شريط الإحصائيات المختصر */
.v2-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.v2-stats-strip > div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 15px 10px;
    border: 1px solid rgba(211,174,100,.3);
    border-radius: 12px;
    background: linear-gradient(120deg,#24232b,#111319);
    text-align: center;
}

.v2-stats-strip strong {
    color: #f2d28b;
    font-size: 23px;
    font-weight: 900;
}

.v2-stats-strip span {
    color: var(--muted);
    font-size: 11px;
}

/* البحث */
.v2-search {
    position: relative;
    max-width: 480px;
    margin: 18px 0;
    text-align: right;
    z-index: 5;
}

.v2-search label {
    display: block;
    margin-bottom: 7px;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 800;
}

.v2-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid rgba(215,173,80,.45);
    border-radius: 9px;
    outline: none;
    background: #151822;
    color: #fff;
    font: inherit;
}

.v2-search input:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 15px rgba(215,173,80,.12);
}

.v2-search-results {
    display: grid;
    gap: 7px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.v2-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #191d28;
    color: #fff;
    text-decoration: none;
}

.v2-search-result:hover {
    border-color: var(--gold);
}

.v2-search-result img {
    width: 55px;
    height: 45px;
    object-fit: contain;
    background: #0d0f15;
    border-radius: 5px;
}

.v2-search-result span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v2-search-result small {
    color: var(--gold-light);
}

/* مقارنة VIP الشهري وGOLD */
.v2-plan-monthly {
    border-color: #e5c36e !important;
    box-shadow: 0 0 22px rgba(215,173,80,.2);
}

.v2-plan-premium li:nth-child(4) {
    color: #ffe39a;
    font-weight: 900;
    background: rgba(215,173,80,.12);
    border: 1px solid rgba(215,173,80,.3);
    border-radius: 6px;
    padding: 3px 7px;
}

/* قائمة الهاتف */
.v2-mobile-menu {
    display: none;
    position: relative;
}

.v2-mobile-menu summary {
    cursor: pointer;
    list-style: none;
    color: var(--gold-light);
    border: 1px solid rgba(215,173,80,.4);
    border-radius: 7px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 800;
}

.v2-mobile-menu summary::-webkit-details-marker {
    display: none;
}

.v2-mobile-menu nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100;
    display: grid;
    min-width: 190px;
    padding: 8px;
    border: 1px solid rgba(215,173,80,.4);
    border-radius: 9px;
    background: #171a24;
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
}

.v2-mobile-menu nav a {
    padding: 10px;
    color: #eee;
    text-decoration: none;
    border-radius: 5px;
}

.v2-mobile-menu nav a:hover {
    background: rgba(215,173,80,.12);
}

@media(max-width:650px) {
    .v2-links {
        display: none !important;
    }

    .v2-mobile-menu {
        display: block;
        order: 3;
    }

    .v2-nav {
        align-items: center;
    }

    .v2-actions {
        gap: 6px;
    }

    .v2-actions .v2-discord-btn {
        display: none;
    }

    .v2-actions .v2-btn {
        padding: 8px 9px;
        font-size: 10px;
    }

    .v2-search {
        max-width: 100%;
    }

    .v2-stats-strip {
        gap: 6px;
    }

    .v2-stats-strip > div {
        padding: 12px 5px;
    }

    .v2-stats-strip strong {
        font-size: 18px;
    }

    .v2-stats-strip span {
        font-size: 9px;
    }
}

@media(max-width:380px) {
    .v2-actions .v2-btn {
        padding: 7px 6px;
        font-size: 9px;
    }
}

/* تحسين حجم خانة البحث في V2 */
#v2GameSearch {
    width: 260px;
    max-width: 100%;
    margin: 12px 0 0 auto;
}

#v2SearchInput {
    width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 8px 13px;
    font-size: 13px;
    box-sizing: border-box;
}

@media (max-width: 650px) {
    #v2GameSearch {
        width: 100%;
        max-width: 320px;
    }
}

/* زر طلب تعريب خاص أو اكتشاف محتواه */
.v2-btn-private {
    background: #263b52 !important;
    color: #e6c878 !important;
    border: 1px solid #b89548 !important;
}

.v2-btn-private:hover {
    background: #354f6c !important;
    color: #fff !important;
}

/* إصلاح قائمة الهاتف ومنع خروجها عن حدود الشاشة */
@media (max-width: 650px) {
    .v2-mobile-menu {
        position: static !important;
    }

    .v2-mobile-menu nav {
        position: fixed !important;
        top: 76px !important;
        right: max(12px, env(safe-area-inset-right)) !important;
        left: auto !important;

        width: min(240px, calc(100vw - 24px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;

        box-sizing: border-box !important;
        max-height: calc(100dvh - 100px);
        overflow-y: auto;
        overflow-x: hidden;

        z-index: 9999 !important;
        direction: rtl;
    }

    .v2-mobile-menu nav a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        overflow-wrap: break-word;
        text-align: right;
    }

    html, body {
        overflow-x: clip;
    }
}

/* LOXARA - تحسين قائمة الهاتف */
@media (max-width: 650px) {

    /* جعل الترويسة والقائمة فوق محتوى الصفحة */
    .v2-header {
        position: relative !important;
        z-index: 20000 !important;
    }

    .v2-nav {
        position: relative !important;
        z-index: 20001 !important;
    }

    .v2-mobile-menu {
        position: static !important;
        z-index: 20002 !important;
    }

    .v2-mobile-menu nav {
        position: fixed !important;
        z-index: 20010 !important;

        top: 125px !important;
        right: 12px !important;
        left: auto !important;

        width: min(290px, calc(100vw - 24px)) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;

        padding: 12px !important;
        box-sizing: border-box !important;

        background: linear-gradient(145deg, #202332, #11141e) !important;
        border: 1px solid rgba(215,173,80,.75) !important;
        border-radius: 14px !important;
        box-shadow: 0 18px 45px rgba(0,0,0,.8),
                    0 0 18px rgba(215,173,80,.12) !important;

        max-height: calc(100dvh - 145px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    /* روابط القائمة */
    .v2-mobile-menu nav a {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;

        padding: 14px 12px !important;
        margin: 3px 0 !important;

        color: #f1f1f1 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        text-align: right !important;
        text-decoration: none !important;

        border-bottom: 1px solid rgba(215,173,80,.13) !important;
        border-radius: 7px !important;
        white-space: normal !important;
    }

    .v2-mobile-menu nav a:active,
    .v2-mobile-menu nav a:hover {
        color: #f0cc79 !important;
        background: rgba(215,173,80,.12) !important;
    }

    /* إبراز الدعم الفني */
    .v2-mobile-menu nav a:last-child {
        margin-top: 10px !important;
        color: #f0cc79 !important;
        background: rgba(215,173,80,.12) !important;
        border: 1px solid rgba(215,173,80,.5) !important;
        border-radius: 9px !important;
        font-weight: 900 !important;
    }

    .v2-mobile-menu nav a:last-child::before {
        content: "🎧 ";
    }

    /* البحث يبقى خلف القائمة */
    #v2GameSearch {
        position: relative !important;
        z-index: 1 !important;
    }

    #v2SearchInput {
        position: relative !important;
        z-index: 1 !important;
    }
}

/* تصغير شارة التاج على الهاتف فقط */
@media (max-width: 650px) {
    .v2-game-card img {
        /* لا نغيّر صور الألعاب */
    }

    .v2-game-card .v2-game-badge,
    .v2-game-card .v2-crown-badge {
        transform: scale(.55) !important;
        transform-origin: top center !important;
    }
}

/* تصغير شارة التعريب الحصري على الهاتف فقط */
@media (max-width: 650px) {
    .v2-exclusive-mark {
        transform: scale(.65) !important;
        transform-origin: top center !important;
    }

    .v2-crown-ribbon {
        transform: scale(.60) !important;
        transform-origin: top center !important;
    }

    .v2-exclusive-label {
        font-size: 9px !important;
        padding: 3px 5px !important;
    }
}

/* وضع زري المقدمة بجانب بعضهما على الهاتف */
@media (max-width: 650px) {
    .v2-hero-copy > a.v2-btn {
        display: inline-flex !important;
        width: calc(50% - 6px) !important;
        min-width: 0 !important;
        min-height: 48px;
        padding: 9px 6px !important;
        margin: 5px 2px !important;
        box-sizing: border-box !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important;
        vertical-align: top;
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
}


/* ===== LOXARA FREE GAMES GRID FIX ===== */

#translations.v2-free .v2-games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    justify-items: stretch;
    gap: 18px;
    width: 100%;
    max-width: 1050px;
    margin-inline: auto;
}

#translations.v2-free .v2-game-card {
    width: 100%;
    min-width: 0;
}

@media (min-width: 651px) and (max-width: 900px) {
    #translations.v2-free .v2-games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 720px;
    }
}

@media (max-width: 650px) {
    #translations.v2-free .v2-games-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 420px;
        gap: 14px;
    }
}

