html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #f97316;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/*-----NEW AB TEST PH-----*/
.res-steps-container {
    max-width: 790px;
    margin: 0 auto;
    padding-right: 22px;
    display: flex;
}

    .res-steps-container .res-steps {
        width: 25%;
        text-align: center;
        float: left;
        cursor: default;
        margin-bottom: 56px;
        position: relative;
    }

@media (max-width: 767px) {
    .res-steps-container .res-steps {
        margin-bottom: 36px;
    }
}

.res-steps-container .res-steps .res-step-bar .res-step-bar-inner {
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
    -ms-border-radius: 50% !important;
    border-radius: 50% !important;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 39px;
    width: 39px;
    text-align: center;
    line-height: 40px;
    font-family: Gotham Pro;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    font-size: 18px;
    text-align: center;
    color: #D1D1D1;
    border: 1px solid #D1D1D1;
}

.res-steps-container .res-steps .res-step-bar {
    -webkit-border-radius: 50% !important;
    -moz-border-radius: 50% !important;
    -ms-border-radius: 50% !important;
    border-radius: 50% !important;
    background: #f8f8f9;
    color: #bbbbbb;
    display: inline-block;
    height: 40px;
    width: 40px;
    text-align: center;
    z-index: 2;
    position: relative;
    margin-bottom: 14px;
}

.res-steps-container .res-steps .res-progress-title {
    font-style: normal;
    font-weight: normal;
    line-height: 23px;
    font-size: 14px;
    text-align: center;
    color: #D1D1D1;
}

.res-steps-container .res-steps.active .res-progress-title {
    font-style: normal;
    font-weight: normal;
    line-height: 23px;
    font-size: 14px;
    text-align: center;
    color: #333333;
}

.res-steps-container .res-steps .res-progress-bar {
    position: absolute;
    left: -50%;
    top: 20PX;
    height: 1px;
    background: #D6D6D6;
    width: 100%;
    float: left;
}

.res-steps-container .res-steps.active .res-progress-bar {
    background: #6d9b93;
}

.res-steps-container .res-step-two .res-progress-bar, .res-steps-container .res-step-four .res-progress-bar {
    width: 100%;
    margin-left: 0%
}

.res-steps-container .res-step-one .res-progress-bar {
    width: 100%;
    margin-right: 0%;
    display: none;
}

.res-steps-container .res-step-four .res-progress-bar {
    width: 50%;
    margin-right: 50%
}

.res-steps-container .active .res-step-bar .res-step-bar-inner {
    border-color: #E65C23;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E65C23 !important;
    color: #fff !important;
    border-radius: 50%;
    font-family: Gotham Pro;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    font-size: 18px;
    text-align: center;
}

.res-steps-container .res-step-four .res-progress-bar {
    width: 100%;
    margin-right: 50%;
}

.res-steps-container .res-steps.step-done .res-step-bar-inner {
    background-color: #E65C23 !important;
    border: 3px solid #E65C23;
    background-size: 19px 15px;
}

@media (max-width: 767px) {
    .res-steps-container .res-steps.step-done .res-step-bar-inner {
        background-size: 9px 7px !important;
    }
}

@media (max-width: 767px) {
    .res-steps-container .res-steps:first-child .res-progress-title {
        max-width: 50px;
    }

    .res-steps-container .res-steps.active .res-progress-title, .res-steps-container .res-steps .res-progress-title {
        line-height: 14px;
        font-size: 10px;
        text-align: center;
        max-width: 50px;
        margin: 0 auto;
    }

    .res-steps-container .res-steps .res-progress-title {
        line-height: 14px;
        font-size: 10px;
        text-align: center;
        max-width: 60px;
        margin: 0 auto;
    }

    .res-steps-container .res-steps .res-step-bar, .res-steps-container .res-steps .res-step-bar .res-step-bar-inner {
        height: 20px;
        width: 20px;
        color: transparent;
    }

    .res-steps-container .active .res-step-bar .res-step-bar-inner {
        color: transparent !important;
    }

    .res-steps-container .res-steps .res-progress-bar {
        top: 10px;
    }
}


#order-form * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.type-services-item {
    text-align: left;
    white-space: normal;
    font-weight: bold;
}

.type-services-desc {
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
    opacity: .8;
}

/* ---- Modern Order Form ---- */
.order-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.order-section-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.order-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #6c757d;
    margin-bottom: .75rem;
}

