.auth-shell {
    max-width: 540px;
}

.auth-page {
    background:
        radial-gradient(circle at top left, rgba(18, 22, 123, 0.08), transparent 34%),
        radial-gradient(circle at bottom right, rgba(18, 22, 123, 0.06), transparent 30%),
        #fafafa;
    padding: 72px 0 88px;
}

.auth-card {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 18px 48px rgba(30, 34, 90, 0.12);
    padding: 42px 42px 48px;
}

.auth-card--compact {
    max-width: 640px;
}

.auth-card--wide {
    max-width: 580px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid #e7e8ee;
    margin-bottom: 40px;
}

.auth-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    color: #23263a;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-tab:hover,
.auth-tab:focus {
    color: #141c88;
    text-decoration: none;
}

.auth-tab.is-active {
    color: #141c88;
}

.auth-tab.is-active::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 3px;
    background: #141c88;
}

.auth-head {
    margin-bottom: 30px;
}

.auth-head h1 {
    margin: 0 0 8px;
    color: #23263a;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.auth-head p {
    margin: 0;
    color: #727892;
    line-height: 1.75;
}

.auth-form-card {
    margin: 0;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.auth-form-group {
    margin-bottom: 26px;
}

.auth-form-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--muted-color);
    font-weight: 400;
}

.auth-form-group label i {
    color: var(--muted-color);
}

.auth-form-group input {
    display: block;
    width: 100%;
    min-height: 42px;
    border: 1px solid #e2e5ee;
    background: #fff;
    padding: 0 22px;
    color: #23263a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form-group input::placeholder {
    color: #a0a6bb;
}

.auth-form-group input:focus {
    border-color: #141c88;
    box-shadow: 0 0 0 3px rgba(20, 28, 136, 0.08);
    outline: none;
}

.auth-form-group input.is-invalid {
    border-color: #d93025;
}

.auth-error {
    margin-top: 8px;
    color: #d93025;
    line-height: 1.5;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 2px 0 0;
    color: var(--muted-color);
    line-height: 1.7;
}

.auth-check input {
    margin-top: 5px;
}

.auth-inline-note {
    margin: 0 0 22px;
    color: #727892;
    line-height: 1.7;
}

.auth-inline-note strong {
    color: #23263a;
    font-weight: 500;
}

.auth-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid #e7e8ee;
    margin-top: 28px;
}

.auth-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 190px;
    min-height: 42px;
    border: 0;
    background: #141c88;
    color: #fff;
    padding: 0 30px;
    font-weight: 500;
    text-transform: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-submit-btn:hover,
.auth-submit-btn:focus {
    background: #0f166d;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}



.auth-secondary-link {
    color: #7d839b;
    text-decoration: none;
}

.auth-secondary-link:hover,
.auth-secondary-link:focus {
    color: #141c88;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .auth-page {
        padding: 56px 0 72px;
    }

    .auth-card {
        padding: 34px 28px 38px;
    }

    .auth-tab {
        min-height: 66px;
    }

    .auth-head h1 {
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 767.98px) {
    .auth-page {
        padding: 40px 0 56px;
    }

    .auth-card {
        padding: 28px 18px 30px;
    }

    .auth-tabs {
        margin-bottom: 28px;
    }

    .auth-tab {
        min-height: 58px;
    }

    .auth-head {
        margin-bottom: 24px;
    }


    .auth-form-group {
        margin-bottom: 20px;
    }

    .auth-form-group input {
        min-height: 42px;
        padding: 0 16px;
    }

    .auth-form-footer {
        flex-direction: column;
        align-items: stretch;
        padding-top: 20px;
        margin-top: 22px;
    }

    .auth-submit-btn {
        width: 100%;
        min-height: 42px;
    }

    .auth-secondary-link {
        width: 100%;
        text-align: center;
    }
}

.account-card {
    padding: 10px;
    margin: 0.5rem 0;
    border: 1px solid #ebeaed;
    border-radius: var(--apt-radius);
    background: white;
}

.account-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-card li {
    margin-bottom: 6px;
}

.account-card a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    border-radius: var(--apt-radius);
    color: #262731;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.account-menu-icon {
    width: 1.8rem;
    text-align: center;
    flex: 0 0 1.8rem;
    font-size: 1.4rem;
}

