* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #229ed9;
    --primary-dark: #147bb1;
    --background: #f3f6f9;
    --surface: #ffffff;
    --text: #18212b;
    --muted: #718096;
    --border: #e3e9ef;
}

body {
    font-family: Arial, Tahoma, sans-serif;
    background: var(--background);
    color: var(--text);
    padding-bottom: 85px;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.app-container {
    width: 100%;
    max-width: 700px;
    min-height: 100vh;
    margin: auto;
    padding: 20px 16px;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.welcome-text {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 4px;
}

.top-header h1 {
    font-size: 26px;
}

.profile-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 50%;
    font-size: 21px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.search-section {
    margin-bottom: 18px;
}

.search-section input {
    width: 100%;
    padding: 15px 17px;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    background: var(--surface);
    font-size: 15px;
}

.search-section input:focus {
    border-color: var(--primary);
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: white;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );
    border-radius: 22px;
    padding: 24px 20px;
    margin-bottom: 28px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 11px;
}

.hero-section h2 {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.7;
}

.hero-icon {
    min-width: 72px;
    font-size: 55px;
    text-align: center;
}

.section {
    margin-bottom: 28px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 20px;
}

.section-header span {
    color: var(--muted);
    font-size: 13px;
}

.categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 3px;
}

.category {
    min-width: 95px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
}

.category span {
    display: block;
    font-size: 22px;
    margin-bottom: 5px;
}

.category.active {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.product-card {
    background: var(--surface);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.06);
}

.product-image {
    height: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 55px;
}

.bot-image {
    background: #eaf7fd;
}

.marketing-image {
    background: #fff3df;
}

.vps-image {
    background: #eeeafe;
}

.product-content {
    padding: 17px;
}

.product-type {
    display: inline-block;
    color: var(--primary);
    background: #eaf7fd;
    border-radius: 15px;
    padding: 5px 9px;
    font-size: 11px;
    margin-bottom: 9px;
}

.product-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 17px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price strong {
    color: var(--primary);
    font-size: 21px;
}

.price span {
    color: var(--muted);
    font-size: 12px;
}

.order-button {
    border: none;
    border-radius: 11px;
    padding: 11px 15px;
    color: white;
    background: var(--primary);
    font-weight: bold;
}

.order-button:hover {
    background: var(--primary-dark);
}

.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 700px;
    height: 70px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 100;
}

.nav-item {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
}

.nav-item span {
    display: block;
    font-size: 21px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary);
}

.hidden {
    display: none;
}

@media (min-width: 650px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card:last-child {
        grid-column: span 2;
    }
}
.details-link {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.product-details-card {
    background: var(--surface);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.product-details-image {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eaf7fd, #eeeafe);
    font-size: 90px;
}

.product-details-content {
    padding: 24px;
}

.product-details-content h1 {
    margin: 12px 0;
    font-size: 28px;
}

.product-description {
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 22px;
}

.features-box {
    background: #f8fafc;
    padding: 18px;
    border-radius: 15px;
    margin-bottom: 22px;
}

.features-box h3 {
    margin-bottom: 12px;
}

.features-box ul {
    padding-right: 20px;
    color: var(--muted);
    line-height: 2;
}

.details-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.details-price-box span,
.details-price-box small {
    display: block;
    color: var(--muted);
}

.details-price-box strong {
    display: inline-block;
    color: var(--primary);
    font-size: 30px;
    margin: 5px 0;
}

.details-order-button {
    padding: 14px 24px;
}
.bottom-navigation {
    grid-template-columns: repeat(5, 1fr);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #18212b, #229ed9);
    color: white;
    padding: 24px;
    border-radius: 22px;
    margin-bottom: 22px;
}

.page-title h1 {
    font-size: 26px;
    margin: 8px 0;
}

.page-title p {
    color: rgba(255, 255, 255, 0.8);
}

.page-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 12px;
}

.page-icon {
    font-size: 54px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.checkout-card,
.order-summary {
    background: var(--surface);
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.checkout-card {
    margin-bottom: 18px;
}

.checkout-card h2 {
    margin-bottom: 18px;
    font-size: 19px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px;
    outline: none;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.payment-methods {
    display: grid;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 14px;
    cursor: pointer;
}

.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: #eff9fe;
}

.payment-option input {
    display: none;
}

.payment-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf7fd;
    color: var(--primary);
    font-weight: bold;
    font-size: 20px;
}

.payment-option strong,
.payment-option small {
    display: block;
}

.payment-option small {
    color: var(--muted);
    margin-top: 4px;
}

.coupon-row {
    display: flex;
    gap: 10px;
}

.coupon-row input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px;
    outline: none;
}

.coupon-row button {
    border: none;
    border-radius: 12px;
    padding: 0 20px;
    color: white;
    background: var(--primary);
    font-weight: bold;
}

.summary-product {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.summary-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf7fd;
    font-size: 34px;
}

.summary-product span,
.summary-product p {
    color: var(--muted);
    font-size: 13px;
}

.summary-product h3 {
    margin: 5px 0;
}

.summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
}

