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

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

:root {
    --bg: #070b18;
    --bg-light: #101a30;
    --surface: #131f38;
    --surface-light: #1b2b49;
    --gold: #f1c66d;
    --gold-light: #ffe6a6;
    --blue: #35bfff;
    --purple: #a77bff;
    --green: #45e0a0;
    --red: #ff647c;
    --text: #f5f7ff;
    --muted: #aab8d1;
    --border: rgba(241,198,109,.25);
    --glow: 0 0 25px rgba(53,191,255,.16);
    --gold-glow: 0 0 25px rgba(241,198,109,.18);
    --radius: 16px;
    --transition: .3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(43,95,175,.17), transparent 35%),
        radial-gradient(ellipse at 85% 45%, rgba(112,63,190,.12), transparent 35%),
        var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

button, input {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

/* GLOBAL HEADINGS */

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

h1, h2 {
    color: var(--gold-light);
    text-shadow: 0 0 22px rgba(241,198,109,.2);
}

/* NAVIGATION */

.navbar,
.shop-header,
.account-header {
    min-height: 82px;
    padding: 18px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: rgba(7,11,24,.88);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 10;
}

.navbar h1,
.shop-header h1,
.account-header h1 {
    color: var(--gold);
    font-size: 27px;
    letter-spacing: 3px;
}

.navbar nav,
.shop-header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.navbar nav a,
.shop-header nav a,
.account-header > a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar nav a:hover,
.shop-header nav a:hover,
.account-header > a:hover {
    color: var(--gold-light);
    text-shadow: 0 0 14px var(--gold);
}

/* HERO */

.hero {
    min-height: 620px;
    padding: 100px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(7,11,24,.15), rgba(7,11,24,.95)),
        radial-gradient(ellipse at center, #234b80 0%, #111e3b 42%, #070b18 85%);
    border-bottom: 1px solid var(--border);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    border: 1px solid rgba(53,191,255,.17);
    box-shadow: 0 0 100px rgba(53,191,255,.12);
    animation: orbit 18s linear infinite;
}

.hero::after {
    width: 250px;
    height: 250px;
    background: rgba(53,191,255,.08);
    filter: blur(80px);
}

.hero h1 {
    font-size: clamp(42px, 8vw, 82px);
    margin-bottom: 20px;
    z-index: 1;
    animation: heroEnter 1s ease both;
}

.hero p {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    z-index: 1;
    animation: heroEnter 1.2s ease both;
}

.hero a,
.hero button,
.product-buy,
#selectClassBtn,
.wallet-shop a {
    display: inline-block;
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 13px 28px;
    margin-top: 25px;
    background: linear-gradient(135deg, #f4d38c, #b98637);
    color: #17101e;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: var(--gold-glow);
    transition: var(--transition);
}

.hero a:hover,
.hero button:hover,
.product-buy:hover:not(:disabled),
#selectClassBtn:hover,
.wallet-shop a:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 35px rgba(241,198,109,.4);
    filter: brightness(1.12);
}

/* GENERAL SECTIONS */

section {
    position: relative;
}

.rpg-section,
.modes-section,
.classes-section,
.community-section {
    padding: 90px 8%;
}

.rpg-section h2,
.modes-section h2,
.classes-section h2,
.community-section h2 {
    font-size: clamp(28px, 4vw, 42px);
    text-align: center;
    margin-bottom: 20px;
}

.rpg-section p,
.community-section p {
    color: var(--muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* GAME MODES */

.modes-grid,
.game-modes,
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 45px;
}

.mode-card,
.game-mode-card,
.class-card {
    background: linear-gradient(145deg, var(--surface-light), var(--surface));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mode-card::before,
.game-mode-card::before,
.class-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), var(--gold), transparent);
    transition: .6s ease;
}

.mode-card:hover::before,
.game-mode-card:hover::before,
.class-card:hover::before {
    left: 100%;
}

.mode-card:hover,
.game-mode-card:hover,
.class-card:hover {
    transform: translateY(-9px);
    border-color: rgba(53,191,255,.5);
    box-shadow: var(--glow);
}

.mode-card h3,
.game-mode-card h3,
.class-card h3 {
    color: var(--gold);
    margin-bottom: 12px;
}

.mode-card p,
.game-mode-card p,
.class-card p {
    color: var(--muted);
}

/* CLASS CARDS */

.class-card {
    cursor: pointer;
}

.class-card.selected {
    border-color: var(--gold);
    box-shadow: 0 0 28px rgba(241,198,109,.2);
    transform: translateY(-5px);
}

.class-card.selected h3 {
    color: var(--gold-light);
}

/* CLASS DETAILS */

#classDetails {
    margin: 45px auto 0;
    max-width: 900px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(145deg, #192b49, #0d172c);
    box-shadow: var(--gold-glow);
    animation: heroEnter .5s ease both;
}

#classDetails[hidden] {
    display: none;
}

#classDetails h2,
#classDetails h3 {
    color: var(--gold);
}

#classDetails p {
    color: var(--muted);
    margin: 9px 0;
}

#detailAbilities {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

#detailAbilities p {
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(53,191,255,.07);
    border-left: 3px solid var(--blue);
}

/* ACCOUNT */

.account-container,
.shop-container {
    width: min(1200px, 90%);
    margin: 55px auto;
}

.account-welcome,
.shop-intro {
    text-align: center;
    margin-bottom: 45px;
}

.account-welcome h2,
.shop-intro h2 {
    font-size: clamp(30px, 5vw, 45px);
    margin-bottom: 10px;
}

.account-welcome p,
.shop-intro p {
    color: var(--muted);
}

.account-dashboard {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 25px;
}

.account-sidebar,
.account-card {
    background: linear-gradient(145deg, var(--surface-light), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
}

.account-sidebar {
    height: fit-content;
    position: sticky;
    top: 20px;
}

.account-sidebar h3,
.account-card h3 {
    color: var(--gold);
    margin-bottom: 20px;
}

.account-sidebar nav {
    display: grid;
    gap: 10px;
}

.account-sidebar nav a {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255,255,255,.025);
}

.account-sidebar nav a:hover {
    color: var(--gold-light);
    background: rgba(241,198,109,.1);
    transform: translateX(4px);
}

.account-main {
    display: grid;
    gap: 22px;
}

.account-card p {
    color: var(--muted);
    margin: 10px 0;
}

.player-profile {
    text-align: center;
}

.player-avatar {
    width: 120px;
    height: 120px;
    margin: 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: var(--gold-glow);
    background: var(--bg);
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-name {
    color: var(--gold-light);
}

.player-rank {
    color: var(--blue) !important;
    font-weight: 800;
    letter-spacing: 2px;
}

.player-edit {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.player-edit input {
    min-width: 220px;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    outline: none;
}

.player-edit input:focus {
    border-color: var(--blue);
    box-shadow: var(--glow);
}

.player-edit button {
    padding: 12px 20px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: rgba(241,198,109,.12);
    color: var(--gold-light);
    font-weight: 700;
}

.player-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.xp-bar {
    height: 13px;
    background: #080e1c;
    border-radius: 20px;
    overflow: hidden;
    margin: 15px 0;
}

.xp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    box-shadow: 0 0 15px var(--blue);
    border-radius: inherit;
}

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

.wallet-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    transition: var(--transition);
}

.wallet-item:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.wallet-icon {
    font-size: 34px;
}

.wallet-info h4 {
    color: var(--gold);
}

.wallet-info p {
    font-size: 12px;
}

.wallet-info strong {
    font-size: 25px;
    color: var(--gold-light);
}

.wallet-shop {
    text-align: center;
}

/* SHOP */

.shop-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 35px 0;
}

.shop-category {
    padding: 11px 20px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-weight: 700;
    transition: var(--transition);
}

