/* Luxntek My Account — site-nav dark sidebar + table orders */

:root {
    --nav-dark: #011c2f;
    --nav-dark-mid: #06364b;
    --nav-pill-bg: rgba(3, 28, 47, 0.92);
    --nav-teal: #31bdbd;
    --nav-teal-border: rgba(49, 189, 189, 0.38);
    --nav-teal-border-strong: rgba(49, 189, 189, 0.42);
    --nav-gold: #ffcc00;
    --nav-gold-soft: #ffe46b;
    --nav-text: #f7fbff;
    --nav-subtext: rgba(232, 250, 255, 0.78);
    --nav-card-bg: rgba(255, 255, 255, 0.08);
    --nav-card-border: rgba(255, 255, 255, 0.12);
    --account-page-bg: #f4f7f9;
    --account-surface: #ffffff;
    --account-border: #e4eaef;
    --account-text: #011c2f;
    --account-muted: #64748b;
    --account-radius: 14px;
    --account-radius-sm: 12px;
    --account-radius-pill: 999px;
    --account-shadow: 0 24px 56px rgba(0, 0, 0, 0.08);
    --account-shadow-sm: 0 10px 26px rgba(1, 28, 47, 0.1);
    --nav-shadow: 0 18px 48px rgba(1, 28, 47, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.template-account {
    background: var(--account-page-bg);
}

body.template-account #page-content.account-page {
    background: var(--account-page-bg);
    padding-bottom: 48px;
    display: flex;
    flex-direction: column;
}

body.template-account .page.section-header {
    display: none;
}

/* Hero */
.account-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 40px 0 48px;
    margin-bottom: 0;
    flex: 0 0 auto;
    isolation: isolate;
    background: linear-gradient(145deg, var(--nav-dark), var(--nav-dark-mid)) !important;
    border-bottom: 1px solid var(--nav-teal-border-strong);
}

.account-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 0%, rgba(49, 189, 189, 0.16), transparent 34%),
        radial-gradient(circle at 92% 8%, rgba(255, 204, 0, 0.1), transparent 30%);
}

.account-hero__container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.account-hero__eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.account-hero__title {
    margin: 0 0 8px;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    text-transform: none;
}

.account-hero__subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--nav-subtext);
    overflow-wrap: anywhere;
}

.account-hero__badge {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--nav-dark);
    background: linear-gradient(135deg, var(--nav-gold), var(--nav-gold-soft)) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 26px rgba(255, 204, 0, 0.32);
}

/* Shell — sits fully below hero (no overlap) */
.account-shell {
    max-width: 1280px;
    margin: 28px auto 0;
    padding: 0 20px 0;
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    width: 100%;
}

.account-shell__grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

/* Dark sidebar */
.account-sidebar {
    position: sticky;
    top: 24px;
    padding: 16px;
    background: linear-gradient(145deg, var(--nav-dark), var(--nav-dark-mid)) !important;
    border: 1px solid var(--nav-teal-border-strong);
    border-radius: var(--account-radius) !important;
    box-shadow: var(--account-shadow);
    overflow: hidden;
}

.account-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: var(--account-radius) !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(49, 189, 189, 0.14), transparent 34%),
        radial-gradient(circle at 92% 8%, rgba(255, 204, 0, 0.08), transparent 30%);
}

.account-profile-card {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 14px;
    background: var(--nav-card-bg);
    border: 1px solid var(--nav-card-border);
    border-radius: var(--account-radius-sm) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-profile-card__avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--nav-dark);
    background: linear-gradient(135deg, var(--nav-gold), var(--nav-gold-soft)) !important;
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.28);
}

.account-profile-card__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.account-profile-card__info strong {
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
    overflow-wrap: anywhere;
}

.account-profile-card__info span {
    font-size: 12px;
    line-height: 1.35;
    color: var(--nav-subtext);
    overflow-wrap: anywhere;
}

.account-profile-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: var(--nav-gold);
}

.account-profile-card__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50% !important;
    background: var(--nav-teal);
}

/* Sidebar nav */
.account-nav.list-group {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 8px !important;
    background: var(--nav-pill-bg) !important;
    border: 1px solid var(--nav-teal-border) !important;
    border-radius: var(--account-radius-sm) !important;
    box-shadow: var(--nav-shadow);
    overflow: hidden;
}

