@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Rajdhani:wght@500;600;700&family=Noto+Kufi+Arabic:wght@400;500;600;700;800&display=swap");

/* ==========================================================
   ClashVortex | هوية "Azure & Gold"
   ========================================================== */

:root {
    --bg-deep: #04080f;
    --bg: #071120;
    --surface: rgba(11, 24, 40, 0.9);
    --surface-strong: rgba(6, 15, 27, 0.96);
    --surface-soft: rgba(18, 38, 60, 0.55);
    --line: rgba(96, 205, 214, 0.34);
    --line-soft: rgba(96, 205, 214, 0.16);
    --gold: #e8c473;
    --gold-soft: #f6dfa8;
    --gold-deep: #8a6522;
    --teal: #5fd0dc;
    --teal-soft: #9ae7ee;
    --teal-deep: #1c6b7d;
    --ember: #d9542b;
    --ember-deep: #7d2a13;
    --green: #6fd18a;
    --red: #e2604f;
    --text: #eaf3f8;
    --muted: #8fa4b8;
    --display: "Cinzel", Georgia, serif;
    --body: "Rajdhani", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
    --radius: 4px;
    --shell: 1220px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg-deep); color-scheme: dark; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: .2px;
    background: var(--bg-deep);
}

/* --- طبقات الخلفية --- */
body::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    opacity: .5;
    background:
        radial-gradient(circle at 22% 18%, rgba(95, 208, 220, .26), transparent 48%),
        linear-gradient(180deg, rgba(4, 8, 15, .72), rgba(4, 8, 15, .93) 62%, #04080f),
        url("../img/trouble-hero.jpg") center / cover no-repeat;
    filter: saturate(.9) contrast(1.05) brightness(.6);
    transform: scale(1.05);
    animation: world-drift 30s ease-in-out infinite alternate;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    opacity: .28;
    background-image:
        linear-gradient(rgba(95, 208, 220, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 208, 220, .04) 1px, transparent 1px),
        radial-gradient(circle at 18% 34%, rgba(246, 223, 168, .3) 0 1px, transparent 2px),
        radial-gradient(circle at 78% 68%, rgba(154, 231, 238, .3) 0 1px, transparent 2px);
    background-size: 86px 86px, 86px 86px, 200px 180px, 260px 230px;
    animation: ember-rise 26s linear infinite;
}

body > * { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

h1, h2, h3 {
    margin: 0;
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: .5px;
}

::selection { background: rgba(95, 208, 220, .3); }

/* --- الهيدر والتنقل --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(4, 10, 19, .96), rgba(4, 10, 19, .82));
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
}

.site-header::after {
    display: block;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .55;
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 12px 22px;
}

.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 44px; filter: drop-shadow(0 3px 10px rgba(95, 208, 220, .35)); }

.main-nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
    justify-content: center;
}

.main-nav a {
    position: relative;
    padding: 8px 10px;
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .6px;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}

.main-nav a::after {
    position: absolute;
    right: 10px;
    bottom: 4px;
    left: 10px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
}

.main-nav a:hover { color: var(--text); background: rgba(95, 208, 220, .09); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--gold-soft); }

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .6px;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
}

.nav-status.is-online .status-dot {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(111, 209, 138, .16);
    animation: pulse-dot 2s ease-in-out infinite;
}

.nav-status.is-offline .status-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(226, 96, 79, .14); }
.nav-status.is-online .status-text { color: var(--green); }
.nav-status.is-offline .status-text { color: var(--red); }
.nav-status .online { color: var(--green); }
.nav-status .offline { color: var(--red); }

/* أدوات الهيدر اليمنى: حالة السيرفر + اللغة + زرار الدخول */
.nav-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    margin-inline-start: auto;
}

.lang-switch { position: relative; display: flex; flex-direction: row; align-items: center; margin: 0; }