.shop-category:hover,
.shop-category.active {
    color: #17101e;
    background: linear-gradient(135deg, var(--gold-light), #bd873b);
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
}

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

.product-card {
    background: linear-gradient(150deg, #1a2a46, #0c1427);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 17px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.product-card:hover {
    transform: translateY(-9px);
    border-color: var(--gold);
    box-shadow: var(--gold-glow);
}

.product-image {
    min-height: 190px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 75px;
    background:
        radial-gradient(circle, rgba(53,191,255,.2), transparent 65%),
        linear-gradient(145deg, #253d64, #111c33);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.03);
    filter: brightness(1.2);
}

.product-info {
    padding: 23px;
}

.product-type {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.product-info h3 {
    color: var(--gold-light);
    margin: 10px 0;
}

.product-info p {
    color: var(--muted);
    min-height: 48px;
}

.product-info strong {
    display: block;
    margin: 15px 0;
    color: var(--purple);
    font-size: 20px;
}

.product-buy {
    width: 100%;
    margin: 0;
}

.product-buy:disabled {
    opacity: .5;
    cursor: not-allowed;
    filter: grayscale(1);
    box-shadow: none;
}

/* INVENTORY & HISTORY */

#inventory,
#history {
    min-height: 130px;
}

/* FOOTER */

footer {
    padding: 35px 7%;
    text-align: center;
    background: #050916;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

/* ANIMATIONS */

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

@keyframes orbit {
    from {
        transform: rotate(0deg) scale(.9);
    }
    to {
        transform: rotate(360deg) scale(1.1);
    }
}

/* RESPONSIVE */

@media (max-width: 850px) {
    .navbar,
    .shop-header,
    .account-header {
        padding: 18px 5%;
    }

    .account-dashboard {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .account-sidebar nav {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .rpg-section,
    .modes-section,
    .classes-section,
    .community-section {
        padding: 65px 5%;
    }
}

@media (max-width: 600px) {
    .navbar,
    .shop-header,
    .account-header {
        flex-direction: column;
        text-align: center;
    }

    .navbar nav,
    .shop-header nav {
        justify-content: center;
        gap: 13px;
    }

    .navbar nav a,
    .shop-header nav a {
        font-size: 11px;
    }

    .hero {
        min-height: 500px;
        padding: 75px 6%;
    }

    .hero p {
        font-size: 15px;
    }

    .wallet-grid {
        grid-template-columns: 1fr;
    }

    .player-info {
        flex-direction: column;
        gap: 5px;
    }

    .account-container,
    .shop-container {
        width: 92%;
        margin: 35px auto;
    }

    .account-sidebar,
    .account-card {
        padding: 19px;
    }

    .shop-products,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .shop-category {
        padding: 9px 14px;
        font-size: 11px;
    }

    #classDetails {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
.class-image {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    margin: 15px auto;
    border-radius: 12px;
    filter: drop-shadow(0 0 12px rgba(53,191,255,.25));
    transition: .35s ease;
}

.class-card:hover .class-image {
    transform: scale(1.05);
    filter: drop-shadow(0 0 18px rgba(241,198,109,.5));
}
/* CLASS COLOR SYSTEM */

.class-card {
    position: relative;
    isolation: isolate;
    transition: .4s ease;
    overflow: hidden;
}

.class-card .class-image {
    transition: transform .45s ease, filter .45s ease;
}

.class-card:hover .class-image {
    transform: scale(1.12);
}

.class-card.warrior {
    --class-color: #ff4545;
    --class-glow: rgba(255, 55, 55, .45);
}

.class-card.paladin {
    --class-color: #f1c66d;
    --class-glow: rgba(241, 198, 109, .45);
}

.class-card.assassin {
    --class-color: #a77bff;
    --class-glow: rgba(167, 123, 255, .45);
}

.class-card.archer {
    --class-color: #35e6a0;
    --class-glow: rgba(53, 230, 160, .45);
}

.class-card.priest {
    --class-color: #fff0b5;
    --class-glow: rgba(255, 240, 181, .5);
}

.class-card.druid {
    --class-color: #83d957;
    --class-glow: rgba(131, 217, 87, .45);
}

.class-card.necromancer {
    --class-color: #9b42d6;
    --class-glow: rgba(155, 66, 214, .5);
}

.class-card.wizard {
    --class-color: #42baff;
    --class-glow: rgba(66, 186, 255, .5);
}

/* CLASS DETAILS COLOR SYSTEM */

#classDetails.warrior {
    --class-color: #ff4545;
    --class-glow: rgba(255, 55, 55, .45);
}

#classDetails.paladin {
    --class-color: #f1c66d;
    --class-glow: rgba(241, 198, 109, .45);
}

#classDetails.assassin {
    --class-color: #a77bff;
    --class-glow: rgba(167, 123, 255, .45);
}

#classDetails.archer {
    --class-color: #35e6a0;
    --class-glow: rgba(53, 230, 160, .45);
}

#classDetails.priest {
    --class-color: #fff0b5;
    --class-glow: rgba(255, 240, 181, .5);
}

#classDetails.druid {
    --class-color: #83d957;
    --class-glow: rgba(131, 217, 87, .45);
}

#classDetails.necromancer {
    --class-color: #9b42d6;
    --class-glow: rgba(155, 66, 214, .5);
}

#classDetails.wizard {
    --class-color: #42baff;
    --class-glow: rgba(66, 186, 255, .5);
}

/* PANEL GLOW */

#classDetails {
    border-color: var(--class-color);
    box-shadow:
        0 0 12px var(--class-glow),
        0 0 28px var(--class-glow),
        inset 0 0 15px var(--class-glow);
}

/* CLASS TITLE */

#detailClassName {
    color: var(--class-color);
    text-shadow: 0 0 15px var(--class-glow);
    transition: .35s ease;
}

/* CLASS DESCRIPTION */

#detailDescription {
    transition: .35s ease;
    text-shadow: 0 0 8px var(--class-glow);
}

/* CARD DESCRIPTION EFFECT */

.class-card p {
    transition: .35s ease;
}

.class-card:hover p,
.class-card.selected p {
    color: var(--class-color);
    text-shadow: 0 0 10px var(--class-glow);
}

/* ===== MT CRAFT CLASS EFFECT FIX ===== */

/* CARD GLOW */

.class-card:hover,
.class-card.selected {
    border-color: var(--class-color) !important;

    box-shadow:
        0 0 12px var(--class-glow),
        0 0 30px var(--class-glow),
        inset 0 0 18px var(--class-glow) !important;

    transform: translateY(-6px);
}

/* CARD TITLE COLOR */

.class-card:hover h3,
.class-card.selected h3 {
    color: var(--class-color) !important;
    text-shadow: 0 0 15px var(--class-glow);
}

/* CARD DESCRIPTION */

.class-card:hover p,
.class-card.selected p {
    color: var(--class-color) !important;
    text-shadow: 0 0 10px var(--class-glow);
}

/* CLASS IMAGE */

.class-card:hover .class-image,
.class-card.selected .class-image {
    filter: drop-shadow(0 0 18px var(--class-glow));
}

/* DETAILS PANEL */

#classDetails.warrior {
    --class-color: #ff4545;
    --class-glow: rgba(255,55,55,.45);
}

#classDetails.paladin {
    --class-color: #f1c66d;
    --class-glow: rgba(241,198,109,.45);
}

#classDetails.assassin {
    --class-color: #a77bff;
    --class-glow: rgba(167,123,255,.45);
}

#classDetails.archer {
    --class-color: #35e6a0;
    --class-glow: rgba(53,230,160,.45);
}

#classDetails.priest {
    --class-color: #fff0b5;
    --class-glow: rgba(255,240,181,.5);
}

#classDetails.druid {
    --class-color: #83d957;
    --class-glow: rgba(131,217,87,.45);
}

#classDetails.necromancer {
    --class-color: #9b42d6;
    --class-glow: rgba(155,66,214,.5);
}

#classDetails.wizard {
    --class-color: #42baff;
    --class-glow: rgba(66,186,255,.5);
}

/* PANEL BORDER AND GLOW */

#classDetails {
    border: 1px solid var(--class-color, var(--gold));
    box-shadow:
        0 0 15px var(--class-glow, rgba(241,198,109,.2)),
        0 0 30px var(--class-glow, rgba(241,198,109,.15)),
        inset 0 0 18px var(--class-glow, transparent);
}

/* PANEL TITLE */

#classDetails #detailClassName {
    color: var(--class-color, var(--gold)) !important;
    text-shadow: 0 0 15px var(--class-glow);
}

/* PANEL HEADINGS */

#classDetails h3 {
    color: var(--class-color, var(--gold));
}

/* ABILITIES */

#detailAbilities p {
    border-left-color: var(--class-color, var(--blue));
    transition: .3s ease;
}

#detailAbilities p:hover {
    background: var(--class-glow, rgba(53,191,255,.12));
    box-shadow: 0 0 12px var(--class-glow);
}


/* ================================
   MT CRAFT - PERSIAN TYPOGRAPHY
================================ */

