/* =========================================================
   ASK BALQEES
   MEMBER ACCOUNT V2
   CLEAN SINGLE SOURCE
========================================================= */

.bq-account-page,
.bq-activity-page{
    width:100%;
    max-width:760px;
    margin-inline:auto;
    padding-top:14px;
    padding-bottom:100px;
    direction:rtl;
    text-align:right;
    box-sizing:border-box;
}

/* =========================
   ACCOUNT NAVIGATION
========================= */

.bq-account-nav{
    width:100%;
    display:flex;
    align-items:center;
    gap:5px;
    margin:0 0 20px;
    padding:5px;
    overflow-x:auto;
    background:#faf7fd;
    border:1px solid rgba(75,42,99,.10);
    border-radius:16px;
    direction:rtl;
    white-space:nowrap;
    scrollbar-width:none;
    box-sizing:border-box;
}

.bq-account-nav::-webkit-scrollbar{
    display:none;
}

.bq-account-nav a{
    flex:1 0 auto;
    min-width:78px;
    padding:10px 9px;
    border-radius:11px;
    color:#604376;
    text-decoration:none;
    text-align:center;
    font-family:'Tajawal',sans-serif;
    font-size:13px;
    line-height:1.3;
    font-weight:800;
    box-sizing:border-box;
}

.bq-account-nav a:hover{
    background:#f0e8f7;
}

.bq-account-nav a.is-active{
    background:#743ca5;
    color:#fff;
}

/* =========================
   PAGE HEADINGS
========================= */

.bq-activity-head,
.bq-subscription-head{
    margin:0 0 18px;
    text-align:right;
}

.bq-activity-head h1,
.bq-subscription-head h1{
    margin:0 0 5px;
    color:#4b2a63;
    font-family:'Tajawal',sans-serif;
    font-size:25px;
    line-height:1.35;
    font-weight:900;
}

.bq-activity-head p,
.bq-subscription-head p{
    margin:0;
    color:#7b6a83;
    font-family:'Tajawal',sans-serif;
    font-size:14px;
    line-height:1.7;
}

/* =========================
   ACTIVITY STATS
========================= */

.bq-activity-stats{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin:0 0 18px;
}

.bq-activity-stats > div{
    min-width:0;
    padding:15px 8px;
    background:#fff;
    border:1px solid rgba(75,42,99,.09);
    border-radius:18px;
    text-align:center;
    box-shadow:0 5px 18px rgba(75,42,99,.04);
    box-sizing:border-box;
}

.bq-activity-stats strong{
    display:block;
    margin:0 0 4px;
    color:#743ca5;
    font-family:'Tajawal',sans-serif;
    font-size:24px;
    line-height:1.2;
    font-weight:900;
}

.bq-activity-stats span{
    display:block;
    margin:0;
    color:#77677e;
    font-family:'Tajawal',sans-serif;
    font-size:13px;
    line-height:1.4;
    font-weight:700;
}

/* =========================
   ACTIVITY CONTENT
========================= */

.bq-activity-box{
    width:100%;
    padding:14px;
    background:#fff;
    border:1px solid rgba(75,42,99,.09);
    border-radius:20px;
    box-shadow:0 7px 24px rgba(75,42,99,.05);
    box-sizing:border-box;
}

.bq-activity-box .tabs{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin:0 0 15px;
}

.bq-activity-box .tab-btn{
    appearance:none;
    width:100%;
    min-width:0;
    min-height:44px;
    margin:0;
    padding:10px 12px;
    border:0;
    border-radius:13px;
    background:#eee7f5;
    color:#5b3a70;
    font-family:'Tajawal',sans-serif;
    font-size:14px;
    line-height:1.3;
    font-weight:800;
    text-align:center;
    cursor:pointer;
}

.bq-activity-box .tab-btn.active{
    background:#743ca5;
    color:#fff;
}

.bq-activity-box .tab-content{
    display:none;
}

.bq-activity-box .tab-content.active{
    display:block;
}

/* =========================
   CURRENT SUBSCRIPTION
========================= */

.bq-current-plan,
.bq-no-plan{
    width:100%;
    margin:0 0 18px;
    padding:16px;
    background:#fff;
    border:1px solid rgba(75,42,99,.10);
    border-radius:18px;
    box-shadow:0 5px 18px rgba(75,42,99,.05);
    box-sizing:border-box;
}

.bq-current-label{
    margin:0 0 5px;
    color:#8b6b9e;
    font-size:12px;
    font-weight:800;
}

