/* ==========================================================================
   Spice Junction — Customer Dashboard Styles
   ========================================================================== */

/* Member Hero Card */
.member-hero-card {
    background: linear-gradient(135deg, #0b1727 0%, #172437 100%);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    color: #fff;
    border: 1px solid rgba(255, 197, 84, 0.2);
    box-shadow: 0 8px 24px rgba(11, 23, 39, 0.12);
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.member-hero-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 197, 84, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc554 0%, #e5a420 100%);
    color: #0b1727;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(255, 197, 84, 0.3);
}

.member-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.member-badge {
    display: inline-block;
    background: rgba(255, 197, 84, 0.15);
    border: 1px solid #ffc554;
    color: #ffc554;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stat Metric Chips */
.stat-chips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.stat-chip:hover {
    background: rgba(255, 197, 84, 0.08);
    border-color: rgba(255, 197, 84, 0.3);
}

.stat-chip-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(255, 197, 84, 0.15);
    color: #ffc554;
}

.stat-chip-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.stat-chip-label {
    font-size: 11px;
    color: #9da9bb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Nav Tabs */
.dashboard-nav-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e3e6ed;
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.dashboard-nav-tabs::-webkit-scrollbar {
    display: none;
}

.dashboard-tab-link {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #748194;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.dashboard-tab-link:hover {
    color: #0b1727;
    text-decoration: none;
}

.dashboard-tab-link.active {
    color: #0b1727;
    border-bottom-color: #ffc554;
}

.dashboard-tab-link.active .tab-icon {
    color: #e5a420;
}

/* Dashboard Content Cards */
.dashboard-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e3e6ed;
    padding: 1.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f4f9;
}

.dashboard-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0b1727;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Rewards Banner Card */
.rewards-banner-card {
    background: linear-gradient(135deg, #1e2638 0%, #0b1727 100%);
    border-radius: 10px;
    padding: 1.5rem;
    color: #fff;
    border-left: 4px solid #ffc554;
    margin-bottom: 1.5rem;
}

.rewards-points-display {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffc554;
    line-height: 1;
}

/* Order History Cards */
.order-history-card {
    background: #ffffff;
    border: 1px solid #e3e6ed;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.order-history-card:hover {
    border-color: #ffc554;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.order-type-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.order-type-chip.takeaway {
    background: #e3f2fd;
    color: #1976d2;
}

.order-type-chip.delivery {
    background: #fff3e0;
    color: #f57c00;
}

.order-type-chip.on_table {
    background: #e8f5e9;
    color: #388e3c;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .stat-chips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .stat-chips-grid {
        grid-template-columns: 1fr;
    }

    .member-hero-card {
        padding: 1.25rem;
    }

    .member-avatar {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .member-name {
        font-size: 1.25rem;
    }
}