/* Main font */
body {
    font-family: 'Inter', 'Vazirmatn', sans-serif;
}

/* Persian-compatible headings */
h1, h2, h3, h4 {
    font-family: 'Cinzel', 'Vazirmatn', serif;
}

/* Persian text only */
p,
.section-subtitle,
.product-type,
#detailDescription,
#detailAbilities p,
.account-welcome p,
.account-card p,
.shop-intro p,
.hero p,
.rpg-section p,
.community-section p,
.mode-card p,
.game-mode-card p,
.class-card p,
.product-info p {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    direction: rtl;
    unicode-bidi: plaintext;
}

/* Persian form fields */
input,
textarea {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Keep English brand and class names unchanged */
.logo,
.footer-logo,
.class-card h3,
#detailClassName {
    direction: ltr;
    unicode-bidi: isolate;
}
/* MT CRAFT - ACCOUNT SIDEBAR */

.account-sidebar nav a {
    display: block;
    padding: 13px 18px;
    margin-bottom: 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--muted);
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.account-sidebar nav a:hover {
    color: var(--gold-light);
    background: rgba(241, 198, 109, 0.08);
    border-color: rgba(241, 198, 109, 0.25);
    transform: translateX(-4px);
}

.account-sidebar nav a.active {
    color: #17101e;
    background: linear-gradient(135deg, #f4d38c, #b98637);
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(241, 198, 109, 0.25);
    font-weight: 800;
}

.account-sidebar nav a.active:hover {
    box-shadow: 0 0 25px rgba(241, 198, 109, 0.4);
}
/* =====================================
   MT CRAFT - CUSTOM ACCOUNT FORMS
===================================== */

/* کادرهای اصلی تغییر رمز و تیکت */
.password-section,
#tickets {
    padding: 30px;
    border: 1px solid rgba(241, 198, 109, 0.22);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at top right,
            rgba(42, 75, 130, 0.22),
            transparent 45%
        ),
        linear-gradient(145deg, #101a31, #0b1223);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* عنوان بخش‌ها */
.password-section h3,
#tickets h3 {
    color: #f1c66d;
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(241, 198, 109, 0.2);
}

/* توضیحات بالای فرم */
.password-section > p,
#tickets > p {
    color: #b8c8e4;
    line-height: 2;
    margin-bottom: 25px;
}

/* فاصله و چیدمان فیلدها */
.password-section .form-group,
#tickets .form-group {
    margin-bottom: 22px;
}

/* برچسب فیلدها */
.password-section .form-group label,
#tickets .form-group label {
    display: block;
    color: #e6c987;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 14px;
}

/* ورودی‌ها و منوی انتخاب */
.password-section input,
#tickets input[type="text"],
#tickets select,
#tickets textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: #edf3ff;
    background: linear-gradient(135deg, #172743, #111d34);
    border: 1px solid rgba(113, 151, 205, 0.32);
    border-radius: 11px;
    padding: 14px 16px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
}

/* حالت انتخاب فیلد */
.password-section input:focus,
#tickets input[type="text"]:focus,
#tickets select:focus,
#tickets textarea:focus {
    border-color: #e9bd65;
    background: #172844;
    box-shadow: 0 0 0 3px rgba(241, 198, 109, 0.10),
                0 0 18px rgba(241, 198, 109, 0.08);
}

/* فیلد رمز عبور */
.password-section input {
    max-width: 520px;
}

/* منوی انتخاب موضوع */
#tickets select {
    cursor: pointer;
    appearance: none;
    padding-left: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f1c66d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
}

/* گزینه‌های منوی انتخاب */
#tickets select option {
    background: #111d34;
    color: #edf3ff;
}

/* کادر بزرگ توضیحات */
#tickets textarea {
    min-height: 190px;
    resize: vertical;
    line-height: 2;
    padding: 17px;
}

/* متن راهنمای پیوست */
#tickets .form-group small {
    display: block;
    color: #91a5c6;
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.9;
}

/* انتخاب تصویر */
#tickets input[type="file"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px dashed rgba(241, 198, 109, 0.45);
    border-radius: 11px;
    background: rgba(18, 34, 59, 0.8);
    color: #b8c8e4;
    font-family: 'Vazirmatn', sans-serif;
}

/* دکمه انتخاب فایل */
#tickets input[type="file"]::file-selector-button {
    border: 0;
    border-radius: 8px;
    padding: 9px 15px;
    margin-left: 12px;
    background: linear-gradient(135deg, #e9bd65, #b98637);
    color: #17101e;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 800;
    cursor: pointer;
}

/* دکمه‌های فرم */
.password-section .auth-btn,
#tickets .auth-btn {
    border: 1px solid #f1c66d;
    border-radius: 10px;
    padding: 13px 25px;
    background: linear-gradient(135deg, #f4d38c, #b98637);
    color: #17101e;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 18px rgba(185, 134, 55, 0.18);
}

.password-section .auth-btn:hover,
#tickets .auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(241, 198, 109, 0.32);
    filter: brightness(1.08);
}

/* پیام‌های وضعیت */
#passwordMessage,
#ticketStatusMessage {
    margin-top: 15px;
    color: #e9bd65;
    line-height: 1.9;
    font-size: 13px;
}

/* فهرست تیکت‌های قبلی */
#ticketList {
    margin-top: 35px;
    padding: 22px;
    border: 1px solid rgba(113, 151, 205, 0.22);
    border-radius: 13px;
    background: rgba(15, 29, 51, 0.75);
}

#ticketList h3 {
    font-size: 17px;
}

#ticketList p {
    color: #a9bad5;
    line-height: 2;
}

/* نمایش موبایل */
@media (max-width: 600px) {
    .password-section,
    #tickets {
        padding: 18px;
    }

    .password-section input {
        max-width: 100%;
    }

    #tickets textarea {
        min-height: 170px;
    }

    .password-section .auth-btn,
    #tickets .auth-btn {
        width: 100%;
    }
}

/* =====================================
   MT CRAFT - CUSTOM TICKET DROPDOWN
===================================== */

.mt-custom-select {
    position: relative;
    width: 100%;
    z-index: 20;
}