/* اللغة كـpill بعلم: الـlabel هو الشكل الظاهر والـselect شفاف فوقه */
/* flex-direction لازم تتعلن صريحة عشان قاعدة label العامة بتفرض column */
.lang-switch label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    border: 1px solid var(--gold-deep);
    border-radius: 999px;
    background: rgba(0, 0, 0, .4);
    color: var(--gold-soft);
    font-family: var(--display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

.lang-flag {
    flex: 0 0 auto;
    width: 22px;
    height: 15px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 2px;
    background-size: 100% 100%;
}

.flag-en {
    background-image:
        linear-gradient(180deg, #b22234 0 7.7%, #fff 7.7% 15.4%, #b22234 15.4% 23.1%, #fff 23.1% 30.8%, #b22234 30.8% 38.5%, #fff 38.5% 46.2%, #b22234 46.2% 53.9%, #fff 53.9% 61.6%, #b22234 61.6% 69.3%, #fff 69.3% 77%, #b22234 77% 84.7%, #fff 84.7% 92.4%, #b22234 92.4%),
        linear-gradient(#3c3b6e, #3c3b6e);
    background-size: 100% 100%, 42% 54%;
    background-position: 0 0, 0 0;
    background-repeat: no-repeat, no-repeat;
}

.flag-ar { background-image: linear-gradient(180deg, #ce1126 0 33.3%, #fff 33.3% 66.6%, #0b0b0b 66.6%); }
.flag-es { background-image: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }

.lang-caret {
    width: 0;
    height: 0;
    margin-inline-start: 2px;
    border-top: 5px solid var(--gold);
    border-inline-start: 4px solid transparent;
    border-inline-end: 4px solid transparent;
}

.lang-switch select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: transparent;
    opacity: 0;
    cursor: pointer;
}

/* الـselect نفسه شفاف، لكن خيارات القائمة المنسدلة لازم يكون لها لون واضح */
.lang-switch select option {
    color: #0b1828;
    background: #ffffff;
}

.lang-switch:hover label { border-color: var(--gold); background: rgba(232, 196, 115, .12); }

/* زرار الدخول معزول في أقصى الهيدر */
.nav-login {
    flex: 0 0 auto;
    padding: 9px 22px;
    border: 1px solid var(--gold-deep);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(232, 196, 115, .16), rgba(5, 12, 22, .8));
    color: var(--gold-soft);
    font-family: var(--display);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.nav-login:hover,
.nav-login.active {
    border-color: var(--gold);
    color: #fff5df;
    box-shadow: 0 8px 22px rgba(232, 196, 115, .22);
}

.lang-switch select:focus-visible + label,
.lang-switch select:focus-visible,
.nav-login:focus-visible,
.main-nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --- الحاويات العامة --- */
.page-shell,
.realm-home {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 34px 22px 70px;
}

.page-title { margin-bottom: 24px; }

.page-title h1 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.eyebrow::before {
    display: inline-block;
    width: 26px;
    height: 1px;
    margin-inline-end: 10px;
    content: "";
    vertical-align: middle;
    background: var(--gold);
}

.lead { color: var(--muted); font-size: 17px; }
.muted { color: var(--muted); }

/* --- اللوحات --- */
.panel,
.realm-panel,
.news-card,
.auth-card,
.store-card,
.table-card,
.install-panel,
.settings-card,
.payment-help article {
    position: relative;
    padding: 20px 22px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background:
        linear-gradient(160deg, rgba(13, 29, 47, .92), rgba(5, 12, 22, .95));
    box-shadow: 0 18px 44px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(154, 231, 238, .06);
}

.panel::before,
.realm-panel::before,
.auth-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--gold-deep) 20%, var(--gold) 50%, var(--gold-deep) 80%, transparent);
    opacity: .7;
}

.panel h2,
.realm-panel h2 { font-size: 19px; letter-spacing: 1px; }

.panel p { color: var(--muted); }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}

.panel-head a {
    color: var(--gold);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.panel-head a:hover { color: var(--gold-soft); }

.wide-panel { overflow-x: auto; }

/* --- الأزرار --- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid var(--gold-deep);
    border-radius: var(--radius);
    background: linear-gradient(150deg, #14293d, #0a1725);
    color: var(--gold-soft);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}

.button:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 26px rgba(95, 208, 220, .22);
    transform: translateY(-2px);
}

.button:active { transform: translateY(0); }
.button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.button.red {
    border-color: rgba(217, 84, 43, .7);
    background: linear-gradient(150deg, var(--ember), var(--ember-deep));
    color: #fff3ec;
}

.button.red:hover { box-shadow: 0 10px 26px rgba(217, 84, 43, .32); }

.button.gold {
    border-color: var(--gold);
    background: linear-gradient(150deg, var(--gold-soft), var(--gold) 45%, var(--gold-deep));
    color: #1a1206;
}

.button.blue,
.button.steel {
    border-color: var(--line);
    background: linear-gradient(150deg, rgba(30, 62, 88, .8), rgba(9, 20, 33, .9));
    color: var(--text);
}

/* --- الصفحة الرئيسية: الهيرو --- */
.realm-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr);
    grid-template-areas:
        "copy crest"
        "rail rail"
        "foot foot";
    gap: 26px 34px;
    padding: 40px 34px 26px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background:
        linear-gradient(140deg, rgba(11, 26, 43, .88), rgba(4, 10, 19, .82));
    box-shadow: 0 26px 60px rgba(0, 0, 0, .48);
    overflow: hidden;
}

.realm-hero::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    opacity: .32;
    background:
        radial-gradient(circle at 78% 26%, rgba(217, 84, 43, .5), transparent 52%),
        url("../img/hero-conquer-fire.png") right center / contain no-repeat;
}

.realm-hero > * { position: relative; z-index: 1; }

.realm-hero-copy { grid-area: copy; }

.realm-kicker {
    margin: 14px 0 0;
    color: var(--teal-soft);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.realm-hero-copy h1 {
    margin: 8px 0 14px;
    font-size: clamp(34px, 5.4vw, 60px);
    line-height: 1.05;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .6);
}

.realm-hero-copy h1 span {
    display: block;
    margin-top: 6px;
    font-size: .5em;
    letter-spacing: 4px;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* شعار الإصدار */
.realm-crest {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-area: crest;
    min-height: 190px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(95, 208, 220, .18), rgba(5, 12, 22, .9) 70%);
    aspect-ratio: 1;
    justify-self: center;
    align-self: center;
    max-width: 230px;
    width: 100%;
}

.realm-crest b {
    font-family: var(--display);
    font-size: 52px;
    letter-spacing: 2px;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.realm-crest small {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2.6px;
    text-transform: uppercase;
}

.crest-line {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(232, 196, 115, .28);
    border-top-color: transparent;
    border-bottom-color: transparent;
    inset: 10px;
    animation: crest-spin 22s linear infinite;
}

.crest-line-two {
    inset: 22px;
    border-style: dashed;
    border-color: rgba(217, 84, 43, .3);
    border-inline-start-color: transparent;
    border-inline-end-color: transparent;
    animation-direction: reverse;
    animation-duration: 30s;
}

/* شريط الإحصائيات */
.realm-hero-rail {
    display: grid;
    grid-area: rail;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--line-soft);
    overflow: hidden;
}

