
.account-dashboard {
    display: flex;
    min-height: calc(100vh - 130px);
    background: #f4f7f9;
}
.account-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #0a1128;
    padding: 35px 0;
    position: sticky;
    top: 0;
    height: calc(100vh - 130px);
    overflow-y: auto;
}
.account-avatar-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 25px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 20px;
}
.account-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #003366);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.account-name { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.account-role { font-size: 11px; color: #8892b0; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.account-nav { display: flex; flex-direction: column; }
.account-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 25px;
    color: #8892b0;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s;
    border-left: 3px solid transparent;
}
.account-nav-item:hover, .account-nav-item.active { color: #fff; background: rgba(255,255,255,0.05); border-left-color: #0066cc; }
.account-nav-item.danger { color: #e74c3c; }
.account-nav-item.danger:hover { background: rgba(231,76,60,0.08); border-left-color: #e74c3c; }
.nav-badge { margin-left: auto; background: #ff6600; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 20px; }
.account-main { flex: 1; padding: 35px 40px; overflow-y: auto; }
.account-alert { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.account-alert-success { background: #f0fff4; border: 1px solid #b2f2c4; color: #1a7a3a; }
.account-alert-error { background: #fff2f2; border: 1px solid #ffcccc; color: #c0392b; }
.account-alert-error ul { margin: 0; padding-left: 15px; }
.account-welcome-banner {
    background: linear-gradient(135deg, #003366 0%, #0055aa 60%, #0066cc 100%);
    border-radius: 14px;
    padding: 30px 35px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.welcome-label { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 600; margin-bottom: 4px; }
.welcome-name { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.welcome-sub { font-size: 13px; color: rgba(255,255,255,0.65); }
.btn-shop-now { background: #fff; color: #003366; padding: 11px 24px; border-radius: 8px; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: 0.3s; flex-shrink: 0; }
.btn-shop-now:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); color: #003366; }
.account-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.account-stat-card { background: #fff; border-radius: 12px; padding: 22px 24px; display: flex; align-items: center; gap: 18px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); border: 1px solid #f0f0f0; transition: 0.3s; }
.account-stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.stat-blue  .stat-icon { background: #eff6ff; color: #0066cc; }
.stat-green .stat-icon { background: #f0fff4; color: #28a745; }
.stat-orange .stat-icon { background: #fff7ed; color: #f97316; }
.stat-purple .stat-icon { background: #faf5ff; color: #8b5cf6; }
.stat-value { font-size: 22px; font-weight: 800; color: #1a1a1a; }
.stat-label { font-size: 12px; color: #999; font-weight: 600; margin-top: 2px; }
.account-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.account-card { background: #fff; border-radius: 14px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); border: 1px solid #f0f0f0; }
.mt-24 { margin-top: 22px; }
.account-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #f5f5f5; }
.account-card-header h3 { font-size: 15px; font-weight: 800; color: #003366; display: flex; align-items: center; gap: 10px; }
.account-card-header h3 i { color: #0066cc; }
.card-header-link { font-size: 13px; font-weight: 700; color: #0066cc; }
.mini-cart-list { display: flex; flex-direction: column; gap: 14px; }
.mini-cart-row { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #f5f5f5; }
.mini-cart-row:last-child { border-bottom: none; padding-bottom: 0; }
.mini-cart-img { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: #f8f9fa; border: 1px solid #eee; flex-shrink: 0; }
.mini-cart-img img { width: 100%; height: 100%; object-fit: contain; }
.mini-cart-name { font-size: 13px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.mini-cart-meta { font-size: 12px; color: #999; }
.cart-checkout-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 15px; border-top: 2px solid #f0f0f0; }
.cart-total-label { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.btn-checkout-small { background: #0066cc; color: #fff; padding: 9px 22px; border-radius: 8px; font-size: 13px; font-weight: 700; transition: 0.3s; }
.btn-checkout-small:hover { background: #003366; color: #fff; }
.empty-state-box { text-align: center; padding: 35px 20px; color: #bbb; }
.empty-state-box i { font-size: 40px; margin-bottom: 12px; display: block; }
.empty-state-box p { font-size: 14px; margin-bottom: 10px; }
.empty-state-box a { color: #0066cc; font-weight: 700; font-size: 13px; }
.profile-info-list { display: flex; flex-direction: column; }
.profile-info-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.profile-info-row:last-child { border-bottom: none; }
.profile-info-label { color: #999; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.profile-info-label i { width: 16px; text-align: center; }
.profile-info-value { font-weight: 700; color: #1a1a1a; }
.role-badge { background: #eff6ff; color: #0066cc; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot-green { background: #28a745; }
.dot-red { background: #e74c3c; }
.btn-edit-profile-full { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; padding: 11px; border-radius: 8px; background: #f4f7f9; color: #003366; font-size: 14px; font-weight: 700; transition: 0.3s; }
.btn-edit-profile-full:hover { background: #0066cc; color: #fff; }
.recent-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.recent-product-card { border: 1px solid #f0f0f0; border-radius: 10px; overflow: hidden; transition: 0.3s; background: #fff; display: flex; flex-direction: column; }
.recent-product-card:hover { border-color: #0066cc; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.recent-product-img { width: 100%; aspect-ratio: 4/3; background: #f8f9fa; overflow: hidden; }
.recent-product-img img { width: 100%; height: 100%; object-fit: contain; }
.recent-product-info { padding: 12px; }
.recent-product-cat { font-size: 10px; text-transform: uppercase; font-weight: 800; color: #0066cc; letter-spacing: 0.5px; margin-bottom: 4px; }
.recent-product-name { font-size: 13px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-product-price { font-size: 14px; font-weight: 800; color: #0066cc; }
@media (max-width: 1024px) {
    .account-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .recent-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .account-sidebar { display: none; }
    .account-two-col { grid-template-columns: 1fr; }
    .account-welcome-banner { flex-direction: column; gap: 20px; }
    .account-main { padding: 20px; }
}

/* === MY ORDERS TABLE === */
.orders-mini-table, .orders-full-table { display: flex; flex-direction: column; gap: 0; }
.orders-mini-head, .orders-full-head { display: grid; padding: 10px 14px; background: #f8f9fa; border-radius: 8px; font-size: 11px; font-weight: 800; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.orders-mini-head { grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr 60px; }
.orders-full-head { grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr 1fr 80px; }
.orders-mini-row, .orders-full-row { display: grid; align-items: center; padding: 13px 14px; border-bottom: 1px solid #f5f5f5; font-size: 13px; font-weight: 600; transition: background 0.2s; }
.orders-mini-row { grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr 60px; }
.orders-full-row { grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr 1fr 80px; }
.orders-mini-row:last-child, .orders-full-row:last-child { border-bottom: none; }
.orders-mini-row:hover, .orders-full-row:hover { background: #fafbff; }
.order-num-tag { font-family: 'Courier New', monospace; font-size: 12px; font-weight: 700; color: #003366; }
.order-date { color: #888; font-size: 12px; }
.order-total { font-weight: 800; color: #003366; }
.order-items-count { color: #555; }
.btn-view-order { display: inline-flex; align-items: center; gap: 5px; background: #eff6ff; color: #0066cc; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; transition: 0.2s; white-space: nowrap; }
.btn-view-order:hover { background: #0066cc; color: #fff; }
.status-pill.pill-orange { background: #fff7ed; color: #f97316; }
.status-pill.pill-purple { background: #faf5ff; color: #8b5cf6; }

/* === ORDER DETAIL === */
.btn-back-order { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #888; margin-bottom: 20px; transition: 0.2s; }
.btn-back-order:hover { color: #0066cc; }
.order-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; flex-wrap: wrap; gap: 14px; }
.order-detail-title { font-size: 22px; font-weight: 800; color: #003366; font-family: 'Outfit', sans-serif; margin-bottom: 4px; }
.order-detail-title span { color: #0066cc; }
.order-detail-meta { font-size: 13px; color: #999; }

/* Order Progress Tracker */
.order-tracker { display: flex; align-items: center; padding: 10px 0; }
.tracker-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.tracker-icon { width: 46px; height: 46px; border-radius: 50%; background: #f0f0f0; color: #ccc; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: 0.3s; }
.tracker-step.done .tracker-icon { background: #0066cc; color: #fff; }
.tracker-step.current .tracker-icon { background: #003366; color: #fff; box-shadow: 0 4px 15px rgba(0,51,102,0.35); }
.tracker-label { font-size: 11px; font-weight: 700; color: #bbb; text-transform: uppercase; letter-spacing: 0.5px; }
.tracker-step.done .tracker-label, .tracker-step.current .tracker-label { color: #003366; }
.tracker-line { flex: 1; height: 3px; background: #f0f0f0; margin: 0 6px; margin-bottom: 22px; transition: 0.3s; }
.tracker-line.done { background: #0066cc; }

/* Order detail grid */
.order-detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.order-items-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; }
.order-item-detail-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f5f5f5; }
.order-item-detail-row:last-child { border-bottom: none; }
.order-item-img { width: 58px; height: 58px; border-radius: 8px; overflow: hidden; background: #f8f9fa; border: 1px solid #eee; flex-shrink: 0; }
.order-item-img img { width: 100%; height: 100%; object-fit: contain; }
.order-item-info { flex: 1; }
.order-item-name { display: block; font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; transition: 0.2s; }
.order-item-name:hover { color: #0066cc; }
.order-item-meta { font-size: 12px; color: #999; }
.order-item-subtotal { font-size: 15px; font-weight: 800; color: #003366; flex-shrink: 0; }
.order-price-summary { border-top: 2px solid #f0f0f0; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.order-price-row { display: flex; justify-content: space-between; font-size: 14px; color: #555; font-weight: 600; }
.order-price-row.grand { font-size: 18px; font-weight: 800; color: #003366; border-top: 1px solid #f0f0f0; padding-top: 14px; margin-top: 4px; }
.address-detail p { font-size: 14px; color: #555; margin-bottom: 7px; line-height: 1.5; }
.address-name { font-size: 16px; font-weight: 800; color: #1a1a1a !important; }
.address-detail i { color: #0066cc; width: 16px; }

@media (max-width: 900px) {
    .order-detail-grid { grid-template-columns: 1fr; }
    .orders-mini-head { display: none; }
    .orders-mini-row { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* =============================================
   MOBILE ACCOUNT SIDEBAR
   ============================================= */

/* Mobile toggle button - fixed bottom-right */
.account-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #003366);
    color: #fff;
    border: none;
    font-size: 20px;
    box-shadow: 0 6px 20px rgba(0,102,204,0.45);
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.account-mobile-toggle:hover { transform: scale(1.08); }
.account-mobile-toggle.open { background: linear-gradient(135deg, #e74c3c, #c0392b); }

/* Dark overlay */
.account-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}
.account-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile close button inside sidebar */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.sidebar-close-btn:hover { background: rgba(255,255,255,0.2); }

/* Bottom mobile nav tabs (quick links) */
.account-mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0a1128;
    border-top: 1px solid rgba(255,255,255,0.06);
    z-index: 998;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
}
.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
}
.mobile-nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    color: #8892b0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: 0.2s;
    text-decoration: none;
}
.mobile-nav-tab i { font-size: 18px; }
.mobile-nav-tab.active, .mobile-nav-tab:hover { color: #fff; }
.mobile-nav-tab.danger { color: #e74c3c; }

@media (max-width: 768px) {
    /* Sidebar becomes slide-in drawer */
    .account-sidebar {
        display: block !important;
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        width: 260px;
        overflow-y: auto;
    }
    .account-sidebar.open {
        left: 0;
        box-shadow: 8px 0 30px rgba(0,0,0,0.35);
    }
    .sidebar-close-btn { display: flex; }
    .account-mobile-toggle { display: flex; }
    .account-mobile-bottom-nav { display: block; }

    /* Add bottom padding to main so content isn't behind nav bar */
    .account-main { padding-bottom: 80px; }
}

/* =============================================
   MY ORDERS – RESPONSIVE LAYOUT
   ============================================= */
.orders-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.orders-page-title {
    font-size: 20px;
    font-weight: 800;
    color: #003366;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.orders-page-title i { color: #0066cc; }
.orders-page-count { font-size: 13px; color: #999; font-weight: 600; }

/* Desktop table - visible above 768px */
.orders-desktop-only { display: flex; flex-direction: column; }
.orders-mobile-only  { display: none; }

/* ── Mobile Order Cards ── */
.orders-card-list {
    flex-direction: column;
    gap: 14px;
}
.order-mobile-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.omc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.omc-date {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.omc-items-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    flex-wrap: wrap;
}
.omc-item-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #f8f9fa;
    flex-shrink: 0;
}
.omc-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.omc-more {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #0066cc;
    background: #eff6ff;
    border-color: #eff6ff;
}
.omc-items-label {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    margin-left: auto;
}
.omc-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.omc-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.omc-total {
    font-size: 20px;
    font-weight: 800;
    color: #003366;
    font-family: 'Outfit', sans-serif;
}
.omc-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #0066cc, #003366);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s;
}
.omc-view-btn:hover {
    opacity: 0.92;
    color: #fff;
    transform: translateY(-1px);
}

/* Responsive switch */
@media (max-width: 768px) {
    .orders-desktop-only { display: none !important; }
    .orders-mobile-only  { display: flex; }
}

/* =============================================
   ORDER DETAIL – MOBILE FIXES
   ============================================= */
@media (max-width: 768px) {
    /* Order detail grid goes single column */
    .order-detail-grid {
        grid-template-columns: 1fr !important;
    }

    /* Progress tracker – compress on small screens */
    .order-tracker {
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .tracker-step {
        min-width: 60px;
    }
    .tracker-label {
        font-size: 9px;
        text-align: center;
    }
    .tracker-icon {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .tracker-line {
        min-width: 20px;
    }

    /* Order detail header stacks */
    .order-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .order-detail-title { font-size: 18px; }

    /* Order items row wraps better */
    .order-item-detail-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    .order-item-subtotal {
        margin-left: auto;
    }

    /* Dashboard welcome banner stacks */
    .account-welcome-banner {
        flex-direction: column;
        gap: 16px;
        padding: 22px 20px;
    }
    .welcome-name { font-size: 20px; }

    /* Stat grid 2 columns on mobile */
    .account-stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Two col cards go single column */
    .account-two-col {
        grid-template-columns: 1fr !important;
    }

    /* Recent products grid 2 cols */
    .recent-products-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Mini cart name wider */
    .mini-cart-name {
        max-width: 100% !important;
    }

    /* Orders mini table hide header, stack rows */
    .orders-mini-head { display: none !important; }
    .orders-mini-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 14px !important;
        background: #fff;
        border-radius: 10px;
        border: 1px solid #f0f0f0;
        margin-bottom: 8px;
    }

    /* Checkout layout */
    .checkout-layout {
        flex-direction: column !important;
    }
    .checkout-summary-col {
        width: 100% !important;
        position: static !important;
    }
    .checkout-fields-grid {
        grid-template-columns: 1fr !important;
    }

    /* Cart page */
    .cart-page-layout {
        flex-direction: column !important;
    }
    .cart-summary-col {
        width: 100% !important;
        position: static !important;
    }
    .cart-item-row {
        flex-wrap: wrap !important;
    }
    .cart-item-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
}
