:root {
    --dz-accent: #e56a54;
    --dz-glass: rgba(255, 255, 255, 0.35);
    --dz-glass-border: rgba(255, 255, 255, 0.6);
    --dz-glass-stroke: rgba(255, 255, 255, 0.8);
    --dz-glow: rgba(229, 106, 84, 0.3);
}

.dz-customer-dashboard-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Outfit', 'Inter', sans-serif;
    padding: 0 20px;
    color: #1a1a1a;
}

/* Glassy Greeting Card */
.dz-dashboard-hero-card {
    background: var(--dz-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid var(--dz-glass-stroke);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border-radius: 40px; /* Round edges */
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dz-dashboard-hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.dz-hero-user {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Round Glowing Glassy Avatar */
.dz-glass-avatar-glow {
    position: relative;
    padding: 4px;
    background: linear-gradient(135deg, var(--dz-accent), #ff9e8d);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--dz-glow);
}

.dz-glass-avatar {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dz-hero-text {
    display: flex;
    flex-direction: column;
}

.dz-hero-greeting {
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.dz-hero-name {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a1a1a, #555);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

/* Logout Actions */
.dz-hero-actions {
    display: flex;
    align-items: center;
}

.dz-hero-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--dz-glass-stroke);
    border-radius: 50px;
    color: #dc3545;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dz-hero-logout i {
    font-size: 1.1rem;
}

.dz-hero-logout:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.2);
}

/* Chrome-Style Glassy Tabs */
.dz-dashboard-tab-container {
    margin-top: 2rem;
    animation: fadeIn 0.6s ease-out;
}

.dz-tab-bar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.dz-tab-bar {
    display: flex;
    gap: 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}

.dz-tab-nav {
    display: none; /* Desktop hidden */
    width: 35px;
    height: 35px;
    background: var(--dz-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--dz-glass-stroke);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    color: var(--dz-accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.dz-tab-nav:hover {
    background: var(--dz-accent);
    color: white;
}

.dz-nav-left { position: absolute; left: 0; }
.dz-nav-right { position: absolute; right: 0; }

.dz-tab-bar::-webkit-scrollbar { display: none; }

.dz-tab {
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--dz-glass-stroke);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    margin-right: -10px; /* Slight overlap */
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 100%, 0% 100%);
    min-width: 140px;
    justify-content: center;
}

.dz-tab i {
    font-size: 1.1rem;
    color: #888;
}

.dz-tab:hover {
    background: rgba(255, 255, 255, 0.4);
    color: var(--dz-accent);
    z-index: 15;
}

.dz-tab.active {
    background: var(--dz-glass);
    backdrop-filter: blur(30px);
    border-color: var(--dz-glass-stroke);
    color: var(--dz-accent);
    z-index: 20;
    height: 52px; /* Slightly taller */
    margin-top: -5px;
}

.dz-tab.active i {
    color: var(--dz-accent);
}

.dz-tab-content-wrapper {
    background: var(--dz-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid var(--dz-glass-stroke);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12); /* Enhanced shadow */
    border-radius: 0 40px 40px 40px;
    padding: 3rem;
    margin-top: -1px;
    min-height: 400px;
    position: relative;
    z-index: 5;
}

.dz-tab-panel {
    display: none;
}

.dz-tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.dz-panel-header h3 {
    margin: 0 0 2rem 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
}

.dz-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    color: #999;
}

.dz-panel-empty i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.2;
}

.dz-panel-empty p {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Order Sub-Tabs (Glassy Pills) */
.dz-sub-tab-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    overflow-x: auto;
    scrollbar-width: none;
}

.dz-sub-tab-bar::-webkit-scrollbar { display: none; }

.dz-sub-tab {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid var(--dz-glass-stroke);
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    color: #777;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dz-sub-tab:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #333;
}

.dz-sub-tab.active {
    background: var(--dz-accent);
    color: white;
    border-color: var(--dz-accent);
    box-shadow: 0 10px 20px rgba(229, 106, 84, 0.2);
}

.dz-sub-panel {
    display: none;
}

.dz-sub-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.dz-track-form {
    max-width: 500px;
}

.dz-input-group {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.dz-input-group input {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--dz-glass-stroke);
    border-radius: 50px;
    outline: none;
    font-family: inherit;
    font-weight: 600;
}


/* Wishlist Grid */
.dz-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.dz-wishlist-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--dz-glass-stroke);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dz-wishlist-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.dz-wishlist-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.dz-wishlist-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dz-wishlist-card:hover .dz-wishlist-card-img img {
    transform: scale(1.1);
}