.realm-hero-rail span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: rgba(5, 12, 22, .82);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.realm-hero-rail b {
    color: var(--gold-soft);
    font-family: var(--display);
    font-size: 27px;
    letter-spacing: 1px;
}

.realm-hero-footer {
    display: flex;
    grid-area: foot;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.realm-hero-footer b { color: var(--text); font-family: var(--display); }
.realm-hero-footer i { flex: 1 1 auto; height: 1px; background: var(--line-soft); }
.realm-live.online { color: var(--green); }
.realm-live.offline { color: var(--red); }

/* --- شريط الاختصارات --- */
.realm-quickbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.realm-quickbar a {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(14, 32, 51, .9), rgba(5, 12, 22, .92));
    overflow: hidden;
    transition: transform .18s ease, border-color .2s ease;
}

.realm-quickbar a:hover { border-color: var(--line); transform: translateY(-3px); }

.realm-quickbar span {
    position: absolute;
    top: 8px;
    inset-inline-end: 14px;
    color: rgba(95, 208, 220, .2);
    font-family: var(--display);
    font-size: 44px;
    line-height: 1;
}

.realm-quickbar b {
    color: var(--gold-soft);
    font-family: var(--display);
    font-size: 18px;
    letter-spacing: 1px;
}

.realm-quickbar small { color: var(--muted); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; }

/* --- شبكة الأخبار والترتيب --- */
.realm-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 20px;
    margin-top: 22px;
}

.realm-news-list,
.realm-ranking-list { display: flex; flex-direction: column; gap: 10px; }

.realm-news-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
    transition: border-color .2s ease, background .2s ease;
}

.realm-news-item:hover { border-color: var(--line-soft); background: rgba(95, 208, 220, .07); }

.realm-news-item > span {
    color: var(--gold-deep);
    font-family: var(--display);
    font-size: 22px;
    text-align: center;
}

.realm-news-item b { display: block; font-size: 15.5px; letter-spacing: .4px; }

.realm-news-item small {
    display: -webkit-box;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.realm-news-item time { color: var(--muted); font-size: 12px; letter-spacing: 1px; white-space: nowrap; }

.realm-ranking-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
    transition: border-color .2s ease, background .2s ease;
}

.realm-ranking-item:hover { border-color: var(--line-soft); background: rgba(95, 208, 220, .07); }

.realm-ranking-item span {
    color: var(--gold-deep);
    font-family: var(--display);
    font-size: 20px;
    text-align: center;
}

.realm-ranking-item b { font-size: 15px; letter-spacing: .5px; }

.realm-ranking-item small {
    display: block;
    grid-column: 2;
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: .8px;
}

/* --- المميزات --- */
.realm-features { margin-top: 22px; }

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

.realm-feature-grid article {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(155deg, rgba(12, 28, 45, .85), rgba(5, 12, 22, .9));
}

.realm-feature-grid span {
    color: var(--gold-deep);
    font-family: var(--display);
    font-size: 24px;
    line-height: 1;
}

.realm-feature-grid b { display: block; margin-bottom: 6px; color: var(--gold-soft); letter-spacing: .6px; }
.realm-feature-grid p { margin: 0; color: var(--muted); font-size: 14px; }

/* --- الجداول --- */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

thead th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-align: start;
    text-transform: uppercase;
    white-space: nowrap;
}

tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text);
}

tbody tr:hover td { background: rgba(95, 208, 220, .06); }
tbody tr:last-child td { border-bottom: 0; }

/* --- الفورمات --- */
form { display: flex; flex-direction: column; gap: 14px; }

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, .42);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .4px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(95, 208, 220, .16);
    outline: none;
}

input::placeholder { color: rgba(143, 164, 184, .7); font-weight: 500; }

.inline-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-actions .button { min-height: 38px; padding: 0 14px; font-size: 12px; }

/* --- التنبيهات --- */
.notice {
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid var(--line-soft);
    border-inline-start: 3px solid var(--gold);
    border-radius: var(--radius);
    background: rgba(95, 208, 220, .09);
    color: var(--text);
    font-weight: 600;
}

.notice.success { border-inline-start-color: var(--green); background: rgba(111, 209, 138, .1); }
.notice.error { border-inline-start-color: var(--red); background: rgba(226, 96, 79, .1); }
.captcha-notice { margin: 0; font-size: 13px; font-weight: 500; }
.captcha-box { display: flex; justify-content: center; }

/* --- شارات الحالة --- */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pill.pending { border-color: rgba(232, 196, 115, .5); color: var(--gold); }
.status-pill.approved { border-color: rgba(111, 209, 138, .5); color: var(--green); }
.status-pill.rejected { border-color: rgba(226, 96, 79, .5); color: var(--red); }
.status-pill.processing { border-color: rgba(217, 84, 43, .5); color: var(--ember); }

.online { color: var(--green); }
.offline { color: var(--red); }

/* --- الأخبار --- */
.news-list-page { display: flex; flex-direction: column; gap: 16px; }

.news-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.news-card h2 { margin: 10px 0 8px; font-size: 20px; }
.news-card p { margin: 0; color: var(--muted); }
.news-card time { color: var(--muted); font-size: 12.5px; letter-spacing: 1.2px; white-space: nowrap; }

