/* استيراد الخطوط من Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
@import url('https://fonts.googleapis.com/css?family=Titillium+Web&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

/* تعريف المتغيرات الجذرية */
:root {
    --primary-font: 'Titillium Web', 'Poppins', system-ui, Arial, sans-serif;
    --white: #fff;
    --black: #000;
    --theme-primary: #D98F40;
    --theme-primary-light: #da8e35;
    --theme-secondary: #b4762c;
    --theme-dark: #C87B28;
    --shadow-default: 0 1px 5px 0 rgba(85, 85, 85, .15);
    --border-radius-default: .25rem;
    --transition-default: all .25s ease-in-out;
    --padding-standard: 0 15px 10px 0;
}

/* إعادة ضبط التنسيقات العامة */
* {
    margin: 0;
    padding: 0;
    outline: none;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    background: url(https://www.mahfda.com/assets/images/games_back_mah.jpg) center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    line-height: 1.2;
    color: #f9f9f9;
    font-size: 1rem;
    width: auto;
    text-align: center;
    font-family: var(--primary-font);
    font-family: "Cairo", serif !important;
    font-optical-sizing: auto;
    overflow-x: hidden;
}

/* تنسيقات المدخلات والنصوص */
input[type=text],
input[type=password],
select,
textarea {
    border: 1px solid var(--black);
    border-radius: 2px;
    padding: 4px 10px;
    font-size: 14px;
    box-shadow: inset 0 1px 0 0 var(--white);
}

.button-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .875rem 1.5rem;
    border-radius: var(--border-radius-default);
    transition: var(--transition-default);
    cursor: pointer;
    text-decoration: none;
    font-family: var(--primary-font);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn,
input[type=button],
input[type=submit] {
    color: #3a9200;
    font-size: 1rem;
    font-weight: 400;
    vertical-align: middle;
}

.btn:active,
input[type=button]:active,
input[type=submit]:active {
    position: relative;
    top: 1px;
}

input:disabled {
    opacity: .65;
}

.up_btn {
    background: linear-gradient(135deg, #4FC3F7, #29B6F6) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.3) !important;
}

.up_btn:hover {
    background: linear-gradient(135deg, #29B6F6, #0288D1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.4) !important;
}

.up_btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(79, 195, 247, 0.3) !important;
}

/* شريط التقدم */
.progress-container {
    margin: 15px 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #444444;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4FC3F7, #29B6F6);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

.progress-text {
    color: #4FC3F7;
    font-size: 14px;
    font-weight: 500;
}

.marg {
    margin: 0 auto;
    width: 100%;
}

.idx-text-center {
    text-align: center;
}

.idx-p-5 {
    padding: 3rem;
}

hh1 {
    font-size: 46px;
    color: var(--white);
    font-family: bebas_neuebook;
    margin: 0 0 12px;
}

small {
    font-size: 15px;
    color: #5bb4ca;
}

.idx-custom-hassan-allshow {
    justify-content: center;
    gap: 0;
}

.idx-discord-btn {
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #333447;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    margin-left: 2px;
    transition: background-color .3s ease;
}

.idx-discord-btn:hover {
    background-color: #292a45;
    color: #fff;
    text-decoration: none;
}

.idx-custom-hassan-allshow {
    justify-content: center;
    gap: 10px;
}

.idx-h1 h1 {
    color: #fff;
    font-family: "Cairo", serif;
    font-size: 1rem;
    margin: 2rem 0;
}

.idx-d-flex {
    display: flex !important;
    justify-content: center;
}

.idx-custom-hassan-list-item {
    width: 85%;
    margin: 0 auto;
    background-color: #222231;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    color: #333;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .2rem;
}

.idx-custom-hassan-list-item .idx-gap-1 {
    gap: .2rem !important;
}

.idx-gap-3 {
    gap: .5rem !important;
    background-size: cover;
    background-repeat: no-repeat;
    line-height: 1.2;
    bottom: 0;
    margin-top: 5px;
}

.idx-custom-hassan-list-item small .idx-custom-hassan-cc {
    position: absolute;
    top: 5% !important;
    left: 5% !important;
    color: #fff;
    padding: .3rem .6rem;
    border-radius: 0;
    margin-left: -10px;
}

.idx-mt-3 {
    margin-top: 1rem;
}

.idx-containers.extra {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .2rem;
}

.item {
    margin: 0 10px 20px;
    display: inline-block;
    box-shadow: var(--shadow-default);
    background-color: #11171e;
    width: calc(24% - 20px);
    border-radius: 2px;
    color: #ddd;
    text-align: right;
}

.item .name:hover {
    color: #01a9da !important;
}

.item .image {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 160px;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    position: relative;
}

.item .extra {
    padding: 10px 15px;
    text-align: left;
    background: linear-gradient(to bottom, #38383800, #141424);
}

.item .name {
    display: block;
    margin: 0 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: chocolate;
    text-align: right;
}

.idx-adds-mobile {
    text-align: center;
}

.idx-adds-right {
    position: absolute;
    right: 0;
    width: 110px;
}

.main_body .idx-adds-right {
    left: 0 !important;
    width: 110px;
}

.idx-flex-wrap {
    flex-wrap: wrap;
}

.idx-cf:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.idx-list-item {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.rj-show-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #d98f40;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    opacity: 0;
    transition: opacity .3s ease-in-out;
    z-index: 1000;
}

.rj-show-back-to-top.visible {
    opacity: 1;
}

.main_body {
    position: relative;
    min-height: 100vh !important;
    
}

.main_body .cont {
    
    height: 100%;
    
}

.adds-mobile {
    margin: 1rem 0 0;
    text-align: center;
    padding: 1rem;
    background-color: #d98f40;
    width: 100%;
    min-height: 10vh;
    display: none;
}

.main_body .adds-right,
.main_body .adds {
    width: 15%;
    position: absolute;
    top: 0;
    margin: 10rem 0;
    min-height: 10vh;
    padding: 1rem;
}

/* Reserve intrinsic space for auto-format AdSense blocks to prevent CLS on mobile */
.adsbygoogle[data-ad-format="auto"],
.adsbygoogle[data-ad-format="autorelaxed"] {
    display: block !important;
    min-height: 250px; /* typical mobile banner height */
}
.adsbygoogle[data-full-width-responsive="true"] {
    width: 100% !important;
}

/* Desktop large banners placeholders */
@media (min-width: 992px) {
    .adsbygoogle[data-ad-format="auto"],
    .adsbygoogle[data-ad-format="autorelaxed"] {
        min-height: 280px; /* relaxed/auto often expands on desktop */
    }
    .adsbygoogle[data-ad-format="horizontal"] {
        min-height: 90px; /* leaderboard */
    }
}

/* Stabilize header and footer logos to avoid layout shifts */
.top .logo img {
    width: 140px;
    height: 40px;
    display: block;
}
.mh-footer .mh-footer-logo img {
    width: 140px;
    height: 40px;
    display: block;
}

/* Stabilize list card images on phones using intrinsic aspect ratio */
@media (max-width: 992px) {
    .item .image,
    .custom_hassan_item .image {
        width: 100% !important;
        aspect-ratio: 16 / 9;
        height: auto !important;
        display: block;
        background-size: cover !important;
        background-position: center !important;
    }
}

.main_body .adds {
    right: 0;
    width: 110px;
}

.main_body .adds-right {
    left: 0 !important;
    width: 110px;
}

@media (max-width: 900px) {
    .main_body {
        flex-direction: column !important;
    }

    .main_body .cont {
        width: 100%;
    }

    .main_body .adds,
    .main_body .adds-right {
        display: none !important;
    }

    .adds-mobile {
        display: block;
    }
}

.www {
    position: relative;
}

.marg,
.menus {
    margin: 0 0 !important;
}

.menus {
    float: none !important;
}

.menu-btn-open-close {
    padding: 1rem;
    background-color: transparent;
    border: none;
    color: #fff;
    display: none;
}

.custom_hassan_menus ul {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: .3rem;
}

.custom_hassan_menus ul li a,
.custom_hassan_menus ul form input {
    font-size: .7rem !important;
    font-family: "Cairo", serif !important;
}

@media (max-width: 900px) {
    .menu-btn-open-close {
        display: block;
        order: 1 !important;
    }

    .marg.cf {
        order: 2 !important;
    }

    .custom_hassan_menus {
        position: fixed;
        background-color: #28283b;
        width: 50vw;
        height: 100vh;
        top: 60px;
        left: 0;
        transition: all .5s ease;
        transform: translateX(-100%);
    }

    .custom_hassan_menus.show {
        transform: translateX(0);
    }

    .custom_hassan_menus ul {
        flex-direction: column;
        width: 100%;
        align-self: start;
    }

    .custom_hassan_menus ul li {
        width: 100%;
    }

    .custom_hassan_menus ul li a {
        display: block;
        background-color: transparent !important;
        color: #222 !important;
        font-size: 1rem !important;
    }

    .top .menus a {
        background: #e09b76 !important;
        color: #111 !important;
    }

    .top .menus a:hover {
        color: #e09b76 !important;
        background: #111 !important;
    }

    .drop_links {
        background: #fff !important;
    }
}

.custom_hassan_list-item .containers {
    background-color: #222231;
    padding: 2rem 0;
}

.custom_hassan_cc {
    position: absolute;
    top: 1% !important;
    left: 10% !important;
    color: #fff;
    padding: 0 .1rem;
    border-radius: 0;
    background-color: #000;
}

.custom_hassan_cc i {
    color: #fff;
}

.custom_hassan_cc .custom_hassan_cc_menue {
    position: absolute;
    display: block;
    top: 20px;
    left: 0;
    z-index: 100;
    width: 150px;
    background: #d98f40;
    color: #fff;
    display: none;
    padding: 0 !important;
    margin: 0 !important;
}

.custom_hassan_cc .custom_hassan_cc_menue li {
    display: block;
    width: 100%;
    padding: .2rem 0;
}

.custom_hassan_cc .custom_hassan_cc_menue li:hover {
    background: #eda961;
}

.custom_hassan_cc .custom_hassan_cc_menue li a {
    color: #fff !important;
    text-decoration: none;
    padding: .6rem 0;
    text-align: right;
}

.custom_hassan_cc:hover .custom_hassan_cc_menue {
    display: block;
}

@media (max-width: 670px) {
    .custom_hassan_item {
        width: 100% !important;
        margin: 1rem auto !important;
    }

    .custom_hassan_item .image {
        background-position: top;
    }
}

.footerdas {
    position: relative !important;
    z-index: 1 !important;
}

@media (max-width: 990px) {
    .footerdas .rowdas .footerdas-col {
        width: 50% !important;
    }

    .footerdas .logo img {
        display: block;
        margin-left: auto;
    }

    .footerdas .social-links {
        text-align: right;
    }
}

@media (max-width: 574px) {
    .footerdas .rowdas .footerdas-col {
        width: 100% !important;
    }

    .footerdas .rowdas .footerdas-col ul {
        margin: 0 !important;
        padding: 0 !important;
    }

    .footerdas .rowdas .footerdas-col ul li a,
    .footerdas .rowdas .footerdas-col h4 {
        text-align: center !important;
        padding: 0 !important;
    }

    .footerdas .logo img {
        display: block;
        margin: 1rem auto;
    }

    .footerdas .social-links {
        text-align: center;
    }
}

.rgt {
    width: 100% !important;
}

.view {
    margin: 3rem auto;
    
    padding: 0 !important;
}

.custom-auther-info {
    margin-bottom: 0 !important;
}

.custom_hassan_list-item .container .card {
    border-radius: 0 !important;
    background: #444;
    box-shadow: none !important;
    border: none !important;
    font-size: 1rem !important;
}

.custom_hassan_list-item .container .card:hover {
    font-size: 1rem !important;
}

.custom_hassan_list-item .tabs input+label {
    border-radius: 0 !important;
    background: #383838 !important;
    border: none !important;
    width: auto !important;
    padding: 10px 25px !important;
    font-size: 14px !important;
    transition: all .3s ease;
    align-items: center;
}

.custom_hassan_list-item .tabs input:checked+label {
    background: #D98F40 !important;
    color: #fff !important;
}

.custom_hassan_list-item .tabs input:checked+label .numbers-tab {
    color: #D98F40 !important;
    background: #fff !important;
}

.custom_hassan_list-item .tabs .numbers-tab {
    background: #D98F40 !important;
    color: #fff !important;
    min-width: 10px;
    aspect-ratio: 1;
    padding: .3rem;
    margin-inline-start: .5rem;
    order: 2;
}

.custom_hassan_list-item .tabs .content .item {
    background: #383838 !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    width: 100% !important;
    display: none;
    margin: 0 !important;
    padding: 1rem !important;
}

.custom_hassan_list-item .tabs .content .item.show {
    display: block;
}

.custom_hassan_list-item .tabs .numbers-tab.descrip-tab-num {
    background: transparent !important;
    color: transparent !important;
    visibility: hidden;
}

.custom_hassan_list-item .content {
    background: #444 !important;
    border: none !important;
    padding: 20px !important;
    margin-top: 0 !important;
}

.custom_hassan_list-item .content .item {
    padding: 0 !important;
}

.custom_hassan_list-item .tab-title {
    color: #D98F40 !important;
    font-size: 20px !important;
    margin-bottom: 15px !important;
    -webkit-text-fill-color: #D98F40 !important;
}

.custom_hassan_list-item .custom-description p {
    line-height: 1.6 !important;
    font-size: 15px !important;
    color: #fff !important;
}

.custom_hassan_list-item .custom-downloads {
    background: #383838 !important;
    padding: 15px !important;
    margin-top: 15px !important;
}

.custom_hassan_list-item .wbox.comm {
    background: #383838 !important;
    margin-bottom: 10px !important;
    border-radius: 5px !important;
}

.custom-item-box.custom-description .media {
    width: 100%;
}

.media-img {
    width: 100% !important;
}

.custom_hassan_list-item #comments_text {
    background: #383838 !important;
    padding: 2rem !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
}

.custom_hassan_list-item #comments_text form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.custom_hassan_list-item #comments_text textarea {
    width: 100% !important;
    min-height: 100px !important;
    background: #444 !important;
    border: 1px solid #4a4a4a !important;
    border-radius: 5px !important;
    padding: 15px !important;
    color: #fff !important;
    font-size: 14px !important;
    resize: vertical !important;
    transition: all .3s ease !important;
    margin: 0 !important;
}

.custom_hassan_list-item #comments_text textarea:focus {
    border-color: #D98F40 !important;
    box-shadow: 0 0 0 2px rgba(217, 143, 64, .2) !important;
}

.custom_hassan_list-item #comments_text .commint-btn {
    align-self: flex-end !important;
    background: #D98F40 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: all .3s ease !important;
}

