/* ========================================================
   GLOBAL COMPONENT CONFIGURATIONS & THEME ENGINE (MD3)
   HIGH CONTRAST PREMIUM LIGHT & PURE BLACK THEME MATRIX
   ======================================================== */
:root {
    --bg-color: #FFFFFF; 
    --surface: #FFFFFF; 
    --primary: #FF2E55; 
    --primary-glow: rgba(255, 46, 85, 0.12);
    --text-main: #000000; 
    --text-muted: #555555; 
    --card-bg: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.08);
    --success: #00C853;
    --download: #007AFF;
    --border-color: #EEEEEE;
}

[data-theme="dark"] {
    --bg-color: #000000;
    --surface: #000000;
    --primary: #FF3B30;
    --primary-glow: rgba(255, 59, 48, 0.15);
    --text-main: #FFFFFF;
    --text-muted: #AAAAAA;
    --card-bg: #111111;
    --glass-bg: rgba(0, 0, 0, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
    --border-color: #222222;
}

* { 
    box-sizing: border-box; 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    -webkit-tap-highlight-color: transparent; 
    -webkit-touch-callout: none; 
    -webkit-user-select: none; 
    user-select: none; 
    -webkit-user-drag: none; 
}

input, textarea, select { 
    -webkit-user-select: auto; 
    user-select: auto; 
}

body { 
    margin: 0; 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    overflow-x: hidden; 
    padding-top: 82px; /* Positioned directly to match lowered header height */
    padding-bottom: 48px; 
    touch-action: pan-y; 
    transition: background-color 0.3s; 
}

body.auth-active { 
    overflow: hidden; 
    height: 100vh; 
}

::-webkit-scrollbar { 
    display: none; 
}

/* LOADING / SPLASH SCREEN */
#splash-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    display: flex; justify-content: center; align-items: center;
    z-index: 999999;
    transition: opacity 0.6s ease;
}

.ambient-light {
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(191, 149, 63, 0.12);
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 4s infinite alternate;
}

.loading-container { 
    text-align: center; 
    z-index: 2; 
}

.logo-splash {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem; letter-spacing: 2px;
    color: #1e293b; opacity: 0; margin: 0 0 20px 0;
    animation: fadeUp 1.5s ease-out forwards;
    text-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
}

.logo-splash span { 
    background: linear-gradient(to right, #bf953f, #b38728, #aa771c); 
    -webkit-background-clip: text; 
    color: transparent; 
    font-weight: 800; 
}

.progress-container {
    width: 250px; height: 4px;
    background: rgba(0, 0, 0, 0.06);
    margin: 0 auto 15px auto; border-radius: 10px;
    overflow: hidden; opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
    position: relative;
}

.progress-bar { 
    width: 0%; height: 100%; 
    background: linear-gradient(90deg, #bf953f, #b38728); 
    border-radius: 10px; 
    animation: loadProgress 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; 
}

.loading-text { 
    color: #64748b; 
    font-size: 0.9rem; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    opacity: 0; 
    margin: 0; 
    animation: fadeIn 1s ease-out 1.5s forwards; 
}

@keyframes fadeUp { 
    0% { opacity: 0; transform: translateY(30px) scale(0.9); } 
    100% { opacity: 1; transform: translateY(0) scale(1); } 
}

@keyframes fadeIn { 
    0% { opacity: 0; } 
    100% { opacity: 1; } 
}

@keyframes loadProgress { 
    0% { width: 0%; } 
    40% { width: 45%; } 
    70% { width: 80%; } 
    100% { width: 100%; } 
}

@keyframes pulse { 
    0% { transform: scale(1); opacity: 0.5; } 
    100% { transform: scale(1.5); opacity: 1; } 
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    gap: 10px;
}
.toast {
    background: var(--surface);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary);
    color: var(--text-main);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    animation: slideDownIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    line-height: 1.3;
    pointer-events: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90vw;
}
.toast span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75vw;
}
.toast.success { border-left-color: var(--success); }
@keyframes slideDownIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideOutUp {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-50px); opacity: 0; }
}