.account-card a:hover,
.account-card a:focus {
    background-color: #f0f0f0;
    text-decoration: none;
}

.account-card a.active {
    background-color: #e7f3ff;
    color: #0056b3;
    font-weight: 500;
}

.account-content-card {
    min-height: 100%;
    padding: 0.5rem 0 1rem;
}

.account-dashboard-card {
    padding-top: 0;
}

.account-greeting {
    margin: 0 0 8px;
    color: var(--muted-color);
}

.account-meta {
    color: var(--muted-color);
}

.account-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
    margin-bottom: 2.4rem;
}

.account-stat-card,
.account-balance-card,
.account-points-card,
.account-address-preview {
    border: 1px solid #ebeaed;
    border-radius: var(--apt-radius);
    padding: 1.8rem 2rem;
    background: #fff;
}

.account-stat-label,
.account-balance-card span,
.account-points-card p {
    display: block;
    color: #727892;
    margin-bottom: 0.8rem;
}

.account-stat-value,
.account-balance-card strong,
.account-points-card strong {
    display: block;
    color: #23263a;
    font-weight: 500;
}

.account-points-card span {
    color: #1a7f37;
}

.account-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 1.6rem;
}

.account-section-head a {
    color: #141c88;
    text-decoration: none;
}

.account-table {
    margin-bottom: 0;
}

.account-table thead th {
    border-top: 0;
    border-bottom: 1px solid #ebeaed;
    color: #727892;
    font-weight: 500;
}

.account-table tbody td {
    vertical-align: middle;
    border-color: #f0f1f4;
    color: #23263a;
}

.account-table .icon-riyal {
    margin-inline-start: 0.4rem;
}

.account-order-history {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.account-history-card,
.account-order-detail-card {
    border: 1px solid #ebeaed;
    border-radius: var(--apt-radius);
    background: #fff;
    box-shadow: 0 8px 22px rgba(30, 34, 90, 0.05);
    overflow: hidden;
}

.account-history-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 10px;
    border-bottom: 1px solid #ebeaed;
    color: var(--muted-color);
}
.account-history-card__head a{
    color: var(--apt-primary);
    font-weight: bold;
}

.account-history-card__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 20px;
    border-radius: 999px;
    background: #e7f3ff;
    color: #0d6efd;
    white-space: nowrap;
}

.account-history-card__body {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.account-history-card__body--item + .account-history-card__body--item {
    border-top: 1px solid #ebeaed;
}

.account-history-card__image img {
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
}

.account-history-card__copy {
    flex: 1 1 auto;
}

.account-history-card__brand {
    margin: 0 0 0.6rem;
    color: var(--muted-color);
}

.account-history-card__copy h3 {
    margin: 0 0 0.8rem;
    color: #23263a;
    line-height: 1.5;
}

.account-history-card__copy h3 a {
    color: inherit;
}

.account-history-card__meta {
    margin-bottom: 0.8rem;
    color: var(--muted-color);
}

.account-history-card__price {
    font-weight: 700;
    color: #23263a;
}

.account-history-card__price .icon-riyal {
    margin-inline-start: 0.4rem;
}

.account-history-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: .5rem;
    border-top: 1px solid #ebeaed;
    color: #4b4f63;
    background: var(--apt-lighter-gray);
}

.account-history-card__foot strong {
    color: #4b4f63;
    font-size: 1rem;
    font-weight: 700;
}

.account-order-detail-card .row {
    margin: 0;
}

.account-order-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.6rem;
    flex-wrap: wrap;
}

.account-order-detail-card .col-lg-8,
.account-order-detail-card .col-lg-4 {
    padding: 0;
}

.account-order-detail-list {
    min-height: 100%;
}

.account-order-detail-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    color: var(--muted-color);
}

.account-order-detail-item-meta strong {
    color: #23263a;
    font-weight: 700;
}

.account-order-detail-footer {
    border-top: 1px solid #ebeaed;
    background: var(--apt-lighter-gray);
    padding: 1.4rem 1.6rem;
}

.account-order-detail-footer__rows {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.account-order-detail-footer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    color: #4b4f63;
}

