/* ==== MAGOODS PRODUCTS - ENHANCED ==== */

:root {
    --primary: #007ea7;
    --mint: #00a8e8;
    --semi-dark: hsl(201 100% 8%);
    --light: #ffffff;
    --gray: rgba(255, 255, 255, 0.85);
    --darkGray: rgba(255, 255, 255, 0.6);
    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== GLOBAL PREVENT SCROLL SHIFT ===== */
html, body, .mgp-main-container, .mgp-main-content-col {
    scrollbar-gutter: stable !important;
}

/* ===== WRAPPER & LAYOUT ===== */
.mg-products-wrapper {
    display: flex !important;
    gap: 0 !important;
}

.mg-sidebar {
    position: sticky;
    top: 0;
    width: 240px;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(0, 168, 232, 0.15);
    padding: 20px !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mg-main {
    flex: 1;
    padding: 0 !important;
}

/* ===== SIDEBAR STYLING - MODERN MINIMAL ===== */
.product-selection-sidebar {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Category List */
.product-selection-sidebar ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-selection-sidebar li {
    margin: 0 !important;
    padding: 0 !important;
}

.product-selection-sidebar a {
    display: flex;
    align-items: center;
    padding: 12px 14px !important;
    background: rgba(0, 52, 89, 0.3);
    border: 1px solid rgba(0, 168, 232, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.product-selection-sidebar a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #007ea7, #00a8e8);
    transform: scaleY(0);
    transition: all 0.3s ease;
    transform-origin: center;
}

.product-selection-sidebar a:hover {
    background: rgba(0, 126, 167, 0.3);
    border-color: rgba(0, 168, 232, 0.3);
    color: #fff !important;
    transform: translateX(4px);
}

.product-selection-sidebar a.active {
    background: linear-gradient(135deg, rgba(0, 126, 167, 0.35), rgba(0, 168, 232, 0.15));
    border-color: rgba(0, 168, 232, 0.4);
    color: #00a8e8 !important;
    box-shadow: 0 0 15px rgba(0, 168, 232, 0.1);
}

.product-selection-sidebar a.active::before {
    transform: scaleY(1);
}

/* ===== TOGGLE BUTTON ===== */
.mg-btn-toggle {
    position: fixed;
    top: 80px;
    left: 20px;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary), var(--mint));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.3);
    z-index: 100;
}

.mg-btn-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 232, 0.5);
}

/* ===== PRODUCTS SECTION ===== */
.mg-products-section {
    padding: 40px;
}

.mg-container {
    max-width: 100%;
    width: 100%;
    flex: 1;
}

/* ===== HEADER ===== */
.mg-products-header {
    text-align: center;
    margin-bottom: 50px;
    animation: slideInDown 0.6s var(--transition) forwards;
}

.mg-header-content {
    margin-bottom: 24px;
}

.mg-products-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #007ea7, #00a8e8, #00c9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mg-products-tagline {
    font-size: 16px;
    color: var(--darkGray);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ALERTS ===== */
.mg-alert {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
}

.mg-alert-danger {
    background: rgba(255, 79, 79, 0.1);
    border: 1px solid rgba(255, 79, 79, 0.3);
    color: #ff4f4f;
}

.mg-alert-info {
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.3);
    color: #00a8e8;
}

/* ===== PRODUCTS GRID - GRID LAYOUT ===== */
.mg-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
    justify-content: center;
    gap: 24px;
    margin-bottom: 60px;
}

.mg-products-grid.mgptero-products-grid {
    align-items: stretch;
}

.mg-product-card-wrapper {
    animation: cardFadeIn 0.5s var(--transition) both;
    opacity: 1;
    display: flex;
    min-width: 0; /* Let grid handle sizing */
    max-width: none;
    width: 100%;
}

.mg-product-card-wrapper:nth-child(1) {
    animation-delay: 0.1s;
}

.mg-product-card-wrapper:nth-child(2) {
    animation-delay: 0.2s;
}

.mg-product-card-wrapper:nth-child(3) {
    animation-delay: 0.3s;
}

.mg-product-card-wrapper:nth-child(4) {
    animation-delay: 0.4s;
}

.mg-product-card-wrapper:nth-child(5) {
    animation-delay: 0.1s;
}

