:root {
    --dl-yellow: #ffcc00;
    --dl-yellow-soft: #fff7cc;
    --dl-white: #ffffff;
    --dl-green: #28a745;
    --card-radius: 12px;
    --muted: #666;
}

/* =====================================================
   ACCOUNT HEADER - Compact Modern Design
   ===================================================== */
.account-header-section {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 35px 0 10px 0;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Compact Breadcrumb */
.breadcrumb-compact {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px 10px;
    margin: 0;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 12px;
}

.breadcrumb-compact a {
    color: #777;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.breadcrumb-compact a:hover {
    color: var(--dl-green);
    background: rgba(40, 167, 69, 0.08);
}

.breadcrumb-compact .separator {
    color: #bbb;
    font-size: 13px;
    padding: 0 2px;
}

.breadcrumb-compact .active {
    color: #fff;
    font-weight: 600;
    padding: 3px 10px;
    background: linear-gradient(135deg, var(--dl-green), #20c997);
    border-radius: 12px;
}

/* User Profile Header - Modern Compact */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.user-avatar-lg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dl-yellow), #ffd84d);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.3);
    overflow: hidden;
}

.user-avatar-lg img {
    width: 28px;
    height: 28px;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name-lg {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.user-email {
    font-size: 11px;
    color: #888;
}

/* =====================================================
   ACCOUNT MAIN SECTION
   ===================================================== */
.account-main-section {
    padding: 16px 0 40px;
    background: #fffdf5;
}

/* Account Container - Compact */
.account-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* =====================================================
   SIDEBAR - Compact Modern Design
   ===================================================== */
.account-sidebar {
    width: 200px;
    min-width: 200px;
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 130px;
}

.account-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--dl-yellow);
    color: #333;
}

.account-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-menu li {
    margin-bottom: 2px;
}

.account-menu a {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.account-menu a i {
    font-size: 14px;
    width: 20px;
}

.account-menu a:hover {
    background: var(--dl-yellow-soft);
    color: #333;
}

.account-menu li.active a {
    background: var(--dl-yellow);
    color: #000;
    font-weight: 600;
}

.account-menu a.text-danger {
    color: #dc3545 !important;
}

.account-menu a.text-danger:hover {
    background: #fff5f5;
}

/* =====================================================
   ACCOUNT CONTENT
   ===================================================== */
.account-content {
    flex: 1;
    min-width: 0;
}

/* Welcome Card - Compact */
.welcome-card {
    background: var(--dl-yellow-soft);
    border-left: 4px solid var(--dl-yellow);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.welcome-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #333;
}

.welcome-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Account Grid - Addresses */
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.account-box {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #333;
}

/* Address Card - Compact */
.address-card {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    font-size: 13px;
}

.address-card:hover {
    border-color: var(--dl-yellow);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.15);
}

/* Orders List - Compact */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-card {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.order-card:hover {
    border-color: var(--dl-yellow);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.12);
}

.product-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.order-media {
    flex: 0 0 70px;
}

.order-body {
    flex: 1;
    min-width: 0;
}

.order-body .product-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.order-body .meta {
    font-size: 12px;
    color: #888;
}

.order-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.order-right {
    flex: 0 0 90px;
    text-align: right;
}

.order-right .price {
    font-weight: 700;
    color: var(--dl-green);
    font-size: 14px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.status-Processing {
    background: #fff3cd;
    color: #856404;
}

.status-Shipped {
    background: #cce5ff;
    color: #004085;
}

.status-Delivered {
    background: #d4edda;
    color: #155724;
}

.status-Completed {
    background: #d4edda;
    color: #155724;
}

.status-Cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 12px;
    border: 2px dashed #eee;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 12px;
}

.empty-state h4 {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

/* =====================================================
   COMPACT MODAL STYLES
   ===================================================== */
.compact-modal {
    border-radius: 14px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.compact-modal-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--dl-yellow-soft), #fff);
    border-bottom: 1px solid #eee;
    border-radius: 14px 14px 0 0;
}

.compact-modal-header .modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
}

.compact-modal-body {
    padding: 16px;
}