.custom_hassan_list-item #comments_text .commint-btn:hover {
    background: #c27b2d !important;
    transform: translateY(-1px) !important;
}

.custom_hassan_list-item .comments_list {
    margin-top: 20px !important;
}

.custom_hassan_list-item .wbox.comm {
    display: flex !important;
    gap: 15px !important;
    background: #404040 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-bottom: 1px !important;
    transition: all .3s ease !important;
}

.custom_hassan_list-item .wbox.comm:hover {
    background: #444 !important;
}

.custom_hassan_list-item .wbox.comm img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.custom_hassan_list-item .com_rgt {
    flex: 1 !important;
}

.custom_hassan_list-item .com_name {
    margin-bottom: 8px !important;
}

.custom_hassan_list-item .com_name a {
    color: #D98F40 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.custom_hassan_list-item .com_txt {
    color: #d1d1d1 !important;
    margin-bottom: 10px !important;
}

.custom_hassan_list-item .com_info {
    color: #888 !important;
    font-size: 12px !important;
}

.custom_hassan_list-item .com_info a {
    color: #D98F40 !important;
    margin-right: 10px !important;
    text-decoration: none !important;
}

.custom_hassan_list-item .com_info a:hover {
    text-decoration: underline !important;
}

.custom_hassan_list-item .comments_title {
    color: #D98F40 !important;
    font-size: 18px !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #4a4a4a !important;
}