/* دکمه اصلی منو */
.custom-select-trigger {
    width: 100%;
    min-height: 58px;
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(113, 151, 205, 0.4);
    border-radius: 12px;
    background: linear-gradient(135deg, #172743, #101b31);
    color: #e8eefb;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select-trigger:hover,
.mt-custom-select.open .custom-select-trigger {
    border-color: #e9bd65;
    box-shadow: 0 0 16px rgba(241, 198, 109, 0.13);
}

.custom-select-arrow {
    color: #f1c66d;
    font-size: 23px;
    transition: transform 0.3s ease;
}

.mt-custom-select.open .custom-select-arrow {
    transform: rotate(180deg);
}

/* پنل گزینه‌ها */
.custom-select-options {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    padding: 8px;
    border: 1px solid rgba(241, 198, 109, 0.3);
    border-radius: 13px;
    background: linear-gradient(145deg, #14233d, #0c1528);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
}

.mt-custom-select.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* هر گزینه */
.custom-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #c8d5eb;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-option:last-child {
    margin-bottom: 0;
}

.custom-option:hover {
    color: #f6d99d;
    background: rgba(241, 198, 109, 0.1);
    border-color: rgba(241, 198, 109, 0.2);
    padding-right: 19px;
}

/* گزینه انتخاب‌شده */
.custom-option.selected {
    color: #f4d38c;
    background: rgba(241, 198, 109, 0.12);
    border-color: rgba(241, 198, 109, 0.35);
}

.option-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(90, 126, 180, 0.16);
    font-size: 17px;
    flex-shrink: 0;
}
/* =====================================
   MT CRAFT - SUPPORT TICKET CARDS
===================================== */

.ticket-list-items {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.ticket-item {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(113, 151, 205, 0.22);
    border-right: 3px solid var(--gold);
    border-radius: 13px;

    background:
        radial-gradient(
            circle at top left,
            rgba(53, 191, 255, 0.07),
            transparent 45%
        ),
        linear-gradient(145deg, #172743, #101a30);

    transition: all 0.3s ease;
}

.ticket-item:hover {
    transform: translateY(-4px);
    border-color: rgba(241, 198, 109, 0.55);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.22),
        0 0 18px rgba(241, 198, 109, 0.08);
}

/* عنوان و شماره تیکت */

.ticket-item > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.ticket-item strong {
    color: var(--gold-light);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    font-weight: 800;
}

.ticket-item small {
    color: #91a5c6;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 12px;
}

/* موضوع تیکت */

.ticket-item p {
    color: #c5d2e8;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    margin: 12px 0;
}

/* وضعیت تیکت */

.ticket-status {
    display: inline-block;
    padding: 6px 13px;
    margin: 5px 0 12px;
    border: 1px solid rgba(241, 198, 109, 0.3);
    border-radius: 20px;

    background: rgba(241, 198, 109, 0.1);
    color: var(--gold-light);

    font-family: 'Vazirmatn', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

/* تاریخ ثبت */

.ticket-item > small {
    display: block;
    color: #91a5c6;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 11px;
    margin-top: 5px;
    direction: rtl;
}

/* نمایش موبایل */

@media (max-width: 600px) {
    .ticket-item {
        padding: 17px;
    }

    .ticket-item > div:first-child {
        align-items: flex-start;
        flex-direction: column;
    }

    .ticket-item strong {
        font-size: 14px;
    }

    .ticket-item small {
        font-size: 11px;
    }
}
/* MT CRAFT - TICKET CONVERSATION */

.ticket-detail {
    margin-top: 25px;
}

.ticket-back-btn {
    padding: 10px 17px;
    margin-bottom: 22px;
    border: 1px solid rgba(113, 151, 205, 0.35);
    border-radius: 9px;
    background: rgba(53, 191, 255, 0.08);
    color: #9fcfff;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ticket-back-btn:hover {
    background: rgba(53, 191, 255, 0.16);
    border-color: #7197cd;
}

.ticket-detail-info {
    padding: 20px;
    margin: 18px 0 25px;
    border: 1px solid rgba(241, 198, 109, 0.25);
    border-radius: 12px;
    background: linear-gradient(145deg, #172743, #101a30);
}

.ticket-detail-info h4 {
    color: var(--gold-light);
    margin-bottom: 12px;
}

.ticket-detail-info small {
    display: block;
    color: #91a5c6;
    margin-top: 12px;
}

.ticket-messages {
    display: grid;
    gap: 16px;
    margin: 20px 0 28px;
}

.ticket-message {
    max-width: 85%;
    padding: 17px 20px;
    border-radius: 12px;
    background: #172743;
}

.player-message {
    justify-self: start;
    border: 1px solid rgba(53, 191, 255, 0.35);
    border-right: 3px solid #35bfff;
}

.support-message {
    justify-self: end;
    border: 1px solid rgba(241, 198, 109, 0.35);
    border-right: 3px solid var(--gold);
}

.ticket-message strong {
    display: block;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.ticket-message p {
    color: #d5e0f1;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ticket-message small {
    display: block;
    color: #91a5c6;
    font-size: 11px;
    margin-top: 12px;
}

#ticketReplyForm {
    padding: 20px;
    border: 1px solid rgba(241, 198, 109, 0.25);
    border-radius: 12px;
    background: #101a30;
}

#ticketReplyForm label {
    display: block;
    color: var(--gold-light);
    margin-bottom: 12px;
    font-weight: 700;
}

#ticketReplyForm textarea {
    width: 100%;
    min-height: 110px;
    padding: 14px;
    border: 1px solid rgba(113, 151, 205, 0.3);
    border-radius: 9px;
    background: #172743;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    resize: vertical;
}

#ticketReplyForm textarea:focus {
    outline: none;
    border-color: var(--gold);
}

#ticketReplyForm .auth-btn {
    margin-top: 15px;
}

@media (max-width: 600px) {
    .ticket-message {
        max-width: 95%;
        padding: 14px;
    }

    .ticket-detail-info,
    #ticketReplyForm {
        padding: 15px;
    }
}
/* MT CRAFT - TICKET VIEW BUTTON */

.ticket-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    margin-top: 12px;

    border: 1px solid rgba(53, 191, 255, 0.5);
    border-radius: 9px;

    background: linear-gradient(
        135deg,
        rgba(53, 191, 255, 0.16),
        rgba(25, 105, 160, 0.10)
    );

    color: #8cddff;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
    transition: all 0.3s ease;
}

.ticket-view-btn:hover {
    color: #071525;
    background: linear-gradient(135deg, #8cddff, #35bfff);
    border-color: #8cddff;
    box-shadow: 0 0 18px rgba(53, 191, 255, 0.35);
    transform: translateY(-2px);
}

.ticket-view-btn:active {
    transform: translateY(0);
}

.ticket-view-btn:focus-visible {
    outline: 2px solid #8cddff;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .ticket-view-btn {
        width: 100%;
        padding: 12px;
    }
}
/* TICKET STATUS COLORS */

/* در انتظار بررسی */
.ticket-status.status-open {
    color: #f4d38c;
    background: rgba(241, 198, 109, 0.12);
    border-color: rgba(241, 198, 109, 0.4);
}

/* پاسخ داده شده */
.ticket-status.status-answered {
    color: #65e6a5;
    background: rgba(54, 211, 126, 0.12);
    border-color: rgba(54, 211, 126, 0.4);
}

/* بسته شده */
.ticket-status.status-closed {
    color: #ff7777;
    background: rgba(255, 75, 75, 0.12);
    border-color: rgba(255, 75, 75, 0.4);
}
/* ==============================
   MT CRAFT ADMIN PANEL
============================== */

.admin-panel {
    width: min(1400px, 94%);
    margin: 50px auto;
    direction: rtl;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #111a30, #0b1020);
    border: 1px solid rgba(241, 198, 109, 0.25);
    border-radius: 16px;
}

.admin-header h1 {
    color: #f1c66d;
    font-family: 'Cinzel', sans-serif;
    font-size: 26px;
    margin-bottom: 8px;
}

.admin-header p {
    color: #aab4c8;
    font-size: 13px;
}

.admin-back-btn {
    padding: 11px 18px;
    border: 1px solid rgba(241, 198, 109, 0.4);
    border-radius: 9px;
    color: #f1c66d;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.admin-back-btn:hover {
    background: rgba(241, 198, 109, 0.15);
    box-shadow: 0 0 15px rgba(241, 198, 109, 0.15);
}

/* آمار تیکت‌ها */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.admin-stat-card {
    padding: 22px;
    background: #10182a;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-stat-card span {
    color: #9caac0;
    font-size: 13px;
}

.admin-stat-card strong {
    color: #f1c66d;
    font-size: 27px;
}

/* محتوای اصلی */

.admin-content {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.admin-ticket-list,
.admin-ticket-details {
    min-width: 0;
    padding: 23px;
    background: #10182a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.admin-ticket-list h2,
.admin-ticket-details h2 {
    color: #f1c66d;
    font-size: 18px;
    margin-bottom: 20px;
}

/* کارت تیکت‌ها */

.admin-ticket-items {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.admin-ticket-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    transition: 0.3s;
}

.admin-ticket-item:hover {
    border-color: rgba(241, 198, 109, 0.4);
    transform: translateY(-2px);
}

.admin-ticket-item h3 {
    color: #e8edf7;
    font-size: 14px;
    margin-bottom: 10px;
}

.admin-ticket-item p,
.admin-ticket-item small {
    display: block;
    color: #9caac0;
    font-size: 12px;
    margin-bottom: 9px;
}

/* دکمه مشاهده */

.admin-view-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: rgba(53, 191, 255, 0.1);
    border: 1px solid rgba(53, 191, 255, 0.4);
    border-radius: 8px;
    color: #8cddff;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.admin-view-btn:hover {
    background: #35bfff;
    color: #071525;
}

/* وضعیت خالی */

.admin-empty-state {
    text-align: center;
    padding: 70px 15px;
}

.admin-empty-state h3 {
    color: #f1c66d;
    margin-bottom: 12px;
}

.admin-empty-state p {
    color: #9caac0;
    font-size: 13px;
}

/* جزئیات تیکت */

.admin-detail-info {
    padding: 18px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}

.admin-detail-info h3 {
    color: #e8edf7;
    margin-bottom: 14px;
}

.admin-detail-info p {
    color: #aab4c8;
    font-size: 13px;
    margin-bottom: 12px;
}

.admin-detail-info strong {
    color: #f1c66d;
}

.admin-detail-content > h3 {
    color: #f1c66d;
    font-size: 16px;
    margin-bottom: 15px;
}

/* پیام‌ها */

.admin-detail-content .ticket-messages {
    max-height: 450px;
    overflow-y: auto;
    margin-bottom: 22px;
}

/* فرم پاسخ مدیر */

#adminReplyForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#adminReplyForm label {
    color: #f1c66d;
    font-size: 14px;
}

