/* ===== Account Page Styles ===== */
.account-page {
    min-height: calc(100vh - 200px);
    padding: 0 0 4rem;
    background-color: #f5f7fa;
}

/* ===== Professional Guest User Buttons ===== */
#account-guest .empty-cart {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 188, 212, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#account-guest .empty-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #00bcd4 0%, 
        #00acc1 25%, 
        #0097a7 50%, 
        #00838f 75%, 
        #00bcd4 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

#account-guest .empty-cart-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: white;
    box-shadow: 
        0 15px 30px rgba(0, 188, 212, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

#account-guest h3 {
    color: #1a202c;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#account-guest p {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

#account-guest .btn-primary {
    background: linear-gradient(135deg, #00bcd4, #00acc1);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 
        0 10px 25px rgba(0, 188, 212, 0.25),
        0 4px 12px rgba(0, 188, 212, 0.15);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#account-guest .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s ease;
}

#account-guest .btn-primary:hover::before {
    left: 100%;
}

#account-guest .btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 188, 212, 0.35),
        0 8px 20px rgba(0, 188, 212, 0.25);
    background: linear-gradient(135deg, #00acc1, #0097a7);
}

#account-guest .btn-primary:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 10px 25px rgba(0, 188, 212, 0.25),
        0 4px 12px rgba(0, 188, 212, 0.15);
}

#account-guest .btn-primary i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

#account-guest .btn-primary:hover i {
    transform: rotate(10deg) scale(1.1);
}

#account-guest .btn-primary:first-child {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    box-shadow: 
        0 10px 25px rgba(45, 55, 72, 0.25),
        0 4px 12px rgba(45, 55, 72, 0.15);
}

#account-guest .btn-primary:first-child:hover {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    box-shadow: 
        0 20px 40px rgba(45, 55, 72, 0.35),
        0 8px 20px rgba(45, 55, 72, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #account-guest .empty-cart {
        padding: 2.5rem 1.5rem;
        margin: 1rem;
    }
    
    #account-guest .btn-primary {
        min-width: 160px;
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
    
    #account-guest h3 {
        font-size: 1.5rem;
    }
    
    #account-guest p {
        font-size: 1rem;
    }
}

/* ===== Profile Header ===== */
.profile-header {
    background: linear-gradient(135deg, var(--dark-color), var(--navy-color));
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, var(--primary-color) 100%);
    opacity: 0.1;
    z-index: 0;
}

.profile-header > * {
    position: relative;
    z-index: 1;
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-circle {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 4px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.25rem;
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.edit-avatar-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.profile-info {
    flex: 1;
    color: white;
}

.profile-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

.profile-email,
.profile-phone {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-email i,
.profile-phone i {
    font-size: 0.9rem;
}

.btn-edit-profile {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.7rem 1.35rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-edit-profile:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== Account Stats ===== */
.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

a.stat-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(0, 188, 212, 0.12);
    color: var(--navy-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card.logout-card {
    border-color: #ffebee;
    background: #fff5f5;
}

.stat-card.logout-card .stat-icon {
    background: rgba(229, 57, 53, 0.12);
    color: #e53935;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.35;
}

.stat-card.stat-action .stat-number {
    color: var(--dark-color);
   font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.2;
}

.stat-card.stat-action .stat-icon {
    width: 52px;
    height: 52px;
}

/* ===== Account Menu ===== */
.account-menu {
    margin-bottom: 3rem;
}

.account-menu .section-title {
    text-align: right;
    margin-bottom: 1.5rem;
}

.menu-grid {
    display: grid;
    gap: 1rem;
}

.menu-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.menu-item.logout-item {
    border-color: #ffebee;
    background: #fff5f5;
}

.menu-item.logout-item:hover {
    border-color: #e53935;
    background: #ffebee;
}

.menu-item.logout-item .menu-icon {
    background: rgba(229, 57, 53, 0.12);
    color: #e53935;
}

.menu-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 188, 212, 0.12);
    color: var(--navy-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.menu-content {
    flex: 1;
}

.menu-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.menu-content p {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.menu-arrow {
    color: #bdc3c7;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-arrow {
    transform: translateX(-3px);
    color: var(--primary-color);
}

/* ===== Recent Orders ===== */
.recent-orders {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.recent-orders .section-title {
    margin-bottom: 0;
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--secondary-color);
}

.orders-list {
    display: grid;
    gap: 1.5rem;
}

.order-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.order-number {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1rem;
}

.order-date {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.order-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-delivered {
    background: rgba(39, 174, 96, 0.12);
    color: #27ae60;
}

.status-shipping {
    background: rgba(241, 196, 15, 0.12);
    color: #f1c40f;
}

.status-pending {
    background: rgba(52, 152, 219, 0.12);
    color: #3498db;
}

.status-cancelled {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
}

.order-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.order-item-info {
    flex: 1;
}

.order-item-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.2rem;
}

.order-item-info p {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.order-item-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.order-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
}

.btn-order-action {
    background: var(--navy-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-order-action:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .account-page {
        padding: 1rem 0 5rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 1.4rem 1.25rem;
        gap: 1.5rem;
    }

    .profile-info {
        text-align: center;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .btn-edit-profile {
        width: 100%;
        justify-content: center;
    }

    .account-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .menu-item {
        padding: 1.2rem;
        gap: 1rem;
    }

    .menu-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .menu-content h3 {
        font-size: 1rem;
    }

    .menu-content p {
        font-size: 0.85rem;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .order-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .btn-order-action {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .account-page {
        padding-top: 0;
    }

    .profile-header {
        border-radius: 0;
        margin: 0 -20px 1.5rem;
        padding: 1.1rem 1rem;
    }

    .avatar-circle {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .edit-avatar-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .profile-email,
    .profile-phone {
        font-size: 0.9rem;
    }

    .account-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .account-menu .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .menu-item {
        padding: 1rem;
        gap: 0.8rem;
    }

    .menu-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .menu-content h3 {
        font-size: 0.95rem;
    }

    .menu-content p {
        font-size: 0.8rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .recent-orders .section-title {
        font-size: 1.3rem;
    }

    .order-card {
        padding: 1rem;
    }

    .order-item {
        gap: 0.8rem;
    }

    .order-item img {
        width: 50px;
        height: 50px;
    }

    .order-item-info h4 {
        font-size: 0.9rem;
    }

    .order-item-info p {
        font-size: 0.8rem;
    }

    .order-item-price {
        font-size: 0.9rem;
    }

    .order-total {
        font-size: 1rem;
    }
}