.top {
    z-index: 100;
    width: 100%;
    position: fixed;
    height: 60px;
    background: #0e0e0e;
}

.top .icn {
    display: inline-block;
    background-image: url(images/top_icons.png);
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    vertical-align: sub;
    margin-right: 7px;
}

.top .i_profile {
    background-position: -5px -2px;
}

.top .i_myups {
    background-position: -28px -3px;
}

.top .i_settings {
    background-position: -50px -3px;
}

.top .i_logout {
    background-position: -70px -3px;
}

.top .logo {
    margin-left: 10px;
    float: left;
    opacity: .8;
    margin-top: 10px;
    cursor: pointer;
}

.top .logo:hover {
    opacity: 1;
}

.top .search {
    float: left;
}

.top .search input[type=text] {
    margin-top: 15px;
    margin-left: 15px;
    width: 202px;
    background-image: none; /* إزالة أيقونة العدسة */
    padding-left: 10px !important; /* تقليل padding */
    border: 1px solid var(--black);
    border-radius: 2px;
    font-size: 14px;
    box-shadow: inset 0 1px 0 0 var(--white);
}

.cats {
    font-family: var(--primary-font);
    background-color: #24262b;
    padding-top: 60px;
    box-shadow: var(--shadow-default);
}

.cats a {
    background-color: var(--theme-primary);
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    min-height: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .06);
    transform: translateY(0);
}