#adminReply {
    width: 100%;
    min-height: 110px;
    padding: 13px;
    background: #090f1e;
    border: 1px solid rgba(241, 198, 109, 0.2);
    border-radius: 9px;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    resize: vertical;
    outline: none;
}

#adminReply:focus {
    border-color: #f1c66d;
}

/* دکمه‌های مدیر */

.admin-reply-btn,
.admin-close-btn {
    padding: 12px;
    border-radius: 9px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.admin-reply-btn {
    background: linear-gradient(135deg, #f1c66d, #b98b38);
    border: none;
    color: #17100a;
}

.admin-reply-btn:hover {
    box-shadow: 0 0 18px rgba(241, 198, 109, 0.3);
}

.admin-close-btn {
    background: rgba(255, 75, 75, 0.1);
    border: 1px solid rgba(255, 75, 75, 0.4);
    color: #ff8585;
}

.admin-close-btn:hover {
    background: #d83d3d;
    color: white;
}

.admin-error {
    color: #ff7777;
    padding: 15px;
}

.admin-closed-message {
    color: #ff8585;
    padding: 15px;
    background: rgba(255, 75, 75, 0.08);
    border-radius: 9px;
}

#adminActionStatus {
    color: #ff7777;
    font-size: 13px;
}

/* موبایل و تبلت */

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

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

@media (max-width: 600px) {
    .admin-panel {
        width: 94%;
        margin: 25px auto;
    }

    .admin-header {
        padding: 20px;
    }

    .admin-header h1 {
        font-size: 21px;
    }

    .admin-stats {
        gap: 10px;
    }

    .admin-stat-card {
        padding: 16px;
    }

    .admin-stat-card strong {
        font-size: 23px;
    }

    .admin-ticket-list,
    .admin-ticket-details {
        padding: 16px;
    }
}
/* ================================
   ADMIN USERS MANAGEMENT
================================ */

.admin-users-section {
    margin: 25px 0;
    padding: 24px;
    background: linear-gradient(145deg, #10182b, #0b1221);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.admin-section-header h2 {
    margin: 0;
    color: #e8c76a;
    font-size: 21px;
}

.admin-section-header p {
    margin: 7px 0 0;
    color: #9ba8bd;
    font-size: 13px;
}

.admin-users-count {
    padding: 7px 13px;
    color: #e8c76a;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    white-space: nowrap;
}

.admin-users-list {
    display: grid;
    gap: 12px;
}

.admin-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    background: rgba(5, 11, 24, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    transition: border-color 0.2s, transform 0.2s;
}

.admin-user-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
}

.admin-user-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-user-name {
    color: #f1f3f8;
    font-weight: 700;
    font-size: 15px;
}

.admin-user-role {
    display: inline-flex;
    align-items: center;
}

.admin-user-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

/* Staff role badges */

.staff-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}

.role-owner {
    color: #ffdc75;
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.4);
}

.role-admin {
    color: #ff8585;
    background: rgba(220, 55, 55, 0.13);
    border-color: rgba(220, 55, 55, 0.35);
}

.role-moderator {
    color: #80baff;
    background: rgba(55, 130, 220, 0.13);
    border-color: rgba(55, 130, 220, 0.35);
}

.role-support {
    color: #75dfad;
    background: rgba(45, 170, 110, 0.13);
    border-color: rgba(45, 170, 110, 0.35);
}

.role-player {
    color: #c1c8d5;
    background: rgba(150, 160, 180, 0.12);
    border-color: rgba(150, 160, 180, 0.25);
}

/* Role selector */

.admin-role-select {
    min-width: 135px;
    padding: 9px 12px;
    color: #e8edf7;
    background: #111c30;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    outline: none;
    font-family: inherit;
}

.admin-role-select:focus {
    border-color: #d4af37;
}

.admin-role-select option {
    color: #fff;
    background: #111c30;
}

