/* ==========================================================================
   The Industrial Luxury Lounge - User Portal
   Design Version: High-Contrast Minimalist (Bento Style)
   ========================================================================== */

:root {
    --luxe-bg: #f8fafc;
    --luxe-card: #ffffff;
    --luxe-accent: #f57539;
    --luxe-accent-soft: rgba(245, 117, 57, 0.08);
    --luxe-text-main: #0f172a;
    --luxe-text-muted: #64748b;
    --luxe-border: #e2e8f0;
    --luxe-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --luxe-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --luxe-radius: 24px;
}

body.profile-page {
    background: var(--luxe-bg);
    color: var(--luxe-text-main);
    overflow-x: hidden;
}

.dashboard-layout {
    display: block; /* Centered Canvas, No Sidebar */
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 100vh;
}

/* --- Executive Hero Section --- */
.luxe-hero {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding: 3rem;
    background: var(--luxe-card);
    border-radius: var(--luxe-radius);
    border: 1px solid var(--luxe-border);
    box-shadow: var(--luxe-shadow);
    overflow: hidden;
}

.luxe-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(135deg, var(--luxe-accent), #db4f12);
    z-index: 0;
}

.avatar-executive {
    width: 120px;
    height: 120px;
    border-radius: 40px;
    background: #fff;
    border: 6px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--luxe-accent);
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-meta h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero-meta p {
    color: var(--luxe-text-muted);
    font-weight: 500;
    font-size: 1.1rem;
}

.luxe-tier-status {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tier-label-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Bento Grid --- */
.luxe-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.bento-card {
    background: var(--luxe-card);
    border-radius: var(--luxe-radius);
    border: 1px solid var(--luxe-border);
    padding: 2.5rem;
    box-shadow: var(--luxe-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--luxe-shadow-hover);
    border-color: var(--luxe-accent);
}

.bento-card i, .bento-card svg {
    color: var(--luxe-accent);
    width: 32px;
    height: 32px;
}

.bento-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--luxe-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bento-value {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--luxe-text-main);
    line-height: 1;
}

/* --- Floating Nav Tabs --- */
.luxe-tabs {
    position: sticky;
    top: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 0.6rem;
    border-radius: 20px;
    border: 1px solid var(--luxe-border);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 4rem;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}

.luxe-tab-btn {
    padding: 0.8rem 1.75rem;
    border-radius: 14px;
    border: none;
    background: transparent;
    color: var(--luxe-text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.luxe-tab-btn:hover {
    color: var(--luxe-text-main);
    background: rgba(0,0,0,0.02);
}

.luxe-tab-btn.active {
    background: var(--luxe-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 117, 57, 0.3);
}

/* --- Content Areas --- */
.luxe-pane {
    display: none;
    animation: luxeFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.luxe-pane.active {
    display: block;
}

@keyframes luxeFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Greeting Animation --- */
#luxe-greeting-overlay {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.greeting-text {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    opacity: 0;
    transform: translateY(20px);
}

.greeting-active .greeting-text {
    animation: greetingIn 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes greetingIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    20% { opacity: 1; transform: translateY(0) scale(1); }
    80% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-30px) scale(1.05); }
}

/* --- Manifest (Orders) --- */
.luxe-manifest {
    background: var(--luxe-card);
    border-radius: var(--luxe-radius);
    border: 1px solid var(--luxe-border);
    overflow: hidden;
}

.manifest-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--luxe-border);
    align-items: center;
    transition: background 0.2s;
}

.manifest-row:hover {
    background: #fafafa;
}

.manifest-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--luxe-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Mobile Redesign --- */
@media (max-width: 1024px) {
    .luxe-bento-grid { grid-template-columns: 1fr; }
    .dashboard-layout { padding: 2rem 1rem 8rem 1rem; }
    .luxe-hero { padding: 2rem 1.25rem; }
    .hero-meta h1 { font-size: 2rem; }
    .luxe-tabs {
        position: fixed;
        bottom: 30px;
        top: auto;
        left: 20px;
        right: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    }
    .luxe-tab-btn span { display: none; }
    .luxe-tab-btn { padding: 1rem; }
}