.account-nav .list-group-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px !important;
    min-height: 40px;
    border: 0 !important;
    border-radius: var(--account-radius-pill) !important;
    background: transparent !important;
    color: var(--nav-text) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.055em !important;
    text-transform: uppercase !important;
    text-align: left !important;
    white-space: normal !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

/* No decorative lines — fixes blue-line bleed */
.account-nav .list-group-item::before,
.account-nav .list-group-item::after {
    display: none !important;
    content: none !important;
}

.account-nav .list-group-item .icon {
    flex: 0 0 auto;
    width: 18px;
    margin-right: 0 !important;
    font-size: 15px !important;
    color: rgba(247, 251, 255, 0.85);
    text-align: center;
}

.account-nav .list-group-item:hover {
    color: var(--nav-gold) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
}

.account-nav .list-group-item.active {
    color: var(--nav-gold) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        inset 0 -2px 0 var(--nav-gold),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
}

.account-nav .list-group-item.active .icon {
    color: var(--nav-gold);
}

body.template-account .account-nav .list-group-item.active,
body.template-account .account-nav .list-group-item-action.active,
body.template-account .account-nav .list-group-item-action:hover,
body.template-account .account-nav .list-group-item-action:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: transparent !important;
    color: var(--nav-gold) !important;
}

.account-nav .account-nav__logout {
    margin-top: 4px;
    padding-top: 12px !important;
    border-top: 1px solid var(--nav-card-border) !important;
    color: #fca5a5 !important;
}

.account-nav .account-nav__logout .icon {
    color: #fca5a5;
}

.account-nav .account-nav__logout:hover {
    color: #fff !important;
    background: rgba(248, 113, 113, 0.15) !important;
}

/* Main panels */
.account-main .tab-content {
    min-width: 0;
}

.account-main .tab-pane {
    background: var(--account-surface);
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius) !important;
    padding: 28px 32px;
    box-shadow: var(--account-shadow-sm);
}

.account-main .tab-content h3 {
    margin: 0 0 20px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--account-border);
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    color: var(--account-text) !important;
}

/* Dashboard */
.account-dashboard__intro {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--account-muted);
}

.account-dashboard__intro a {
    color: var(--nav-dark);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--nav-teal);
    text-underline-offset: 3px;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.account-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 16px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius-sm) !important;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.account-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--nav-teal-border-strong);
    box-shadow: 0 18px 40px rgba(1, 28, 47, 0.1);
}

.account-stat-card__icon {
    width: 38px;
    height: 38px;
    border-radius: var(--account-radius-sm) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--nav-dark);
    background: rgba(49, 189, 189, 0.12);
    border: 1px solid rgba(49, 189, 189, 0.22);
}

.account-stat-card__value {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    color: var(--account-text);
}

.account-stat-card__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: var(--account-muted);
}

.account-section-title {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: var(--nav-dark);
}

.account-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.account-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius-sm) !important;
    text-decoration: none !important;
    color: var(--account-text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-quick-action:hover {
    border-color: var(--nav-teal-border-strong);
    box-shadow: 0 10px 26px rgba(1, 28, 47, 0.08);
}

.account-quick-action__icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: var(--account-radius-sm) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--nav-dark);
    background: linear-gradient(135deg, var(--nav-gold), var(--nav-gold-soft));
    box-shadow: 0 8px 18px rgba(255, 204, 0, 0.22);
}

.account-quick-action__text strong {
    display: block;
    font-size: 14px;
}

.account-quick-action__text span {
    display: block;
    font-size: 12px;
    color: var(--account-muted);
}

.account-recent-orders {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-recent-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius-sm) !important;
}

.account-recent-order__view {
    font-size: 12px;
    font-weight: 700;
    color: var(--nav-dark);
    text-decoration: none;
}

.account-empty-state {
    padding: 32px 24px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed var(--account-border);
    border-radius: var(--account-radius-sm) !important;
}

/* Orders table */
body.template-account .orders-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--account-radius-sm) !important;
    overflow: hidden;
    border: 1px solid var(--account-border) !important;
}

body.template-account .orders-table thead th {
    background: #f8fafc;
    border-color: var(--account-border) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: var(--nav-dark);
    padding: 12px 10px !important;
}

body.template-account .orders-table tbody td {
    border-color: var(--account-border) !important;
    vertical-align: middle !important;
    padding: 12px 10px !important;
    color: var(--account-text);
}

body.template-account .orders-table tbody tr:hover td {
    background: #fafbfc;
}

