/* =========================================================
   DASHBOARD v2 — Premium layout
   ========================================================= */

.db-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
    align-items: start;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.asb {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

/* Brand */
.asb-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}
.asb-brand img { display: block; }

/* User card */
.asb-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    background: var(--bg);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.asb-user-avatar {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--grad-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}
.asb-user-info { min-width: 0; flex: 1; }
.asb-user-info strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.asb-user-info span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.15rem;
}

/* Nav */
.asb-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.asb-nav-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.75rem 0.85rem 0.35rem;
}
.asb-nav-label:first-child { padding-top: 0; }

.asb-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}
.asb-nav a:hover {
    background: var(--bg);
    color: var(--text);
}
.asb-nav a.active {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15));
    color: var(--primary);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--primary);
}
.asb-nav a .asb-ic {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.75;
}
.asb-nav a.active .asb-ic { opacity: 1; }
.asb-nav a .asb-ic svg { display: block; }

/* VIP item */
.asb-vip {
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(234,88,12,0.08));
    color: #b45309 !important;
}
.asb-vip:hover { background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(234,88,12,0.15)); color: #92400e !important; }
.asb-vip .asb-ic { color: #f59e0b; opacity: 1; }
.asb-vip-badge {
    margin-left: auto;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
}

/* Admin item */
.asb-admin {
    background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(99,102,241,0.12));
    color: var(--primary) !important;
    font-weight: 700 !important;
    margin-top: 0.25rem;
}
.asb-admin .asb-ic { color: var(--primary); opacity: 1; }

/* Logout */
.asb-logout {
    margin-top: 0.75rem;
    padding-top: 0.85rem !important;
    border-top: 1px solid var(--border) !important;
    border-radius: 0 !important;
    color: #dc2626 !important;
}
.asb-logout:hover { background: rgba(239,68,68,0.08) !important; color: #b91c1c !important; }
.asb-logout .asb-ic { color: #dc2626; opacity: 1; }

/* =========================================================
   MAIN
   ========================================================= */
.db-main { min-width: 0; padding-left: 2rem; }

/* Welcome header */
.db-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.db-head h1 {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 0.35rem;
}
.db-head p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}
.db-balance-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6 60%, #ec4899);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 28px -12px rgba(99,102,241,0.6);
}
.db-balance-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    opacity: 0.85;
}
.db-balance-amount {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* =========================================================
   ACTION TILES (3×2 grid)
   ========================================================= */
.db-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.db-tile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.db-tile:hover {
    transform: translateY(-3px);
    border-color: var(--tile-color, var(--primary));
    box-shadow: 0 12px 24px -12px var(--tile-color, rgba(99,102,241,0.5));
}
.db-tile-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 14px -6px rgba(0,0,0,0.3);
}
.db-tile-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================================
   STAT CARDS
   ========================================================= */
.db-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.db-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.db-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 12px 24px -14px rgba(99,102,241,0.35);
}
.db-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.db-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text);
    line-height: 1.1;
}
.db-stat-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* =========================================================
   SECTIONS
   ========================================================= */