.bq-current-plan h2{
    margin:0 0 10px;
    color:#4b2a63;
    font-size:20px;
    line-height:1.4;
    font-weight:900;
}

.bq-current-meta{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}

.bq-current-meta span{
    padding:6px 9px;
    background:#faf7fd;
    border-radius:10px;
    color:#65546e;
    font-size:12px;
    font-weight:700;
}

.bq-no-plan{
    display:flex;
    flex-direction:column;
    gap:5px;
    color:#675671;
}

/* =========================
   PLANS
========================= */

.bq-plans-title h2{
    margin:0 0 12px;
    color:#4b2a63;
    font-size:20px;
    font-weight:900;
}

.bq-plans-grid{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.bq-plan-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    padding:16px;
    background:#fff;
    border:1px solid rgba(75,42,99,.10);
    border-radius:18px;
    box-shadow:0 5px 18px rgba(75,42,99,.05);
    box-sizing:border-box;
}

.bq-plan-card h3{
    margin:0 0 8px;
    color:#4b2a63;
    font-size:17px;
    line-height:1.4;
    font-weight:900;
}

.bq-plan-price{
    color:#743ca5;
    font-size:24px;
    font-weight:900;
}

.bq-plan-price small{
    font-size:12px;
    font-weight:800;
}

.bq-plan-duration{
    margin:3px 0 12px;
    color:#85758d;
    font-size:12px;
    font-weight:700;
}

.bq-plan-features{
    margin:0 0 14px;
    padding:0;
    list-style:none;
}

.bq-plan-features li{
    display:flex;
    align-items:flex-start;
    gap:7px;
    margin:7px 0;
    color:#55465e;
    font-size:13px;
    line-height:1.5;
}

.bq-plan-features li span{
    color:#743ca5;
    font-weight:900;
}

.bq-plan-current,
.bq-plan-buy{
    width:100%;
    margin-top:auto;
    padding:10px 12px;
    border-radius:12px;
    text-align:center;
    font-family:'Tajawal',sans-serif;
    font-size:14px;
    font-weight:900;
    box-sizing:border-box;
}

.bq-plan-current{
    background:#efe5f7;
    color:#743ca5;
}

.bq-plan-buy{
    border:0;
    background:#eeeaf1;
    color:#8d8292;
    cursor:not-allowed;
}

.bq-payment-note{
    margin-top:14px;
    padding:11px 13px;
    background:#faf7fd;
    border-radius:13px;
    color:#75667e;
    text-align:center;
    font-size:12px;
    font-weight:700;
}

/* =========================
   INVOICES
========================= */

.bq-invoices-page{
    width:100%;
    max-width:760px;
    margin-inline:auto;
    padding-top:14px;
    padding-bottom:100px;
    direction:rtl;
    text-align:right;
    box-sizing:border-box;
}

.bq-invoices-page h1{
    margin:0 0 16px;
    color:#4b2a63;
    font-size:25px;
    line-height:1.35;
    font-weight:900;
}

/* =========================
   MOBILE
========================= */

@media (max-width:700px){

    .bq-account-page,
    .bq-activity-page,
    .bq-invoices-page{
        padding-top:10px;
    }

    .bq-account-nav{
        gap:4px;
        margin-bottom:16px;
        padding:4px;
        border-radius:14px;
    }

    .bq-account-nav a{
        flex:0 0 auto;
        min-width:76px;
        padding:9px 8px;
        font-size:12px;
    }

    .bq-activity-head h1,
    .bq-subscription-head h1,
    .bq-invoices-page h1{
        font-size:22px;
    }

    .bq-activity-head p,
    .bq-subscription-head p{
        font-size:13px;
    }

    .bq-activity-stats{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }

    .bq-activity-stats > div{
        padding:13px 6px;
    }

    .bq-activity-stats strong{
        font-size:22px;
    }

    .bq-activity-box{
        padding:12px;
    }

    .bq-plans-grid{
        grid-template-columns:1fr;
    }

    .bq-plan-card{
        padding:14px;
    }
}

@media (max-width:380px){

    .bq-account-nav a{
        min-width:70px;
        padding-inline:6px;
        font-size:11px;
    }
}

/* =====================================================
   BALQEES MEMBER EDIT PAGE
===================================================== */

.bq-edit-page{
    width:min(100%,760px);
    margin:0 auto;
    padding:14px 16px 90px;
    direction:rtl;
}

.bq-edit-page .bq-account-nav{
    margin-bottom:16px;
}