.news-badge {
    display: inline-block;
    padding: 4px 11px;
    border: 1px solid rgba(217, 84, 43, .5);
    border-radius: 999px;
    color: var(--ember);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

/* --- التحميل --- */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.download-card { display: flex; flex-direction: column; gap: 10px; }
.download-card h2 { font-size: 19px; }
.download-card p { margin: 0; flex: 1 1 auto; }
.download-card small { color: var(--gold); font-weight: 700; letter-spacing: 1.4px; }
.download-card .button { margin-top: 6px; }

.feature-list { margin: 0; padding: 0; list-style: none; }

.feature-list li {
    position: relative;
    padding: 9px 0 9px 24px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
}

html[dir="rtl"] .feature-list li { padding: 9px 24px 9px 0; }

.feature-list li::before {
    position: absolute;
    inset-inline-start: 0;
    content: "\25C6";
    color: var(--gold-deep);
    font-size: 11px;
}

.feature-list li:last-child { border-bottom: 0; }

/* --- المتجر --- */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.store-card { display: flex; flex-direction: column; gap: 8px; }

.store-card > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.store-card strong { color: var(--gold-soft); font-family: var(--display); font-size: 24px; }
.store-card > b { color: var(--ember); font-size: 18px; letter-spacing: 1px; }
.store-card > p { margin: 0; font-size: 13.5px; }
.store-card form { margin-top: 8px; }
.store-subtitle { margin-top: 8px; }

/* رصيد نقاط الشحن أعلى متجر الأيتمات */
.points-balance { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; letter-spacing: 1px; }
.points-balance strong { color: var(--gold-soft); font-family: var(--display); font-size: 19px; }

/* زر معطّل عند عدم كفاية الرصيد */
.button[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(1); }
.button[disabled]:hover { transform: none; }

.payment-help {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.payment-help h2 { font-size: 17px; }
.payment-help p { margin: 10px 0; font-size: 13.5px; }

.payment-help strong {
    display: block;
    padding: 10px 12px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, .35);
    color: var(--gold-soft);
    font-family: var(--display);
    letter-spacing: 1.4px;
    word-break: break-all;
}

/* --- لوحة اللاعب --- */
.account-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.account-hero h1 { margin: 8px 0; font-size: clamp(24px, 3.4vw, 34px); }
.account-hero p { margin: 0; color: var(--muted); }

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.account-grid .panel { display: flex; flex-direction: column; gap: 6px; }

.account-grid > .panel > span {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.account-grid strong { color: var(--gold-soft); font-family: var(--display); font-size: 21px; }

.gift-code-panel { margin-bottom: 20px; }
.gift-code-panel p { margin: 0 0 14px; }

.gift-code-value {
    padding: 16px;
    border: 1px dashed var(--gold);
    border-radius: var(--radius);
    background: rgba(224, 176, 85, .07);
    color: var(--gold-soft);
    font-family: var(--display);
    font-size: clamp(20px, 3vw, 30px);
    letter-spacing: 4px;
    text-align: center;
    word-break: break-all;
}

.account-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
}

/* --- الدخول والتسجيل --- */
.auth-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: 470px;
    margin: 0 auto;
    padding: 50px 22px 70px;
}

.small-logo img { height: 60px; }
.auth-card { width: 100%; padding: 28px 26px; }
.auth-card h1 { margin-bottom: 20px; font-size: 26px; text-align: center; }
.auth-card .button { margin-top: 6px; }
.auth-card .muted { margin: 18px 0 0; font-size: 14px; text-align: center; }
.auth-card .muted a { color: var(--gold); font-weight: 700; }

.admin-login { max-width: 430px; margin: 0 auto; }

/* --- حالة السيرفر في اللوحات (يستخدمها status.js) --- */
.server-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.server-state.is-online { color: var(--green); }
.server-state.is-offline { color: var(--red); }
.server-state .status-dot { flex: 0 0 auto; }

.server-state.is-online .status-dot {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(111, 209, 138, .16);
    animation: pulse-dot 2s ease-in-out infinite;
}

.server-state.is-offline .status-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(226, 96, 79, .14); }

/* --- شريط التواصل الجانبي --- */
.social-dock {
    position: fixed;
    inset-inline-end: 14px;
    top: 50%;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-50%);
}