.cats a:hover {
    transform: translateY(-1px);
}

.cats .sel {
    font-weight: 700;
    background-color: #fb8332;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.cf:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.loading {
    background-image: url(images/loading.gif);
    background-repeat: no-repeat;
    background-position: center;
}

.wbox {
    padding: 1.5rem;
    box-shadow: var(--shadow-default);
    background-color: #383c3f;
    border-radius: 2px;
    margin-bottom: .1rem;
}

.default {
    min-height: 400px;
    padding: 30px 0;
    font-weight: 700;
}

.default-gray {
    background-color: dimgrey;
    min-height: auto;
    padding: 0;
}

.default-gray h4 {
    color: #F4F4F5;
}

.list-item a {
    color: #555 !important;
}

.list-item a:hover .item .image {
    animation-name: example;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
}

@keyframes example {
    from {
        -webkit-filter: brightness(100%);
    }
    to {
        -webkit-filter: brightness(160%);
    }
}

.item .infos {
    color: #999;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item .infos .i_down {
    background-image: url(images/down_ico.png);
    display: inline-block;
    width: 14px;
    margin: 0 0px 0 0px;
    height: 15px;
}

.item .infos .i_coms {
    background-image: url(images/ballon_ico.png);
    display: inline-block;
    width: 18px;
    margin: 0 1px 0 9px;
    height: 16px;
}

.more {
    text-align: center;
    font-size: 13px;
    padding: 5px 120px;
    text-align: left;
}

.more a {
    display: inline-block;
    background-color: #878787;
    color: var(--white);
    font-weight: 700;
    border-radius: 5px;
    padding: 5px 8px;
    margin: 0 5px;
}

.more a:hover {
    background-color: #444545;
}

.more .sel {
    background-color: #a90c0c;
}

.access {
    color: #bdbdbd;
    padding: 15px 0 30px;
    width: 580px;
}

.access .not {
    text-align: center;
    font-size: 13px;
}

.w200 {
    width: 200px;
}

.w380 {
    width: 380px !important;
}

.msg {
    margin-bottom: 14px;
    border-radius: 3px;
    text-align: center;
    font-weight: 700;
    color: var(--white);
    padding: 7px 0;
}

.mt_e {
    background-color: #ec1d1d;
}

.mt_s {
    background-color: green;
}

.access label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: right;
}

.access label input {
    display: block;
    margin-top: 3px;
}

.access #terms {
    font-size: 13px;
    margin-bottom: 11px;
}

.settings .wlft {
    float: left;
    width: 320px;
    margin-right: 15px;
}

.settings .wrgt {
    float: left;
    width: 620px;
}

.settings .s_menus a {
    display: block;
    margin-bottom: 2px;
    padding: 8px 10px;
    border: 1px solid var(--white);
    border-radius: 4px;
}

.settings td {
    padding: var(--padding-standard);
}

.settings .wrgt td:first-child {
    color: #a2dddb;
}

.settings .s_menus .sel {
    background-color: #01a9da !important;
    color: var(--white) !important;
    border: 1px solid #01a9da !important;
}

.settings .s_menus a:hover {
    border: 1px solid #01a9da;
}

.settings .wbox {
    margin-bottom: 15px;
}

.settings .wbox h3 {
    font-weight: 100;
    margin-bottom: 10px;
}

.settings input[type=text],
.settings input[type=password],
.settings textarea {
    display: block;
    width: 300px;
    margin-top: 5px;
}

.settings #imgprev {
    display: block;
    margin: 5px 0;
    width: 65px;
    height: 65px;
    float: left;
    margin-right: 10px;
}

textarea {
    resize: none !important;
}

.settings small {
    display: block;
    margin-top: 5px;
}

/* ألوان وعناوين داخل .wbox */
.wbox b {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-size: 1.1rem;
    color: azure;
}

.wbox small {
    color: #27a105;
    font-size: 0.9rem;
}

/* الحاوية الرئيسية تستخدم Flexbox مع تباعد */
.upload .up_form {
    
    justify-content: space-between;
    gap: 2rem;
    background-color: #343332;
    padding: 2rem;
    border-radius: var(--border-radius-default);
    box-shadow: var(--shadow-default);
    flex-wrap: wrap; /* السماح بالالتفاف في الشاشات الصغيرة */
    box-sizing: border-box;
}