.summary-line span {
    color: var(--muted);
}

.total-line {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 18px;
}

.total-line strong {
    color: var(--primary);
    font-size: 24px;
}

.confirm-order-button {
    width: 100%;
    margin-top: 18px;
    border: none;
    border-radius: 13px;
    padding: 15px;
    color: white;
    background: var(--primary);
    font-size: 16px;
    font-weight: bold;
}

.secure-note {
    margin-top: 13px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

@media (min-width: 800px) {
    .checkout-layout {
        grid-template-columns: 1.4fr 0.8fr;
    }

    .order-summary {
        height: fit-content;
        position: sticky;
        top: 20px;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-group.full {
        grid-column: span 2;
    }
}
.orders-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.orders-tab {
    min-width: max-content;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 16px;
    background: var(--surface);
    color: var(--text);
}

.orders-tab.active {
    color: white;
    border-color: var(--primary);
    background: var(--primary);
}

.orders-list {
    display: grid;
    gap: 16px;
}

.order-card {
    background: var(--surface);
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.order-number {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.order-status {
    padding: 7px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.order-status.pending {
    color: #9a6700;
    background: #fff3cd;
}

.order-status.active {
    color: #137a42;
    background: #e7f8ee;
}

.order-status.expired {
    color: #c53030;
    background: #fff0f0;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.order-meta span,
.order-meta strong {
    display: block;
}

.order-meta span {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.order-actions a,
.order-actions button {
    flex: 1;
    text-align: center;
    border: none;
    border-radius: 11px;
    padding: 12px;
    text-decoration: none;
    color: white;
    background: var(--primary);
    font-weight: bold;
}

.order-actions a {
    color: var(--primary);
    border: 1px solid var(--primary);
    background: transparent;
}

.order-card.hidden-order {
    display: none;
}

@media (max-width: 600px) {
    .order-meta {
        grid-template-columns: 1fr;
    }

    .order-actions {
        flex-direction: column;
    }
}
.language-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 14px;
}

.language-switcher a {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    font-size: 13px;
}

.language-switcher a.active {
    color: white;
    border-color: var(--primary);
    background: var(--primary);
}
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .top-header,
html[dir="ltr"] .hero-section,
html[dir="ltr"] .section-header,
html[dir="ltr"] .product-footer,
html[dir="ltr"] .order-card-header,
html[dir="ltr"] .summary-line,
html[dir="ltr"] .details-price-box {
    flex-direction: row;
}

html[dir="rtl"] .top-header,
html[dir="rtl"] .hero-section,
html[dir="rtl"] .section-header,
html[dir="rtl"] .product-footer,
html[dir="rtl"] .order-card-header,
html[dir="rtl"] .summary-line,
html[dir="rtl"] .details-price-box {
    flex-direction: row;
}

html[dir="ltr"] .features-box ul {
    padding-left: 20px;
    padding-right: 0;
}

html[dir="rtl"] .features-box ul {
    padding-right: 20px;
    padding-left: 0;
}

html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select {
    text-align: left;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
}

html[dir="ltr"] .language-switcher {
    justify-content: flex-end;
}

html[dir="rtl"] .language-switcher {
    justify-content: flex-start;
}
.product-details {
    background: var(--surface);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.product-image.large {
    height: 240px;
    margin-bottom: 22px;
    border-radius: 18px;
    font-size: 90px;
}

.product-details h1 {
    font-size: 30px;
    margin: 12px 0;
}

.details-description {
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 24px;
}

.details-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}

.details-price strong {
    color: var(--primary);
    font-size: 32px;
}

.details-price span {
    color: var(--muted);
    font-size: 14px;
}

.big-button {
    width: 100%;
    padding: 15px;
    font-size: 17px;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}
.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.support-card,
.support-form-card {
    background: var(--surface);
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.support-card {
    text-align: center;
}

.support-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf7fd;
    font-size: 30px;
}

.support-card h3 {
    margin-bottom: 8px;
}

.support-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.support-button {
    display: inline-block;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 13px;
    color: white;
    background: var(--primary);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.support-form-card h2 {
    margin-bottom: 18px;
}

@media (min-width: 700px) {
    .support-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.profile-card,
.profile-details-card {
    background: var(--surface);
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    margin-bottom: 18px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf7fd;
    font-size: 36px;
}

.profile-info p {
    color: var(--muted);
    margin-top: 5px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.profile-stat {
    background: var(--surface);
    padding: 18px 12px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.profile-stat span,
.profile-stat strong {
    display: block;
}

.profile-stat span {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.profile-stat strong {
    color: var(--primary);
    font-size: 24px;
}

.profile-details-card h2 {
    margin-bottom: 16px;
}

.profile-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.profile-detail-row:last-child {
    border-bottom: none;
}

.profile-detail-row span {
    color: var(--muted);
}

.profile-actions {
    display: grid;
    gap: 12px;
}

.profile-action {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
}
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.cart-main {
    display: grid;
    gap: 15px;
}

.cart-item-card {
    display: flex;
    gap: 15px;
    background: var(--surface);
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.cart-item-icon {
    width: 72px;
    min-width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #eaf7fd;
    font-size: 35px;
}

.cart-item-content {
    flex: 1;
}

.cart-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cart-item-header h3 {
    margin-top: 7px;
}

.cart-remove-button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #fff0f0;
    color: #c53030;
    font-size: 22px;
}

.cart-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 18px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    font-size: 18px;
}

.quantity-controls span {
    min-width: 25px;
    text-align: center;
    font-weight: bold;
}

.cart-item-price {
    text-align: end;
}

.cart-item-price strong,
.cart-item-price small {
    display: block;
}

.cart-item-price strong {
    color: var(--primary);
    font-size: 19px;
}

.cart-item-price small {
    color: var(--muted);
    margin-top: 4px;
}

.cart-summary {
    background: var(--surface);
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.cart-summary h2 {
    margin-bottom: 15px;
}

.clear-cart-button {
    width: 100%;
    margin-top: 10px;
    border: 1px solid #c53030;
    border-radius: 12px;
    padding: 13px;
    color: #c53030;
    background: transparent;
    font-weight: bold;
}

.empty-cart-message {
    background: var(--surface);
    padding: 45px 20px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.empty-cart-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.empty-cart-message p {
    color: var(--muted);
    margin: 10px 0 20px;
}

.empty-cart-button {
    display: inline-block;
    text-decoration: none;
}

@media (min-width: 800px) {
    .cart-layout {
        grid-template-columns: 1.4fr 0.7fr;
    }

    .cart-summary {
        height: fit-content;
        position: sticky;
        top: 20px;
    }
}

@media (max-width: 560px) {
    .cart-item-card {
        align-items: flex-start;
    }

    .cart-item-icon {
        width: 58px;
        min-width: 58px;
        height: 58px;
        font-size: 28px;
    }

    .cart-item-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-item-price {
        text-align: start;
    }
}
.iti {
    width: 100%;
    margin-bottom: 17px; /* نفس المسافة بتاعة باقي الـ inputs */
}

.iti input {
    width: 100%;
    margin-bottom: 17px;
}

.iti + label {
    margin-top: 0;
}
.iti {
    width: 100%;
    margin-bottom: 17px !important;
}

.iti + label {
    display: block;
    margin-top: 17px !important;
}