.social-link {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(155deg, rgba(30, 23, 17, .92), rgba(11, 9, 8, .92));
    box-shadow: 0 10px 24px rgba(0, 0, 0, .42);
    color: var(--muted);
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.social-link svg { width: 21px; height: 21px; fill: currentColor; }
.social-link:hover { border-color: var(--line); color: var(--gold-soft); transform: translateY(-2px); }
.social-link.whatsapp:hover { color: #5ed97f; border-color: rgba(94, 217, 127, .5); }
.social-link.facebook:hover { color: #6ba4ff; border-color: rgba(107, 164, 255, .5); }
.social-link.discord:hover { color: #9aa8ff; border-color: rgba(154, 168, 255, .5); }
.social-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --- زر الدعم --- */
.support-chat {
    position: fixed;
    inset-inline-end: 16px;
    bottom: 16px;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    border: 1px solid rgba(217, 84, 43, .55);
    border-radius: var(--radius);
    background: linear-gradient(150deg, var(--ember), var(--ember-deep));
    box-shadow: 0 14px 32px rgba(217, 84, 43, .3);
    color: #fff3ec;
    font-family: var(--display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease;
}

.support-chat svg { width: 19px; height: 19px; fill: currentColor; }
.support-chat:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(28, 107, 125, .5); }
.support-chat:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

/* --- زر الموسيقى (يُنشئه music.js) --- */
.music-toggle {
    position: fixed;
    inset-inline-start: 16px;
    bottom: 16px;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(30, 23, 17, .94), rgba(11, 9, 8, .94));
    box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
    color: var(--muted);
    cursor: pointer;
    font-family: var(--display);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.music-toggle span {
    width: 9px;
    height: 9px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.music-toggle b { font-weight: 700; }
.music-toggle:hover { border-color: var(--line); color: var(--gold-soft); transform: translateY(-2px); }
.music-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.music-toggle.is-playing {
    border-color: rgba(224, 176, 85, .5);
    color: var(--gold-soft);
}

.music-toggle.is-playing span {
    border-color: transparent;
    background: var(--gold);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

#bg-sound { display: none; }

/* --- الفوتر --- */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 44px;
    padding: 30px 22px 36px;
    border-top: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(5, 12, 22, .5), rgba(4, 8, 15, .94));
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 26px 30px;
    max-width: var(--shell);
    margin: 0 auto;
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { align-self: start; }
.footer-logo img { height: 44px; opacity: .85; }
.footer-logo:hover img { opacity: 1; }

.footer-about {
    max-width: 320px;
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.7;
}

/* أعمدة الفوتر: عنوان ذهبي + لينكات عمودية */
.footer-col { display: flex; flex-direction: column; gap: 11px; }

.footer-col h3 {
    margin-bottom: 4px;
    color: var(--gold-soft);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-col a {
    color: var(--muted);
    font-size: 14.5px;
    transition: color .2s ease, transform .2s ease;
}

.footer-col a:hover { color: var(--teal-soft); transform: translateX(3px); }
.footer-col a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
html[dir="rtl"] .footer-col a:hover { transform: translateX(-3px); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
    max-width: var(--shell);
    margin: 26px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-family: var(--display);
    font-size: 12.5px;
    letter-spacing: 1.6px;
}

/* ==========================================================
   الرئيسية: هيرو كامل العرض + سلايدر + شبكة عمودين
   ========================================================== */
body.home-page .realm-home {
    max-width: none;
    padding: 0 0 70px;
}

.hero-stage {
    position: relative;
    display: grid;
    min-height: 600px;
    padding: 66px 22px 88px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    place-items: center;
    text-align: center;
}

.hero-stage::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(4, 8, 15, .74), rgba(4, 8, 15, .34) 42%, rgba(4, 8, 15, .94));
}

.hero-stage-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.hero-crest {
    width: min(360px, 76vw);
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, .65));
}

.hero-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 22px 0 0;
}

.hero-rule::before,
.hero-rule::after {
    width: 68px;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-rule::after { background: linear-gradient(90deg, var(--gold), transparent); }

.hero-rule span {
    color: var(--gold-soft);
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(15px, 2.2vw, 21px);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-lead {
    max-width: 690px;
    margin: 16px auto 0;
    color: #d6e5ef;
    font-size: 17px;
    line-height: 1.75;
}

.hero-stage .hero-actions { justify-content: center; }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    margin-top: 26px;
    color: var(--muted);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-meta b { color: var(--gold-soft); font-family: var(--display); font-size: 16px; }
.hero-meta i { width: 1px; height: 16px; background: var(--line-soft); }

/* أزرار التصميم الجديد */
.button.gradient {
    border-color: rgba(154, 231, 238, .5);
    background: linear-gradient(100deg, var(--teal-deep), var(--teal) 45%, var(--gold-soft));
    color: #04121b;
}

.button.gradient:hover { box-shadow: 0 12px 30px rgba(95, 208, 220, .3); }
.button.gradient i,
.button.outline i { margin-inline-start: 10px; font-style: normal; }

.button.outline {
    border-color: var(--line);
    background: rgba(5, 12, 22, .72);
    color: var(--text);
}

.button.discord {
    border-color: rgba(88, 101, 242, .7);
    background: linear-gradient(150deg, #5865f2, #3b45b8);
    color: #f2f4ff;
}

.button.block { display: flex; width: 100%; }

/* السلايدر */
.slider {
    position: relative;
    z-index: 2;
    max-width: var(--shell);
    margin: -46px auto 0;
    padding: 0 22px;
}

.slider-frames {
    position: relative;
    min-height: 400px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 26px 60px rgba(0, 0, 0, .5);
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 34px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease;
}

.slide::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(4, 8, 15, .92), rgba(4, 8, 15, .55) 56%, rgba(4, 8, 15, .2));
}

.slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* مشاهد الشرائح مرسومة بتدرّجات CSS لحد ما يتوفر آرت حقيقي للسيرفر */
.slide-twincity {
    background:
        radial-gradient(circle, rgba(246, 223, 168, .5), rgba(246, 223, 168, 0) 70%) 50% 18% / 190px 190px no-repeat,
        linear-gradient(180deg, rgba(232, 196, 115, .3), rgba(232, 196, 115, 0)) 18% 100% / 90px 62% no-repeat,
        linear-gradient(180deg, rgba(232, 196, 115, .3), rgba(232, 196, 115, 0)) 80% 100% / 90px 54% no-repeat,
        radial-gradient(ellipse at 50% 104%, rgba(95, 208, 220, .28), transparent 62%) 0 0 / 100% 100% no-repeat,
        linear-gradient(200deg, #0d2740, #071528 52%, #04080f) 0 0 / 100% 100% no-repeat;
}

.slide-market {
    background:
        radial-gradient(circle, rgba(246, 223, 168, .4), rgba(246, 223, 168, 0) 68%) 0 24% / 130px 130px repeat-x,
        repeating-linear-gradient(115deg, rgba(154, 231, 238, .07) 0 2px, transparent 2px 46px) 0 0 / 100% 100%,
        radial-gradient(ellipse at 50% 108%, rgba(232, 196, 115, .2), transparent 60%) 0 0 / 100% 100% no-repeat,
        linear-gradient(160deg, #10293f, #08182b 56%, #04080f) 0 0 / 100% 100% no-repeat;
}

.slide-daily {
    background:
        repeating-linear-gradient(90deg, rgba(246, 223, 168, .24) 0 26px, transparent 26px 74px) 0 74% / 100% 3px repeat-x,
        radial-gradient(ellipse at 50% 92%, rgba(95, 208, 220, .3), transparent 58%) 0 0 / 100% 100% no-repeat,
        radial-gradient(circle at 78% 14%, rgba(232, 196, 115, .32), transparent 42%) 0 0 / 100% 100% no-repeat,
        linear-gradient(185deg, #123047, #08192c 58%, #04080f) 0 0 / 100% 100% no-repeat;
}

.slide-classes {
    background:
        linear-gradient(180deg, rgba(95, 208, 220, .32), transparent) 16% 100% / 74px 78% no-repeat,
        linear-gradient(180deg, rgba(246, 223, 168, .3), transparent) 38% 100% / 74px 68% no-repeat,
        linear-gradient(180deg, rgba(95, 208, 220, .26), transparent) 60% 100% / 74px 74% no-repeat,
        linear-gradient(180deg, rgba(246, 223, 168, .26), transparent) 82% 100% / 74px 62% no-repeat,
        radial-gradient(ellipse at 50% 104%, rgba(154, 231, 238, .22), transparent 60%) 0 0 / 100% 100% no-repeat,
        linear-gradient(165deg, #0d2237, #061627 55%, #04080f) 0 0 / 100% 100% no-repeat;
}

.slide-copy { position: relative; z-index: 1; max-width: 480px; }

.slide-index {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.slide-index b { color: var(--gold-soft); font-family: var(--display); font-size: 20px; }
.slide-index i { width: 34px; height: 1px; background: var(--gold-deep); }

.slide-copy h2 {
    margin: 10px 0;
    font-size: clamp(28px, 4.4vw, 50px);
    line-height: 1.05;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold) 58%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-copy p { margin: 0 0 18px; color: #cfdfe9; font-size: 15.5px; line-height: 1.7; }

.slider-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 1px;
    border: 1px solid var(--line-soft);
    border-top: 0;
    background: var(--line-soft);
    overflow: hidden;
}

.slider-tab {
    padding: 16px 10px;
    border: 0;
    background: rgba(5, 12, 22, .92);
    color: var(--muted);
    font-family: var(--display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s ease, background .25s ease;
}

.slider-tab:hover { color: var(--gold-soft); }

.slider-tab.is-active {
    background: linear-gradient(100deg, var(--teal-deep), var(--teal) 52%, var(--gold-soft));
    color: #04121b;
}

/* شبكة الرئيسية */
.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 344px);
    gap: 22px;
    align-items: start;
    max-width: var(--shell);
    margin: 26px auto 0;
    padding: 0 22px;
}

.home-main,
.home-side { display: grid; gap: 22px; }

/* أقواس الزوايا الذهبية */
.panel.bracket { padding: 24px 26px; }

.panel.bracket::before {
    position: absolute;
    inset: 9px;
    height: auto;
    content: "";
    pointer-events: none;
    opacity: .8;
    background:
        linear-gradient(var(--gold), var(--gold)) left top / 18px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) left top / 1px 18px no-repeat,
        linear-gradient(var(--gold), var(--gold)) right top / 18px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) right top / 1px 18px no-repeat,
        linear-gradient(var(--gold), var(--gold)) left bottom / 18px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) left bottom / 1px 18px no-repeat,
        linear-gradient(var(--gold), var(--gold)) right bottom / 18px 1px no-repeat,
        linear-gradient(var(--gold), var(--gold)) right bottom / 1px 18px no-repeat;
}

.panel-note {
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sub-head { margin: 22px 0 14px; }

.sub-head h3 {
    margin: 0;
    color: var(--gold-soft);
    font-family: var(--display);
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* الأخبار */
.news-feed { display: grid; gap: 14px; }

.news-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(12, 28, 45, .85), rgba(5, 12, 22, .9));
    transition: border-color .2s ease, background .2s ease;
}

.news-row:hover { border-color: var(--line); background: rgba(95, 208, 220, .07); }

.news-num {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, rgba(95, 208, 220, .22), rgba(5, 12, 22, .9) 72%);
    color: var(--teal-soft);
    font-family: var(--display);
    font-size: 17px;
}

.news-body h3 {
    margin: 0 0 6px;
    color: var(--gold-soft);
    font-size: 17px;
    letter-spacing: .6px;
}

.news-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 8px !important;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.news-tags span { color: var(--teal-soft); }
.news-tags span + span { color: var(--muted); }

.news-more {
    color: var(--gold);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.6px;
    white-space: nowrap;
    text-transform: uppercase;
}

.news-more i { margin-inline-start: 8px; font-style: normal; }
.news-more:hover { color: var(--gold-soft); }

/* جدول الصدارة */
.table-scroll { overflow-x: auto; }

.board-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    min-width: 660px;
}

.board-table th {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: start;
    text-transform: uppercase;
}

.board-table td {
    padding: 14px;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: rgba(9, 22, 37, .7);
    color: var(--text);
    font-size: 14px;
}

.board-table td:first-child { border-inline-start: 1px solid var(--line-soft); }
.board-table td:last-child { border-inline-end: 1px solid var(--line-soft); }
.board-table tbody tr:hover td { background: rgba(95, 208, 220, .08); }
.board-rank { color: var(--gold-soft); font-family: var(--display); font-size: 16px; }
.board-name { color: var(--gold-soft); font-weight: 700; }

.chip {
    display: inline-block;
    padding: 5px 13px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: rgba(5, 12, 22, .8);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    white-space: nowrap;
}

.chip-online { border-color: rgba(111, 209, 138, .45); color: var(--green); }
.chip-offline { border-color: rgba(226, 96, 79, .35); color: var(--red); }

/* السايدبار */
.side-welcome { margin: 0 0 14px; color: var(--muted); }
.side-welcome b { color: var(--gold-soft); }
.side-login { display: grid; gap: 14px; }

.side-link {
    display: block;
    margin-top: 14px;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 1.2px;
    text-align: center;
}

.side-link:hover { color: var(--gold-soft); }

/* الإيفنتات */
.event-next {
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(12, 28, 45, .9), rgba(5, 12, 22, .92));
    text-align: center;
}