/* صندوق المعلومات الرئيسي يأخذ عرض كامل */
.wbox.mods_infos {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #14161b;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

/* إزالة الفلوات واعتماد الفليكس فقط */
.upload .lft,
.upload .rgt {
    float: none !important;
    width: auto !important;
    flex: 1 1 0;
    min-width: 300px; /* يمكنك تعديل الحد الأدنى للعرض حسب الحاجة */
    box-sizing: border-box;
}

/* مساحات الحقول والادخالات */
.upload input[type=text],
.upload textarea,
.upload select,
.upload input[type=file] {
    margin-top: 6px;
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 14px;
    background-color: #1e2120;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.upload input[type=text]:focus,
.upload textarea:focus,
.upload select:focus {
    border-color: #ff8c00;
    outline: none;
}

.upload textarea {
    margin-bottom: 5px;
    resize: vertical;
    min-height: 180px;
    font-family: Tahoma, Arial, sans-serif;
}

/* إزالة عرض ثابت */
.upload .w420 {
    width: 100% !important;
}

/* جدول داخل .mods_infos */
.upload .mods_infos table {
    padding-bottom: 15px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 15px 10px;
}

.upload .gallery {
    margin-top: 15px;
}

.upload .gallery .uimg {
    text-align: center;
    margin-bottom: 10px;
    float: left;
    width: 180px;
}

.upload .gallery .uimg:nth-child(even) {
    margin-left: 8px;
}

.upload .gallery .img_prev {
    background-color: var(--white);
    background-repeat: no-repeat;
    height: 105px;
    margin-bottom: 8px;
    background-size: contain;
    background-position: center;
    cursor: move;
    border: 1px solid #dedede;
}

.upload .gallery .remove_btn {
    background-color: #d64040;
    font-size: 12px !important;
    padding: 4px 6px;
    font-weight: 400 !important;
    text-transform: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

/* تم إزالة شريط التقدم القديم واستبداله بالجديد */

.upload .file_res {
    display: none;
    border: 1px dashed #1caad9;
    background-image: url(images/saved.png);
    background-repeat: no-repeat;
    font-size: 13px;
    padding: 5px 10px 5px 32px;
    border-radius: 3px;
    margin-top: 10px;
    background-position: 8px 5px;
}

.upload #rej_reason {
    display: none;
    margin-bottom: 20px;
}

.upload .rej_div {
    background-image: url(images/warning.png);
    background-repeat: no-repeat;
    background-position: 377px 13px;
    background-color: #b73e3e;
    color: var(--white);
    padding: 25px;
    text-shadow: 1px 1px #a21515;
    font-size: 13px;
    margin-bottom: 25px;
    border-radius: 2px;
}

.upload .rej_div #mreason {
    background: #d46868;
    border-radius: 3px;
    margin-top: 12px;
    padding: 15px;
    margin-bottom: 10px;
}

/* Responsive: تكديس الأعمدة في الشاشات الصغيرة */
@media (max-width: 992px) {
    .upload .up_form {
        flex-direction: column;
        padding: 1rem;
    }
    .upload .lft,
    .upload .rgt {
        flex-basis: 100% !important;
        min-width: auto;
        width: 100% !important;
        margin: 0 0 1rem 0;
    }
}

.adm_edit td,
.item_edit td {
    padding: var(--padding-standard);
}

.adm_edit td:first-child,
.item_edit td:first-child {
    font-weight: 700;
    color: #666;
}

.adm_edit input[type=text],
.item_edit input[type=text],
.adm_edit textarea,
.item_edit textarea {
    width: 280px;
}

.item_edit small {
    display: block;
    margin-top: 1px;
    color: #666;
}

.profile {
    margin-bottom: 30px;
}

.profile .grad {
    color: var(--white);
    margin-bottom: 20px;
    background-image: url(images/bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 160px;
}

/* VIP profile background override */
.profile.vip-active .grad{
    background-image: url(images/vip.jpg);
}

.profile .grad .image {
    border-radius: 3px;
    background-size: cover;
    height: 120px;
    background-position: center;
    float: left;
    width: 120px;
    background-repeat: no-repeat;
    background-color: var(--black);
    margin-top: 20px;
    margin-right: 25px;
}

.profile .grad .infos {
    float: left;
    width: 700px;
}

.profile .grad .username {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 3px;
    margin-top: 15px;
}

.profile .ru_vau span {
    display: inline-block;
    font-size: 13px;
    margin-left: 5px;
}

.profile .admin_tag {
    background-color: #d8973c;
    color: var(--white);
    display: inline-block;
    margin-left: 2px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: lighter;
    padding: 3px 8px;
    vertical-align: super;
}

.upsent {
    display: none;
}

.ustats {
    font-weight: 700;
    font-size: 11px;
    width: 100px;
    text-align: center;
    display: inline-block;
    margin-top: 166px;
    margin-left: 90px;
    padding: 4px 10px;
    color: var(--white) !important;
    border-radius: 4px;
}

.s0 {
    background-color: #d6b748;
}

.s0:before {
    content: "Pending";
}

.s1 {
    background-color: #393;
}

.s1:before {
    content: "Approved";
}

.s2 {
    background-color: red;
}

.s2:before {
    content: "Rejected";
}

.s3 {
    background-color: #d6b748;
}

.s3:before {
    content: "Pending (Resent)";
}

.down {
    padding: 25px 0 20px;
    min-height: 400px;
}

.down ._btn {
    background-color: #1caad9 !important;
    padding: 15px 25px 15px 50px;
    font-weight: 700;
    background-image: url(images/down.png);
    background-position: 14px 12px;
    background-repeat: no-repeat;
}

.down .dlft {
    margin-top: 95px;
    float: left;
    width: 450px;
    margin-right: 25px;
}

.down .adsbox {
    margin-top: 150px;
    float: right;
    height: 100px;
    width: 500px;
}

.down .adsbox h3 {
    color: #666;
    display: block;
    margin-bottom: 10px;
}

.preview {
    font-weight: 700;
    background: #fffdea;
    text-align: center;
    border: 1px solid #f7eeac;
    padding: 10px 0;
    
}

.list-users .uitem {
    margin: 0 10px 20px;
    float: left;
    box-shadow: var(--shadow-default);
    background-color: #161616;
    width: 300px;
    height: 70px;
    border-radius: 2px;
}

.list-users .uitem img {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    float: left;
}

.list-users .uitem .infos {
    font-size: 12px;
    width: 210px;
    float: left;
    padding: 10px 0;
    color: #888;
}

.list-users .uitem #username {
    font-weight: 700;
    width: 200px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: darkorange;
}

.big-loader {
    display: none;
    background-image: url(images/big_loader.gif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
    width: 40px;
    margin-left: 40px;
    height: 58px;
    position: fixed;
}

.modal-bg,
.img-viewer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .2);
    z-index: 99999;
    animation: mfade .4s;
}

.img-viewer {
    cursor: pointer !important;
}

.modal {
    color: #ffffff;
    font-size: 18px;
    margin: auto;
    position: absolute;
    top: -100px;
    left: 0;
    bottom: 0;
    right: 0;
    background: var(--white);
    overflow-x: auto;
    border: 1px solid #b7b9c3;
    border-radius: 3px;
    box-shadow: 1px 3px 10px 0 #555;
    width: 300px;
    height: 150px;
}

.modal .m-title {
    line-height: 20px;
    color: #ff9000;
    padding: 10px 22px;
    border-bottom: 1px solid #f4f4f4;
    background-color: maroon;
}

.modal .m-title input[type=button] {
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 2px 7px !important;
    float: right;
}