.db-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.db-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 60%, #ec4899 100%);
    color: #fff;
    border-bottom: 1px solid var(--border);
}
.db-section-head h2 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.db-section-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    font-size: 0.9rem;
}
.db-see-more {
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: opacity 0.2s;
}
.db-see-more:hover { opacity: 0.75; color: #fff; }

.db-empty {
    padding: 2rem 1.35rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================================
   PRODUCT LIST
   ========================================================= */
.db-products {
    display: flex;
    flex-direction: column;
}
.db-product-row {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.db-product-row:last-child { border-bottom: none; }
.db-product-row:hover { background: var(--bg); }

.db-product-media {
    width: 60px; height: 60px;
    border-radius: 12px;
    background: var(--bg);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.db-product-media img { width: 100%; height: 100%; object-fit: cover; }
.db-product-ph { font-size: 1.6rem; opacity: 0.5; }

.db-product-info { min-width: 0; }
.db-product-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    line-height: 1.35;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.db-product-title:hover { color: var(--primary); }
.db-product-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 0.55rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.db-product-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.db-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}
.db-pill-stock {
    background: rgba(16,185,129,0.12);
    color: #059669;
}
.db-pill-price {
    background: rgba(99,102,241,0.12);
    color: #4f46e5;
}

.db-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.15rem;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 6px 16px -6px rgba(124,58,237,0.55);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.db-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(124,58,237,0.7);
}

/* =========================================================
   TWO-COLUMN GRID FOR ACTIVITY
   ========================================================= */
.db-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* Activity list */
.db-activity {
    list-style: none;
    padding: 0;
    margin: 0;
}
.db-activity li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.35rem;
    border-bottom: 1px solid var(--border);
}
.db-activity li:last-child { border-bottom: none; }

.db-activity-ic {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.db-activity-info {
    flex: 1;
    min-width: 0;
}
.db-activity-info strong {
    display: block;
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.db-activity-info span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}
.db-activity-amt {
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.db-order-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}
.db-mini-pill {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.5rem;
    border-radius: 5px;
}
.db-mini-success { background: rgba(16,185,129,0.15); color: #059669; }
.db-mini-danger  { background: rgba(239,68,68,0.15);  color: #dc2626; }
.db-mini-info    { background: rgba(99,102,241,0.15); color: #4f46e5; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .db-layout {
        grid-template-columns: 1fr;
        padding: 1rem 1rem 2rem;
        gap: 1rem;
    }
    .asb {
        position: static;
        max-height: none;
        padding: 1rem 0.85rem;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .asb-brand {
        padding-bottom: 0.85rem;
        margin-bottom: 0.85rem;
    }
    .asb-user { display: none; }

    .asb-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.35rem;
        padding-bottom: 0.35rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .asb-nav::-webkit-scrollbar { display: none; }
    .asb-nav-label { display: none; }
    .asb-nav a {
        flex-shrink: 0;
        padding: 0.55rem 0.85rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }
    .asb-nav a.active { box-shadow: none; background: var(--grad-soft); }
    .asb-vip-badge { display: none; }
    .asb-logout {
        margin-top: 0;
        padding-top: 0.55rem !important;
        border-top: none !important;
        border-left: 1px solid var(--border) !important;
        padding-left: 0.85rem !important;
        border-radius: 10px !important;
    }

    .db-main { padding-left: 0; }

    .db-stats { grid-template-columns: repeat(2, 1fr); }
    .db-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .db-head { flex-direction: column; align-items: flex-start; }
    .db-balance-pill { width: 100%; justify-content: space-between; }

    .db-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    .db-tile { padding: 0.85rem 0.9rem; font-size: 0.82rem; gap: 0.6rem; }
    .db-tile-icon { width: 36px; height: 36px; border-radius: 10px; }

    .db-stats { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
    .db-stat { padding: 1rem; border-radius: 14px; }
    .db-stat-value { font-size: 1.35rem; }

    .db-product-row {
        grid-template-columns: 50px 1fr;
        gap: 0.85rem;
        padding: 1rem;
    }
    .db-product-media { width: 50px; height: 50px; }
    .db-product-action { grid-column: 1 / -1; margin-top: 0.4rem; }
    .db-buy-btn { width: 100%; justify-content: center; }

    .db-section-head { padding: 0.9rem 1rem; }
    .db-section-head h2 { font-size: 0.92rem; }
    .db-section-emoji { width: 22px; height: 22px; font-size: 0.78rem; }
    .db-see-more { font-size: 0.75rem; }

    .db-activity li { padding: 0.75rem 1rem; gap: 0.7rem; }
    .db-activity-ic { width: 30px; height: 30px; }
    .db-activity-info strong { font-size: 0.82rem; }
}

@media (max-width: 400px) {
    .db-tiles { grid-template-columns: 1fr; }
}

/* =========================================================
   ACCOUNT PAGES — Scoped with :has()
   Only applies grid layout when the .asb sidebar is present.
   Public pages (shop, categories, etc.) are unaffected.
   ========================================================= */

.account-layout:has(> .asb) {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    gap: 0 !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 1.5rem 1.5rem 3rem !important;
    align-items: start !important;
}

.account-layout:has(> .asb) > .account-main {
    min-width: 0 !important;
    padding-left: 2rem !important;
}

.account-layout:has(> .asb) > .asb {
    position: sticky !important;
    top: 90px !important;
    align-self: start !important;
    max-height: calc(100vh - 110px) !important;
    overflow-y: auto !important;
    height: fit-content !important;
    z-index: 10 !important;
}

@media (max-width: 1024px) {
    .account-layout:has(> .asb) {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 1rem 1rem 2rem !important;
    }
    .account-layout:has(> .asb) > .account-main {
        padding-left: 0 !important;
    }
    .account-layout:has(> .asb) > .asb {
        position: static !important;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
}

/* Fallback for browsers without :has() support (very old) */
@supports not selector(:has(*)) {
    .account-layout {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 0;
        max-width: 1400px;
        margin: 0 auto;
        padding: 1.5rem 1.5rem 3rem;
        align-items: start;
    }
    .account-main { min-width: 0; padding-left: 2rem; }
}

/* =========================================================
   ACCOUNT PAGE TITLES + SECTIONS — visual consistency
   ========================================================= */

.account-page-title {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 1.25rem !important;
    color: var(--text) !important;
}

.account-section {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 18px !important;
    padding: 1.35rem !important;
    margin-bottom: 1.5rem !important;
}

.account-section-head h2,
.account-section-head h3 {
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
}
/* =========================================================
   ORDER DETAIL PAGE
   ========================================================= */

.os-success-banner {
    background:
        radial-gradient(ellipse at top right, rgba(16,185,129,0.2), transparent 55%),
        linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    gap: 1.1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}
.os-success-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 22px -8px rgba(16,185,129,0.6);
}
.os-success-banner h2 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
    color: #065f46;
}
.os-success-banner p {
    margin: 0;
    color: #047857;
    font-size: 0.9rem;
    line-height: 1.55;
}
[data-theme="dark"] .os-success-banner {
    background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.06));
    border-color: rgba(16,185,129,0.3);
}

.os-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.os-delivery-list {
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.os-delivery-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
}
.os-delivery-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}
.os-delivery-head > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.os-delivery-head strong {
    color: var(--text);
    font-weight: 700;
}
.os-payload {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
    margin: 0;
    overflow-x: auto;
}
.os-delivery-meta {
    margin-top: 0.75rem;
    font-size: 0.76rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.os-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.os-table th {
    padding: 0.85rem 1.15rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: var(--bg);
}
.os-table td {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}
.os-table tbody tr:last-child td { border-bottom: 1px solid var(--border); }
.os-table tfoot td {
    border-bottom: none;
    background: var(--bg);
}

.os-timeline {
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    position: relative;
}
.os-timeline::before {
    content: '';
    position: absolute;
    left: calc(2rem + 5px);
    top: 1.75rem;
    bottom: 1.75rem;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), transparent);
}
.os-timeline-item {
    position: relative;
    padding-bottom: 1.35rem;
    padding-left: 1.75rem;
}
.os-timeline-item:last-child { padding-bottom: 0; }
.os-timeline-dot {
    position: absolute;
    left: -8px;
    top: 3px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 3px var(--surface);
}
.os-timeline-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
    text-transform: capitalize;
}
.os-timeline-note {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    line-height: 1.5;
}
.os-timeline-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    opacity: 0.85;
}

.os-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* =========================================================
   Ensure shop/categories NEVER use account layout
   (Belt-and-braces — even if CSS leaks)
   ========================================================= */

body:not(.in-account) .account-layout {
    /* If .account-layout is somehow rendered outside account pages */
    display: block !important;
    padding: 0 !important;
    max-width: 100% !important;
}
body:not(.in-account) .account-layout > .asb {
    display: none !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
    .os-success-banner { flex-direction: column; text-align: center; padding: 1.25rem; }
    .os-head { flex-direction: column; align-items: flex-start; }
    .os-actions { flex-direction: column; }
    .os-actions .hero-hub-btn { width: 100%; justify-content: center; }
    .os-table th, .os-table td { padding: 0.75rem 0.85rem; font-size: 0.82rem; }
    .os-timeline { padding-left: 1.5rem; }
    .os-timeline::before { left: calc(1.5rem + 5px); }
    .os-delivery-head { flex-direction: column; align-items: flex-start; }
    .os-delivery-head .hero-hub-btn { width: 100%; justify-content: center; }
}