﻿
.ng-plans-wrapper {
    min-height: 100vh;
    padding: 3.25rem 0 4rem;
    background: radial-gradient(circle at top, #dbeafe 0, #f9fafb 42%, #f8fafc 100%);
}

.ng-plans-header {
    margin-bottom: 1.25rem;
}

.ng-plans-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .95rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, .06);
    color: #1d4ed8;
    font-size: .78rem;
    margin-bottom: .75rem;
}

.ng-plans-breadcrumb-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
}

.ng-plans-title {
    font-weight: 800;
    font-size: 1.9rem;
    color: #0f172a;
    margin-bottom: .25rem;
}

.ng-plans-subtitle {
    color: #64748b;
    font-size: .95rem;
    max-width: 680px;
}

.ng-plans-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.1rem;
    font-size: .8rem;
}

.ng-plans-meta-badge {
    padding: .45rem .8rem;
    border-radius: .9rem;
    background: rgba(15, 23, 42, .03);
    border: 1px solid rgba(148, 163, 184, .35);
}

.ng-plans-meta-label {
    display: block;
    color: #94a3b8;
}

.ng-plans-meta-value {
    font-weight: 600;
    color: #0f172a;
}

/* =========================
           Product chooser (Step 1) - scalable
           ========================= */

.ng-step-card {
    border-radius: 1.35rem;
    border: 1px solid rgba(226, 232, 240, .95);
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.ng-step-card-header {
    padding: 1rem 1.2rem .85rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(to left, rgba(248, 250, 252, .95), #ffffff);
}

.ng-step-title {
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    font-size: 1.02rem;
}

.ng-step-subtitle {
    color: #64748b;
    font-size: .85rem;
    margin-top: .25rem;
    margin-bottom: 0;
}

/* container enables many products without breaking layout */
.ng-product-rail {
    padding: .85rem 1.1rem 1rem;
}

.ng-product-switcher {
    display: flex;
    gap: .55rem;
    padding: .35rem;
    border-radius: 1.1rem;
    background: rgba(15, 23, 42, .03);
    border: 1px solid rgba(148, 163, 184, .4);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

    .ng-product-switcher::-webkit-scrollbar {
        height: 8px;
    }

    .ng-product-switcher::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, .55);
        border-radius: 999px;
    }

    .ng-product-switcher::-webkit-scrollbar-track {
        background: transparent;
    }

.ng-product-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: .45rem .95rem;
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
    white-space: nowrap;
}

    .ng-product-pill span {
        white-space: nowrap;
    }

    .ng-product-pill i {
        font-size: .95rem;
    }

    .ng-product-pill.active {
        background: #0f172a;
        color: #f9fafb;
        box-shadow: 0 10px 25px rgba(15, 23, 42, .3);
    }

        .ng-product-pill.active .ng-active-dot {
            width: .55rem;
            height: .55rem;
            border-radius: 999px;
            background: linear-gradient(135deg, #22c55e, #0ea5e9);
            display: inline-block;
        }

    .ng-product-pill:not(.active):hover {
        background: rgba(255, 255, 255, .9);
        color: #0f172a;
        border-color: rgba(226, 232, 240, .95);
    }

/* =========================
           Cards: subscription summary
           ========================= */
.ng-plans-card {
    border-radius: 1.35rem;
    border: 1px solid rgba(226, 232, 240, .95);
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.ng-plans-card-header {
    padding: 1.15rem 1.6rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(to left, rgba(248, 250, 252, .95), #ffffff);
}

.ng-plans-card-body {
    padding: 1.35rem 1.6rem 1.55rem;
}

.ng-badge-soft {
    border-radius: 999px;
    padding: .2rem .8rem;
    font-size: .78rem;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.ng-badge-soft-muted {
    border-radius: 999px;
    padding: .2rem .8rem;
    font-size: .78rem;
    background: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.ng-current-label {
    font-size: .85rem;
    color: #94a3b8;
}

.ng-current-value {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
}

.ng-current-tags span {
    border-radius: 999px;
    padding: .15rem .6rem;
    font-size: .72rem;
    border: 1px dashed #cbd5e1;
    color: #475569;
    background: #f8fafc;
}

.ng-progress-bg {
    height: .45rem;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.ng-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #22c55e);
}

.ng-license-box {
    background: #f8fafc;
    border-radius: .7rem;
    border: 1px dashed #cbd5e1;
    padding: .5rem .8rem;
    font-family: "Courier New", monospace;
    font-size: .86rem;
}

/* =========================
           Plans section
           ========================= */
.ng-plans-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: .75rem;
}

.ng-plans-hints {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .95rem;
    margin-bottom: 1.1rem;
    color: #6b7280;
    font-size: .85rem;
}

    .ng-plans-hints i {
        margin-left: .35rem;
    }

.ng-plan-card {
    border-radius: 1.1rem;
    border: 1px solid #e2e8f0;
    padding: 1.25rem 1.3rem 1.3rem;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
    position: relative;
    overflow: hidden;
}

    .ng-plan-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 35px rgba(15, 23, 42, .08);
        border-color: #bfdbfe;
    }

/* Best value highlight (UI-only) */
.ng-plan-best {
    border-color: rgba(27, 102, 214, .35);
    box-shadow: 0 18px 45px rgba(27, 102, 214, .10);
}

    .ng-plan-best::before {
        content: "أفضل قيمة";
        position: absolute;
        top: 14px;
        left: 14px;
        padding: .25rem .65rem;
        border-radius: 999px;
        font-size: .72rem;
        font-weight: 800;
        background: rgba(27, 102, 214, .12);
        color: #1d4ed8;
        border: 1px solid rgba(27, 102, 214, .18);
    }

.ng-plan-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: .25rem;
    letter-spacing: .1px;
}

.ng-plan-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
}

.ng-plan-duration {
    font-size: .8rem;
    color: #94a3b8;
}

.ng-plan-chip {
    border-radius: 999px;
    padding: .2rem .65rem;
    font-size: .72rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #64748b;
    white-space: nowrap;
}

.ng-plan-chip-primary {
    border-color: rgba(37, 99, 235, .25);
    background: rgba(219, 234, 254, .85);
    color: #1d4ed8;
    font-weight: 700;
}

.ng-plan-desc {
    font-size: .9rem;
    color: #6b7280;
    margin-bottom: .55rem;
    line-height: 1.45;
}

.ng-plan-perday {
    font-size: .78rem;
    color: #94a3b8;
    margin-top: -.25rem;
    margin-bottom: .55rem;
}

.ng-plan-feature-list {
    margin: .65rem 0 1rem;
    padding-inline-start: 1.1rem;
    font-size: .82rem;
    color: #6b7280;
}

    .ng-plan-feature-list li + li {
        margin-top: .25rem;
    }

.ng-more summary {
    cursor: pointer;
    color: #1d4ed8;
    font-weight: 700;
    font-size: .85rem;
    user-select: none;
    outline: none;
}

    .ng-more summary:hover {
        text-decoration: underline;
    }

.ng-plans-empty {
    padding: 2rem 1.5rem;
    border-radius: 1.2rem;
    border: 1px dashed #cbd5e1;
    background: rgba(248, 250, 252, .9);
    text-align: center;
    color: #6b7280;
    font-size: .9rem;
}

.ng-alert {
    border-radius: .9rem;
    padding: .7rem .9rem;
    font-size: .85rem;
}

/* =========================
           Chrome store button
           ========================= */
.ng-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.35rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #1e293b;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.75rem;
}

    .ng-store-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
        border-color: #cbd5e1;
        color: #0f172a;
    }

    .ng-store-btn i {
        font-size: 1.1rem;
        color: #2563eb;
    }

    .ng-store-btn small {
        display: block;
        font-size: 0.7rem;
        color: #64748b;
        font-weight: normal;
        line-height: 1;
        margin-bottom: 2px;
    }

