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

body {
    background-color: #0b0f0b;
    color: #ffffff;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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


a {
    text-decoration: none;
    color: #9cff57;
    transition: 0.3s;
}

a:hover {
    color: #7ee13f;
}

.navbar {
    width: 100%;
    background-color: #111711;
    border-bottom: 1px solid #1f2b1f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    gap: 20px;
    flex-wrap: nowrap;
}

.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo img {
    height: 72px;
    width: auto;
    display: block;
}

.nav-center a,
.nav-right a {
    font-size: 15px;
    font-weight: 500;
}

.user-info,
.wallet,
.points {
    color: #d9ffd0;
    font-size: 14px;
    background-color: #162016;
    padding: 8px 12px;
    border-radius: 8px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #9cff57;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background-color: #121812;
    border: 1px solid #1f2b1f;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.3s;
    padding: 16px;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #9cff57;
}

/* صور الكروت العامة فقط */
.card > img:not(.payment-method-image):not(.payment-method-image-large):not(.deposit-proof-thumb):not(.product-main-image) {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #ffffff;
    text-align: center;
}

.card p {
    color: #c8d3c8;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;
}

.category-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    color: inherit;
}

.category-card h3 {
    color: #ffffff;
}

.category-card p {
    color: #c8d3c8;
}

.btn {
    display: inline-block;
    background-color: #9cff57;
    color: #081008;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #7ee13f;
    color: #081008;
}

.info-box {
    background-color: #121812;
    border: 1px solid #1f2b1f;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 20px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #121812;
    border-radius: 12px;
    overflow: hidden;
}

table th,
table td {
    padding: 14px;
    text-align: right;
    border-bottom: 1px solid #1f2b1f;
}

table th {
    background-color: #162016;
    color: #9cff57;
}

form input,
form textarea,
form select {
    width: 100%;
    background-color: #101510;
    border: 1px solid #2a382a;
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    margin-top: 6px;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #9cff57;
}

.error-text {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 6px;
}

.success-text {
    color: #9cff57;
    font-size: 14px;
    margin-top: 6px;
}

/* =========================
   Banner Slider
========================= */

.banner-slider {
    position: relative;
    width: 100%;
    margin-bottom: 28px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #1f2b1f;
    background-color: #121812;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 400px;
}

.banner-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.banner-slide.active {
    display: block;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(11, 15, 11, 0.7);
    color: #9cff57;
    border: 1px solid #2a382a;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 10px;
    font-size: 20px;
    z-index: 2;
}

.slider-btn:hover {
    background-color: rgba(22, 32, 22, 0.9);
}

.slider-btn.prev {
    right: 16px;
}

.slider-btn.next {
    left: 16px;
}

/* =========================
   Navbar Mobile
========================= */

.nav-top {
    width: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background-color: #162016;
    color: #9cff57;
    border: 1px solid #2a382a;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 24px;
    cursor: pointer;
}

.menu-toggle:hover {
    background-color: #1c281c;
}

.back-btn {
    display: inline-block;
    margin-bottom: 16px;
    background-color: #162016;
    color: #9cff57;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #2a382a;
}

.back-btn:hover {
    background-color: #1d2a1d;
}

/* =========================
   Product Details
========================= */

.product-details {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: stretch;
}

.product-image-box,
.product-info-box {
    background-color: #121812;
    border: 1px solid #1f2b1f;
    border-radius: 16px;
    padding: 18px;
    height: 650px;
    overflow: hidden;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.product-subtitle {
    color: #c8d3c8;
    margin-bottom: 12px;
}

.product-price {
    font-size: 22px;
    color: #9cff57;
    margin-bottom: 16px;
}

.purchase-form {
    margin-top: 18px;
}

.form-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.product-info-box {
    overflow-y: auto;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d9ffd0;
    font-weight: 600;
}

/* =========================
   Orders
========================= */

.orders-grid {
    grid-template-columns: repeat(3, 1fr);
}

.order-card-custom {
    height: 100%;
}

.order-card-custom img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
}

.order-meta {
    margin-top: 10px;
}

.order-meta p {
    margin-bottom: 8px;
    color: #d7dfd7;
}

.order-inputs-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #1f2b1f;
}

.order-inputs-box h4 {
    color: #9cff57;
    margin-bottom: 10px;
    font-size: 16px;
}

.order-inputs-box p {
    margin-bottom: 8px;
    color: #c8d3c8;
}

.order-actions {
    margin-top: 16px;
}

.danger-btn {
    background-color: #d9534f;
    color: #ffffff;
}

.danger-btn:hover {
    background-color: #c9302c;
    color: #ffffff;
}

/* =========================
   Wallet
========================= */

.wallet-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.wallet-boxes .info-box h3 {
    margin-bottom: 10px;
    color: #9cff57;
}

.wallet-boxes .info-box p {
    font-size: 20px;
}

.redeem-preview {
    background-color: #162016;
    border: 1px solid #2a382a;
    border-radius: 10px;
    padding: 12px 14px;
    color: #d9ffd0;
}