/* Service type cards */
.service-card-btn {
    border: 2px solid #dee2e6 !important;
    border-radius: 10px !important;
    padding: .85rem 1rem;
    text-align: left;
    background: #fff;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    color: #212529;
    min-width: 120px;
    white-space: normal;
}

.service-card-btn:hover {
    border-color: #E65C23 !important;
    background: #fff6f2;
    color: #E65C23;
}

.service-card-btn.active,
.service-card-btn.is-selected {
    border-color: #E65C23 !important;
    background: #fff6f2;
    color: #E65C23;
    box-shadow: 0 0 0 3px rgba(230, 92, 35, .12);
}
.service-card-btn.active .service-card-bold,
.service-card-btn.is-selected .service-card-bold {
    color: #ffffff;
}

.service-card-btn input[type="radio"] {
    display: none;
}

.service-card-bold {
    font-size: 14px;
    font-weight: 700;
}

.service-card-desc {
    font-size: 11px;
    font-weight: 400;
    opacity: .7;
    margin-top: 3px;
}

/* Academic level pill buttons */
.level-pill-btn {
    border: 2px solid #dee2e6 !important;
    border-radius: 50px !important;
    padding: .45rem 1.1rem;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    color: #495057;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.level-pill-btn:hover {
    border-color: #E65C23 !important;
    background: #fff6f2;
    color: #E65C23;
}

.level-pill-btn.active,
.level-pill-btn.is-selected {
    border-color: #E65C23 !important;
    background: #E65C23;
    color: #fff;
}

.level-pill-btn input[type="radio"] {
    display: none;
}

/* Spacing toggle buttons */
.spacing-btn {
    border: 2px solid #dee2e6 !important;
    border-radius: 8px !important;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    color: #495057;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
    padding: .5rem .75rem;
}

.spacing-btn:hover {
    border-color: var(--ae-primary) !important;
    background: var(--ae-light);
    color: var(--ae-primary);
}

.spacing-btn.active,
.spacing-btn.is-selected {
    border-color: var(--ae-primary) !important;
    background: var(--ae-primary);
    color: #fff;
}