.modal .m-body {
    padding: 12px 20px;
    background-color: darkgreen;
}

.img-viewer img {
    background: #161616;
    box-shadow: 0 3px 9px #333;
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 630px;
    max-width: 800px;
}

.pre_up {
    margin-top: 10px;
    display: none;
}

.pre_up_box {
    word-wrap: break-word;
    font-size: 13px !important;
    border: 1px dashed #dedede;
    border-radius: 3px;
    background-color: #fdfdfd;
    padding: 15px;
}

.pre_up_box ul {
    padding: 10px 10px 10px 22px !important;
}

.pre_up_box li {
    margin-bottom: 2px;
}

.dashboard {
    padding: 30px 0;
}

.dashboard td {
    padding: 5px 10px 0 0;
}

.dashboard td:first-child {
    color: #666;
}

.dashboard .wbox {
    margin-bottom: 15px;
}

.dashboard .wlft {
    float: left;
    width: 565px;
}

.dashboard .wrgt {
    float: left;
    width: 370px;
    margin-left: 20px;
}

.dashboard .admin_notes {
    width: 295px;
    height: 185px;
}

.dashboard .admins_list a {
    border: 1px solid #01a9da;
    display: inline-block;
    margin: 0 5px 10px;
    padding: 8px;
    border-radius: 4px;
}

.dashboard .admins_list a:hover {
    background-color: #01a9da;
    color: var(--white) !important;
}

.adm_mods .mods_opts {
    margin-bottom: 15px;
}

.adm_mods .mods_opts a {
    border-radius: 3px;
    display: inline-block;
    padding: 4px 8px;
    margin-right: 15px;
}

.adm_mods .mods_opts .sel {
    color: var(--white) !important;
    background-color: #01a9da !important;
}

.adm_settings,
.adm_ads {
    width: 640px !important;
}

.adm_settings td,
.adm_ads td {
    padding: 5px 20px 5px 5px;
}

.adm_settings small,
.adm_ads small {
    display: block;
    margin-top: 5px;
}

.adm_settings input[type=text],
.adm_ads input[type=text] {
    width: 340px;
}

.adm_ads textarea {
    width: 350px;
    height: 100px;
}

.adm_settings .up_limit {
    border-top: 1px solid #e8e8e8;
    border: 1px solid #f5e8c3;
    background: #fffce2;
    margin-top: 25px;
}

.adm_settings .up_limit h4 {
    margin-bottom: 5px;
    color: #666;
}

.edit_user {
    width: 700px;
}

.edit_user td {
    padding: 6px 10px;
}

.edit_user input[type=text],
.edit_user textarea {
    width: 300px;
}

.edit_user #avatar_pic {
    vertical-align: middle;
    display: inline-block;
    margin-right: 10px;
}

.no_mods {
    color: #777;
    padding: 55px 25px;
}