.mg-product-card-wrapper:nth-child(6) {
    animation-delay: 0.2s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== VPS CARD STYLES ===== */
.mg-vps-card {
    background: linear-gradient(160deg, rgba(0, 31, 43, 0.9) 0%, rgba(0, 15, 22, 0.95) 100%);
    border: 1px solid rgba(0, 168, 232, 0.25);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mg-vps-card:hover {
    border-color: rgba(0, 168, 232, 0.6);
    box-shadow: 0 15px 40px rgba(0, 168, 232, 0.15), 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.mg-vps-card .mg-card-glow {
    background: radial-gradient(circle at 50% 0%, rgba(0, 168, 232, 0.12), transparent 70%);
}

.mg-vps-specs {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px dashed rgba(0, 168, 232, 0.2);
}

.mg-vps-spec-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0, 168, 232, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(0, 168, 232, 0.1);
    transition: all 0.2s ease;
}

.mg-vps-spec-item:hover {
    background: rgba(0, 168, 232, 0.08);
    transform: translateX(3px);
}

.mg-vps-spec-item .spec-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mg-vps-spec-item i {
    color: #00a8e8; /* Theme Cyan/Blue icon */
    font-size: 15px;
    width: 20px;
    text-align: center;
}

.mg-vps-spec-item .spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--darkGray);
    font-weight: 600;
}

.mg-vps-spec-item .spec-val {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
}



/* ===== STANDARD PRODUCT CARD ===== */
.mg-product-card {
    position: relative;
    height: 100%;
    width: 100%;
    background: rgba(0, 23, 31, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 168, 232, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s var(--transition);
    overflow: hidden;
}

.mg-product-card:hover {
    border-color: rgba(0, 168, 232, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37), 0 0 40px rgba(0, 168, 232, 0.25);
    transform: translateY(-6px);
}

.mg-product-card.featured {
    border-color: rgba(0, 168, 232, 0.4);
    background: rgba(0, 23, 31, 0.75);
    box-shadow: 0 0 40px rgba(0, 168, 232, 0.2);
}

/* ===== FEATURED BADGE ===== */
/* Game cards render the badge over the game image instead (see
   .mg-featured-badge--on-image below) so it doesn't overlap the title. */
.mg-product-card.mgptero-product-card > .mg-featured-badge {
    display: none;
}

.mg-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(0, 47, 63, 0.92), rgba(0, 20, 28, 0.94));
    border: 1px solid rgba(84, 218, 255, 0.58);
    border-radius: 16px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
    overflow: hidden;
    isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.mg-featured-badge--on-image {
    top: 10px;
    right: auto;
    left: 10px;
}

.mg-badge-glow {
    position: absolute;
    inset: -1px;
    background: transparent;
    border: 1px solid rgba(0, 201, 255, 0.8);
    box-shadow: 0 0 0 1px rgba(0, 168, 232, 0.18), 0 0 14px rgba(0, 201, 255, 0.54);
    border-radius: 16px;
    opacity: 0;
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.mg-featured-badge i,
.mg-featured-badge span {
    position: relative;
    z-index: 1;
}

.mg-featured-badge span {
    color: #ffffff;
}

@keyframes badgePulse {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.9;
    }
}

/* ===== CARD HEADER ===== */
.mg-card-header {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 168, 232, 0.2);
}

.mgptero-product-card .mg-card-header {
    display: flex;
    flex-direction: column;
    min-height: 354px;
}

.mg-plan-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
}