.event-next-label {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.event-next h3 {
    margin: 8px 0 6px;
    color: var(--gold-soft);
    font-size: 19px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.event-countdown {
    display: block;
    color: var(--teal-soft);
    font-family: var(--display);
    font-size: clamp(24px, 4vw, 32px);
    letter-spacing: 2px;
}

.event-next small { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }

.event-list,
.boss-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }

.event-list li,
.boss-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(9, 22, 37, .68);
    font-size: 13.5px;
}

.event-list li b { color: var(--gold-soft); font-family: var(--display); font-size: 15px; }
.boss-list li div { display: grid; gap: 2px; }
.boss-list li b { color: var(--gold-soft); font-size: 14px; }
.boss-list li small { color: var(--muted); font-size: 11.5px; letter-spacing: 1px; }
.boss-list li span { color: var(--teal-soft); font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-align: end; }

/* ==========================================================
   مسرح الدخول والتسجيل
   ========================================================== */
.auth-stage {
    position: relative;
    display: grid;
    min-height: 86vh;
    padding: 54px 22px 76px;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    place-items: center;
}

.auth-stage::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(4, 8, 15, .72), rgba(4, 8, 15, .4) 45%, rgba(4, 8, 15, .94));
}

.auth-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .62);
}

.auth-panel.is-wide { max-width: 520px; }