.bq-edit-card{
    width:100%;
    max-width:620px;
    margin:0 auto;
    padding:24px;
    background:#fff;
    border:1px solid rgba(75,42,99,.09);
    border-radius:22px;
    box-shadow:0 8px 28px rgba(75,42,99,.06);
}

.bq-edit-card > .h{
    margin:0 0 5px;
    color:#4b2a63;
    font-size:24px;
    line-height:1.35;
    font-weight:900;
    text-align:right;
}

.bq-edit-card > .sub{
    margin:0 0 22px;
    color:#7b6a83;
    font-size:14px;
    line-height:1.7;
    text-align:right;
}

.bq-edit-card .avatar-block{
    display:flex;
    justify-content:center;
    margin:4px 0 20px;
}

.bq-edit-card .avatar-preview{
    display:block;
    width:104px;
    height:104px;
    border:4px solid #fff;
    border-radius:50%;
    background:#f8f4fb;
    object-fit:cover;
    box-shadow:0 8px 24px rgba(92,57,133,.13);
}

.bq-edit-card .lbl{
    display:block;
    margin:16px 0 7px;
    color:#4f3d58;
    font-size:13px;
    line-height:1.5;
    font-weight:800;
    text-align:right;
}

.bq-edit-card .inp{
    display:block;
    width:100%;
    min-height:46px;
    margin:0;
    padding:10px 13px;
    border:1px solid #ded5e5;
    border-radius:13px;
    outline:0;
    background:#fff;
    color:#382d3d;
    font-family:inherit;
    font-size:14px;
    line-height:1.5;
    box-sizing:border-box;
    transition:border-color .15s ease,box-shadow .15s ease;
}

.bq-edit-card .inp:focus{
    border-color:#8b5bb2;
    box-shadow:0 0 0 3px rgba(123,61,175,.09);
}

.bq-edit-card .file-inp{
    min-height:48px;
    padding:8px 10px;
}

.bq-edit-card .file-inp::file-selector-button{
    margin-left:10px;
    padding:8px 12px;
    border:0;
    border-radius:9px;
    background:#eee7f5;
    color:#633e7e;
    font-family:inherit;
    font-weight:800;
    cursor:pointer;
}

.bq-edit-card .hint{
    margin-top:6px;
    color:#8b7e91;
    font-size:11px;
    line-height:1.6;
    font-weight:600;
}

.bq-edit-card .warn{
    margin-top:9px;
    padding:10px 12px;
    border:1px solid #ffd29b;
    border-radius:12px;
    background:#fff8ec;
    color:#855600;
    font-size:12px;
    line-height:1.6;
    font-weight:800;
}

.bq-edit-card .sep{
    height:1px;
    margin:24px 0 20px;
    border:0;
    background:rgba(75,42,99,.09);
}

.bq-edit-card .h-sm{
    margin:0 0 12px;
    color:#4b2a63;
    font-size:19px;
    line-height:1.4;
    font-weight:900;
}

.bq-edit-card .inp-textarea{
    min-height:110px;
    resize:vertical;
}

.bq-edit-card .note{
    margin:18px 0 14px;
    padding:11px 13px;
    border-radius:12px;
    background:#faf7fd;
    color:#75667e;
    text-align:center;
    font-size:11px;
    line-height:1.7;
    font-weight:700;
}

.bq-edit-card .btn-auth{
    display:block;
    width:100%;
    min-height:46px;
    margin-top:10px;
    padding:10px 16px;
    border:0;
    border-radius:13px;
    background:#7b3daf;
    color:#fff;
    font-family:inherit;
    font-size:14px;
    font-weight:900;
    cursor:pointer;
}

.bq-edit-card .btn-auth:hover{
    filter:brightness(.97);
}

.bq-edit-card .actions-row{
    display:flex;
    justify-content:center;
    margin-top:14px;
}

.bq-edit-card .bq-edit-back{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:8px 16px;
    border-radius:11px;
    text-decoration:none;
    font-size:13px;
    font-weight:800;
}

.bq-edit-card .ok,
.bq-edit-card .err{
    margin-top:14px;
    padding:11px 13px;
    border-radius:12px;
    font-size:13px;
    line-height:1.7;
}

.bq-edit-card .err-list{
    margin:7px 0 0;
    padding-right:18px;
}