.admin-role-save {
    padding: 9px 15px;
    color: #101827;
    background: linear-gradient(135deg, #e8cb72, #bd9234);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.admin-role-save:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.admin-role-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.admin-role-locked {
    color: #8995a9;
    font-size: 12px;
}

/* Ticket sender identity */

.ticket-message-sender {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}

/* Responsive */

@media (max-width: 650px) {
    .admin-users-section {
        padding: 16px;
    }

    .admin-section-header {
        align-items: flex-start;
    }

    .admin-section-header h2 {
        font-size: 18px;
    }

    .admin-user-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-user-actions {
        width: 100%;
    }

    .admin-role-select {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 400px) {
    .admin-section-header {
        flex-direction: column;
    }

    .admin-user-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-role-select,
    .admin-role-save {
        width: 100%;
    }
}


/* MT Craft account enhancements */
.account-staff-badge { display: inline-flex; margin: 8px auto 14px; }
.account-admin-link { display: inline-flex; margin-top: 12px; color: #e7c66b; text-decoration: none; }
.account-notification-panel { margin: 0 0 22px; padding: 20px; border: 1px solid rgba(191,164,94,.25); border-radius: 16px; background: rgba(13,22,41,.82); }
.account-notification-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.account-notification-head button, .account-notification button { border:1px solid rgba(207,180,105,.35); border-radius:8px; padding:7px 12px; background:#172640; color:#e7c66b; cursor:pointer; }
.account-notification { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.07); }
.account-notification p { margin:5px 0; color:#c4ccda; }
.account-notification small { color:#8492a8; }
.account-notification.is-unread { border-right:3px solid #d7b45e; padding-right:12px; }

/* MT Craft shop */
.shop-credit-balance { color:#e7c66b; font-weight:700; }
.shop-message { min-height:24px; color:#e7c66b; }
.product-buy:not(:disabled) { cursor:pointer; }
.product-buy:disabled { opacity:.55; cursor:not-allowed; }

/* MT Craft advanced admin tools */
.admin-advanced-tools { margin:18px 0 24px; }
.admin-user-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.admin-user-toolbar input, .admin-detail-action input, .admin-detail-action select {
    width:100%; min-width:0; padding:11px 13px; border:1px solid rgba(172,190,220,.18);
    border-radius:9px; background:#0c1629; color:#edf2fb; font:inherit;
}
.admin-user-toolbar input { flex:1 1 260px; }
.admin-user-tabs { display:flex; flex-wrap:wrap; gap:7px; }
.admin-user-tabs button, .admin-pagination button {
    border:1px solid rgba(194,168,103,.3); border-radius:8px; padding:9px 13px;
    background:#14233c; color:#dbe4f4; cursor:pointer;
}
.admin-user-tabs button.active { background:#8c6d2c; color:#fff; }
.admin-advanced-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,.9fr); gap:16px; align-items:start; }
.admin-advanced-user { display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px; text-align:right; margin-bottom:8px; padding:13px; border:1px solid rgba(160,180,210,.14); border-radius:10px; background:#101d33; color:#eef3fc; cursor:pointer; }
.admin-advanced-user.selected { border-color:#c7a455; background:#192b47; }
.admin-advanced-user span:first-child { display:flex; flex-direction:column; gap:5px; min-width:0; }
.admin-advanced-user small { color:#92a1b7; overflow-wrap:anywhere; }
.admin-banned-label { margin-right:6px; color:#ff8c8c; font-style:normal; font-size:12px; }
.admin-pagination { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:12px; color:#b8c4d8; }
.admin-pagination button:disabled { opacity:.4; cursor:not-allowed; }
.admin-user-details { min-height:180px; padding:17px; border:1px solid rgba(194,168,103,.22); border-radius:12px; background:#0d192d; }
.admin-user-detail-head { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.admin-user-detail-head h3 { margin:0; }
.admin-user-detail-head small { width:100%; color:#93a2b8; }
.admin-user-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:16px 0; }
.admin-user-detail-grid p { margin:0; padding:10px; border-radius:8px; background:#14233b; overflow-wrap:anywhere; }
.admin-user-detail-grid p span, .admin-user-detail-grid p strong { display:block; }
.admin-user-detail-grid p span { color:#91a0b7; font-size:12px; margin-bottom:5px; }
.admin-user-detail-grid p strong { font-size:13px; }
.admin-detail-action { display:grid; gap:9px; padding:14px 0; border-top:1px solid rgba(255,255,255,.08); }
.admin-detail-action h4 { margin:0; }
.admin-detail-action button { border:0; border-radius:8px; padding:10px 14px; background:#947331; color:#fff; cursor:pointer; font:inherit; }
.admin-detail-action button:disabled { opacity:.5; }
.admin-detail-action .admin-ban-btn { background:#8f343a; }
.admin-detail-action .admin-unban-btn { background:#286c55; }
.admin-ledger-row { display:grid; grid-template-columns:1fr auto; gap:5px 10px; margin:0; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.06); }
.admin-ledger-row small { grid-column:1/-1; color:#8795aa; }
.admin-ledger-row .positive { color:#77d7a5; }
.admin-ledger-row .negative { color:#ff9a9a; }
@media (max-width:850px) { .admin-advanced-layout { grid-template-columns:1fr; } }
@media (max-width:520px) { .admin-user-detail-grid { grid-template-columns:1fr; } .account-notification { flex-direction:column; } }

/* ==========================================
   MT CRAFT - STORE & ORDERS ADMIN DESIGN
========================================== */

/* فرم مدیریت محصولات */
#adminProductForm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 22px 0 30px;
    padding: 22px;
    background: linear-gradient(145deg, #111d34, #0b1427);
    border: 1px solid rgba(53, 191, 255, 0.18);
    border-radius: 16px;
}

#adminProductForm input,
#adminProductForm textarea,
#adminProductForm select {
    width: 100%;
    min-width: 0;
    padding: 13px 15px;
    color: var(--text);
    background: #080f20;
    border: 1px solid rgba(170, 184, 209, 0.2);
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

#adminProductForm textarea {
    grid-column: 1 / -1;
    min-height: 100px;
    resize: vertical;
}

#adminProductForm input:focus,
#adminProductForm textarea:focus,
#adminProductForm select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 14px rgba(53, 191, 255, 0.12);
}

#adminProductForm select option {
    background: #101a30;
    color: var(--text);
}

#adminProductForm button {
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid rgba(241, 198, 109, 0.35);
    border-radius: 10px;
    color: #171321;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

#adminProductForm button:hover {
    transform: translateY(-2px);
    box-shadow: var(--gold-glow);
}

#adminProductForm button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

#adminProductForm #adminProductCancel {
    color: var(--text);
    background: linear-gradient(135deg, #34445f, #202e48);
    border-color: rgba(170, 184, 209, 0.25);
}

#adminProductForm #adminProductCancel[hidden] {
    display: none;
}

/* فهرست محصولات */
#adminProductsList .admin-users-list,
#adminOrdersList .admin-users-list {
    display: grid;
    gap: 14px;
}

#adminProductsList .admin-user-card,
#adminOrdersList .admin-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(145deg, #15223c, #0c162a);
    border: 1px solid rgba(241, 198, 109, 0.16);
    border-radius: 14px;
    transition: var(--transition);
}

#adminProductsList .admin-user-card:hover,
#adminOrdersList .admin-user-card:hover {
    border-color: rgba(53, 191, 255, 0.4);
    box-shadow: 0 0 20px rgba(53, 191, 255, 0.08);
    transform: translateY(-2px);
}

/* اطلاعات محصول و سفارش */
#adminProductsList .admin-user-info,
#adminOrdersList .admin-user-info {
    flex: 1;
    min-width: 0;
}

#adminProductsList .admin-user-name,
#adminOrdersList .admin-user-name {
    display: block;
    margin-bottom: 12px;
    color: var(--gold-light);
    font-size: 16px;
    font-weight: 800;
}

#adminProductsList .admin-user-info p,
#adminOrdersList .admin-user-info p {
    margin: 8px 0;
    color: var(--text);
    line-height: 1.9;
    font-size: 13px;
}

#adminProductsList .admin-user-info small,
#adminOrdersList .admin-user-info small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 12px;
}

/* دکمه‌های مدیریت محصول */
#adminProductsList .admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    flex-shrink: 0;
}

#adminProductsList .admin-role-save {
    min-height: 39px;
    padding: 9px 15px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

#adminProductsList [data-product-edit] {
    color: #071522;
    background: linear-gradient(135deg, var(--blue), #8de2ff);
    border: 1px solid rgba(53, 191, 255, 0.4);
}

#adminProductsList [data-product-toggle] {
    color: #171321;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: 1px solid rgba(241, 198, 109, 0.4);
}

#adminProductsList .admin-role-save:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

#adminProductsList .admin-role-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* بخش سفارش‌ها */
#adminOrdersList .admin-user-card {
    border-right: 3px solid var(--purple);
}

#adminOrdersList .admin-user-name {
    color: #c7a8ff;
}

/* پیام خطا */
#adminProductsList .admin-error,
#adminOrdersList .admin-error {
    padding: 14px;
    color: var(--red);
    background: rgba(255, 100, 124, 0.07);
    border: 1px solid rgba(255, 100, 124, 0.2);
    border-radius: 10px;
}

/* نمایش موبایل */
@media (max-width: 700px) {

    #adminProductForm {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    #adminProductForm textarea {
        grid-column: auto;
    }

    #adminProductsList .admin-user-card,
    #adminOrdersList .admin-user-card {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    #adminProductsList .admin-user-actions {
        width: 100%;
    }

    #adminProductsList .admin-role-save {
        flex: 1;
    }
}

@media (max-width: 400px) {

    #adminProductForm {
        padding: 12px;
    }

    #adminProductsList .admin-user-actions {
        flex-direction: column;
    }

    #adminProductsList .admin-role-save {
        width: 100%;
    }
}
/* =====================================
   MT CRAFT - HOMEPAGE BACKGROUND
===================================== */

body.home-page {
    position: relative;
    isolation: isolate;
    background: transparent !important;
}

/* تصویر ثابت پس‌زمینه */
body.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            180deg,
            rgba(7, 11, 24, 0.48) 0%,
            rgba(7, 11, 24, 0.62) 55%,
            rgba(7, 11, 24, 0.82) 100%
        ),
        url("images/mtcraft-bg.png") center center / cover no-repeat;
    pointer-events: none;
}

/* شفاف‌کردن پس‌زمینه بخش‌های اصلی */
body.home-page .hero,
body.home-page .rpg-section,
body.home-page .features-section,
body.home-page .classes-section,
body.home-page .account-section,
body.home-page .community-section,
body.home-page .footer {
    background-color: transparent !important;
}

/* جلوگیری از پوشاندن تصویر توسط پس‌زمینه اصلی */
body.home-page main {
    background: transparent;
}

/* تنظیم نمایش در موبایل */
@media (max-width: 768px) {
    body.home-page::before {
        background-position: center center;
        background-size: cover;
    }
}
/* FIX: Homepage background visibility */

body.home-page {
    position: relative;
    isolation: isolate;
    background: transparent !important;
}

body.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;

    background-image:
        linear-gradient(
            rgba(7, 11, 24, 0.55),
            rgba(7, 11, 24, 0.78)
        ),
        url("images/mtcraft-bg.png");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    pointer-events: none;
}

body.home-page > * {
    position: relative;
    z-index: auto;
}
/* MT CRAFT - HERO BACKGROUND FIX */

body.home-page .hero {
    background: transparent !important;
}

body.home-page .hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(7, 11, 24, 0.25),
        rgba(7, 11, 24, 0.45)
    ) !important;
}
/* ==========================================
   MT CRAFT - NEW CLASS SELECTION DESIGN
========================================== */

/* Layout: class cards + details panel */

body.home-page .classes-section .classes-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 25px;
    align-items: start;
    margin-top: 40px;
}

/* Class cards grid */

body.home-page .classes-section .class-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

/* Individual class card */

body.home-page .classes-section .class-card {
    --class-color: #35bfff;
    --class-glow: rgba(53, 191, 255, .4);

    min-width: 0;
    min-height: 220px;
    padding: 15px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: linear-gradient(
        145deg,
        rgba(20, 35, 61, .94),
        rgba(8, 16, 32, .94)
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    transition: .35s ease;
}

/* Class number */

body.home-page .classes-section .class-card > span {
    align-self: flex-start;
    color: var(--class-color);
    font-size: 11px;
    font-weight: 800;
    opacity: .8;
}

/* Class logo */

body.home-page .classes-section .class-card .class-image {
    width: 100%;
    height: 125px;
    margin: 5px auto 8px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px var(--class-glow));
    transition: .4s ease;
}