/* =========================
   Status Badges
========================= */

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffd95e;
}

.status-processing {
    background-color: rgba(33, 150, 243, 0.15);
    color: #64b5f6;
}

.status-completed {
    background-color: rgba(76, 175, 80, 0.15);
    color: #81c784;
}

.status-cancelled,
.status-failed {
    background-color: rgba(244, 67, 54, 0.15);
    color: #e57373;
}

.status-approved {
    background-color: rgba(76, 175, 80, 0.15);
    color: #81c784;
}

.status-rejected {
    background-color: rgba(244, 67, 54, 0.15);
    color: #e57373;
}

/* =========================
   Payments
========================= */
@media (max-width: 600px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
}
.payment-methods-grid {
    grid-template-columns: repeat(4, 1fr);
}

.payment-card {
    height: 100%;
}

.payment-card h3 {
    margin-bottom: 14px;
}

.payment-details-box {
    background-color: #162016;
    border: 1px solid #2a382a;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
}

.payment-details-box h4 {
    color: #9cff57;
    margin-bottom: 8px;
    font-size: 15px;
}

.payment-details-box p {
    margin-bottom: 0;
    white-space: pre-line;
}

.payment-method-image {
    width: 100%;
    height: 180px; /* نفس الرئيسية */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid #2a382a;
    background-color: #162016;
}

.payment-method-image-large {
    max-width: 320px;
    width: 100%;
    margin: 0 auto 18px;
    display: block;
}

.deposit-form-card {
    max-width: 750px;
    margin: 0 auto;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: #162016;
    border: 1px solid #2a382a;
    color: #fff;
    border-radius: 10px;
    padding: 12px;
    outline: none;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.deposit-requests-list {
    display: grid;
    gap: 16px;
}

.deposit-request-card {
    height: 100%;
}

.deposit-request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.deposit-request-header h3 {
    margin-bottom: 0;
}

.deposit-request-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.meta-box {
    background-color: #162016;
    border: 1px solid #2a382a;
    border-radius: 10px;
    padding: 12px;
}

.meta-box span {
    display: block;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 5px;
}

.deposit-request-notes {
    background-color: #162016;
    border: 1px solid #2a382a;
    border-radius: 10px;
    padding: 12px;
    margin-top: 12px;
}

.deposit-request-proof {
    margin-top: 14px;
}

.deposit-proof-thumb {
    max-width: 220px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #2a382a;
    cursor: pointer;
    transition: 0.2s;
}

.deposit-proof-thumb:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

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

.image-modal-content {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 12px;
    border: 1px solid #2a382a;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 16px;
    right: 22px;
    color: #fff;
    font-size: 34px;
    font-weight: bold;
    cursor: pointer;
}

/* =========================
   Responsive
========================= */

@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        padding: 14px 16px;
    }

    .nav-center,
    .nav-right {
        flex-wrap: wrap;
    }

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

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

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

    .deposit-request-meta {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 768px) {
    .navbar {
        align-items: stretch;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 14px;
        gap: 14px;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-center,
    .nav-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-center a,
    .nav-right a,
    .user-info,
    .wallet,
    .points {
        width: 100%;
        display: block;
    }

    .nav-center a,
    .nav-right a {
        background-color: #162016;
        padding: 10px 12px;
        border-radius: 8px;
    }

    .nav-center a:hover,
    .nav-right a:hover {
        background-color: #1d2a1d;
        color: #9cff57;
    }

    .product-image-box,
    .product-info-box {
        height: auto;
    }

    .product-main-image {
        height: 200px;
        object-fit: cover;
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-left,
    .nav-center,
    .nav-right {
        width: 100%;
        flex-wrap: wrap;
    }

    .logo img {
        height: 56px;
    }

    .container {
        padding: 18px 12px;
    }

    .page-title {
        font-size: 22px;
    }

    .banner-slides {
        height: 140px;
    }

    .slider-btn {
        padding: 6px 8px;
        font-size: 14px;
    }

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

    .order-card-custom img {
        height: 180px;
    }

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


.contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #162016;
    border: 1px solid #2a382a;
    padding: 12px;
    border-radius: 10px;
    color: #9cff57;
    transition: 0.2s;
}

.contact-link i {
    font-size: 18px;
}

/* ألوان المنصات */
.contact-link.facebook i {
    color: #1877f2;
}

.contact-link.whatsapp i {
    color: #25d366;
}

.contact-link:hover {
    background-color: #1d2a1d;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}





.install-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.install-card {
    max-width: 500px;
    width: 100%;
    text-align: center;
    background: #121812;
    border: 1px solid #1f2b1f;
    border-radius: 18px;
    padding: 28px 20px;
}

.install-card h1 {
    color: #9cff57;
    margin-bottom: 10px;
}

.install-card p {
    text-align: center;
}

.install-status {
    margin-top: 12px;
    color: #9cff57;
    font-weight: bold;
}