@media (max-width:700px){

    .bq-edit-page{
        width:100%;
        padding:10px 12px 80px;
    }

    .bq-edit-card{
        max-width:none;
        padding:18px 14px;
        border-radius:18px;
        box-shadow:0 5px 18px rgba(75,42,99,.045);
    }

    .bq-edit-card > .h{
        font-size:21px;
    }

    .bq-edit-card > .sub{
        margin-bottom:18px;
        font-size:13px;
    }

    .bq-edit-card .avatar-preview{
        width:90px;
        height:90px;
    }

    .bq-edit-card .lbl{
        margin-top:14px;
    }

    .bq-edit-card .inp{
        min-height:44px;
        font-size:16px;
    }

    .bq-edit-card .h-sm{
        font-size:18px;
    }
}

@media (max-width:380px){

    .bq-edit-page{
        padding-inline:9px;
    }

    .bq-edit-card{
        padding-inline:12px;
    }
}

/* Balqees subscription checkout */
.bq-checkout-form{
    width:100%;
    margin-top:auto;
}

.bq-checkout-form .bq-plan-buy{
    margin-top:0;
}

.bq-plan-buy-active{
    border:0;
    background:#6f3fa0;
    color:#fff;
    cursor:pointer;
    transition:transform .15s ease, opacity .15s ease;
}

.bq-plan-buy-active:hover{
    opacity:.94;
}

.bq-plan-buy-active:active{
    transform:scale(.985);
}

.bq-plan-buy-active:focus-visible{
    outline:3px solid rgba(111,63,160,.22);
    outline-offset:3px;
}