/* Class name */

body.home-page .classes-section .class-card h3 {
    margin: 5px 0;
    color: var(--class-color);
    font-size: 14px;
    letter-spacing: 1px;
    transition: .3s ease;
}

/* Class description */

body.home-page .classes-section .class-card p {
    margin: 0;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
    color: #b9c8df;
}

/* Hover and selected */

body.home-page .classes-section .class-card:hover,
body.home-page .classes-section .class-card.selected {
    transform: translateY(-6px);
    border-color: var(--class-color);
    box-shadow:
        0 0 12px var(--class-glow),
        0 0 28px var(--class-glow),
        inset 0 0 15px var(--class-glow);
}

body.home-page .classes-section .class-card:hover .class-image,
body.home-page .classes-section .class-card.selected .class-image {
    transform: scale(1.08);
}

/* Class colors */

body.home-page .class-card.warrior {
    --class-color: #ff4545;
    --class-glow: rgba(255,55,55,.4);
}

body.home-page .class-card.paladin {
    --class-color: #f1c66d;
    --class-glow: rgba(241,198,109,.4);
}

body.home-page .class-card.assassin {
    --class-color: #b17cff;
    --class-glow: rgba(177,124,255,.4);
}

body.home-page .class-card.archer {
    --class-color: #35e6a0;
    --class-glow: rgba(53,230,160,.4);
}

body.home-page .class-card.priest {
    --class-color: #fff0b5;
    --class-glow: rgba(255,240,181,.4);
}

body.home-page .class-card.druid {
    --class-color: #83d957;
    --class-glow: rgba(131,217,87,.4);
}

body.home-page .class-card.necromancer {
    --class-color: #b45bff;
    --class-glow: rgba(180,91,255,.4);
}

body.home-page .class-card.wizard {
    --class-color: #42baff;
    --class-glow: rgba(66,186,255,.4);
}

/* Details panel */

body.home-page .classes-section #classDetails {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--class-color, var(--gold));
    border-radius: 16px;
    background: linear-gradient(
        145deg,
        rgba(20, 35, 61, .97),
        rgba(7, 15, 30, .97)
    );
    box-shadow:
        0 0 15px var(--class-glow, rgba(241,198,109,.2)),
        inset 0 0 18px var(--class-glow, transparent);
    animation: heroEnter .4s ease both;
}

body.home-page .classes-section #classDetails[hidden] {
    display: none;
}

/* Portrait */

body.home-page .class-portrait {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

body.home-page .class-portrait .detail-class-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(
        0 0 18px var(--class-glow, rgba(53,191,255,.4))
    );
}

/* Details text */

body.home-page #classDetails #detailClassName {
    color: var(--class-color, var(--gold));
    text-align: center;
    font-size: 23px;
}

body.home-page #classDetails #detailDescription {
    text-align: center;
    line-height: 2;
    font-size: 13px;
}

body.home-page #classDetails .class-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

body.home-page #classDetails .class-info-grid > div {
    padding: 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}

body.home-page #classDetails .class-info-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

body.home-page #classDetails .class-info-grid h3 {
    margin-top: 5px;
    color: var(--class-color, var(--gold));
    font-size: 13px;
}

/* Abilities */

body.home-page #detailAbilities {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

body.home-page #detailAbilities p {
    margin: 0;
    padding: 10px 12px;
    border-left: 3px solid var(--class-color, var(--blue));
    border-radius: 8px;
    background: rgba(255,255,255,.045);
    font-size: 12px;
    line-height: 1.8;
}

/* Select button */

body.home-page #classDetails #selectClassBtn {
    width: 100%;
    margin-top: 20px;
    font-family: 'Vazirmatn', sans-serif;
}

/* Tablet */

@media (max-width: 1050px) {
    body.home-page .classes-section .classes-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 16px;
    }

    body.home-page .classes-section .class-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 760px) {
    body.home-page .classes-section .classes-layout {
        grid-template-columns: 1fr;
    }

    body.home-page .classes-section .class-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.home-page .classes-section #classDetails {
        margin-top: 5px;
    }
}

@media (max-width: 380px) {
    body.home-page .classes-section .class-card {
        min-height: 190px;
        padding: 10px 7px;
    }

    body.home-page .classes-section .class-card .class-image {
        height: 105px;
    }

    body.home-page .classes-section .class-card p {
        font-size: 10px;
    }
}
/* =====================================
   MT CRAFT - GAME MODES REDESIGN
===================================== */

body.home-page .features-section .mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 45px auto 0;
}

body.home-page .features-section .mode-card {
    position: relative;
    isolation: isolate;
    min-height: 230px;
    padding: 30px;
    border: 1px solid transparent;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(12, 20, 40, 0.96), rgba(5, 9, 22, 0.97)) padding-box,
        conic-gradient(
            from var(--mode-angle, 0deg),
            #35baff,
            #a855f7,
            #ec4899,
            #e8bd65,
            #35baff
        ) border-box;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.home-page .features-section .mode-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(
        from var(--mode-angle, 0deg),
        #35baff,
        #a855f7,
        #ec4899,
        #e8bd65,
        #35baff
    );
    filter: blur(12px);
    opacity: 0.35;
    animation: modeBorderRotate 6s linear infinite;
}

body.home-page .features-section .mode-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 35px rgba(53, 186, 255, 0.16);
}

body.home-page .features-section .mode-number {
    color: #e8bd65;
    font-size: 13px;
    letter-spacing: 3px;
}

body.home-page .features-section .mode-content {
    position: relative;
    z-index: 1;
}

body.home-page .features-section .mode-content h3 {
    margin: 18px 0 12px;
    color: #ffffff;
    font-size: 22px;
}

body.home-page .features-section .mode-content p {
    color: #c0c9dc;
    line-height: 1.9;
    font-size: 14px;
}

body.home-page .features-section .mode-content a {
    display: inline-block;
    margin-top: 12px;
    color: #e8bd65;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.home-page .features-section .mode-content a:hover {
    color: #ffffff;
}

@keyframes modeBorderRotate {
    from {
        --mode-angle: 0deg;
    }
    to {
        --mode-angle: 360deg;
    }
}

@media (max-width: 650px) {
    body.home-page .features-section .mode-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.home-page .features-section .mode-card {
        min-height: 210px;
        padding: 24px;
    }
}
/* RGB ROTATING BORDER FIX */

@property --mode-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

body.home-page .features-section .mode-card {
    --mode-angle: 0deg;
}

@keyframes modeBorderRotate {
    from {
        --mode-angle: 0deg;
    }
    to {
        --mode-angle: 360deg;
    }
}
/* RGB ANIMATED BORDER */

body.home-page .features-section .mode-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 2px solid transparent;
    background:
        linear-gradient(145deg, #0c1428, #050916) padding-box,
        conic-gradient(
            from var(--rgb-angle, 0deg),
            #35baff,
            #a855f7,
            #ec4899,
            #e8bd65,
            #35baff
        ) border-box;
}

@property --rgb-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

body.home-page .features-section .mode-card {
    animation: rgbBorderAnimation 5s linear infinite;
}

@keyframes rgbBorderAnimation {
    to {
        --rgb-angle: 360deg;
    }
}
/* GAME MODE LOGOS - CLEAR & FULL CARD */

body.home-page .features-section .mode-card {
    position: relative;
    overflow: hidden;
}

body.home-page .features-section .mode-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    opacity: 1;
    filter: none;
    z-index: 0;
    transition: transform 0.4s ease;
}

body.home-page .features-section .mode-card:hover .mode-logo {
    transform: scale(1.04);
}

body.home-page .features-section .mode-content {
    position: relative;
    z-index: 2;
}
/* =====================================
   MT CRAFT - RPG PAGE DESIGN
===================================== */

body.rpg-page {
    margin: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(125, 83, 25, 0.18), transparent 45%),
        linear-gradient(180deg, #080c18 0%, #0b1020 45%, #070a13 100%);
    color: #e9e5d8;
    font-family: 'Vazirmatn', sans-serif;
}

/* HERO SECTION */

.rpg-hero {
    min-height: 490px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 24px;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(5, 8, 17, 0.45), #080c18 100%),
        radial-gradient(ellipse at center, rgba(190, 137, 48, 0.22), transparent 65%);
    border-bottom: 1px solid rgba(211, 166, 79, 0.25);
}