.auth-head { align-items: flex-start; }

.auth-head h1 {
    margin: 0;
    font-size: clamp(21px, 2.8vw, 27px);
    line-height: 1.22;
    letter-spacing: 1px;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-head .panel-note { max-width: 118px; line-height: 1.6; text-align: end; }

.auth-remember {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: -2px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: none;
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--teal);
}

.auth-links { display: grid; gap: 9px; margin: 17px 0 0; text-align: center; }
.auth-links a { color: var(--gold); font-size: 13px; letter-spacing: .4px; }
.auth-links a:hover { color: var(--gold-soft); }

/* ==========================================================
   صفحة التصويت
   ========================================================== */
.vote-head h2 { font-size: clamp(18px, 2.4vw, 23px); }
.vote-head-copy { display: grid; gap: 5px; }

.vote-sub {
    color: var(--teal-soft);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.vote-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border: 1px solid rgba(232, 196, 115, .45);
    border-radius: 999px;
    background: rgba(232, 196, 115, .1);
    color: var(--gold-soft);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.vote-badge::before {
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
    background: var(--gold);
}

.vote-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 15px 17px;
    border: 1px solid var(--line-soft);
    border-inline-start: 3px solid var(--teal);
    border-radius: var(--radius);
    background: rgba(95, 208, 220, .08);
}

.vote-notice svg { width: 20px; height: 20px; margin-top: 2px; fill: var(--teal-soft); }
.vote-notice b { display: block; margin-bottom: 5px; color: var(--text); font-size: 14.5px; }
.vote-notice p { margin: 0; font-size: 13.5px; line-height: 1.65; }

.vote-banner {
    position: relative;
    display: grid;
    margin: 20px 0 0;
    padding: 34px 20px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: radial-gradient(ellipse at center, rgba(95, 208, 220, .12), rgba(5, 12, 22, .9) 68%);
    place-items: center;
}

.vote-banner::before {
    position: absolute;
    width: min(430px, 82%);
    height: 96px;
    content: "";
    border: 1px solid rgba(96, 205, 214, .22);
    border-radius: 50%;
}

.vote-banner img,
.vote-banner svg {
    position: relative;
    width: 168px;
    max-width: 74%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 2px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .6);
}

.vote-provider {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
}

.vote-provider h3 {
    margin: 6px 0 0;
    color: var(--gold-soft);
    font-family: var(--display);
    font-size: clamp(19px, 2.6vw, 25px);
    letter-spacing: 1px;
}

.vote-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(232, 196, 115, .4);
    border-radius: 999px;
    background: rgba(232, 196, 115, .08);
    color: var(--gold-soft);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

.vote-chip svg { width: 14px; height: 14px; fill: var(--gold); }

.vote-text { margin: 14px 0 0; font-size: 14.5px; line-height: 1.75; }

.vote-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.vote-steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(9, 22, 37, .68);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.vote-steps b { color: var(--gold-soft); }