/* Auth Screen */
#auth-screen { 
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh; overflow: hidden; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 100%), url('https://assets.nflxext.com/ffe/siteui/vlv3/f841d4c7-10e1-40af-bcae-07a3f8dc141a/f6d7434e-d6de-4185-a6d4-c77a2d08737b/US-en-20220502-popsignuptwoweeks-perspective_alpha_website_small.jpg') center/cover; 
    padding: 16px; box-sizing: border-box;
}
.auth-box { 
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(30px); 
    border: 1px solid var(--glass-border); box-shadow: 0 20px 40px rgba(0,0,0,0.05); 
    padding: 35px 24px; border-radius: 32px; width: 100%; max-width: 420px; max-height: 90vh;
    overflow-y: auto; scrollbar-width: none; animation: scaleFadeIn 0.6s ease; 
}
.auth-box::-webkit-scrollbar { display: none; }
.auth-box h1 { color: var(--text-main); text-align: center; font-size: 2.2rem; margin: 0 0 5px 0; font-weight: 900; }
.auth-box h1 span { color: var(--primary); }
.auth-box h2 { text-align: center; margin: 0 0 25px 0; font-weight: 500; color: var(--text-muted); font-size: 1rem; }

.btn-google { width: 100%; padding: 18px; background: white; color: #000000; border: 1px solid rgba(0,0,0,0.08); border-radius: 18px; font-size: 1.05rem; font-weight: 800; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.btn-google img { width: 22px; }
@keyframes scaleFadeIn { 0% { opacity: 0; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } }

/* App Layout & Header Spacing */
#app-screen { display: none; position: relative; }
header { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; 
    height: 82px; /* Increased height to avoid status bar overlap */
    padding-top: 32px; /* Lowered header contents below status bar */
    background: var(--surface); 
    padding-left: 16px;
    padding-right: 16px;
    z-index: 100; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--border-color); 
}

.brand { color: var(--text-main); font-size: 1.3rem; font-weight: 900; margin: 0; display: flex; align-items: center; gap: 8px; }
.brand span { color: var(--primary); }
.header-avatar { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), #FF7A00); color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; cursor: pointer; overflow: hidden; border: 1px solid rgba(0,0,0,0.05); }
.header-avatar img { width: 100%; height: 100%; object-fit: cover;}

/* Account Switch Header Button */
.btn-switch-account-header {
    background: var(--surface); border: 1px solid var(--glass-border);
    padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700;
    color: var(--text-main); cursor: pointer; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); transition: all 0.2s ease;
}
.btn-switch-account-header:active { transform: scale(0.95); background: var(--border-color); }

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 48px; 
    background: #FFFFFF !important;
    border-top: 1px solid #EEEEEE;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: none !important;
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: border-box;
}

.nav-item {
    color: #666666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent !important;
    transition: none !important; 
}

.nav-item:active, .nav-item:focus, .nav-create-circle:active, .nav-create-circle:focus {
    background-color: transparent !important;
    background: transparent !important;
    transform: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.nav-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px; 
    height: 26px;
    position: relative;
    transition: none !important;
}
.nav-item:active .nav-icon-container {
    transform: none !important;
}

.nav-icon-svg {
    width: 26px !important; 
    height: 26px !important;
    fill: none;
    color: #000000 !important; 
    opacity: 0.54; 
    transition: opacity 0.15s ease;
}

.nav-item.active .nav-icon-svg {
    opacity: 1 !important; 
}

.nav-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px; 
    font-weight: 700;
    color: #000000 !important; 
    opacity: 0.54; 
    margin-top: 2px;
    letter-spacing: -0.15px;
    transition: opacity 0.1s ease;
}

.nav-item.active .nav-label {
    opacity: 1 !important;
    font-weight: 800;
}

.nav-create-circle {
    background-color: #F1F5F9;
    color: #000000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: none !important;
}

.nav-create-circle:active {
    transform: none !important;
    background-color: #F1F5F9 !important; 
}

.nav-create-circle svg {
    width: 20px;
    height: 20px;
    color: #000000;
}

.nav-avatar-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-item.active .nav-avatar-circle {
    border-color: #000000;
}

.nav-item .icon-selected { display: none !important; }
.nav-item .icon-unselected { display: block !important; }
.nav-item.active .icon-selected { display: block !important; }
.nav-item.active .icon-unselected { display: none !important; }

.nav-avatar-wrap { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; border: 2px solid transparent; transition: border-color 0.1s ease; display: flex; align-items: center; justify-content: center; }
.nav-item.active .nav-avatar-wrap { border-color: #000000; }
.nav-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Full Screen Pages Stack */
.fullscreen-page {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--bg-color); z-index: 1500;
    display: none; flex-direction: column; overflow-y: auto;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

.appbar {
    height: 64px; background: var(--surface); display: flex; align-items: center;
    padding: 0 16px; border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 100;
}
.appbar-back-btn {
    background: none; border: none; font-size: 1.25rem; color: var(--text-main);
    cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; transition: 0.2s;
}
.appbar-back-btn:active { background: var(--border-color); }
.appbar-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 0 12px; color: var(--text-main); }