.addon-card {
    background: #fff;
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    padding: .75rem 1rem;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.addon-card:hover {
    border-color: #fd7e14;
    background: #fff8f2;
}

.addon-card input[type="checkbox"]:checked ~ .flex-grow-1 .service-card-bold {
    color: #fd7e14;
}

.addon-price {
    font-size: .85rem;
    font-weight: 600;
    color: #198754;
    white-space: nowrap;
}

.spacing-btn input[type="radio"] {
    display: none;
}

/* Pages stepper */
.pages-stepper .page-adjust-btn {
    width: 44px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.pages-stepper .page-count-input {
    font-size: 18px;
}

/* Order summary card */
.order-summary-sticky {
    position: sticky;
    top: 80px;
}

.order-summary-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: .35rem 0;
    color: #495057;
}

.summary-total {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
}

/* Mobile price bar */
.mobile-price-bar {
    background: #fff;
    border: 1px solid #e9ecef;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
}

.spacing__info {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}


/* ═══════════════════════════════════════════════════════
   ALPHA ESSAYS  –  GLOBAL TOKENS & FONTS
═══════════════════════════════════════════════════════ */
:root {
    --ae-primary:       #f97316;
    --ae-primary-dark:  #c2410c;
    --ae-accent:        #1e3a5f;
    --ae-dark:          #111827;
    --ae-dark-card:     #1f2937;
    --ae-light:         #fff7f0;
    --ae-green:         #22c55e;
    --ae-font-body:     'Inter', system-ui, sans-serif;
    --ae-font-head:     'Sora', 'Inter', system-ui, sans-serif;
    --ae-radius:        1rem;
    --ae-radius-sm:     .6rem;
    --ae-shadow:        0 8px 32px rgba(249,115,22,.15);
    --ae-shadow-lg:     0 20px 60px rgba(249,115,22,.25);
}

body {
    font-family: var(--ae-font-body);
    margin-bottom: 0 !important;
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
.ae-header {
    z-index: 1030;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(92,59,254,.1);
    box-shadow: 0 2px 20px rgba(92,59,254,.07);
}

.ae-navbar { padding: .75rem 0; }

.ae-brand {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    text-decoration: none;
    font-family: var(--ae-font-head);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ae-dark);
}
.ae-brand-alpha {
    font-size: 1.9rem;
    line-height: 1;
    color: var(--ae-primary);
    font-style: italic;
}
.ae-brand-text strong { color: var(--ae-primary); }

.ae-nav-link {
    font-weight: 500;
    font-size: .9rem;
    color: #374151 !important;
    padding: .45rem .85rem !important;
    border-radius: var(--ae-radius-sm);
    transition: background .2s, color .2s;
    letter-spacing: .01em;
}
.ae-nav-link:hover,
.ae-nav-link:focus { background: var(--ae-light); color: var(--ae-primary-dark) !important; }

.ae-dropdown {
    border: 1px solid rgba(92,59,254,.12);
    border-radius: var(--ae-radius-sm);
    box-shadow: var(--ae-shadow);
    padding: .5rem;
}
.ae-dropdown .dropdown-item {
    border-radius: .4rem;
    font-size: .875rem;
    font-weight: 500;
    padding: .5rem .85rem;
}
.ae-dropdown .dropdown-item:hover { background: var(--ae-light); color: var(--ae-primary-dark); }

.ae-toggler {
    border: none;
    color: var(--ae-primary);
    font-size: 1.3rem;
    background: var(--ae-light);
    border-radius: var(--ae-radius-sm);
    padding: .45rem .65rem;
}

@media (min-width: 992px) {
    .ae-navbar .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .ae-navbar .navbar-nav {
        flex-direction: row;
    }

    .ae-navbar .navbar-toggler {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.ae-btn-order {
    background: linear-gradient(135deg, var(--ae-primary), var(--ae-primary-dark));
    color: #fff !important;
    border: none;
    border-radius: var(--ae-radius-sm);
    font-weight: 600;
    font-size: .9rem;
    padding: .6rem 1.35rem;
    box-shadow: 0 4px 16px rgba(92,59,254,.35);
    transition: transform .2s, box-shadow .2s, opacity .2s;
}
.ae-btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(92,59,254,.4);
    opacity: .92;
    color: #fff !important;
}

.ae-btn-hero-primary {
    background: linear-gradient(135deg, var(--ae-primary-dark), var(--ae-primary));
    color: #fff !important;
    border: none;
    border-radius: var(--ae-radius-sm);
    font-weight: 700;
    padding: .85rem 2.2rem;
    box-shadow: var(--ae-shadow-lg);
    transition: transform .2s, box-shadow .2s;
}
.ae-btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 24px 64px rgba(249,115,22,.4); color:#fff !important; }

.ae-btn-hero-ghost {
    background: transparent;
    border: 2px solid rgba(249,115,22,.5);
    color: #fb923c !important;
    border-radius: var(--ae-radius-sm);
    font-weight: 600;
    padding: .85rem 2.2rem;
    transition: background .2s, border-color .2s, color .2s;
}
.ae-btn-hero-ghost:hover { background: rgba(249,115,22,.12); border-color: var(--ae-primary); color:#fff !important; }

/* ═══════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════ */
.ae-hero {
    position: relative;
    background: linear-gradient(135deg, #111827 0%, #1e3a5f 55%, #0f172a 100%);
    overflow: hidden;
    padding: 5rem 0 6rem;
}
.min-vh-hero { min-height: 80vh; }

.ae-hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.ae-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
}
.ae-shape-1 { width: 500px; height: 500px; background: var(--ae-primary); top: -150px; right: -120px; }
.ae-shape-2 { width: 350px; height: 350px; background: #fb923c; bottom: -100px; left: -80px; opacity: .25; }
.ae-shape-3 { width: 220px; height: 220px; background: #fbbf24; top: 40%; left: 38%; opacity: .12; }

.ae-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #e2e8f0;
    font-size: .85rem;
    font-weight: 500;
    padding: .4rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}

.ae-hero-title {
    font-family: var(--ae-font-head);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.03em;
}
.ae-gradient-text {
    background: linear-gradient(90deg, #f97316, #fb923c, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ae-hero-sub {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 480px;
}

.ae-trust-row { gap: 1.5rem; }
.ae-trust-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #cbd5e1;
    font-size: .875rem;
    font-weight: 500;
}
.ae-trust-item i { font-size: 1rem; }

/* Hero card */
.ae-hero-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 1.25rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--ae-shadow-lg);
}
.ae-hero-card-header {
    background: linear-gradient(135deg, var(--ae-primary-dark), var(--ae-primary));
    color: #fff;
    font-weight: 700;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}
.ae-hero-card-body { padding: 1.75rem; }

.ae-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.ae-stat-box {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--ae-radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.ae-stat-num {
    font-family: var(--ae-font-head);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.ae-stat-label { font-size: .75rem; color: #94a3b8; margin-top: .35rem; }

/* ═══════════════════════════════════════════════════════
   TICKER
═══════════════════════════════════════════════════════ */
.ae-ticker-section {
    background: var(--ae-primary-dark);
    overflow: hidden;
}
.ae-ticker-track { overflow: hidden; white-space: nowrap; }
.ae-ticker-inner {
    display: inline-block;
    animation: aeTickerScroll 35s linear infinite;
    white-space: nowrap;
}
.ae-ticker-item {
    display: inline-block;
    color: rgba(255,255,255,.9);
    font-size: .875rem;
    font-weight: 500;
    padding: 0 .5rem;
}
.ae-ticker-sep { color: rgba(255,255,255,.4); padding: 0 .5rem; }
@keyframes aeTickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════
   SHARED SECTION STYLES
═══════════════════════════════════════════════════════ */
.ae-section { padding: 5rem 0; }
.ae-section-light { background: var(--ae-light); }
.ae-section-dark { background: linear-gradient(135deg, #111827, #1e3a5f); }

.ae-section-label {
    display: inline-block;
    background: rgba(249,115,22,.12);
    color: var(--ae-primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 50px;
}
.ae-section-label-light {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.85);
}
.ae-section-title {
    font-family: var(--ae-font-head);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #111827;
    letter-spacing: -.02em;
    margin-top: .5rem;
    margin-bottom: 0;
}
.ae-section-dark .ae-section-title { color: #fff; }
.ae-section-sub { color: #6b7280; font-size: 1rem; max-width: 560px; margin: .75rem auto 0; }

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS – STEP CARDS
═══════════════════════════════════════════════════════ */
.ae-step-card {
    background: #fff;
    border-radius: var(--ae-radius);
    padding: 2rem 1.5rem;
    border: 1px solid rgba(92,59,254,.08);
    position: relative;
    transition: transform .25s, box-shadow .25s;
    text-align: center;
    height: 100%;
}
.ae-step-card:hover { transform: translateY(-6px); box-shadow: var(--ae-shadow); }
.ae-step-card-featured {
    background: linear-gradient(135deg, var(--ae-primary), var(--ae-primary-dark));
    border-color: transparent;
    color: #fff;
}
.ae-step-card-featured .ae-step-num,
.ae-step-card-featured .ae-step-title { color: #fff; }
.ae-step-card-featured .ae-step-desc  { color: rgba(255,255,255,.8); }

.ae-step-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}
.ae-step-icon-1 { background: rgba(249,115,22,.14); color: var(--ae-primary); }
.ae-step-icon-2 { background: rgba(255,255,255,.2); color: #fff; }
.ae-step-icon-3 { background: rgba(34,197,94,.12); color: var(--ae-green); }

.ae-step-num {
    position: absolute; top: 1.1rem; right: 1.25rem;
    font-family: var(--ae-font-head);
    font-size: 2.5rem; font-weight: 800;
    color: rgba(92,59,254,.08);
    line-height: 1;
}
.ae-step-title { font-size: 1.05rem; font-weight: 700; color: #111827; margin-bottom: .5rem; }
.ae-step-desc  { font-size: .9rem; color: #6b7280; margin: 0; }

/* ═══════════════════════════════════════════════════════
   SERVICE CARDS
═══════════════════════════════════════════════════════ */
.ae-service-card {
    background: #fff;
    border: 1px solid rgba(92,59,254,.08);
    border-radius: var(--ae-radius);
    padding: 1.75rem 1.5rem;
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.ae-service-card:hover { transform: translateY(-5px); box-shadow: var(--ae-shadow); }
.ae-service-icon {
    width: 52px; height: 52px;
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.ae-svc-purple { background: rgba(249,115,22,.13); color: var(--ae-primary); }
.ae-svc-blue   { background: rgba(59,130,246,.12); color: #3b82f6; }
.ae-svc-green  { background: rgba(34,197,94,.12);  color: var(--ae-green); }
.ae-svc-orange { background: rgba(255,107,53,.12); color: var(--ae-accent); }
.ae-svc-teal   { background: rgba(20,184,166,.12); color: #14b8a6; }
.ae-svc-red    { background: rgba(239,68,68,.12);  color: #ef4444; }

.ae-service-title { font-size: 1rem; font-weight: 700; color: #111827; }
.ae-service-desc  { font-size: .875rem; color: #6b7280; flex-grow: 1; margin-bottom: 1rem; }
.ae-service-link {
    font-size: .875rem; font-weight: 600;
    color: var(--ae-primary); text-decoration: none;
    margin-top: auto;
    transition: color .2s;
}
.ae-service-link:hover { color: var(--ae-primary-dark); }

/* ═══════════════════════════════════════════════════════
   WHY US – FEATURE CARDS
═══════════════════════════════════════════════════════ */
.ae-feature-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--ae-radius-sm);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: background .2s;
}
.ae-feature-card:hover { background: rgba(255,255,255,.1); }
.ae-feature-icon {
    width: 42px; height: 42px;
    background: rgba(249,115,22,.25);
    border-radius: .6rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fb923c;
    flex-shrink: 0;
}
.ae-feature-title { font-weight: 700; color: #fff; font-size: .925rem; }
.ae-feature-desc  { font-size: .8rem; color: #94a3b8; margin-top: .2rem; }

/* ═══════════════════════════════════════════════════════
   REVIEWS
═══════════════════════════════════════════════════════ */
.ae-review-card {
    background: #fff;
    border: 1px solid rgba(92,59,254,.08);
    border-radius: var(--ae-radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}
.ae-review-card:hover { transform: translateY(-5px); box-shadow: var(--ae-shadow); }
.ae-review-stars { color: #f59e0b; font-size: 1rem; }
.ae-review-body { color: #374151; font-size: .925rem; line-height: 1.7; flex-grow: 1; }
.ae-review-author { display: flex; align-items: center; gap: .85rem; }
.ae-review-avatar {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--ae-primary), #fb923c);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1rem;
    flex-shrink: 0;
}
.ae-review-name   { font-weight: 700; font-size: .9rem; color: #111827; }
.ae-review-course { font-size: .78rem; color: #9ca3af; }

/* ═══════════════════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════════════════ */
.ae-cta-section {
    background: linear-gradient(135deg, #c2410c 0%, var(--ae-primary) 50%, #fb923c 120%);
    padding: 5rem 1rem;
    text-align: center;
}
.ae-cta-title {
    font-family: var(--ae-font-head);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
}
.ae-cta-sub { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

.btn-group-toggle .btn.is-selected {
    background-color: var(--ae-primary) !important;
    border-color: var(--ae-primary) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(249,115,22,.25);
}
.deadline-option-btn {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #fff;
    color: #495057;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.deadline-option-btn:hover {
    border-color: var(--ae-primary);
    color: var(--ae-primary);
    background-color: var(--ae-light);
}
.deadline-option-btn.is-selected {
    background-color: var(--ae-primary) !important;
    border-color: var(--ae-primary) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(249,115,22,.25);
}

/* ═══════════════════════════════════════════════════════
   BOOTSTRAP BLUE OVERRIDE  –  brand orange everywhere
═══════════════════════════════════════════════════════ */
:root {
    --bs-primary:          #f97316;
    --bs-primary-rgb:      249, 115, 22;
    --bs-link-color:       #f97316;
    --bs-link-color-rgb:   249, 115, 22;
    --bs-link-hover-color: #c2410c;
    --bs-focus-ring-color: rgba(249,115,22,.25);
}
.btn-primary {
    --bs-btn-bg:                 #f97316;
    --bs-btn-border-color:       #f97316;
    --bs-btn-hover-bg:           #c2410c;
    --bs-btn-hover-border-color: #c2410c;
    --bs-btn-active-bg:          #9a3412;
    --bs-btn-active-border-color:#9a3412;
    --bs-btn-disabled-bg:        #f97316;
    --bs-btn-disabled-border-color:#f97316;
    --bs-btn-focus-shadow-rgb:   249, 115, 22;
}
.btn-outline-primary {
    --bs-btn-color:              #f97316;
    --bs-btn-border-color:       #f97316;
    --bs-btn-hover-bg:           #f97316;
    --bs-btn-hover-border-color: #f97316;
    --bs-btn-active-bg:          #c2410c;
    --bs-btn-active-border-color:#c2410c;
    --bs-btn-focus-shadow-rgb:   249, 115, 22;
}
.nav-pills {
    --bs-nav-pills-link-active-bg: #f97316;
}
.badge.bg-primary { background-color: #f97316 !important; }
.text-primary { color: #f97316 !important; }
a { color: #f97316; }
a:hover { color: #c2410c; }
.form-check-input:checked {
    background-color: #f97316;
    border-color: #f97316;
}
.btn:focus, .btn:active:focus,
.form-control:focus, .form-check-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 .25rem rgba(249,115,22,.25) !important;
    border-color: #f97316 !important;
    outline: none;
}

/* ═══════════════════════════════════════════════════════
   ACCOUNT PORTAL  –  layout tokens
═══════════════════════════════════════════════════════ */
:root {
    --ae-sidebar-w:      260px;
    --ae-sidebar-bg:     #0f172a;
    --ae-sidebar-hover:  rgba(249,115,22,.10);
    --ae-sidebar-active: rgba(249,115,22,.18);
    --ae-portal-bg:      #f1f5f9;
}

/* Full-height wrapper */
.ae-portal-body { background: var(--ae-portal-bg); }

.ae-portal-wrap {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* ── Sidebar ─────────────────────────────────────── */
.ae-sidebar {
    width: var(--ae-sidebar-w);
    min-width: var(--ae-sidebar-w);
    background: var(--ae-sidebar-bg);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    overflow-x: hidden;
}

.ae-sidebar-user {
    padding: 1.5rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.ae-sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #c2410c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}
.ae-sidebar-user-info {
    min-width: 0;
}
.ae-sidebar-name {
    font-size: .85rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ae-sidebar-role {
    font-size: .72rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.ae-sidebar-nav {
    flex: 1;
    padding: .75rem .75rem 0;
}
.ae-sidebar-section {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #475569;
    padding: .9rem .5rem .3rem;
}
.ae-sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .85rem;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
    margin-bottom: 2px;
}
.ae-sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: .95rem;
    flex-shrink: 0;
    opacity: .75;
    transition: opacity .18s ease;
}
.ae-sidebar-link:hover {
    background: var(--ae-sidebar-hover);
    color: #f97316;
}
.ae-sidebar-link:hover i { opacity: 1; }
.ae-sidebar-link.active {
    background: var(--ae-sidebar-active);
    color: #f97316;
    font-weight: 600;
}
.ae-sidebar-link.active i { opacity: 1; }
.ae-sidebar-link.danger { color: #f87171; }
.ae-sidebar-link.danger:hover { background: rgba(239,68,68,.1); color: #ef4444; }

.ae-sidebar-link::before {
    content: '';
    display: block;
    width: 3px;
    height: 0;
    background: #f97316;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: height .18s ease;
}
.ae-sidebar-link { position: relative; }
.ae-sidebar-link.active::before { height: 60%; top: 20%; }

.ae-sidebar-footer {
    padding: .75rem;
    border-top: 1px solid rgba(255,255,255,.07);
}

/* ── Portal content ──────────────────────────────── */
.ae-portal-content {
    flex: 1;
    min-width: 0;
    padding: 2rem 2rem 3rem;
}
.ae-portal-page-title {
    font-family: var(--ae-font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.03em;
}
.ae-portal-page-sub {
    font-size: .875rem;
    color: #64748b;
    margin-top: .2rem;
}

/* ── Dashboard stat cards ────────────────────────── */
.ae-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
    transition: box-shadow .2s ease, transform .2s ease;
}
.ae-stat-card:hover {
    box-shadow: 0 6px 20px rgba(15,23,42,.08);
    transform: translateY(-2px);
}
.ae-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.ae-stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    font-family: var(--ae-font-head);
}
.ae-stat-label {
    font-size: .78rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── Order cards (list) ──────────────────────────── */
.ae-order-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: box-shadow .2s ease, border-color .2s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}
.ae-order-card:hover {
    box-shadow: 0 6px 20px rgba(15,23,42,.08);
    border-color: #f97316;
    color: inherit;
    text-decoration: none;
}
.ae-order-title {
    font-weight: 700;
    font-size: .95rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
}
.ae-order-meta {
    font-size: .78rem;
    color: #94a3b8;
}
.ae-status-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 600;
    padding: .28rem .7rem;
    border-radius: 50px;
}
.ae-status-pending  { background: #fef3c7; color: #b45309; }
.ae-status-paid     { background: #dcfce7; color: #15803d; }
.ae-status-progress { background: #dbeafe; color: #1d4ed8; }
.ae-status-complete { background: #f0fdf4; color: #15803d; }
.ae-status-default  { background: #f1f5f9; color: #475569; }

/* ── Quick-action card (CTA) ─────────────────────── */
.ae-quick-card {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ae-quick-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    top: -80px;
    right: -50px;
}

/* ── Manage inner nav ────────────────────────────── */
.ae-manage-nav .nav-link {
    color: #64748b;
    font-weight: 500;
    font-size: .875rem;
    border-radius: 10px;
    padding: .6rem 1rem;
    margin-bottom: 2px;
    transition: background .18s, color .18s;
}
.ae-manage-nav .nav-link:hover { background: var(--ae-sidebar-hover); color: #f97316; }
.ae-manage-nav .nav-link.active { background: rgba(249,115,22,.15) !important; color: #f97316 !important; font-weight: 600; }

/* ── Responsive sidebar ──────────────────────────── */
@media (max-width: 991px) {
    .ae-sidebar {
        width: 220px;
        min-width: 220px;
    }
}
@media (max-width: 767px) {
    .ae-portal-wrap { flex-direction: column; }
    .ae-sidebar {
        width: 100%;
        min-width: 0;
        height: auto;
        position: relative;
        top: 0;
    }
    .ae-sidebar-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: .5rem; }
    .ae-sidebar-link { font-size: .78rem; padding: .45rem .7rem; }
    .ae-sidebar-user { display: none; }
    .ae-portal-content { padding: 1rem 1rem 2rem; }
}





.attr-nav > ul {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 2px;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .attr-nav > ul > li {
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle;
        float: none !important;
    }

        /* ── 2. Kill the theme's HOVER-open + dark-bg on dropdown ───────────── */
        /* theme rule at ~45603: li.dropdown:hover → visibility: visible (override it) */
        .attr-nav > ul > li.dropdown ul.dropdown-menu,
        .attr-nav > ul > li.dropdown:hover ul.dropdown-menu {
            visibility: hidden !important;
            opacity: 0 !important;
            display: none !important;
            background: #fff !important;
            border-radius: 12px !important;
            border: 0 !important;
        }
        /* Bootstrap adds .show → reveal it (click-only, no hover) */
        .attr-nav > ul > li.dropdown.show > ul.dropdown-menu,
        .attr-nav > ul > li.dropdown > ul.dropdown-menu.show {
            visibility: visible !important;
            opacity: 1 !important;
            display: block !important;
            background: #fff !important;
        }

/* ── 3. Dropdown menu appearance ────────────────────────────────────── */
.nav-user-menu {
    min-width: 235px;
    border-radius: 12px !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: 0 10px 40px rgba(2,48,71,.18) !important;
    padding: .5rem .4rem;
    margin-top: .45rem !important;
    /* reset theme's fixed offsets */
    left: auto !important;
    top: 100% !important;
    transform: none !important;
    position: absolute !important;
}

/* ── 4. Desktop trigger (pill) ──────────────────────────────────────── */
.nav-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    background: rgba(255,255,255,.13);
    border: 1.5px solid rgba(255,255,255,.30);
    border-radius: 50px;
    padding: .28rem .7rem .28rem .32rem;
    cursor: pointer;
    transition: background .18s, border-color .18s;
    color: #fff;
    white-space: nowrap;
    line-height: 1;
}

    .nav-user-trigger:hover,
    .nav-user-trigger[aria-expanded="true"] {
        background: rgba(255,255,255,.22);
        border-color: rgba(255,255,255,.55);
    }

.nav-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #D00000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.nav-user-name {
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-caret {
    font-size: .56rem;
    color: rgba(255,255,255,.7);
    transition: transform .2s;
}

.nav-user-trigger[aria-expanded="true"] .nav-user-caret {
    transform: rotate(180deg);
}

/* ── 5. Nav actions container + avatar positioning ───────────────────── */
.ae-nav-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

/* On desktop: Bootstrap's flex-grow:1 on the collapse takes all the space,
   so order:99 pushes ae-nav-actions after the collapse to the far right. */
@media (min-width: 992px) {
    .ae-nav-actions { order: 99; margin-left: .5rem; }
}

#desktopUserDrop,
#mobileUserDrop {
    position: relative;
}

.nav-mobile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #D00000;
    border: 2px solid rgba(255,255,255,.35);
    color: #fff;
    font-size: .66rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .18s;
    padding: 0;
    line-height: 1;
}

    .nav-mobile-avatar:hover {
        border-color: #fff;
    }

/* ── 6. Dropdown menu content ───────────────────────────────────────── */
.nav-user-menu-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem .7rem .65rem;
}

.nav-user-menu-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #052443, #073d6b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    color: #fff;
}

.nav-user-menu-name {
    font-size: .84rem;
    font-weight: 700;
    color: #052443;
    line-height: 1.2;
}

.nav-user-menu-email {
    font-size: .69rem;
    color: #6c757d;
}

.nav-user-menu-item {
    display: flex !important;
    align-items: center;
    gap: .58rem;
    font-size: .82rem;
    font-weight: 500;
    color: #343a40 !important;
    border-radius: 8px;
    padding: .48rem .8rem;
    transition: background .13s;
}

    .nav-user-menu-item i {
        width: 14px;
        text-align: center;
        color: #6c757d;
        font-size: .8rem;
    }

    .nav-user-menu-item:hover {
        background: #f0f4f8 !important;
        color: #052443 !important;
    }

        .nav-user-menu-item:hover i {
            color: #052443;
        }

.nav-user-logout {
    color: #D00000 !important;
}

    .nav-user-logout i {
        color: #D00000 !important;
    }

    .nav-user-logout:hover {
        background: #fff5f5 !important;
        color: #D00000 !important;
    }

/* ── 7. Auth buttons (signed-out, desktop) ──────────────────────────── */
.nav-auth-pair {
    /* display is controlled by Bootstrap d-none / d-lg-flex on the element */
    align-items: center;
    gap: .4rem;
}

.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    font-size: .77rem;
    font-weight: 700;
    border-radius: 50px;
    padding: .28rem .78rem;
    text-decoration: none !important;
    transition: all .18s;
    white-space: nowrap;
    line-height: 1;
    padding: 15px 12px !important;
}

.nav-auth-outline {
    color: #052443 !important;
    border: 1.5px solid rgba(5,36,67,.35);
    background: transparent;
    padding: 15px 12px !important;
}

    .nav-auth-outline:hover {
        background: rgba(5,36,67,.07);
        border-color: #052443;
        color: #052443 !important;
    }

.nav-auth-solid {
    background: #F39422;
    border: 1.5px solid #F39422;
    color: #fff !important;
}

    .nav-auth-solid:hover {
        background: #d07810;
        border-color: #d07810;
        color: #fff !important;
    }

/* scrolled navbar is white — flip outline button to dark-on-white */
.scrollHeader .nav-auth-outline {
    color: #052443 !important;
    border-color: rgba(5,36,67,.35) !important;
    background: transparent;
}

    .scrollHeader .nav-auth-outline:hover {
        background: rgba(5,36,67,.07) !important;
        border-color: #052443 !important;
        color: #052443 !important;
    }

/* ── 8. Mobile icon auth ────────────────────────────────────────────── */
.nav-mobile-auth {
    /* display is controlled by Bootstrap d-flex / d-lg-none on the element */
    align-items: center;
    gap: .25rem;
}

.nav-mobile-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .84rem;
    text-decoration: none;
    background: rgba(255,255,255,.15);
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,.3);
    transition: background .18s;
}

    .nav-mobile-icon-btn:hover {
        background: rgba(255,255,255,.28);
        color: #fff !important;
    }

.nav-mobile-register {
    background: rgba(243,148,34,.8) !important;
    border-color: #F39422 !important;
}

    .nav-mobile-register:hover {
        background: rgba(243,148,34,1) !important;
    }
/* mobile icon buttons on scrolled white navbar */
.scrollHeader .nav-mobile-icon-btn {
    background: rgba(5,36,67,.10) !important;
    color: #052443 !important;
    border-color: rgba(5,36,67,.25) !important;
}

    .scrollHeader .nav-mobile-icon-btn:hover {
        background: rgba(5,36,67,.18) !important;
        color: #052443 !important;
    }

.scrollHeader .nav-mobile-register {
    background: #F39422 !important;
    border-color: #F39422 !important;
    color: #fff !important;
}

    .scrollHeader .nav-mobile-register:hover {
        background: #d07810 !important;
        border-color: #d07810 !important;
    }