/* ============================================
   PREMIUM ACCOUNT PAGE STYLES - Ultra Premium 2026 Theme
   Using CSS Variables from ultra-premium-2026.css
   ============================================ */

/* Main Account Page */
/* Main Account Page */
.account-page {
    background: linear-gradient(135deg, #f8faf9 0%, #e8f5e9 50%, #f0f9f4 100%);
    min-height: 100vh;
    padding: 40px 0 100px;
    position: relative;
    overflow-x: hidden;
}

/* Base Account Layout */
.account-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    /* Increased from 300px */
    gap: 40px;
    /* Increased gap */
    padding: 20px;
    max-width: 1250px;
    /* Slightly wider for balance */
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 1400px) {
    .account-layout {
        grid-template-columns: 350px 1fr;
        max-width: 1300px;
    }
}

/* Premium Sidebar */
.account-sidebar {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%);
    border-radius: 32px;
    /* Smoother corners */
    padding: 40px 30px;
    /* Increased padding */
    box-shadow: 0 25px 70px rgba(27, 67, 50, 0.35);
    height: fit-content;
    position: sticky;
    top: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-info {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 25px;
}

.user-avatar {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 40px;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.user-avatar::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.user-name {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.user-phone {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.account-nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    transform: translateX(10px);
}

.account-nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    color: white !important;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.logout-btn {
    width: 100%;
    padding: 14px;
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fecaca !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.4) !important;
    color: white !important;
}

/* Content Area */
.account-content {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 30px;
    padding: 45px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.account-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    color: #1B4332;
    margin-bottom: 35px;
    font-weight: 800;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 45px;
}

.dashboard-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(27, 67, 50, 0.05);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(27, 67, 50, 0.12);
    border-color: #40916C;
}

/* Orders List Styling */
.order-detail-card {
    background: white !important;
    border-radius: 20px !important;
    padding: 25px !important;
    margin-bottom: 20px !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease;
}

.order-detail-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.order-status.delivered {
    background: #dcfce7;
    color: #166534;
}

.order-status.processing {
    background: #fef9c3;
    color: #854d0e;
}

.order-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Mobile Optimizations */
@media (max-width: 1024px) {
    .account-layout {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }

    .account-sidebar {
        position: relative;
        top: 0;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .account-page {
        padding: 10px 0 100px;
    }

    .account-content {
        padding: 30px 20px;
        border-radius: 0;
        /* Full width for content on mobile */
        border: none;
    }

    /* Transform Sidebar Nav into Horizontal Scroll on Mobile */
    .account-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none;
    }

    .account-nav::-webkit-scrollbar {
        display: none;
    }

    .account-nav-link {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 13px;
        background: rgba(255, 255, 255, 0.1);
    }

    .account-nav-link:hover {
        transform: none;
    }

    .user-info {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
        padding-bottom: 20px;
    }

    .user-avatar {
        width: 60px;
        height: 60px;
        margin: 0;
        font-size: 24px;
    }

    .user-avatar::after {
        display: none;
    }

    .logout-btn {
        margin-top: 10px;
        padding: 10px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 25px;
    }

    .dashboard-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
        gap: 12px;
        background: rgba(255, 255, 255, 0.7) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 28px !important;
        box-shadow: 0 10px 30px rgba(27, 67, 50, 0.05) !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dashboard-card:hover {
        background: white !important;
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(27, 67, 50, 0.12) !important;
    }

    .card-icon {
        width: 54px;
        height: 54px;
        font-size: 24px;
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: floatIcon 3s ease-in-out infinite;
    }

    @keyframes floatIcon {

        0%,
        100% {
            transform: translateY(0) rotate(0);
        }

        50% {
            transform: translateY(-8px) rotate(5deg);
        }
    }

    .dashboard-card:nth-child(1) .card-icon {
        animation-delay: 0s;
    }

    .dashboard-card:nth-child(2) .card-icon {
        animation-delay: 0.2s;
    }

    .dashboard-card:nth-child(3) .card-icon {
        animation-delay: 0.4s;
    }

    .dashboard-card:nth-child(4) .card-icon {
        animation-delay: 0.6s;
    }
}