.rpg-hero::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(213, 169, 83, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 70px rgba(194, 143, 48, 0.08),
        inset 0 0 70px rgba(194, 143, 48, 0.06);
}

.rpg-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.rpg-label {
    display: inline-block;
    color: #d9ad58;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.rpg-hero h1 {
    color: #f1d28e;
    font-size: clamp(38px, 7vw, 76px);
    font-weight: 800;
    margin: 0 0 22px;
    text-shadow: 0 0 35px rgba(219, 166, 70, 0.3);
}

.rpg-hero p {
    color: #c0c4d0;
    font-size: 17px;
    line-height: 2.2;
    max-width: 720px;
    margin: auto;
}

/* BACK HOME LINK */

.back-home {
    position: absolute;
    top: 28px;
    right: 35px;
    z-index: 3;
    color: #e7c77e;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.back-home:hover {
    color: #fff0c2;
    text-shadow: 0 0 15px rgba(230, 183, 91, 0.6);
}

/* MAIN CONTENT */

.rpg-main {
    width: min(1150px, calc(100% - 40px));
    margin: 0 auto;
    padding: 65px 0 100px;
}

.rpg-intro {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 65px;
}

.rpg-intro h2,
.rpg-section h2 {
    color: #e6c17b;
    font-size: 27px;
    margin-bottom: 20px;
}

.rpg-intro p,
.rpg-section p {
    color: #aeb5c5;
    font-size: 15px;
    line-height: 2.3;
}
/* CONTENT SECTIONS */

.rpg-section {
    position: relative;
    margin-bottom: 28px;
    padding: 32px;
    background: transparent;
    border: 1px solid rgba(190, 153, 82, 0.18);
    border-radius: 18px;
    overflow: hidden;
    transition: 0.35s ease;
}

.rpg-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #e4bd6e, transparent);
    opacity: 0.75;
}

.rpg-section:hover {
    transform: translateY(-4px);
    border-color: rgba(224, 182, 98, 0.48);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.rpg-section h2 {
    margin-top: 0;
}

.rpg-placeholder {
    margin-top: 24px;
    padding: 30px 20px;
    text-align: center;
    color: #929bad;
    background: rgba(5, 9, 19, 0.5);
    border: 1px dashed rgba(209, 171, 98, 0.3);
    border-radius: 12px;
    font-size: 14px;
}
/* MOBILE */

@media (max-width: 650px) {

    .rpg-hero {
        min-height: 390px;
        padding: 90px 20px 65px;
    }

    .rpg-hero p {
        font-size: 14px;
    }

    .back-home {
        top: 22px;
        right: 20px;
        font-size: 12px;
    }

    .rpg-main {
        width: calc(100% - 28px);
        padding: 45px 0 70px;
    }

    .rpg-section {
        padding: 23px 19px;
    }

    .rpg-section h2,
    .rpg-intro h2 {
        font-size: 22px;
    }

    .rpg-section p,
    .rpg-intro p {
        font-size: 13px;
    }
}
/* RPG INTRODUCTION - TEXT LAYOUT */

body.home-page .rpg-section .section-heading {
    max-width: 850px;
    margin: 0 auto 35px;
    text-align: center;
}

body.home-page .rpg-section .section-heading h2 {
    margin-bottom: 18px;
    line-height: 1.7;
}

body.home-page .rpg-section .section-heading > p:last-child {
    max-width: 760px;
    margin: 0 auto;
    line-height: 2.2;
}

body.home-page .rpg-section .rpg-content {
    display: block;
    max-width: 850px;
    margin: 0 auto;
}

body.home-page .rpg-section .rpg-info {
    width: 100%;
    text-align: center;
}

body.home-page .rpg-section .rpg-info h3 {
    margin-bottom: 18px;
    line-height: 1.8;
}

body.home-page .rpg-section .rpg-info p {
    max-width: 780px;
    margin: 0 auto 16px;
    line-height: 2.2;
}

body.home-page .rpg-section .rpg-info .text-link {
    display: inline-block;
    margin-top: 12px;
}
/* FINAL ACCOUNT SECTION - TEXT LAYOUT */

body.home-page .account-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 85px 20px;
}

body.home-page .account-section .section-subtitle {
    margin-bottom: 18px;
    line-height: 2;
}

body.home-page .account-section h2 {
    max-width: 850px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

body.home-page .account-section > p:not(.section-subtitle) {
    max-width: 700px;
    margin: 0 auto 28px;
    line-height: 2.2;
}

body.home-page .account-section .primary-btn {
    margin-top: 5px;
}
/* COMMUNITY SECTION - TEXT LAYOUT */

body.home-page .community-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 85px 20px;
}

body.home-page .community-section .section-subtitle {
    margin-bottom: 18px;
    line-height: 2;
}

body.home-page .community-section h2 {
    max-width: 850px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

body.home-page .community-section > p:not(.section-subtitle) {
    max-width: 700px;
    margin: 0 auto;
    line-height: 2.2;
}
/* CLASS CARDS - LARGER LOGO */

body.home-page .class-card {
    position: relative;
    overflow: hidden;
}

body.home-page .class-card .class-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 65%;
    margin: 0;
    opacity: 1;
    filter: none;
    z-index: 0;
    transform: scale(1.30);
    transition: transform 0.4s ease;
}

body.home-page .class-card h3 {
    position: relative;
    z-index: 1;
    font-size: 15px;
}

body.home-page .class-card p {
    position: relative;
    z-index: 1;
    font-size: 12px;
}

body.home-page .class-card > span {
    position: relative;
    z-index: 1;
    font-size: 11px;
}

body.home-page .class-card:hover .class-image {
    transform: scale(1.25);
}
/* RPG ACTIVITIES - TEXT ALIGNMENT */

body.home-page .features-section .section-heading {
    max-width: 850px;
    margin: 0 auto 40px;
    text-align: center;
}

body.home-page .features-section .section-heading .section-subtitle {
    margin-bottom: 16px;
    line-height: 2;
}

body.home-page .features-section .section-heading h2 {
    margin-bottom: 20px;
    line-height: 1.8;
}

body.home-page .features-section .section-heading > p:last-child {
    max-width: 760px;
    margin: 0 auto;
    line-height: 2.2;
    text-align: center;
    direction: rtl;
}
/* =====================================
   MT CRAFT - SHOP BACKGROUND
===================================== */

body.shop-page {
    min-height: 100vh;
    background:
        linear-gradient(
            rgba(7, 11, 24, 0.55),
            rgba(7, 11, 24, 0.78)
        ),
        url("images/mtcraft-shop-bg.jpg") center center / cover no-repeat fixed;
    background-color: #070b18;
}

@media (max-width: 768px) {
    body.shop-page {
        background-attachment: scroll;
    }
}
/* =====================================
   MT CRAFT - ACCOUNT LEVEL REWARDS
===================================== */

#accountRewardsList {
    width: 100%;
    margin-top: 24px;
}

.mt-account-reward-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.mt-account-reward {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(18, 27, 49, 0.96), rgba(9, 15, 30, 0.96));
    transition: 0.3s ease;
}

.mt-account-reward:hover {
    border-color: rgba(212, 175, 55, 0.7);
    transform: translateY(-3px);
}

.mt-account-reward-level {
    min-width: 65px;
    padding: 10px 8px;
    text-align: center;
    border-radius: 9px;
    background: rgba(212, 175, 55, 0.12);
    color: #e5c66b;
    font-weight: 800;
    font-size: 13px;
}

.mt-account-reward > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.mt-account-reward strong {
    display: block;
    color: #f2d27a;
    font-size: 15px;
    margin-bottom: 7px;
}

.mt-account-reward p {
    color: #aebbd0;
    font-size: 12px;
    margin: 0 0 7px;
}

.mt-account-reward small {
    color: #8d9bb3;
    font-size: 11px;
}

.mt-account-reward > span {
    color: #e5c66b;
    font-size: 12px;
    font-weight: 700;
}

.mt-account-reward.is-locked {
    opacity: 0.75;
    border-color: rgba(150, 160, 180, 0.18);
}

.mt-account-reward.is-locked .mt-account-reward-level {
    background: rgba(140, 150, 170, 0.12);
    color: #aebbd0;
}

.mt-account-reward.is-locked > span {
    color: #aebbd0;
}

@media (max-width: 600px) {
    .mt-account-reward {
        padding: 14px;
        gap: 10px;
    }

    .mt-account-reward-level {
        min-width: 55px;
        font-size: 11px;
    }
}