.compact-modal-footer {
    padding: 10px 16px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-radius: 0 0 14px 14px;
}

/* Compact Form Rows */
.compact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.compact-form-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.compact-field {
    display: flex;
    flex-direction: column;
}

.compact-field.full {
    grid-column: 1 / -1;
}

.compact-field label {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.compact-field .form-control,
.compact-field .form-select {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.compact-field .form-control:focus,
.compact-field .form-select:focus {
    border-color: var(--dl-yellow);
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.15);
}

/* =====================================================
   TRACKING TIMELINE
   ===================================================== */
.tracking-timeline {
    position: relative;
    padding-left: 30px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #eee;
}

.tracking-item {
    position: relative;
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tracking-item .tracking-icon {
    position: absolute;
    left: -25px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    font-size: 12px;
    color: #ccc;
}

.tracking-item.completed .tracking-icon {
    color: var(--dl-green);
}

.tracking-item.active .tracking-icon {
    color: var(--dl-yellow);
    animation: pulse 1.5s infinite;
}

.tracking-item .tracking-info {
    display: flex;
    flex-direction: column;
}

.tracking-item .tracking-info strong {
    font-size: 13px;
    color: #333;
}

.tracking-item.completed .tracking-info strong {
    color: var(--dl-green);
}

.tracking-item.active .tracking-info strong {
    color: #333;
    font-weight: 700;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* =====================================================
   BUTTONS - Compact
   ===================================================== */
.btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 11px;
}

.btn-track {
    background: var(--dl-yellow);
    color: #000;
}

.btn-track:hover {
    background: #e6b800;
    transform: translateY(-1px);
}

.btn-invoice {
    background: #fffbe6;
    border: 1px solid #ffd633;
    color: #333;
}

.btn-invoice:hover {
    background: #fff3b3;
}

.btn-warning {
    background: var(--dl-yellow) !important;
    color: #000 !important;
    border: none;
}

.btn-warning:hover {
    background: #e6b800 !important;
}

/* =====================================================
   UTILITIES
   ===================================================== */
.small {
    color: var(--muted);
    font-size: 12px;
}

.profile-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.profile-form .form-row {
    display: flex;
    flex-direction: column;
}

.profile-form .form-row.full {
    grid-column: 1 / -1;
}

.input,
input,
textarea {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 13px;
}

/* =====================================================
   USER PILL - Header (used in layouts)
   ===================================================== */
.user-profile-pill {
    position: relative;
}

.user-pill-trigger {
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: #333;
}

.user-pill-trigger:hover {
    background: #fffbe6;
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #ffe8a3;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 700;
    color: #333;
    font-size: 13px;
}

.user-dropdown {
    min-width: 200px;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.caret-icon {
    font-size: 11px;
    color: #888;
}

/* =====================================================
   SECTION HEADINGS
   ===================================================== */
.account-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {
    .account-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-sidebar {
        position: static;
        top: auto;
    }

    .compact-form-row {
        grid-template-columns: 1fr;
    }

    .compact-form-row.three-col {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .account-header-section {
        padding: 8px 0;
    }

    .account-container {
        flex-direction: column;
        padding: 0 12px;
    }

    .account-sidebar {
        width: 100%;
        min-width: 100%;
    }

    .account-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .account-menu li {
        margin-bottom: 0;
    }

    .account-menu a {
        padding: 6px 10px;
        font-size: 12px;
    }

    .user-profile-header {
        padding: 6px 12px;
    }

    .user-avatar-lg {
        width: 32px;
        height: 32px;
    }

    .user-avatar-lg img {
        width: 22px;
        height: 22px;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .order-card {
        flex-direction: column;
        align-items: stretch;
    }

    .order-right {
        text-align: left;
        flex: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
        margin-top: 8px;
    }

    .compact-form_row.three-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .breadcrumb-compact {
        font-size: 11px;
        padding: 3px 8px;
    }

    .user-name-lg {
        font-size: 13px;
    }

    .user-email {
        font-size: 10px;
    }

    .order-actions {
        flex-direction: column;
    }

    .order-actions .btn {
        width: 100%;
        justify-content: center;
    }
}