/* You Profile Card */
.profile-card-you {
    background: var(--surface); border: 1px solid var(--glass-border);
    margin: 8px 8px 24px 8px !important; border-radius: 24px !important;
    padding: 24px !important; box-shadow: 0 12px 30px rgba(0,0,0,0.04);
    width: calc(100% - 16px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] .profile-card-you { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 15px rgba(255, 46, 85, 0.05); }
.profile-card-main { display: flex; align-items: center; gap: 16px; }
.profile-avatar-large {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #FF7A00); color: white;
    display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
    font-weight: 800; overflow: hidden; box-shadow: 0 8px 20px var(--primary-glow);
    transition: transform 0.3s ease;
}
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.profile-info-you h3 { margin: 0 0 6px 0; font-size: 1.35rem; font-weight: 800; color: var(--text-main); }
.profile-info-you p { margin: 0; font-size: 0.88rem; color: var(--text-muted); font-weight: 600; }

.channel-action-box { margin-top: 20px; border-top: 1px solid var(--glass-border); padding-top: 20px; }
.btn-create-channel {
    background: var(--primary); color: white; border: none; width: 100%; padding: 16px;
    border-radius: 20px; font-weight: 800; font-size: 1.05rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 8px 20px var(--primary-glow); transition: all 0.2s ease;
}
.btn-create-channel:active { transform: scale(0.96); box-shadow: none; }

.btn-view-channel {
    background: var(--bg-color); color: var(--text-main); border: 1px solid var(--glass-border);
    width: 100%; padding: 16px 20px; border-radius: 20px; font-weight: 800; font-size: 1.05rem;
    cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.btn-view-channel:active { transform: scale(0.97); background: var(--border-color); }

/* You Menu List */
.you-menu {
    display: flex; flex-direction: column; background: var(--surface);
    border: 1px solid var(--glass-border); margin: 0 8px 24px 8px !important;
    border-radius: 24px !important; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.02);
    width: calc(100% - 16px) !important; transition: all 0.3s ease;
}
[data-theme="dark"] .you-menu { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.you-menu-item {
    display: flex; align-items: center; padding: 20px 24px; cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); border-bottom: 1px solid var(--glass-border);
    color: var(--text-main); position: relative; overflow: hidden;
}
.you-menu-item:last-child { border-bottom: none; }
.you-menu-item:active { background: var(--primary-glow); transform: scale(0.98); }
.you-menu-item i { font-size: 1.25rem; width: 32px; color: var(--primary); transition: transform 0.2s ease; }
.you-menu-item:active i { transform: scale(1.1); }
.you-menu-item span { font-size: 1.05rem; font-weight: 700; flex-grow: 1; }
.arrow-r { font-size: 0.9rem !important; color: var(--text-muted); opacity: 0.6; }

/* Create/Edit Profile Forms */
.avatar-selector-wrap { display: flex; flex-direction: column; align-items: center; margin: 24px 0; }
.avatar-preview-container { width: 110px; height: 110px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px var(--primary-glow); position: relative; }
.avatar-preview-container img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { font-size: 2rem; color: var(--text-muted); }
.selector-help { font-size: 0.8rem; color: var(--text-muted); margin: 8px 0 0; font-weight: 600; }

.form-group { margin: 0 20px 20px; position: relative; }
.form-label { display: block; font-size: 0.85rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.form-input { width: 100%; background: var(--surface); border: 1.5px solid var(--glass-border); padding: 16px; border-radius: 16px; font-size: 1rem; font-weight: 600; color: var(--text-main); outline: none; transition: 0.2s; }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.form-textarea { width: 100%; background: var(--surface); border: 1.5px solid var(--glass-border); padding: 16px; border-radius: 16px; font-size: 1rem; font-weight: 600; color: var(--text-main); outline: none; transition: 0.2s; resize: none; height: 120px; }
.form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.form-select { width: 100%; background: var(--surface); border: 1.5px solid var(--glass-border); padding: 16px; border-radius: 16px; font-size: 1rem; font-weight: 600; color: var(--text-main); outline: none; transition: 0.2s; }
.form-select:focus { border-color: var(--primary); }

.handle-input-wrap { position: relative; display: flex; align-items: center; }
.handle-prefix { position: absolute; left: 16px; font-size: 1rem; font-weight: 800; color: var(--text-muted); }
.handle-input-wrap .form-input { padding-left: 36px; }

.handle-feedback-txt { font-size: 0.88rem; margin-top: 8px; font-weight: 700; }
.input-counter { text-align: right; font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; font-weight: 600; }

.btn-primary-action { background: var(--primary); color: white; border: none; border-radius: 18px; padding: 18px; font-size: 1.05rem; font-weight: 800; cursor: pointer; box-shadow: 0 8px 24px var(--primary-glow); transition: 0.2s; margin: 10px 20px 40px; display: block; width: calc(100% - 40px); }
.btn-primary-action:disabled { background: #CBD5E1; color: #94A3B8; box-shadow: none; cursor: not-allowed; }
.btn-primary-action:active:not(:disabled) { transform: scale(0.97); }

/* View Channel */
.channel-banner-container { width: 100%; height: 120px; position: relative; background: #E2E8F0; overflow: hidden; }
.channel-banner-img { width: 100%; height: 100%; object-fit: cover; }
.banner-gradient { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 80%); }

.channel-profile-section { padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--glass-border); margin-top: -32px; border-radius: 32px 32px 0 0; position: relative; z-index: 2; }
.profile-row-main { display: flex; gap: 16px; align-items: center; }
.view-avatar-img { width: 80px; height: 80px; border-radius: 50%; border: 4px solid var(--surface); object-fit: cover; box-shadow: 0 6px 15px rgba(0,0,0,0.08); background: var(--bg-color); }
.channel-main-meta h2 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 900; color: var(--text-main); }
.channel-main-meta p { margin: 0; }
#view-channel-handle-txt { font-size: 0.9rem; color: var(--text-muted); font-weight: 700; }
.channel-stats-txt { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-top: 4px !important; }
.dot-separator { margin: 0 4px; }

.channel-description-box { margin: 12px 0; background: var(--bg-color); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--glass-border); }
.channel-desc-text { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.4; }
.channel-desc-text.line-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btn-more-desc { background: none; border: none; color: var(--primary); font-size: 0.82rem; font-weight: 800; cursor: pointer; padding: 4px 0 0; display: flex; align-items: center; gap: 4px; }