.step-num {
    display: grid;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(232, 196, 115, .55);
    border-radius: 50%;
    background: rgba(232, 196, 115, .12);
    color: var(--gold-soft);
    font-family: var(--display);
    font-size: 12px;
    place-items: center;
}

.vote-eligibility {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 15px;
    margin: 22px 0 0;
    padding: 17px 18px;
    border: 1px solid rgba(96, 205, 214, .28);
    border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(28, 107, 125, .18), rgba(9, 22, 37, .72));
}

.vote-eligibility svg { width: 26px; height: 26px; margin-top: 4px; fill: var(--teal-soft); }
.vote-eligibility span { color: var(--muted); font-weight: 700; font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; }

.vote-eligibility h3 {
    margin: 6px 0 0;
    color: var(--gold-soft);
    font-family: var(--display);
    font-size: 17px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.vote-eligibility p { margin: 8px 0 0; font-size: 13.5px; }

.vote-action { margin: 22px 0 0; }
.vote-action .button { min-width: 240px; }

.vote-foot {
    display: block;
    margin: 16px 0 0;
    padding-inline-start: 12px;
    border-inline-start: 2px solid var(--line-soft);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

/* ==========================================================
   الحركات
   ========================================================== */
@keyframes world-drift {
    from { transform: scale(1.05) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(-2%, -1.5%, 0); }
}

@keyframes ember-rise {
    from { background-position: 0 0, 0 0, 0 0, 0 0; }
    to { background-position: 0 0, 0 0, 0 -900px, 0 -1200px; }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.7); }
}

@keyframes crest-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    body::before, body::after, .crest-line, .music-toggle.is-playing span,
    .nav-status.is-online .status-dot, .server-state.is-online .status-dot { animation: none !important; }
    * { transition-duration: .01ms !important; }
}

/* ==========================================================
   RTL
   ========================================================== */
html[dir="rtl"] .eyebrow::before,
html[dir="rtl"] .realm-kicker::before { transform: scaleX(-1); }

html[dir="rtl"] .realm-hero::before { transform: scaleX(-1); }

html[dir="rtl"] .main-nav a,
html[dir="rtl"] .nav-login,
html[dir="rtl"] .lang-switch label,
html[dir="rtl"] .footer-col h3,
html[dir="rtl"] .button,
html[dir="rtl"] .realm-quickbar small,
html[dir="rtl"] .music-toggle,
html[dir="rtl"] .support-chat { letter-spacing: 0; }

html[dir="rtl"] table { text-align: right; }

/* ==========================================================
   الاستجابة للشاشات
   ========================================================== */
@media (max-width: 1080px) {
    .realm-hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "copy" "crest" "rail" "foot";
        padding: 32px 24px 22px;
    }

    .realm-hero::before { opacity: .18; }
    .realm-crest { justify-self: start; }
    .realm-content-grid { grid-template-columns: minmax(0, 1fr); }
    .home-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
    .social-dock { top: auto; bottom: 74px; transform: none; flex-direction: row; }
}

@media (max-width: 820px) {
    .nav-wrap {
        flex-wrap: wrap;
        gap: 10px 14px;
        padding: 12px 16px;
    }

    .logo img { height: 36px; }
    .main-nav { order: 3; flex-basis: 100%; gap: 4px; }
    .main-nav a { padding: 7px 10px; font-size: 12px; }
    .nav-tools { gap: 8px; }
    .nav-login { padding: 7px 14px; font-size: 12px; letter-spacing: 1.2px; }
    .lang-switch label { padding: 6px 10px; font-size: 11px; letter-spacing: 1px; }
    .realm-quickbar { grid-template-columns: minmax(0, 1fr); }
    .realm-home,
    .page-shell { padding: 26px 16px 60px; }
    .news-card { flex-direction: column; gap: 12px; }
    .account-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
    .payment-help { grid-template-columns: minmax(0, 1fr); }
    .hero-stage { min-height: 460px; padding: 46px 18px 70px; }
    .slider { padding: 0 16px; }
    .slider-frames { min-height: 330px; }
    .slide { padding: 22px; }
    .slider-tabs { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-grid { padding: 0 16px; }
    .vote-steps { grid-template-columns: minmax(0, 1fr); }
    .auth-stage { min-height: 0; padding: 34px 16px 60px; }
    .auth-head { flex-wrap: wrap; }
    .auth-head .panel-note { max-width: none; text-align: start; }
    .vote-action .button { min-width: 0; width: 100%; }
    .news-row { grid-template-columns: auto minmax(0, 1fr); }
    .news-more { grid-column: 2; }
    .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .footer-about { max-width: none; }
    .footer-bottom { flex-direction: column; }
    .site-footer { margin-bottom: 62px; }
}

@media (max-width: 480px) {
    .realm-hero { padding: 24px 18px 18px; }
    .realm-hero-rail { grid-template-columns: minmax(0, 1fr); }
    .realm-hero-footer { flex-wrap: wrap; }
    .realm-hero-footer i { display: none; }
    .hero-actions .button { flex: 1 1 100%; }
    .panel,
    .realm-panel,
    .news-card,
    .auth-card,
    .store-card,
    .table-card,
    .install-panel,
    .settings-card,
    .payment-help article { padding: 16px 15px; }
    .account-grid,
    .account-settings,
    .store-grid,
    .download-grid,
    .realm-feature-grid { grid-template-columns: minmax(0, 1fr); }
    .support-chat span { display: none; }
    .music-toggle b { display: none; }
    .lang-switch .lang-name { display: none; }
    thead th,
    tbody td { padding: 10px 10px; font-size: 13px; }
}