.dz-remove-wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    z-index: 5;
}

.dz-wishlist-card:hover .dz-remove-wish-btn {
    opacity: 1;
    transform: translateY(0);
}

.dz-remove-wish-btn:hover {
    background: #ff3b30;
    color: #fff;
}

.dz-wishlist-card-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dz-wishlist-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dz-pending-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: rgba(0,0,0,0.02);
}

.dz-btn-pay-now {
    flex: 2;
    background: var(--dz-accent);
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.dz-btn-pay-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--dz-glow);
}

.dz-btn-cancel-order {
    flex: 1;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dz-btn-cancel-order:hover {
    background: #dc2626;
    color: white;
}

.dz-wishlist-card-price {
    font-weight: 800;
    color: var(--dz-accent);
    font-size: 1.1rem;
}

.dz-wishlist-add-cart {
    margin-top: 10px;
    background: var(--dz-accent);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dz-wishlist-add-cart:hover {
    background: #d45942;
    transform: scale(1.02);
}

.dz-wishlist-add-cart.success {
    background: #2ecc71;
}

.dz-loading-fade {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Settings Tab */
.dz-settings-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
}

.dz-settings-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dz-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.dz-section-header i {
    font-size: 1.5rem;
    color: var(--dz-accent);
}

.dz-section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.dz-settings-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dz-input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dz-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dz-input-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    margin-left: 5px;
}

.dz-input-group input {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.dz-input-group input:focus {
    background: #fff;
    border-color: var(--dz-accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(224, 91, 66, 0.1);
}

.dz-form-actions {
    display: flex;
    justify-content: flex-end;
}

.dz-btn-save {
    background: #2ecc71;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.dz-btn-save:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.2);
}

.dz-btn-save.accent {
    background: var(--dz-accent);
}

.dz-btn-save.accent:hover {
    background: #d45942;
    box-shadow: 0 10px 20px rgba(224, 91, 66, 0.2);
}

.dz-form-msg {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

.dz-form-msg.success {
    display: block;
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.dz-form-msg.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

@media (max-width: 768px) {
    .dz-input-grid {
        grid-template-columns: 1fr;
    }
    
    .dz-settings-section {
        padding: 1.5rem;
    }
}

/* Map & Address Styles */
.dz-input-group.full-width {
    grid-column: span 2;
}

.dz-map-container {
    margin-top: 10px;
    position: relative;
}

#dz-settings-map {
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.dz-map-hint {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(224, 91, 66, 0.05);
    border-radius: 8px;
    color: var(--dz-accent);
    font-weight: 600;
}

.dz-map-hint i {
    font-size: 1rem;
}

.pac-container {
    border-radius: 12px;
    margin-top: 5px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    font-family: inherit;
}

.pac-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pac-item:hover {
    background: rgba(224, 91, 66, 0.05);
}

.pac-item-query {
    font-size: 0.95rem;
    color: #333;
}

@media (max-width: 768px) {
    .dz-input-group.full-width {
        grid-column: span 1;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsiveness */
@media (max-width: 768px) {
    .dz-dashboard-hero-card {
        flex-direction: row; /* Keep the row layout */
        gap: 15px;
        padding: 1rem 1.5rem; /* Reduced padding */
        border-radius: 25px;
        justify-content: space-between;
    }
    
    .dz-hero-user {
        flex-direction: row;
        gap: 15px;
    }

    .dz-glass-avatar {
        width: 45px; /* Reduced avatar size */
        height: 45px;
        font-size: 18px;
    }
    
    .dz-hero-name {
        font-size: 1.25rem; /* Reduced font size */
    }

    .dz-hero-greeting {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    
    .dz-logout-label {
        display: none;
    }
    
    .dz-hero-logout {
        padding: 10px;
        border-radius: 50%;
    }

    .dz-tab-bar-wrapper {
        margin: 0 -10px; /* Wider for arrows */
        padding: 0 10px;
    }

    .dz-tab-bar {
        padding: 0 35px; /* Space for arrows */
        mask-image: none;
        -webkit-mask-image: none;
    }

    .dz-tab-nav {
        display: flex;
    }

    .dz-tab {
        min-width: 120px;
        font-size: 0.8rem;
        padding: 12px 20px;
    }

    .dz-tab-content-wrapper {
        border-radius: 25px;
        padding: 1.5rem;
    }

    .dz-sub-tab-bar {
        gap: 8px; /* Reduced gap */
        margin-bottom: 1.5rem;
    }

    .dz-sub-tab {
        padding: 8px 16px; /* Reduced padding */
        font-size: 0.75rem;
    }
}