body.template-account .badge {
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--account-radius-pill) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.template-account .btn-dark {
    background: var(--nav-dark) !important;
    border-color: var(--nav-dark) !important;
    color: #fff !important;
    border-radius: var(--account-radius-sm) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
}

body.template-account .btn-dark:hover {
    background: var(--nav-dark-mid) !important;
    border-color: var(--nav-dark-mid) !important;
}

body.template-account .btn-primary {
    background: linear-gradient(135deg, var(--nav-gold), var(--nav-gold-soft)) !important;
    border: 0 !important;
    color: var(--nav-dark) !important;
    border-radius: var(--account-radius-sm) !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(255, 204, 0, 0.28);
}

body.template-account .newsletter__submit,
body.template-account .btn.newsletter__submit {
    background: var(--nav-dark) !important;
    border: 1px solid var(--nav-dark) !important;
    border-radius: var(--account-radius-sm) !important;
    font-weight: 700 !important;
    letter-spacing: 0.055em !important;
    text-transform: uppercase;
    min-height: 44px;
    padding: 10px 22px !important;
    color: #fff !important;
}

body.template-account .form-control {
    border-radius: var(--account-radius-sm) !important;
    border-color: var(--account-border) !important;
    min-height: 44px;
}

body.template-account .form-control:focus {
    border-color: var(--nav-teal) !important;
    box-shadow: 0 0 0 3px rgba(49, 189, 189, 0.15) !important;
}

body.template-account #address .border.p-4,
body.template-account #address #billingAddressDisplay > .border,
body.template-account #address #addressDisplay > .border {
    border-radius: var(--account-radius-sm) !important;
    border-color: var(--account-border) !important;
    background: #f8fafc !important;
}

body.template-account .pagination-list .page-item.active .page-link {
    background: var(--nav-dark) !important;
    border-color: var(--nav-dark) !important;
    color: #fff !important;
}

body.template-account .wishlist-table .product-thumbnail img {
    border-radius: var(--account-radius-sm) !important;
    object-fit: contain !important;
    background: #f8fafc;
    border: 1px solid var(--account-border);
}

/* Responsive */
@media (max-width: 991px) {
    .account-shell {
        margin-top: 20px;
        padding-top: 0;
    }

    .account-shell__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .account-sidebar {
        position: static;
        padding: 12px;
    }

    .account-profile-card {
        display: none;
    }

    .account-nav.list-group {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 6px;
        padding: 8px 10px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .account-nav.list-group::-webkit-scrollbar {
        display: none;
    }

    .account-nav .list-group-item {
        flex: 0 0 auto;
        min-width: max-content;
        white-space: nowrap !important;
        padding: 0 14px !important;
        font-size: 11px !important;
    }

    .account-nav .account-nav__logout {
        margin-top: 0;
        padding: 0 14px !important;
        border-top: 0 !important;
    }

    .account-hero {
        padding: 30px 0 34px;
    }

    .account-hero__badge {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }

    .account-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-quick-actions {
        grid-template-columns: 1fr;
    }

    .account-main .tab-pane {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .account-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* Orders tab only — card layout (rest of account keeps dark UI) */
#orders.tab-pane {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.account-orders-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.account-order-tabs {
    display: inline-flex;
    align-self: flex-start;
    gap: 4px;
    padding: 5px;
    background: #e9eef3;
    border-radius: var(--account-radius-sm) !important;
}

.account-order-tabs__btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--account-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    padding: 10px 18px;
    border-radius: 10px !important;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.account-order-tabs__btn.is-active {
    background: #fff;
    color: var(--account-text);
    border-color: #d7e0ea;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.account-order-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-order-card {
    background: #fff;
    border: 1px solid var(--account-border);
    border-radius: var(--account-radius) !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.account-order-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--account-border);
}

.account-order-card__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: var(--account-text);
}

.account-order-card__meta {
    margin: 0;
    font-size: 13px;
    color: var(--account-muted);
    line-height: 1.45;
}

.account-order-card__invoice-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--account-border);
    border-radius: 10px !important;
    background: #fff;
    color: var(--account-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.account-order-card__summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 18px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--account-border);
    background: #fafbfd;
}

.account-order-card__summary-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--account-muted);
}

.account-order-card__summary-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--account-text);
}

.account-order-card__summary-value.is-progress {
    color: #ea580c;
}

.account-order-card__summary-value.is-success {
    color: #059669;
}

.account-order-card__summary-value.is-warning {
    color: #d97706;
}

.account-order-card__summary-value.is-total {
    font-size: 16px;
}