.account-order-detail-footer__row strong {
    color: #23263a;
    font-weight: 700;
}

.account-order-detail-footer__row--total {
    margin-top: 0.4rem;
    padding-top: 0.8rem;
    border-top: 1px solid #dfe1e7;
}

.account-order-detail-footer__row--total strong {
    font-size: 1.8rem;
}

.account-return-card,
.account-return-success {
    padding: 2rem;
}

.account-return-list {
    border: 1px solid #ebeaed;
    border-radius: var(--apt-radius);
    overflow: hidden;
}

.account-return-item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.account-return-item-row label {
    margin: 0;
    min-width: 3.6rem;
    color: #4b4f63;
}

.account-return-qty {
    max-width: 12rem;
}

.account-return-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.account-form .form-control,
.account-form textarea.form-control,
.account-form select.form-control {
    min-height: 52px;
    border: 1px solid #d9dbe3;
}

.account-form textarea.form-control {
    min-height: 120px;
    padding-top: 1.2rem;
    resize: vertical;
}

.account-form .form-control.is-invalid {
    border-color: #d93025;
}

.account-form-group {
    margin-bottom: 2rem;
}

.account-form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #555b74;
}

.account-form-error-block {
    margin-top: -0.8rem;
    margin-bottom: 1.6rem;
}

.account-note {
    margin-top: 2rem;
    color: var(--muted-color);
    line-height: 1.8;
}

.account-loyality-toolbar {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.account-loyality-balance {
    margin: 0;
    color: #1a7f37;
}

.account-loyality-balance b {
    font-weight: 700;
}

.account-loyality-controls {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.account-loyality-input {
    width: 14rem;
}

.account-redeem-btn {
    min-width: 14rem;
    height: 3.9rem;
}

.account-ygag-showcase {
    margin-top: 2rem;
}

.account-ygag-card {
    max-width: 34rem;
    border: 1px solid #ebeaed;
    border-radius: var(--apt-radius);
    padding: 2rem;
    background: linear-gradient(135deg, #101b77, #2438b5);
    color: #fff;
}

.account-ygag-card__amount {
    font-size: 2.4rem;
    font-weight: 600;
}

.account-ygag-card__amount .icon-riyal {
    color: inherit;
}

.account-ygag-card__number {
    margin-top: 1.2rem;
    letter-spacing: 0.08em;
}

.account-ygag-card__expiry {
    margin-top: 1.2rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
}

.account-ygag-card__expiry a {
    color: #fff;
    text-decoration: underline;
}

.account-loyality-copy {
    margin-top: 2rem;
    color: var(--muted-color);
    line-height: 1.8;
}

.account-loyality-copy__logo {
    height: 3rem;
    margin: 0.5rem 0;
}

.account-loyality-copy__hero {
    display: block;
    height: 20rem;
    margin: 1rem 0;
    border-radius: var(--apt-radius);
}

.account-address-preview {
    margin-top: 1.6rem;
}

.account-address-preview h3 {
    margin: 0 0 0.8rem;
}

.account-address-preview p {
    margin: 0;
    color: var(--muted-color);
    line-height: 1.7;
}

.account-detail-summary td {
    border-top: 0;
    border-bottom: 1px solid #f0f1f4;
    padding-inline: 0;
}

.account-order-items-table .product-col {
    min-width: 28rem;
}

.account-order-product {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.account-order-product-media {
    display: inline-flex;
    width: 7.2rem;
    height: 7.2rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #ebeaed;
    border-radius: var(--apt-radius);
    overflow: hidden;
    background: #fff;
}

.account-order-product-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.account-order-product-copy a,
.account-order-product-copy span {
    color: #23263a;
    line-height: 1.6;
}

.account-order-summary {
    margin-top: 1.6rem;
}

@media (max-width: 991.98px) {
    .account-summary-grid {
        grid-template-columns: 1fr;
    }

    .account-history-card__head,
    .account-history-card__foot {
        padding-inline: 1.8rem;
    }

    .account-history-card__body {
        padding: 1rem 0;
    }

    .account-loyality-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .account-history-card__head,
    .account-history-card__foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-history-card__body {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-history-card__image {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }

    .account-order-detail-item-meta,
    .account-order-detail-footer__row,
    .account-return-item-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