.adsbox {
    padding: 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

ul {
    list-style: none;
}

h1 {
    color: #c3e4ec;
    font-family: bebas_neuebook;
    font-size: 22px;
    color: #fff;
}

h2 {
    display: block;
    font-size: 1.1em;
    margin-block-start: .83em;
    margin-block-end: .83em;
    margin-inline-start: 0;
    margin-inline-end: 0;
    font-weight: 700;
    color: #fc8444;
}

.download-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.download-btn {
    position: relative;
    background: #4285F4;
    color: var(--white);
    width: 260px;
    padding: 18px 0;
    text-align: center;
    font-size: 1.3em;
    font-weight: 400;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(1, 1, 1, .15);
    transition: background .3s ease;
}

.download-btn:hover {
    background: #2874F3;
}

.download-btn i {
    margin-left: 5px;
}

.countdown {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
}

.countdown span {
    color: #0693F6;
    font-size: 1.5em;
    font-weight: 800;
}

.pleaseWait-text {
    font-size: 1.1em;
    font-weight: 600;
    display: none;
}

.manualDownload-text {
    font-size: 1.1em;
    font-weight: 600;
    display: none;
}

.manualDownload-link {
    color: #0693F6;
    font-weight: 800;
    text-decoration: none;
}

.das {
    display: inline;
}

.q1 {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .2);
    transition: .3s;
    width: 7.5rem;
    display: block;
    color: #adaeac;
    background-image: url(/assets/dasimg/bg_game_header.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: #2d2d2d;
    font-size: 14px;
}

.q2 {
    width: 100%;
    height: auto;
    padding: 2px 1px;
    font-size: 14px;
    text-align: center;
}

.ww {
    width: 100%;
    height: auto;
    width: 7.5rem;
    font-size: 14px;
}

.qq {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.h2 {
    font-size: 1rem;
    width: 90%;
    text-align: left;
    color: chocolate;
}

b,
strong {
    font-weight: bolder;
    font-size: 14px;
}

/* تنسيقات بطاقات المشاركات لميزة الإعجاب */
/* تصميم جديد ومحسن للبطاقات */
.mod-card,
.custom_hassan_item {
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
}

/* VIP card styling */
.vip-card {
    position: relative;
    background: linear-gradient(180deg, rgba(217,143,64,0.08), rgba(0,0,0,0)) !important;
    outline: 1px solid rgba(217,143,64,0.45);
    box-shadow: 0 0 0 2px rgba(217,143,64,0.15), 0 10px 20px rgba(217,143,64,0.08) !important;
}
.vip-card:hover {
    box-shadow: 0 0 0 2px rgba(217,143,64,0.3), 0 14px 28px rgba(217,143,64,0.12) !important;
}
.vip-corner-badge {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    background: linear-gradient(135deg, #2b1e0f, #5a3b18);
    color: #D98F40;
    border: 1px solid rgba(217,143,64,0.6);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Top-left avatar on view pages */
.vip-top-left-avatar{position:absolute;left:10px;top:10px;width:54px;height:54px;border-radius:50%;overflow:hidden;z-index:9;box-shadow:0 0 0 2px rgba(0,0,0,.65),0 0 18px rgba(217,143,64,.6)}
.vip-top-left-avatar img{width:100%;height:100%;object-fit:cover}
.left-wrapper-avatar{position:absolute;left:0;top:0;bottom:0;width:64px;display:flex;align-items:flex-start;justify-content:flex-start;pointer-events:none}
.left-wrapper-avatar .vip-top-left-avatar{position:relative;left:8px;top:8px}
.vip-corner-badge i { color: #ffd37d; }

/* VIP flame glow under image (bottom quarter height) */
.vip-card .mod-image { position: relative; overflow: hidden; }
.vip-card .mod-image::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 27%;
    background:
      radial-gradient(120px 60px at 10% 100%, rgba(255,180,0,.35), transparent 60%),
      radial-gradient(140px 70px at 30% 100%, rgba(255,140,0,.35), transparent 60%),
      radial-gradient(120px 60px at 50% 100%, rgba(255,200,0,.35), transparent 60%),
      radial-gradient(140px 70px at 70% 100%, rgba(255,120,0,.35), transparent 60%),
      radial-gradient(120px 60px at 90% 100%, rgba(255,170,0,.35), transparent 60%),
      linear-gradient(to top, rgba(217,143,64,.65) 0%, rgba(217,143,64,0) 100%);
    mix-blend-mode: screen;
    animation: vip-flame-move 2.8s ease-in-out infinite alternate;
    transform-origin: bottom center;
    pointer-events: none;
}

@keyframes vip-flame-move {
  0%   { transform: translateY(0) scaleY(1);         filter: blur(.4px) brightness(1); }
  50%  { transform: translateY(-2%) scaleY(1.02);    filter: blur(.8px) brightness(1.07); }
  100% { transform: translateY(-4%) scaleY(1.04);    filter: blur(1px) brightness(1.1); }
}

/* Neater VIP info layout */
.vip-card .mod-info { background: linear-gradient(180deg, rgba(217,143,64,0.06), rgba(0,0,0,0)); border-top: 1px solid rgba(217,143,64,0.18); gap: 6px; direction: ltr; text-align: left; }
.vip-card .mod-title { font-size: 17px; font-weight: 800; letter-spacing: .2px; margin-bottom: 8px; }
.vip-card .mod-author, .vip-card .mod-team, .vip-card .mod-date, .vip-card .mod-version, .vip-card .mod-type { color: #cfcfd6; display: flex; align-items: center; gap: 6px; justify-content: flex-start; }
.vip-card .mod-stats { border-top: 1px solid rgba(217,143,64,0.18); padding-top: 8px; justify-content: space-between; direction: ltr; text-align: left; }
.vip-card .stat-item { color: #e6e6e6; }

/* Normal cards: ensure icons appear before text (RTL) */
.custom_hassan_item:not(.vip-card) .mod-info { direction: ltr; text-align: left; }
.custom_hassan_item:not(.vip-card) .mod-info .infos { display: inline-flex; align-items: center; gap: 6px; flex-direction: row; justify-content: flex-start; }
.custom_hassan_item:not(.vip-card) .mod-info .infos i { font-size: 13px; }

/* Post avatar in list cards */
.custom_hassan_item .post-avatar-badge{position:absolute;left:8px;top:8px;z-index:15;width:34px;height:34px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 2px rgba(0,0,0,.6), 0 0 12px rgba(217,143,64,.55)}
.custom_hassan_item .post-avatar-badge img{width:100%;height:100%;object-fit:cover}
.custom_hassan_item.vip-card .post-avatar-badge{box-shadow:0 0 0 2px rgba(217,143,64,.7), 0 0 16px rgba(217,143,64,.75)}

.mod-card:hover,
.custom_hassan_item:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25) !important;
}

.custom_hassan_item .name {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.custom_hassan_item .extra {
    padding: 15px !important;
}

.custom_hassan_item .image {
    height: 260px !important;
}

/* تنسيق قسم الإحصائيات */
.mod-stats {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    direction: rtl;
}

.stat-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #ddd;
    margin: 0 3px;
    flex-direction: row-reverse;
}

.stat-item i {
    margin-left: 5px;
    font-size: 14px;
}

/* تنسيق أيقونة الإعجاب في القائمة */
.custom_hassan_item .fa-heart,
.stat-heart {
    color: #000000 !important;
    transition: transform 0.3s ease;
}

.custom_hassan_item:hover .fa-heart,
.mod-card:hover .stat-heart {
    transform: scale(1.2);
}

/* تنسيق زر الإعجاب في صفحة العرض */
#like-button {
    display: inline-flex;
    align-items: center;
    background: #385e12;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

#like-icon {
    font-size: 18px;
    margin-left: 6px;
    transition: transform 0.3s ease, color 0.3s ease;
}

#like-icon.liked {
    color: #e74c3c;
}

#like-button:hover #like-icon {
    transform: scale(1.2);
}

#like-count {
    font-weight: bold;
    font-size: 16px;
    margin-left: 6px;
    transition: color 0.3s ease;
}

/* ===== Best Subscribers BG Section ===== */
.block-bg {
    background: url('/assets/img/section_bg.svg') center/cover no-repeat;
    padding: 2rem 0;
}

/* ===== Overrides for cat page layout: remove left gap and align sidebar flush to screen edge ===== */
.qq.custom_hassan_list-item { justify-content: flex-start !important; }
.qq.custom_hassan_list-item .cat-page-layout { width: 100vw !important; margin-left: calc(50% - 50vw) !important; grid-template-columns: 320px 1fr !important; padding-left: 0 !important; }
.qq.custom_hassan_list-item .cat-filters { margin-left: 0 !important; }
.qq.custom_hassan_list-item .containers { margin-left: 0 !important; }


.best-subscribers-section .inner {
    max-width: 1800px;
    margin: auto;
    padding: 0 1rem;
}

.subscribers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    background-color: #222231;
}