.account-order-card__products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 20px;
}

.account-order-product {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.account-order-product__image {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 10px !important;
    background: #f4f7f9;
    border: 1px solid var(--account-border);
    overflow: hidden;
}

.account-order-product__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}

.account-review-product__image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 150px;
    margin: 0 auto;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
}

.account-order-product__name {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--account-text);
}

.account-order-product__line {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: var(--account-muted);
}

.account-order-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--account-border);
}

body.template-account .account-order-card__action-btn {
    border-radius: 8px !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    min-width: 88px;
}

.account-order-timeline {
    padding: 0;
    border-bottom: 1px solid var(--account-border);
    background: linear-gradient(135deg, rgba(49, 189, 189, 0.06) 0%, rgba(255, 255, 255, 0) 42%), #f8fbfd;
}

.account-order-timeline__shell {
    margin: 18px 20px 20px;
    padding: 18px 18px 16px;
    border-radius: 16px;
    border: 1px solid rgba(49, 189, 189, 0.14);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(1, 28, 47, 0.07);
    backdrop-filter: blur(8px);
}

.account-order-timeline__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.account-order-timeline__intro {
    min-width: 0;
}

.account-order-timeline__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nav-teal);
}

.account-order-timeline__eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--nav-teal), transparent);
}

.account-order-timeline__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--nav-dark);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.account-order-timeline__product {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--account-muted);
    font-weight: 600;
    line-height: 1.45;
}

.account-order-timeline__metrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.account-order-timeline__ring {
    --progress: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(closest-side, #ffffff 78%, transparent 80% 100%),
        conic-gradient(var(--nav-teal) calc(var(--progress) * 1%), #e8eef2 0);
    box-shadow: inset 0 0 0 1px rgba(49, 189, 189, 0.18);
}

.account-order-timeline__ring-value {
    font-size: 14px;
    font-weight: 900;
    color: var(--nav-dark);
    line-height: 1;
}

.account-order-timeline__ring-value small {
    font-size: 9px;
    font-weight: 800;
    opacity: 0.72;
}

.account-order-timeline__status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(49, 189, 189, 0.16), rgba(15, 143, 95, 0.12));
    border: 1px solid rgba(49, 189, 189, 0.24);
    color: var(--nav-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.account-order-timeline[data-status="cancelled"] .account-order-timeline__status-pill,
.account-order-timeline[data-status="returned"] .account-order-timeline__status-pill,
.account-order-timeline[data-status="payment_failed"] .account-order-timeline__status-pill {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.22);
    color: #b91c1c;
}

.account-order-timeline[data-status="payment_pending"] .account-order-timeline__status-pill,
.account-order-timeline[data-status="on_hold"] .account-order-timeline__status-pill {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.24);
    color: #b45309;
}

.account-order-timeline[data-status="delivered"] .account-order-timeline__status-pill,
.account-order-timeline[data-status="completed"] .account-order-timeline__status-pill {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.24);
    color: #047857;
}

.account-order-timeline__note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(49, 189, 189, 0.08), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(49, 189, 189, 0.14);
}

.account-order-timeline__note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
    font-weight: 600;
}

.account-order-timeline__note-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--nav-teal);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.account-order-timeline__track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #e8eef2;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: inset 0 1px 2px rgba(1, 28, 47, 0.06);
}

.account-order-timeline__track-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #31bdbd 0%, #0f8f5f 55%, #11c98a 100%);
    box-shadow: 0 0 18px rgba(49, 189, 189, 0.35);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.account-order-timeline__track-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: accountTimelineShimmer 2.4s ease-in-out infinite;
}

@keyframes accountTimelineShimmer {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

.account-order-timeline__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--timeline-steps, 5), minmax(0, 1fr));
    gap: 10px;
}

.account-order-timeline__step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.account-order-timeline__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 21px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 3px;
    border-radius: 999px;
    background: #dbe4ea;
    z-index: 0;
}