.channel-action-row { display: flex; gap: 10px; margin-top: 14px; }
.btn-channel-action { flex: 1; background: var(--primary-glow); color: var(--primary); border: 1px solid transparent; padding: 12px; border-radius: 12px; font-weight: 800; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; }
.btn-channel-action:active { transform: scale(0.96); }
.btn-channel-action.btn-edit { background: var(--bg-color); border-color: var(--glass-border); color: var(--text-main); }
.btn-channel-action.btn-edit:active { background: var(--border-color); }

/* Content Tabs */
.channel-tabs { display: flex; background: var(--surface); border-bottom: 1px solid var(--glass-border); position: sticky; top: 64px; z-index: 10; }
.channel-tab-item { flex: 1; text-align: center; padding: 16px 0; font-size: 0.95rem; font-weight: 800; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; transition: 0.2s; }
.channel-tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }
.channel-tab-content { display: none; padding: 16px; }
.channel-tab-content.active { display: block; }

.channel-videos-container { display: flex; flex-direction: column; gap: 16px; }
.channel-shorts-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.channel-posts-container { display: flex; flex-direction: column; gap: 16px; }

.channel-video-card-long { display: flex; gap: 12px; cursor: pointer; }
.video-card-thumb-wrap { width: 120px; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #E2E8F0; flex-shrink: 0; position: relative; }
.video-card-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.video-card-duration { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.8); color: white; font-size: 0.65rem; padding: 2px 4px; border-radius: 4px; font-weight: 800; }
.video-card-meta-long { display: flex; flex-direction: column; justify-content: center; }
.video-card-meta-long h4 { margin: 0 0 4px; font-size: 0.9rem; font-weight: 800; color: var(--text-main); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.video-card-meta-long p { margin: 0; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

.short-grid-card { aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; background: #E2E8F0; position: relative; cursor: pointer; }
.short-grid-card img { width: 100%; height: 100%; object-fit: cover; }
.short-grid-views { position: absolute; bottom: 8px; left: 8px; color: white; font-size: 0.75rem; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,0.8); display: flex; align-items: center; gap: 4px; }

/* Account Switching & Banner Customization */
.account-row { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bg-color); border: 1px solid var(--glass-border); border-radius: 20px; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.account-row:active { transform: scale(0.97); background: var(--primary-glow); }
.account-row.active { border-color: var(--primary); background: var(--primary-glow); }
.account-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #FF7A00); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; overflow: hidden; flex-shrink: 0; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-meta h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; color: var(--text-main); }
.account-meta p { margin: 0; font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.check-active { position: absolute; right: 20px; color: var(--primary); font-size: 1.3rem; display: none; }
.account-row.active .check-active { display: block; }
.account-row.add-acc { border-style: dashed; background: transparent; }
.account-avatar-add { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1.5px dashed var(--primary); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }

.edit-banner-section { width: 100%; height: 140px; background: #E2E8F0; position: relative; overflow: hidden; cursor: pointer; }
.edit-banner-preview { width: 100%; height: 100%; object-fit: cover; }
.edit-banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 0.85rem; gap: 6px; opacity: 0.8; transition: 0.2s; }
.edit-banner-section:hover .edit-banner-overlay { opacity: 1; }

.edit-avatar-section { display: flex; justify-content: center; margin-top: -45px; position: relative; z-index: 5; }
.edit-avatar-section .avatar-preview-container { border-color: var(--surface); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.avatar-overlay-camera { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; opacity: 0; transition: 0.2s; }
.edit-avatar-section .avatar-preview-container:hover .avatar-overlay-camera { opacity: 1; }

/* Analytics */
.analytics-overview-card { background: var(--surface); border: 1px solid var(--glass-border); border-radius: 24px; padding: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.01); margin-bottom: 24px; }
.analytics-header-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.analytics-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: var(--bg-color); }
.analytics-header-row h3 { margin: 0 0 2px; font-size: 1.15rem; font-weight: 850; color: var(--text-main); }
.analytics-header-row p { margin: 0; font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.revenue-box { background: var(--primary-glow); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.revenue-label { font-size: 0.72rem; font-weight: 800; color: var(--primary); letter-spacing: 0.8px; }
.revenue-val { font-size: 1.6rem; font-weight: 900; color: var(--text-main); }

.analytics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.analytics-card { background: var(--surface); border: 1px solid var(--glass-border); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; min-height: 110px; }
.stat-lbl { font-size: 0.82rem; font-weight: 750; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.stat-lbl i { color: var(--primary); }
.stat-num { font-size: 1.5rem; font-weight: 900; color: var(--text-main); margin: 8px 0 4px; }
.stat-trend { font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.trend-up { color: var(--success); }
.stat-sub-text { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

.chart-container-mock { background: var(--surface); border: 1px solid var(--glass-border); border-radius: 24px; padding: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.01); margin-bottom: 40px; }
.chart-bars { display: flex; align-items: flex-end; justify-content: space-between; height: 160px; padding: 10px 10px 24px; border-bottom: 2px solid var(--glass-border); position: relative; }
.chart-bar { flex: 1; margin: 0 6px; background: linear-gradient(to top, var(--primary), #FF7A00); border-radius: 6px 6px 0 0; position: relative; cursor: pointer; transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.chart-bar::after { content: attr(data-lbl); position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-size: 0.72rem; font-weight: 800; color: var(--text-muted); }
.bar-val { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; font-weight: 800; color: var(--text-main); opacity: 0; transition: 0.2s; }
.chart-bar:hover { filter: brightness(1.1); transform: scaleY(1.05); }
.chart-bar:hover .bar-val { opacity: 1; }
.chart-footer-label { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin: 14px 0 0; font-weight: 700; }

/* Material Design 3 Modals and Sheets */
.upcoming-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(15px); z-index: 999999; display: none; justify-content: center; align-items: center; }
.upcoming-content {
    background: var(--surface) !important;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-radius: 28px !important;
    padding: 32px 24px !important;
    width: 90%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12) !important;
    animation: md3ScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes md3ScaleIn {
    from { transform: scale(0.9) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.upcoming-icon { width: 70px; height: 70px; background: rgba(255, 46, 85, 0.08); border-radius: 50%; color: var(--primary); font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; animation: rotateGlow 3s infinite alternate; }
.upcoming-content h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 10px; color: var(--text-main); }
.upcoming-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin: 0 0 25px; }
.upcoming-close-btn { background: var(--primary); color: white; border: none; padding: 12px 30px; border-radius: 14px; font-weight: 800; font-size: 0.95rem; cursor: pointer; transition: 0.2s; box-shadow: 0 5px 15px rgba(255, 46, 85, 0.15); }
.upcoming-close-btn:active { transform: scale(0.95); }

@keyframes rotateGlow { 0% { transform: rotate(0deg) scale(1); box-shadow: 0 0 0 rgba(255, 46, 85, 0); } 100% { transform: rotate(15deg) scale(1.1); box-shadow: 0 0 15px rgba(255, 46, 85, 0.15); } }