.subscriber-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
}

.subscriber-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}

.subscriber-card .avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--theme-primary);
    display: block;
}

.subscriber-name {
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-profile {
    display: inline-block;
    font-size: .8rem;
    padding: 6px 14px;
    border-radius: 4px;
    background: var(--theme-primary);
    color: #fff;
    transition: background .2s;
}

.btn-profile:hover {
    background: var(--theme-primary-light);
}

@media (max-width: 600px) {
    .subscribers-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .subscriber-card {
        padding: .75rem;
    }

    .subscriber-card .avatar {
        width: 70px;
        height: 70px;
    }

    .subscriber-name {
        font-size: .85rem;
    }
}

/* Best Subscribers Section */
.best-subscribers-section {
    background: #26282b;
    border-radius: 8px;
}

.subscribers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.subscriber-card {
    width: 160px;
    background: #1d1f20;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.subscriber-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}

.subscriber-avatar {
    display: block;
    width: 90px;
    height: 90px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--theme-primary);
}

.subscriber-name {
    color: #fff;
    font-size: .95rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.btn-profile {
    background: var(--theme-primary);
    color: #fff;
    padding: 6px 12px;
    font-size: .8rem;
    border-radius: 4px;
}

.btn-profile:hover {
    background: var(--theme-primary-light);
}

@media (max-width: 600px) {
    .subscriber-card {
        width: 120px;
        padding: .75rem;
    }

    .subscriber-avatar {
        width: 70px;
        height: 70px;
    }

    .subscriber-name {
        font-size: .85rem;
    }
}

/* ===== Best Subscribers (isolated section) ===== */
.best-subscribers-section {
    background: #222231;
    padding: 1rem 0.5rem;
    border-radius: 8px;
}

.best-subscribers-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.subscribers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.subscriber-card {
    width: 150px;
    background: #1d1f20;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.subscriber-avatar {
    display: block;
    width: 90px;
    height: 90px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--theme-primary);
}

.subscriber-name {
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-profile {
    display: inline-block;
    font-size: .75rem;
    padding: 6px 14px;
    border-radius: 4px;
    background: var(--theme-primary);
    color: #fff;
    transition: background .2s;
}

/* تعطيل الإعلانات الجانبية اليدوية نهائياً لتفادي التعارض مع Google Side rail */
.main_body .adds,
.main_body .adds-right,
.idx-adds-right {
    display: none !important;
}

/* تنسيق section-box */
.section-box {
    margin: 2rem auto;
    max-width: 1800px;
    padding: 0.1rem;
    background: #222231;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

/* Defer below-the-fold rendering to improve LCP/FCP while preserving layout */
.section-box,
.best-subscribers-section,
#video-mods-section {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

.section-box h2.idx-h1 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* تنسيق زر عرض المزيد */
.view-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ca6027;
    border: 2px solid #000000;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    
    text-align: center;
}

.view-more-btn:hover {
    background-color: #58280e;
    color: #000;
    transform: translateY(-2px);
}

.view-more-btn i {
    margin-left: 8px;
}

.trumbowyg-box,
.trumbowyg-editor-box {
    position: relative;
    width: 100%;
    border: 1px solid #d7e0e2;
    color: aliceblue;
}

.form-section {
    color: #fff;
}

.form-section .field-label,
.form-section .field-note {
    display: block;
    color: #f01f1f;
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: bold;
}

.form-section input[type="text"] {
    width: 100%;
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.new-site-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: red;
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    animation: pulse 1.2s infinite;
    z-index: 5;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hot-site-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ff4d4d; /* خلفية حمراء للدلالة على "Hot" */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* علامات الفئة - تظهر على يسار الكرت */
.category-badge {
    /* قاعدة عامة للعلامات - لا تحتوي على خصائص تتعارض مع القواعد المخصصة */
    z-index: 10;
    transition: all 0.3s ease;
}

/* قواعد مشتركة للعلامات */
.category-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-badge i {
    font-size: 10px;
}

/* ألوان مختلفة لكل فئة */
.pc-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background-color: #007acc;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.ps4-badge {
    position: absolute;
    top: 2px;
    border-left: 90px;
    background-color: #0070d1;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.console-badge {
    position: absolute;
    top: 2px;
    left: 80px;
    background-color: #6c757d;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.fallout-badge {
    position: absolute;
    top: 2px;
    left: 160px;
    background-color: #dc2626;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.baldurs-badge {
    position: absolute;
    top: 2px;
    left: 240px;
    background-color: #059669;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.cyberpunk-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #7c2d12;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.witcher-badge {
    position: absolute;
    top: 2px;
    left: 320px;
    background-color: #1e3a8a;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.gta-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #059669;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.rdr-badge {
    position: absolute;
    top: 2px;
    left: 400px;
    background-color: #8b0000;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.ds-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #1f2937;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.rs-badge {
    position: absolute;
    top: 2px;
    left: 480px;
    background-color: #dc2626;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.stardew-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #059669;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.mods-badge {
    position: absolute;
    top: 2px;
    left: 560px;
    background-color: #7c3aed;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.trainer-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #f59e0b;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.programs-badge {
    position: absolute;
    top: 2px;
    left: 640px;
    background-color: #6b7280;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.default-badge {
    position: absolute;
    top: 2px;
    left: 720px;
    background-color: #6b7280;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* تحسين العرض على الشاشات الصغيرة */
@media (max-width: 768px) {
    .pc-badge,
    .ps4-badge,
    .console-badge,
    .fallout-badge,
    .baldurs-badge,
    .cyberpunk-badge,
    .witcher-badge,
    .gta-badge,
    .rdr-badge,
    .ds-badge,
    .rs-badge,
    .stardew-badge,
    .mods-badge,
    .trainer-badge,
    .programs-badge,
    .default-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .category-badge i {
        font-size: 9px;
    }
    #video-mods-section {
    max-width: 1800px !important;
    margin: 0 auto !important;
    width: 100% !important;
}
}