.mgptero-product-card .mg-plan-name {
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mg-plan-tagline {
    font-size: 12px;
    color: var(--darkGray);
    margin: 0;
    line-height: 1.4;
}

.mgptero-product-card .mg-plan-tagline {
    min-height: 3.95em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== PRICING ===== */
.mg-card-pricing {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mgptero-product-card .mg-card-pricing {
    min-height: 92px;
}

.mg-price-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mg-price-main {
    font-size: 28px;
    font-weight: 700;
    color: #00a8e8;
    line-height: 1;
}

.mg-billing-cycle,
.mg-setup-fee,
.mg-from-label {
    font-size: 11px;
    color: var(--darkGray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mg-bundle-label {
    font-size: 10px;
    background: rgba(0, 168, 232, 0.2);
    color: #00a8e8;
    padding: 3px 6px;
    border-radius: 3px;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
}

/* ===== CTA BUTTON ===== */
.mg-card-action {
    display: flex;
    gap: 8px;
}

.mg-btn-order {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #007ea7, #00a8e8);
    border: none;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.3);
}

.mg-btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 232, 0.5);
    color: #fff;
    text-decoration: none;
}

.mg-btn-order i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mg-btn-order:hover i {
    transform: translateX(3px);
}

.mg-btn-unavailable {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    background: rgba(0, 168, 232, 0.1);
    border: 1px solid rgba(0, 168, 232, 0.2);
    border-radius: 10px;
    color: var(--darkGray);
    font-weight: 700;
    font-size: 12px;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===== FEATURES ===== */
.mg-card-features {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 168, 232, 0.15);
}

.mgptero-product-card .mg-card-features {
    min-height: 154px;
    overflow: hidden;
}

.mg-features-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mg-features-title i {
    color: #00a8e8;
    font-size: 12px;
}

.mg-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mgptero-product-card .mg-features-list {
    max-height: 102px;
    overflow: hidden;
}

.mg-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--darkGray);
    line-height: 1.3;
}

.mg-feature-item i {
    font-size: 12px;
    color: #00a8e8;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== CARD GLOW ===== */
.mg-card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.1), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mg-product-card:hover .mg-card-glow {
    opacity: 1;
}

/* ===== INCLUDED FEATURES FOOTER ===== */
.mg-included-features {
    background: rgba(0, 52, 89, 0.2);
    border: 1px solid rgba(0, 168, 232, 0.2);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    animation: slideInUp 0.6s var(--transition) forwards;
}

.mg-features-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px 0;
}

.mg-features-footer-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.mg-feature-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--darkGray);
    font-weight: 500;
}

.mg-feature-line i {
    color: #00a8e8;
    font-size: 14px;
}

.mg-feature-text {
    line-height: 1.4;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .mg-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .mg-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .mg-sidebar {
        width: 200px;
        padding: 16px !important;
    }

    .mg-products-section {
        padding: 30px;
    }

    .mg-products-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .mg-products-wrapper {
        flex-direction: column;
    }

    .mg-sidebar {
        position: relative;
        height: auto;
        top: 0;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 168, 232, 0.15);
        display: none;
        padding: 12px !important;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
    }

    .mg-sidebar.active {
        display: flex;
        animation: slideInDown 0.3s ease forwards;
    }

    .product-selection-sidebar ul {
        flex-direction: row;
        gap: 6px;
    }

    .product-selection-sidebar a {
        white-space: nowrap;
        padding: 10px 12px !important;
        font-size: 12px;
        flex-shrink: 0;
    }

    .mg-btn-toggle {
        display: flex;
        left: 16px;
        top: 90px;
    }

    .mg-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mg-products-section {
        padding: 20px;
    }

    .mg-products-title {
        font-size: 22px;
    }

    .mg-featured-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .mg-plan-name {
        font-size: 16px;
    }

    .mg-price-main {
        font-size: 24px;
    }

    .mg-features-footer-list {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .mg-btn-toggle {
        padding: 10px 12px;
        font-size: 11px;
        left: 12px;
        top: 85px;
    }

    .mg-product-card {
        padding: 16px;
        gap: 14px;
    }

    .mg-plan-name {
        font-size: 14px;
    }

    .mg-price-main {
        font-size: 20px;
    }

    .mg-btn-order {
        padding: 9px 12px;
        font-size: 12px;
    }

    .mg-included-features {
        padding: 20px;
    }

    .mg-features-section-title {
        font-size: 16px;
    }

    .mg-feature-line {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .mg-product-card-wrapper {
        opacity: 1 !important;
        transform: none !important;
    }
}

*:focus-visible {
    outline: 2px solid #00a8e8;
    outline-offset: 2px;
}

/* ===== SCROLLBAR STYLING ===== */
.mg-sidebar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.mg-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 168, 232, 0.1);
    border-radius: 10px;
}

.mg-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 168, 232, 0.3);
    border-radius: 10px;
}