/* Noor United: subscription readability, 2026-09-28 */
main.container:has(.bq-plans-section){width:100%;max-width:960px;box-sizing:border-box}.bq-account-page:has(.bq-plans-section){padding:24px 20px 100px}.bq-account-page .bq-plans-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px}.bq-account-page .bq-plan-card{width:100%;padding:28px;border:1px solid #e5d9ed;border-radius:22px;box-sizing:border-box}.bq-account-page .bq-plan-card h3{font-size:22px;line-height:1.5}.bq-account-page .bq-plan-price{font-size:36px;line-height:1.4;margin:14px 0 4px}.bq-account-page .bq-plan-duration{font-size:16px;color:#65556f}.bq-account-page .bq-plan-features{margin:22px 0;font-size:16px;line-height:1.9}.bq-account-page .bq-subscription-head p{font-size:16px;color:#65556f;line-height:1.8}.bq-account-page .bq-plan-buy{min-height:48px;font-size:16px;width:100%}.bq-account-page .bq-payment-note{font-size:14px;line-height:1.8;color:#65556f;padding:14px}.bq-account-page .bq-no-plan{padding:20px;line-height:1.8}.bq-account-page .bq-no-plan strong{color:#4b2b61}.bq-account-page .bq-no-plan span{color:#65556f}.bq-account-page:has(.bq-plans-section) .bq-account-nav a{min-height:44px;display:flex;align-items:center;justify-content:center}@media(max-width:600px){.bq-account-page:has(.bq-plans-section){padding:16px 4px 90px}.bq-account-page .bq-plan-card{padding:22px}.bq-account-page .bq-plan-card h3{font-size:20px}}

/* Noor United - subscription selection and temporary demo checkout */
.bq-account-page .bq-plan-buy-active{display:flex;align-items:center;justify-content:center;min-height:48px;text-decoration:none;background:#793da0;color:#fff;border:0;border-radius:12px;padding:12px 16px;box-sizing:border-box;font:inherit;font-weight:700;cursor:pointer;width:100%;}
.bq-account-page .bq-plan-buy-active:focus-visible,.bq-change-plan:focus-visible{outline:3px solid #ad72c9;outline-offset:4px;}
.bq-account-page .bq-change-plan{display:block;text-align:center;margin-top:18px;padding:10px;color:#713691;}
.bq-account-page .bq-checkout-form .bq-payment-note{line-height:1.8;font-size:14px;margin:16px 0;}
.bq-account-page .bq-plan-card{min-width:0;overflow-wrap:anywhere;}
@media(max-width:480px){.bq-account-page{width:100%;max-width:100%;padding-left:16px;padding-right:16px;box-sizing:border-box;padding-bottom:96px;}.bq-account-page .bq-plans-grid{grid-template-columns:minmax(0,1fr);}.bq-account-page .bq-plan-card{padding:22px;}.bq-account-page .bq-plan-buy-active{font-size:15px;}}
/* Noor United — invoices and invoice details */
main.bq-billing-page{width:100%;max-width:900px!important;margin:0 auto;padding:28px 20px 110px;box-sizing:border-box;direction:rtl}.bq-billing-heading{margin:24px 0}.bq-billing-heading h1{font-size:28px;color:#512967;margin:0 0 8px;font-weight:800}.bq-billing-heading p{color:#746b7c;line-height:1.8;margin:0}.bq-billing-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:18px}.bq-bill-card,.bq-bill-document{background:#fff;border:1px solid #e9e1ed;border-radius:20px;padding:24px;box-shadow:0 6px 24px #45205708;min-width:0}.bq-bill-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.bq-bill-number,.bq-bill-eyebrow{font-size:14px;color:#746b7c}.bq-bill-badge{display:inline-flex;padding:7px 12px;border-radius:30px;font-size:13px;font-weight:700;white-space:nowrap}.bq-bill-badge.is-pending{background:#fff3dc;color:#81560e}.bq-bill-badge.is-paid{background:#edf7f1;color:#286144}.bq-bill-card h2,.bq-bill-document h2{font-size:20px;line-height:1.6;margin:20px 0 8px;color:#452057}.bq-bill-date{color:#827887;font-size:14px;margin:0 0 22px}.bq-bill-card-bottom{border-top:1px solid #eee7f1;padding-top:18px;display:flex;justify-content:space-between;gap:12px;align-items:center}.bq-bill-price{font-size:26px;color:#713795;white-space:nowrap}.bq-bill-price small,.bq-bill-total small{font-size:13px;font-weight:600}.bq-bill-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;color:#713795;font-weight:700;text-decoration:none}.bq-billing-back{display:inline-flex;min-height:44px;align-items:center;margin-bottom:10px;color:#713795;text-decoration:none}.bq-bill-link:focus-visible,.bq-billing-back:focus-visible{outline:3px solid #b387ca;outline-offset:4px;border-radius:6px}.bq-bill-meta{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:28px 0;padding:24px 0;border-top:1px solid #eee7f1;border-bottom:1px solid #eee7f1}.bq-bill-meta dt{font-size:13px;color:#827887;margin-bottom:7px}.bq-bill-meta dd{margin:0;font-weight:600;color:#3f3347;overflow-wrap:anywhere}.bq-bill-item{display:flex;align-items:center;justify-content:space-between;gap:20px}.bq-bill-item h3{font-size:19px;margin:8px 0;color:#452057}.bq-bill-item p{color:#746b7c;line-height:1.8;font-size:14px}.bq-bill-total{display:flex;justify-content:space-between;align-items:center;background:#f7f2fa;border-radius:12px;padding:20px;margin-top:24px;font-weight:700}.bq-bill-total strong{font-size:24px;color:#713795}.bq-bill-notice{padding:16px;background:#fff8e9;border-radius:12px;color:#79591d;font-size:14px;line-height:1.8}.bq-bill-reference{display:flex;flex-direction:column;gap:7px;color:#827887;font-size:12px;margin-top:24px}.bq-bill-reference bdi{overflow-wrap:anywhere;direction:ltr;text-align:right}.bq-bill-document h2{margin:5px 0}
@media(max-width:600px){main.bq-billing-page{padding:18px 16px 110px}.bq-billing-heading h1{font-size:24px}.bq-bill-card,.bq-bill-document{padding:20px}.bq-bill-price{font-size:23px}.bq-bill-item{align-items:flex-start;flex-direction:column;gap:6px}.bq-bill-meta{gap:18px 12px}.bq-bill-badge{font-size:12px;padding:6px 10px}.bq-bill-card-bottom{flex-wrap:wrap}}
@media print{.bq-billing-page nav,.bq-billing-back{display:none!important}.bq-bill-document{box-shadow:none;border-color:#ccc;color:#000}.bq-billing-page{max-width:100%!important;padding:0!important}}
/* Noor United — invoice header aligned with account tabs */
.bq-bill-document>.bq-bill-top{background:#faf7fd;border:1px solid #e8dfed;border-radius:16px;padding:18px 20px;align-items:center}.bq-bill-document>.bq-bill-top .bq-bill-eyebrow{color:#7d6888;font-size:13px}.bq-bill-document>.bq-bill-top h2{color:#63357d;font-size:21px;font-weight:700;margin:6px 0;line-height:1.5}.bq-bill-document>.bq-bill-top .bq-bill-number{color:#84758e;font-size:13px}.bq-bill-document>.bq-bill-meta{margin-top:22px;border-top:0;padding-top:0}@media(max-width:600px){.bq-bill-document>.bq-bill-top{padding:16px;gap:12px}.bq-bill-document>.bq-bill-top h2{font-size:19px}}