.account-order-timeline__step.is-complete:not(:last-child)::after {
    background: linear-gradient(90deg, #31bdbd, #0f8f5f);
}

.account-order-timeline__node {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.account-order-timeline__icon {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe4ea;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(1, 28, 47, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    overflow: hidden;
}

.account-order-timeline__sprite {
    --sprite-index: 0;
    width: 28px;
    height: 28px;
    display: block;
    background-image: url('../images/order-timeline-sprite.png');
    background-repeat: no-repeat;
    background-size: 700% 100%;
    background-position: calc(var(--sprite-index) * (100% / 6)) 50%;
    filter: grayscale(1) opacity(0.55);
    transition: filter 0.22s ease, transform 0.22s ease;
}

.account-order-timeline__complete-mark {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #31bdbd, #0f8f5f);
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(49, 189, 189, 0.28);
}

.account-order-timeline__complete-mark svg {
    width: 11px;
    height: 11px;
    display: block;
}

.account-order-timeline__step.is-complete .account-order-timeline__icon {
    border-color: rgba(49, 189, 189, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
    box-shadow: 0 10px 22px rgba(49, 189, 189, 0.18);
}

.account-order-timeline__step.is-complete .account-order-timeline__sprite {
    filter: none;
}

.account-order-timeline__step.is-current .account-order-timeline__icon {
    border-color: rgba(49, 189, 189, 0.45);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
    box-shadow: 0 0 0 4px rgba(49, 189, 189, 0.14), 0 12px 24px rgba(1, 28, 47, 0.1);
    animation: accountTimelinePulse 2s ease-in-out infinite;
}

.account-order-timeline__step.is-current .account-order-timeline__sprite {
    filter: none;
    transform: scale(1.06);
}

.account-order-timeline__step.is-current.is-warning .account-order-timeline__icon {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14), 0 12px 24px rgba(245, 158, 11, 0.12);
}

.account-order-timeline__step.is-current.is-warning .account-order-timeline__sprite {
    filter: sepia(1) saturate(4) hue-rotate(350deg);
}

.account-order-timeline__step.is-current.is-danger .account-order-timeline__icon {
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12), 0 12px 24px rgba(239, 68, 68, 0.12);
}

.account-order-timeline__step.is-current.is-danger .account-order-timeline__sprite {
    filter: sepia(1) saturate(5) hue-rotate(320deg);
}

.account-order-timeline__step.is-current.is-info .account-order-timeline__icon {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12), 0 12px 24px rgba(99, 102, 241, 0.12);
}

.account-order-timeline__step.is-upcoming .account-order-timeline__sprite {
    filter: grayscale(1) opacity(0.38);
}

@keyframes accountTimelinePulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.account-order-timeline__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 0 2px;
}

.account-order-timeline__label {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    color: #334155;
    font-weight: 800;
}

.account-order-timeline__step.is-upcoming .account-order-timeline__label,
.account-order-timeline__step.is-upcoming .account-order-timeline__date {
    opacity: 0.72;
}

.account-order-timeline__step.is-current .account-order-timeline__label {
    color: var(--nav-dark);
    font-size: 12px;
}

.account-order-timeline__date {
    display: block;
    font-size: 10px;
    line-height: 1.35;
    color: #64748b;
    font-weight: 600;
}

.account-order-timeline__date.is-muted {
    color: #94a3b8;
    font-style: italic;
    font-weight: 500;
}

.account-order-product__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.account-order-product__timeline-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(1, 28, 47, 0.05);
}

.account-order-product__timeline-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.85;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.account-order-product__timeline-chip.is-progress {
    background: linear-gradient(135deg, #fff7e6, #fffdf7);
    border-color: #f6c56b;
    color: #9a6700;
}

.account-order-product__timeline-chip.is-success {
    background: linear-gradient(135deg, #ecfdf3, #f6fff9);
    border-color: #86efac;
    color: #047857;
}

.account-order-product__timeline-chip.is-warning {
    background: linear-gradient(135deg, #fff7ed, #fffaf5);
    border-color: #fdba74;
    color: #c2410c;
}

.account-order-product__timeline-chip.is-muted {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-color: #cbd5e1;
    color: #64748b;
}

@media (max-width: 991px) {
    .account-order-card__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-order-card__products {
        grid-template-columns: 1fr;
    }

    .account-order-card__head {
        flex-direction: column;
    }

    .account-order-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .account-order-timeline__shell {
        margin: 14px 14px 16px;
        padding: 16px 14px 14px;
    }

    .account-order-timeline__head {
        flex-direction: column;
    }

    .account-order-timeline__metrics {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .account-order-timeline__steps {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .account-order-timeline__step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 14px;
        padding: 0 0 18px 0;
    }

    .account-order-timeline__step:not(:last-child)::after {
        top: 46px;
        left: 20px;
        width: 3px;
        height: calc(100% - 12px);
    }

    .account-order-timeline__node {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .account-order-timeline__content {
        padding-top: 4px;
    }

    .account-order-product__title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