@@media (max-width: 768px) {
    .ng-plans-wrapper {
        padding-top: 2.2rem;
    }

    .ng-plans-title {
        font-size: 1.45rem;
    }

    .ng-plan-price {
        font-size: 1.45rem;
    }

    .ng-plan-card {
        padding: 1.05rem 1.05rem 1.1rem;
    }

    .ng-product-rail {
        padding: .75rem .75rem .85rem;
    }
}

.ng-money {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    direction: ltr; /* يخلي الرقم يطلع مضبوط حتى في RTL */
    unicode-bidi: plaintext;
}

.ng-money-value {
    font-weight: 700;
}

.ng-sar-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    opacity: .9;
}
/* Product rail redesign */
.ng-product-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ng-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ng-filter-pill {
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    padding: .45rem .8rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
    box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

    .ng-filter-pill.active {
        border-color: rgba(13,110,253,.35);
        box-shadow: 0 6px 18px rgba(13,110,253,.08);
    }

.ng-searchbox {
    position: relative;
    min-width: min(360px, 92vw);
}

    .ng-searchbox i {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        opacity: .55;
    }

    .ng-searchbox input {
        padding-right: 36px;
        border-radius: 999px;
    }

.ng-rail-shell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ng-rail-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.ng-product-switcher {
    display: flex;
    gap: 10px;
    overflow: auto;
    scroll-behavior: smooth;
    padding: 6px 4px;
    flex: 1;
}

    .ng-product-switcher::-webkit-scrollbar {
        height: 8px;
    }

    .ng-product-switcher::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(0,0,0,.12);
    }

    .ng-product-switcher::-webkit-scrollbar-track {
        background: transparent;
    }

.ng-product-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: .7rem .9rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

    .ng-product-pill.active {
        border-color: rgba(13,110,253,.35);
        box-shadow: 0 10px 28px rgba(13,110,253,.12);
    }

.ng-pill-text {
    font-weight: 700;
}

.ng-pill-muted {
    font-size: .75rem;
    padding: .15rem .45rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    opacity: .8;
}