.mg-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 168, 232, 0.5);
}

/* ===== STOREFRONT NAV REFRESH ===== */

.mg-sidebar {
    top: 104px;
    padding: 0 !important;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.mg-store-nav {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid rgba(0, 168, 232, 0.16);
    border-radius: 1.2rem;
    background:
        linear-gradient(180deg, rgba(0, 31, 48, 0.9), rgba(0, 23, 31, 0.92)),
        rgba(255, 255, 255, 0.02);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.mg-store-nav__intro {
    display: grid;
    gap: 0.45rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 168, 232, 0.12);
}

.mg-store-nav__eyebrow {
    color: rgba(184, 240, 255, 0.86);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mg-store-nav__title {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
}

.mg-store-nav__copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    line-height: 1.55;
}

.mg-store-nav__group {
    display: grid;
    gap: 0.8rem;
}

.mg-store-nav__group + .mg-store-nav__group {
    padding-top: 0.9rem;
    border-top: 1px solid rgba(0, 168, 232, 0.08);
}

.mg-store-nav__group-header {
    display: block;
}

.mg-store-nav__group-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.mg-store-nav__group-title-wrap > i {
    color: #00a8e8;
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

.mg-store-nav__group-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.mg-store-nav__group-title {
    margin: 0;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mg-store-nav__group-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: rgba(0, 168, 232, 0.12);
    border: 1px solid rgba(0, 168, 232, 0.2);
    color: #00a8e8;
    font-size: 0.7rem;
    font-weight: 700;
}

.mg-store-nav__links {
    display: grid;
    gap: 0.55rem;
}

.mg-store-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    min-height: 52px;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(0, 168, 232, 0.12);
    border-radius: 8px;
    background: rgba(0, 35, 55, 0.28);
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none !important;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mg-store-nav__link:hover,
.mg-store-nav__link:focus {
    color: #fff;
    border-color: rgba(0, 168, 232, 0.32);
    background: rgba(0, 168, 232, 0.1);
    transform: translateX(3px);
}

.mg-store-nav__link.is-active {
    border-color: rgba(0, 168, 232, 0.34);
    background: linear-gradient(90deg, rgba(0, 168, 232, 0.18), rgba(0, 168, 232, 0.05));
    color: #00d9ff;
    box-shadow: inset 2px 0 0 #00a8e8;
}

.mg-store-nav__link.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.mg-store-nav__link-main {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.mg-store-nav__link-main i {
    color: #00a8e8;
    font-size: 0.88rem;
}

.mg-store-nav__link-text {
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

.mg-store-nav__link-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.75rem;
}

@media (max-width: 1024px) {
    .mg-sidebar {
        width: 100%;
        max-height: none;
        margin-bottom: 1rem;
    }
}

/* ===== ORDER FORM REFRESH 2026-03-30 ===== */

.mg-products-wrapper {
    align-items: flex-start;
    gap: 1.75rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.mg-sidebar {
    position: sticky;
    top: 104px;
    width: auto;
    height: auto;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    padding: 1.1rem !important;
    border: 1px solid rgba(0, 168, 232, 0.18);
    border-radius: 1.15rem;
    background:
        linear-gradient(180deg, rgba(0, 31, 48, 0.86), rgba(0, 23, 31, 0.88)),
        rgba(255, 255, 255, 0.03);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.mg-main {
    flex: 1 1 0;
    max-width: none;
    width: auto;
    min-width: 0;
}

.mg-products-section {
    padding: 1rem 0 3.5rem;
}

.mg-products-header {
    margin-bottom: 2rem;
    text-align: left;
}

html[dir="rtl"] .mg-products-header {
    text-align: right;
}

.mg-products-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    color: rgba(177, 238, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mg-products-kicker__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #00d1ff, #00a8e8);
    box-shadow: 0 0 14px rgba(0, 168, 232, 0.8);
}

.mg-products-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
    padding: 1.45rem 1.5rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(0, 168, 232, 0.18);
    background:
        radial-gradient(circle at top right, rgba(0, 168, 232, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(0, 31, 48, 0.92), rgba(0, 52, 89, 0.68));
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mg-products-title {
    margin-bottom: 0.65rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
    text-align: left;
}

html[dir="rtl"] .mg-products-title {
    text-align: right;
}

.mg-products-tagline {
    margin: 0;
    max-width: 58ch;
    text-align: left;
}

html[dir="rtl"] .mg-products-tagline {
    text-align: right;
}

.mg-products-hero__signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

.mg-products-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 168, 232, 0.18);
    background: rgba(0, 19, 31, 0.46);
    color: rgba(229, 247, 255, 0.88);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.mg-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
    margin-bottom: 3rem;
}

.mg-product-card {
    padding: 1.45rem;
    border-radius: 1.35rem;
    background:
        linear-gradient(180deg, rgba(0, 30, 46, 0.92), rgba(0, 23, 31, 0.9)),
        rgba(255, 255, 255, 0.03);
    box-shadow:
        0 22px 44px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mg-product-card:hover {
    transform: translateY(-4px);
}

.mg-card-header {
    padding-bottom: 1rem;
    border-bottom-color: rgba(0, 168, 232, 0.14);
}

.mg-plan-name {
    font-size: 1.45rem;
    line-height: 1.15;
}

.mg-plan-tagline {
    color: rgba(255, 255, 255, 0.7);
}

.mg-card-pricing {
    padding: 1rem 0 0.35rem;
}

.mg-price-display {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 168, 232, 0.14);
    background: rgba(255, 255, 255, 0.025);
}

.mg-price-main {
    font-size: clamp(1.9rem, 2vw, 2.4rem);
    line-height: 1;
}

.mg-billing-cycle,
.mg-setup-fee,
.mg-from-label {
    color: rgba(255, 255, 255, 0.68);
}

.mg-card-action {
    margin-top: auto;
}

.mg-btn-order,
.mg-btn-unavailable {
    width: 100%;
    min-height: 3rem;
    border-radius: 1rem;
}

.mg-btn-order {
    box-shadow: 0 14px 26px rgba(0, 92, 132, 0.28);
}

.mg-card-features {
    padding-top: 0.15rem;
}

.mg-features-title {
    margin-bottom: 0.85rem;
}

.mg-feature-item {
    padding: 0.55rem 0;
    border-top: 1px solid rgba(0, 168, 232, 0.08);
}

.mg-feature-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.mg-included-features {
    padding: 1.4rem 1.45rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(0, 168, 232, 0.16);
    background:
        linear-gradient(180deg, rgba(0, 31, 48, 0.88), rgba(0, 23, 31, 0.84)),
        rgba(255, 255, 255, 0.03);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

@media (max-width: 991px) {
    .mg-products-wrapper {
        display: block !important;
    }

    .mg-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        max-height: none;
        margin-bottom: 1rem;
    }

    .mg-main {
        width: 100%;
    }

    .mg-products-hero {
        grid-template-columns: 1fr;
    }

    .mg-products-hero__signals {
        justify-content: flex-start;
    }
}


@media (max-width: 767px) {
    .mg-products-section {
        padding: 0.25rem 0 2.5rem;
    }

    .mg-products-hero {
        padding: 1.1rem;
        border-radius: 1.1rem;
    }

    .mg-product-card {
        padding: 1.15rem;
    }
}

/* ===== STOREFRONT NAV REFRESH FINAL OVERRIDES ===== */

.mg-sidebar {
    top: 104px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.mg-store-nav {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid rgba(0, 168, 232, 0.16);
    border-radius: 1.2rem;
    background:
        linear-gradient(180deg, rgba(0, 31, 48, 0.9), rgba(0, 23, 31, 0.92)),
        rgba(255, 255, 255, 0.02);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.mg-store-nav__intro {
    display: grid;
    gap: 0.45rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 168, 232, 0.12);
}

.mg-store-nav__eyebrow {
    color: rgba(184, 240, 255, 0.86);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mg-store-nav__title {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
}

.mg-store-nav__copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    line-height: 1.55;
}

.mg-store-nav__group {
    display: grid;
    gap: 0.8rem;
}

.mg-store-nav__group + .mg-store-nav__group {
    padding-top: 0.9rem;
    border-top: 1px solid rgba(0, 168, 232, 0.08);
}

.mg-store-nav__group-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.mg-store-nav__group-title-wrap > i {
    color: #00a8e8;
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

.mg-store-nav__group-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.mg-store-nav__group-title {
    margin: 0;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mg-store-nav__group-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: rgba(0, 168, 232, 0.12);
    border: 1px solid rgba(0, 168, 232, 0.2);
    color: #00a8e8;
    font-size: 0.7rem;
    font-weight: 700;
}

.mg-store-nav__links {
    display: grid;
    gap: 0.55rem;
}

.mg-store-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    min-height: 52px;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(0, 168, 232, 0.12);
    border-radius: 14px;
    background: rgba(0, 35, 55, 0.28);
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none !important;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mg-store-nav__link:hover,
.mg-store-nav__link:focus {
    color: #fff;
    border-color: rgba(0, 168, 232, 0.32);
    background: rgba(0, 168, 232, 0.1);
    transform: translateX(3px);
}

.mg-store-nav__link.is-active {
    border-color: rgba(0, 168, 232, 0.34);
    background: linear-gradient(90deg, rgba(0, 168, 232, 0.18), rgba(0, 168, 232, 0.05));
    color: #00d9ff;
    box-shadow: inset 2px 0 0 #00a8e8;
}

.mg-store-nav__link.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.mg-store-nav__link-main {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.mg-store-nav__link-main i {
    color: #00a8e8;
    font-size: 0.88rem;
}

.mg-store-nav__link-text {
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

.mg-store-nav__link-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.75rem;
}

@media (max-width: 991px) {
    .mg-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        max-height: none;
        margin-bottom: 1rem;
        display: none;
    }

    .mg-sidebar.active {
        display: block;
    }
}

/* ===== TOP ORDER NAV REFORGE ===== */

.mg-main {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
}

.mg-order-nav {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.25rem;
    border: 1px solid rgba(0, 168, 232, 0.16);
    border-radius: 1.3rem;
    background:
        radial-gradient(circle at top right, rgba(0, 168, 232, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(0, 31, 48, 0.92), rgba(0, 23, 31, 0.92));
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.mg-order-nav__intro {
    display: grid;
    gap: 0.45rem;
}

.mg-order-nav__eyebrow {
    color: rgba(184, 240, 255, 0.86);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mg-order-nav__title {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.mg-order-nav__copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 70ch;
}

.mg-order-nav__menus {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: flex-start;
}

.mg-order-nav__group {
    position: relative;
    flex: 1 1 320px;
    min-width: 280px;
}

.mg-order-nav__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 64px;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(0, 168, 232, 0.14);
    border-radius: 16px;
    background: rgba(0, 35, 55, 0.3);
    color: #e6f6ff;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mg-order-nav__trigger:hover,
.mg-order-nav__trigger:focus {
    border-color: rgba(0, 168, 232, 0.3);
    background: rgba(0, 168, 232, 0.08);
}

.mg-order-nav__trigger.is-active {
    border-color: rgba(0, 168, 232, 0.34);
    background: linear-gradient(90deg, rgba(0, 168, 232, 0.18), rgba(0, 168, 232, 0.05));
    box-shadow: inset 2px 0 0 #00a8e8;
}

.mg-order-nav__trigger-main,
.mg-order-nav__link-main {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.mg-order-nav__trigger-main > i,
.mg-order-nav__link-main > i {
    color: #00a8e8;
    font-size: 0.95rem;
}

.mg-order-nav__trigger-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.mg-order-nav__trigger-label {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
}

.mg-order-nav__trigger-meta {
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
}

.mg-order-nav__trigger-side {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.mg-order-nav__badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: rgba(0, 168, 232, 0.12);
    border: 1px solid rgba(0, 168, 232, 0.2);
    color: #00a8e8;
    font-size: 0.7rem;
    font-weight: 700;
}

.mg-order-nav__trigger-arrow {
    color: rgba(255, 255, 255, 0.36);
    transition: transform 0.2s ease;
}

.mg-order-nav__group.is-open .mg-order-nav__trigger-arrow {
    transform: rotate(180deg);
}

.mg-order-nav__dropdown {
    display: none;
    margin-top: 0.7rem;
    padding: 0.85rem;
    border: 1px solid rgba(0, 168, 232, 0.14);
    border-radius: 16px;
    background: rgba(0, 23, 31, 0.88);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.mg-order-nav__dropdown.is-open {
    display: block;
    animation: mgOrderNavDrop 180ms ease forwards;
}

.mg-order-nav__links {
    display: grid;
    gap: 0.55rem;
}

.mg-order-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    min-height: 50px;
    padding: 0.82rem 0.95rem;
    border: 1px solid rgba(0, 168, 232, 0.12);
    border-radius: 14px;
    background: rgba(0, 35, 55, 0.24);
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none !important;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mg-order-nav__link:hover,
.mg-order-nav__link:focus {
    color: #fff;
    border-color: rgba(0, 168, 232, 0.32);
    background: rgba(0, 168, 232, 0.08);
    transform: translateX(3px);
}

.mg-order-nav__link.is-active {
    border-color: rgba(0, 168, 232, 0.34);
    background: linear-gradient(90deg, rgba(0, 168, 232, 0.18), rgba(0, 168, 232, 0.05));
    color: #00d9ff;
    box-shadow: inset 2px 0 0 #00a8e8;
}

.mg-order-nav__link.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.mg-order-nav__link-text {
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

.mg-order-nav__link-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.75rem;
}

@keyframes mgOrderNavDrop {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .mg-order-nav {
        padding: 1rem;
    }

    .mg-order-nav__menus {
        display: grid;
        gap: 0.8rem;
    }

    .mg-order-nav__group {
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .mg-order-nav {
        padding: 0.95rem;
        border-radius: 18px;
    }

    .mg-order-nav__trigger,
    .mg-order-nav__dropdown,
    .mg-order-nav__link {
        border-radius: 14px;
    }
}

.mg-store-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 1.2rem;
    padding: 3px;
    overflow: hidden;
    border: 1px solid rgba(0, 168, 232, 0.22);
    border-radius: 8px;
    background: rgba(0, 18, 29, 0.88);
    box-shadow: 0 8px 20px rgba(0, 45, 68, 0.2);
}

.mg-store-switcher__tab {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.65rem;
    padding: 0.68rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: rgba(211, 242, 255, 0.78);
    text-decoration: none !important;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.mg-store-switcher__tab:hover,
.mg-store-switcher__tab:focus {
    color: #ffffff;
    border-color: rgba(0, 168, 232, 0.3);
    background: rgba(0, 137, 196, 0.1);
    outline: none;
}

.mg-store-switcher__tab.is-active {
    color: #ffffff;
    border-color: rgba(0, 190, 242, 0.58);
    background: #06384d;
    box-shadow: inset 3px 0 0 #00c8f4;
}

.mg-store-switcher__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 168, 232, 0.2);
    border-radius: 6px;
    background: rgba(0, 105, 151, 0.1);
    color: rgba(154, 224, 251, 0.82);
    font-size: 0.86rem;
}

.mg-store-switcher__tab.is-active .mg-store-switcher__icon {
    border-color: rgba(0, 200, 244, 0.44);
    background: rgba(0, 168, 232, 0.18);
    color: #56dcff;
}

.mg-store-switcher__copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.mg-store-switcher__label {
    color: currentColor;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.mg-store-switcher__meta {
    color: rgba(155, 216, 239, 0.58);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .mg-store-switcher {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .mg-store-switcher::-webkit-scrollbar {
        display: none;
    }

    .mg-store-switcher__tab {
        flex: 0 0 min(78vw, 250px);
    }
}

.mgptero-store-image-wrap {
    position: relative;
    width: 100%;
    height: 256px;
    flex-shrink: 0;
    margin: 0.9rem auto 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(0, 168, 232, 0.2);
    background: transparent;
    box-shadow: none;
}

.mgptero-store-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    image-rendering: auto;
    transition: transform 0.4s ease;
}

.mgptero-product-card:hover .mgptero-store-image {
    transform: scale(1.03);
}

.mgptero-store-image-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 80px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
    pointer-events: none;
}

.mgptero-store-spec-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 217, 255, 0.34);
    background: rgba(0, 18, 25, 0.78);
    color: #dff7ff;
    font-size: 0.78rem;
    font-weight: 700;
}

.mgptero-store-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.mgptero-store-specs span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0.4rem;
    padding: 0.5rem 0.58rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 168, 232, 0.16);
    background: rgba(0, 18, 25, 0.34);
    color: rgba(224, 247, 255, 0.84);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
}

.mgptero-store-specs i {
    flex: 0 0 auto;
    color: #00d9ff;
    font-size: 0.75rem;
}

@media (max-width: 1400px) {
    .mg-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .mg-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mgptero-store-image-wrap {
        height: 200px;
    }

    .mgptero-product-card .mg-card-header {
        min-height: 334px;
    }
}

@media (max-width: 768px) {
    .mg-products-grid {
        grid-template-columns: 1fr;
    }

    .mgptero-store-image-wrap {
        height: 190px;
    }

    .mgptero-store-specs {
        grid-template-columns: 1fr;
    }

    .mgptero-product-card .mg-card-header,
    .mgptero-product-card .mg-card-pricing,
    .mgptero-product-card .mg-card-features {
        min-height: 0;
    }
}

/* OVERRIDE FOR GRID LAYOUT */
.mg-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 360px)) !important;
    justify-content: center !important;
}
.mg-product-card-wrapper {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
}


/* COMPREHENSIVE RTL SUPPORT */
html[dir="rtl"] body {
    text-align: right;
    direction: rtl;
}
html[dir="rtl"] .mg-sidebar {
    border-right: none;
    border-left: 1px solid rgba(0, 168, 232, 0.15);
}
html[dir="rtl"] .spec-left i, 
html[dir="rtl"] .mg-dedicated-specs i {
    margin-right: 0 !important;
    margin-left: 8px !important;
}
html[dir="rtl"] .mg-filter-btn i,
html[dir="rtl"] .mg-filter-btn img {
    margin-right: 0 !important;
    margin-left: 8px !important;
}
html[dir="rtl"] .mg-vps-spec-item,
html[dir="rtl"] .mg-dedicated-specs > div > div {
    text-align: right;
}
html[dir="rtl"] .mg-feature i,
html[dir="rtl"] .mgptero-feature-list i {
    margin-right: 0;
    margin-left: 0.6rem;
}
html[dir="rtl"] .mg-card-features,
html[dir="rtl"] .mg-plan-features,
html[dir="rtl"] .mgptero-feature-list,
html[dir="rtl"] .mg-vps-specs,
html[dir="rtl"] .mg-dedicated-specs {
    text-align: right;
    padding-left: 0;
    padding-right: 0;
}
html[dir="rtl"] .mgptero-store-specs span i {
    margin-right: 0;
    margin-left: 6px;
}
html[dir="rtl"] .mg-section-divider img,
html[dir="rtl"] .mg-section-divider i {
    margin-right: 0 !important;
    margin-left: 8px !important;
}

/* The corner "Popular" badge is positioned right:12px for LTR cards, where
   the (left-aligned) title starts on the opposite side and never collides.
   In RTL the title flips to start from the right edge, so without mirroring
   the badge sits directly on top of the first word of the product name. */
html[dir="rtl"] .mg-featured-badge:not(.mg-featured-badge--on-image) {
    right: auto;
    left: 12px;
}

/* Arabic price text ("230.00 دولار/شهر") is far longer than its English
   equivalent ("$230.00/mo"), so at the card's large price font-size it can
   overflow and line-wrap mid-bidi-run, which is what made it render "weirdly".
   Isolate the amount+currency as one bidi unit and shrink the font so it
   reliably fits on a single line. */
html[dir="rtl"] .mg-price-main {
    font-size: clamp(1.35rem, 1.6vw, 1.65rem) !important;
    unicode-bidi: plaintext;
    white-space: nowrap;
}
html[dir="rtl"] .mg-price-main span {
    unicode-bidi: isolate;
}
html[dir="rtl"] .mg-price-display {
    text-align: right;
}
html[dir="rtl"] .mg-billing-cycle,
html[dir="rtl"] .mg-setup-fee,
html[dir="rtl"] .mg-from-label {
    text-align: right;
}
@media (max-width: 480px) {
    html[dir="rtl"] .mg-price-main {
        font-size: 1.2rem !important;
        white-space: normal;
    }
}
