/* --- DISPLAYR.TV DESIGN SYSTEM --- */
:root {
    --brand-primary: #16a34a;
    --brand-dark: #0f172a;
    --bg-main: #F9FAFB;
    --card-bg: #ffffff;
    --border-soft: #e2e8f0;
    --radius-xl: 32px;  /* Main Cards */
    --radius-lg: 28px;  /* Stats & Actions */
    --radius-md: 22px;  /* Small Buttons/Avatars */
}

/* Global Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    background-color: var(--bg-main); 
    color: var(--brand-dark); 
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }

/* Layout Containers */
.container-dashboard {
    max-width: 1152px; /* 6xl */
    margin: 0 auto;
    padding-bottom: 80px;
}

/* Header Symmetry & Vertical Tightening */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0; /* py-4 mobile */
}

@media (min-width: 768px) {
    .main-header { padding: 1.5rem 0; } /* py-6 desktop */
}

/* --- THE AVATAR (Mobile Circle to Desktop Pill) --- */
.user-avatar-container {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: white;
    border: 1px solid var(--border-soft);
    padding: 2px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-avatar-container .avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: var(--brand-dark);
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-label { display: none; }

@media (min-width: 768px) {
    .user-avatar-container {
        width: auto;
        padding-right: 16px;
        gap: 12px;
    }
    .avatar-label { 
        display: block; 
        font-size: 10px; 
        font-weight: 900; 
        text-transform: uppercase; 
        letter-spacing: 0.15em; 
        color: #475569;
    }
}

/* --- DRAWER (MODEL) SYSTEM --- */
.drawer-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.4s ease;
}

.drawer-mask.active { opacity: 1; pointer-events: auto; }

.profile-drawer {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    max-width: 380px;
    background: white;
    z-index: 60;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.profile-drawer.active { transform: translateX(0); }

/* --- CARD COMPONENTS --- */
.card-main {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: border-color 0.2s ease;
}

.card-stat {
    background: var(--card-bg);
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
}

.screen-card {
    background: var(--card-bg);
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.screen-card:hover { border-color: var(--brand-dark); }