[x-cloak] { display: none !important; }

:root {
    color-scheme: dark;
    --bg-color: #070c1e; /* Ultra deep midnight slate */
    --surface-color: rgba(22, 33, 62, 0.75);
    --surface-hover: rgba(30, 45, 82, 0.85);
    --surface-border: rgba(255, 255, 255, 0.14);
    --surface-glass-glow: rgba(59, 130, 246, 0.25);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Vibrant Neon Accents */
    --accent-primary: #3b82f6; /* Electric Blue */
    --accent-secondary: #8b5cf6; /* Neon Violet */
    --accent-cyan: #06b6d4; /* Vibrant Cyan */
    --accent-pink: #f43f5e; /* Bright Rose */
    --accent-emerald: #10b981; /* Emerald Green */
    --accent-gold: #f59e0b; /* Amber Gold */

    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #f43f5e 100%);
    --accent-gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --accent-gradient-gold: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --accent-gradient-emerald: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

select, 
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="search"], 
input[type="date"], 
textarea {
    background-color: #0b1329 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color-scheme: dark !important;
}

select option {
    background-color: #0b1329 !important;
    color: #ffffff !important;
    padding: 8px 12px;
}

select option:checked, 
select option:hover {
    background-color: #1e293b !important;
    color: #06b6d4 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* --- Ambient Glowing Orbs Background --- */
.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    animation: floatOrb 12s infinite alternate ease-in-out;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, rgba(6,182,212,0) 70%);
    top: -100px;
    left: -100px;
}
.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, rgba(244,63,94,0) 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}
.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6,182,212,0.25) 0%, rgba(16,185,129,0) 70%);
    top: 40%;
    left: 40%;
    animation-delay: -8s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.1); }
}

#app {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Premium Utilities */
.glass {
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}

.glass-glow {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-glow:hover {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 14px 45px rgba(6, 182, 212, 0.25);
    transform: translateY(-4px);
}

/* Modal & Container Max Width Utilities */
.max-w-xs { max-width: 20rem !important; }
.max-w-sm { max-width: 24rem !important; }
.max-w-md { max-width: 32rem !important; }
.max-w-lg { max-width: 36rem !important; }
.max-w-xl { max-width: 42rem !important; }
.max-w-2xl { max-width: 48rem !important; }
.max-w-3xl { max-width: 54rem !important; }
.max-w-4xl { max-width: 56rem !important; }
.max-w-5xl { max-width: 64rem !important; }


/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* --- Sidebar --- */
.sidebar {
    width: 290px;
    height: 100vh;
    background: rgba(7, 12, 30, 0.85);
    backdrop-filter: blur(28px);
    border-right: 1px solid var(--surface-border);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    z-index: 10;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-header {
    flex-shrink: 0;
    margin-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient-cyan);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #070c1e;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.logo h2 {
    font-size: 23px;
    letter-spacing: -0.5px;
    line-height: 1.1;
    font-weight: 800;
}

.logo span {
    color: var(--accent-cyan);
    font-weight: 400;
}

.vision-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 20px;
    padding: 4px 12px;
    margin-top: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 800;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.nav-links {
    list-style: none;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 12px;
    margin: 0 -12px 12px -12px;
}

.nav-links li {
    margin-bottom: 8px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 14.5px;
}

.nav-links a i {
    font-size: 22px;
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(5px);
}

.nav-links a:hover i {
    transform: scale(1.18);
    color: var(--accent-cyan);
}

.nav-links a.active {
    color: #070c1e;
    background: var(--accent-gradient-cyan);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.5);
    font-weight: 700;
}

.nav-links a.active i {
    color: #070c1e;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    height: 84px;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid var(--surface-border);
    background: rgba(7, 12, 30, 0.65);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 100;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 10px 20px;
    width: 360px;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.search-bar i {
    color: var(--text-secondary);
    margin-right: 12px;
    font-size: 20px;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.user-info {
    text-align: right;
}
.user-name {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-primary);
}
.user-role {
    font-size: 12px;
    color: var(--accent-cyan);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--surface-border);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
}

.icon-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.notification-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 9px;
    height: 9px;
    background: var(--accent-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-pink);
}

.avatar img {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--surface-color);
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
}

.view-container {
    flex: 1;
    padding: 36px 40px;
    overflow-y: auto;
}

/* --- Eye-Catching Hero Banner --- */
.hero-banner {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(59, 130, 246, 0.2) 50%, rgba(139, 92, 246, 0.2) 100%);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 28px;
    padding: 36px 40px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 620px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.hero-stats-box {
    background: rgba(7, 12, 30, 0.6);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 28px;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-val {
    font-size: 28px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--accent-cyan);
}

.hero-stat-lbl {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* --- Stat Cards Grid --- */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.icon-blue { background: rgba(59, 130, 246, 0.16); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.35); box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }
.icon-purple { background: rgba(139, 92, 246, 0.16); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.35); box-shadow: 0 0 15px rgba(139, 92, 246, 0.2); }
.icon-cyan { background: rgba(6, 182, 212, 0.16); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.35); box-shadow: 0 0 15px rgba(6, 182, 212, 0.2); }
.icon-pink { background: rgba(244, 63, 94, 0.16); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.35); box-shadow: 0 0 15px rgba(244, 63, 94, 0.2); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 34px;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

.stat-trend {
    font-size: 12px;
    color: var(--accent-emerald);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

/* --- Infografis Bar Charts --- */
.chart-bar-group {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 140px;
    padding-top: 20px;
}

.chart-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar-fill {
    width: 100%;
    max-width: 38px;
    border-radius: 10px 10px 4px 4px;
    background: var(--accent-gradient-cyan);
    transition: height 0.8s ease;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.chart-bar-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* --- Progress Rings & Steppers --- */
.progress-ring-container {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring-svg {
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    stroke: rgba(255, 255, 255, 0.08);
}

.progress-ring-circle {
    stroke: var(--accent-cyan);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

.progress-ring-text {
    position: absolute;
    text-align: center;
}

.progress-number {
    font-size: 26px;
    font-family: var(--font-heading);
    font-weight: 800;
}

.progress-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
}

.milestone-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 28px 0;
}

.milestone-stepper::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.milestone-line-progress {
    position: absolute;
    top: 22px;
    left: 20px;
    height: 4px;
    background: var(--accent-gradient-cyan);
    z-index: 2;
    transition: width 0.5s ease;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
}

.milestone-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 110px;
    text-align: center;
    cursor: pointer;
}

.step-node {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.milestone-step.completed .step-node {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #070c1e;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}

.milestone-step.active .step-node {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.step-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.milestone-step.completed .step-title,
.milestone-step.active .step-title {
    color: var(--text-primary);
}

/* --- LMS Mentoring & Chat --- */
.lms-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 26px;
}

.chat-panel {
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.2);
}

.mentor-avatar {
    position: relative;
}

.mentor-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.status-online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    background: var(--accent-emerald);
    border-radius: 50%;
    border: 2px solid var(--bg-color);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-bubble {
    max-width: 82%;
    padding: 13px 18px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.55;
}

.chat-bubble.mentor {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--surface-border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble.user {
    background: var(--accent-gradient-cyan);
    color: #070c1e;
    font-weight: 600;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.chat-time {
    font-size: 10px;
    opacity: 0.75;
    margin-top: 4px;
    display: block;
    text-align: right;
}

.chat-footer {
    padding: 16px;
    border-top: 1px solid var(--surface-border);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 13.5px;
    outline: none;
    font-family: var(--font-body);
}

.chat-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

/* --- Tabs & Modals --- */
.tab-navigation {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 14px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 11px 22px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active {
    color: #070c1e;
    background: var(--accent-gradient-cyan);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 12, 30, 0.82);
    backdrop-filter: blur(16px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 90%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 36px;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 22px;
    right: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: white;
    background: var(--accent-pink);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14.5px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.3);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
.btn-primary {
    background: var(--accent-gradient-cyan);
    color: #070c1e;
    border: none;
    padding: 13px 26px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.55);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    padding: 11px 22px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255,255,255,0.3);
}

/* Cards & Badges */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.item-card {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: all 0.35s ease;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.badge-info { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.35); }
.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-cyan { background: rgba(6, 182, 212, 0.2); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.35); }

.item-title {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

.item-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.item-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--surface-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Avatar Sizing & Cropping Helpers */
.w-14 { width: 3.5rem !important; }
.h-14 { height: 3.5rem !important; }
.w-20 { width: 5rem !important; }
.h-20 { height: 5rem !important; }
.shrink-0 { flex-shrink: 0 !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-5 { padding: 1.25rem !important; }
.w-10 { width: 2.5rem !important; }
.h-10 { height: 2.5rem !important; }
.w-12 { width: 3rem !important; }
.h-12 { height: 3rem !important; }

/* Flex & Grid & Layout Helpers */
.flex { display: flex; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.grid { display: grid; }

.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }

.col-span-1 { grid-column: span 1 / span 1 !important; }
.col-span-2 { grid-column: span 2 / span 2 !important; }
.col-span-3 { grid-column: span 3 / span 3 !important; }
.col-span-4 { grid-column: span 4 / span 4 !important; }
.col-span-5 { grid-column: span 5 / span 5 !important; }
.col-span-6 { grid-column: span 6 / span 6 !important; }
.col-span-7 { grid-column: span 7 / span 7 !important; }
.col-span-8 { grid-column: span 8 / span 8 !important; }
.col-span-9 { grid-column: span 9 / span 9 !important; }
.col-span-10 { grid-column: span 10 / span 10 !important; }
.col-span-11 { grid-column: span 11 / span 11 !important; }
.col-span-12 { grid-column: span 12 / span 12 !important; }
.col-span-full { grid-column: 1 / -1 !important; }

/* Responsive Grid Modifiers */
@media (min-width: 640px) {
    .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
    .sm\:col-span-1 { grid-column: span 1 / span 1 !important; }
    .sm\:col-span-2 { grid-column: span 2 / span 2 !important; }
    .sm\:col-span-3 { grid-column: span 3 / span 3 !important; }
    .sm\:col-span-4 { grid-column: span 4 / span 4 !important; }
    .sm\:col-span-5 { grid-column: span 5 / span 5 !important; }
    .sm\:col-span-6 { grid-column: span 6 / span 6 !important; }
    .sm\:col-span-7 { grid-column: span 7 / span 7 !important; }
    .sm\:col-span-8 { grid-column: span 8 / span 8 !important; }
    .sm\:col-span-9 { grid-column: span 9 / span 9 !important; }
    .sm\:col-span-10 { grid-column: span 10 / span 10 !important; }
    .sm\:col-span-11 { grid-column: span 11 / span 11 !important; }
    .sm\:col-span-12 { grid-column: span 12 / span 12 !important; }
}

@media (min-width: 768px) {
    .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
    .md\:col-span-1 { grid-column: span 1 / span 1 !important; }
    .md\:col-span-2 { grid-column: span 2 / span 2 !important; }
    .md\:col-span-3 { grid-column: span 3 / span 3 !important; }
    .md\:col-span-4 { grid-column: span 4 / span 4 !important; }
    .md\:col-span-5 { grid-column: span 5 / span 5 !important; }
    .md\:col-span-6 { grid-column: span 6 / span 6 !important; }
    .md\:col-span-7 { grid-column: span 7 / span 7 !important; }
    .md\:col-span-8 { grid-column: span 8 / span 8 !important; }
    .md\:col-span-9 { grid-column: span 9 / span 9 !important; }
    .md\:col-span-10 { grid-column: span 10 / span 10 !important; }
    .md\:col-span-11 { grid-column: span 11 / span 11 !important; }
    .md\:col-span-12 { grid-column: span 12 / span 12 !important; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
    .lg\:col-span-1 { grid-column: span 1 / span 1 !important; }
    .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }
    .lg\:col-span-3 { grid-column: span 3 / span 3 !important; }
    .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
    .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
    .lg\:col-span-6 { grid-column: span 6 / span 6 !important; }
    .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
    .lg\:col-span-8 { grid-column: span 8 / span 8 !important; }
    .lg\:col-span-9 { grid-column: span 9 / span 9 !important; }
    .lg\:col-span-10 { grid-column: span 10 / span 10 !important; }
    .lg\:col-span-11 { grid-column: span 11 / span 11 !important; }
    .lg\:col-span-12 { grid-column: span 12 / span 12 !important; }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
    .xl\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
    .xl\:col-span-1 { grid-column: span 1 / span 1 !important; }
    .xl\:col-span-2 { grid-column: span 2 / span 2 !important; }
    .xl\:col-span-3 { grid-column: span 3 / span 3 !important; }
    .xl\:col-span-4 { grid-column: span 4 / span 4 !important; }
    .xl\:col-span-5 { grid-column: span 5 / span 5 !important; }
    .xl\:col-span-6 { grid-column: span 6 / span 6 !important; }
    .xl\:col-span-7 { grid-column: span 7 / span 7 !important; }
    .xl\:col-span-8 { grid-column: span 8 / span 8 !important; }
    .xl\:col-span-9 { grid-column: span 9 / span 9 !important; }
    .xl\:col-span-10 { grid-column: span 10 / span 10 !important; }
    .xl\:col-span-11 { grid-column: span 11 / span 11 !important; }
    .xl\:col-span-12 { grid-column: span 12 / span 12 !important; }
}

.rounded-2xl { border-radius: 1rem !important; }
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION & DRAWER STYLES (< 1024px or .is-mobile-device)
   ========================================================================== */

/* Hide Bottom Nav on Desktop by default */
.mobile-bottom-nav {
    display: none;
}

/* Rule for small/tablet devices OR devices explicitly detected as mobile (Android/iOS) */
@media (max-width: 1024px) {
    /* Hide desktop sidebar on mobile/tablet devices */
    .sidebar {
        display: none !important;
    }

    #app {
        flex-direction: column !important;
    }

    .main-content {
        width: 100% !important;
    }

    .topbar {
        padding: 0 16px !important;
        height: 70px !important;
    }

    .view-container {
        padding: 20px 16px 95px 16px !important; /* extra bottom padding for bottom nav */
    }

    /* Responsive Hero Banner */
    .hero-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 18px !important;
        padding: 24px 20px !important;
        margin-bottom: 24px !important;
    }

    .hero-content h1 {
        font-size: 24px !important;
        line-height: 1.25 !important;
    }

    .hero-content p {
        font-size: 13.5px !important;
    }

    /* Fixed Glassmorphic Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 68px !important;
        background: rgba(11, 19, 41, 0.94) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        z-index: 9990 !important;
        align-items: center !important;
        justify-content: space-around !important;
        padding: 4px 6px env(safe-area-inset-bottom, 6px) 6px !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6) !important;
    }

    .mobile-nav-item {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 0 !important;
        color: #94a3b8 !important;
        text-decoration: none !important;
        font-size: 10.5px !important;
        font-weight: 600 !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
    }

    .mobile-nav-item i {
        font-size: 22px !important;
        margin-bottom: 3px !important;
        transition: transform 0.2s ease, color 0.2s ease !important;
    }

    .mobile-nav-item:active {
        transform: scale(0.92) !important;
    }

    .mobile-nav-item.active {
        color: #06b6d4 !important;
        font-weight: 800 !important;
    }

    .mobile-nav-item.active i {
        transform: translateY(-2px) scale(1.1) !important;
        color: #06b6d4 !important;
        filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6)) !important;
    }

    /* Active Indicator Dot */
    .mobile-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 2px;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #06b6d4;
        box-shadow: 0 0 8px #06b6d4;
    }

    /* Bottom Sheet Drawer for Mobile Menu */
    .mobile-drawer-sheet {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        max-height: 85vh !important;
        background: #0b1329 !important;
        border-top: 1px solid rgba(6, 182, 212, 0.35) !important;
        border-radius: 28px 28px 0 0 !important;
        box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.85) !important;
        z-index: 10000 !important;
        padding: 20px 20px env(safe-area-inset-bottom, 24px) 20px !important;
        overflow-y: auto !important;
    }

    .drawer-handle {
        width: 42px;
        height: 5px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 10px;
        margin: 0 auto 18px auto;
    }
}

/* Explicit device identification overrides for Android & Mobile User-Agents */
.is-mobile-device .sidebar {
    display: none !important;
}

.is-mobile-device #app {
    flex-direction: column !important;
}

.is-mobile-device .main-content {
    width: 100% !important;
}

.is-mobile-device .topbar {
    padding: 0 16px !important;
    height: 70px !important;
}

.is-mobile-device .view-container {
    padding: 20px 16px 95px 16px !important;
}

.is-mobile-device .hero-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    padding: 24px 20px !important;
    margin-bottom: 24px !important;
}

.is-mobile-device .hero-content h1 {
    font-size: 24px !important;
    line-height: 1.25 !important;
}

.is-mobile-device .hero-content p {
    font-size: 13.5px !important;
}

.is-mobile-device .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 68px !important;
    background: rgba(11, 19, 41, 0.94) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    z-index: 9990 !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 4px 6px env(safe-area-inset-bottom, 6px) 6px !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6) !important;
}

.is-mobile-device .mobile-drawer-sheet {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-height: 85vh !important;
    background: #0b1329 !important;
    border-top: 1px solid rgba(6, 182, 212, 0.35) !important;
    border-radius: 28px 28px 0 0 !important;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.85) !important;
    z-index: 10000 !important;
    padding: 20px 20px env(safe-area-inset-bottom, 24px) 20px !important;
    overflow-y: auto !important;
}

/* Custom Grid & Layout Utilities */
.hidden { display: none !important; }
.grid {
    display: grid;
}
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

.flex { display: flex; }
.flex-col { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.justify-between { justify-content: space-between !important; }
.shrink-0 { flex-shrink: 0 !important; }

.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-5 { gap: 1.25rem !important; }
.gap-6 { gap: 1.5rem !important; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem !important; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem !important; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem !important; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem !important; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem !important; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem !important; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem !important; }

.col-span-1 { grid-column: span 1 / span 1 !important; }
.col-span-2 { grid-column: span 2 / span 2 !important; }
.col-span-3 { grid-column: span 3 / span 3 !important; }
.col-span-4 { grid-column: span 4 / span 4 !important; }
.col-span-5 { grid-column: span 5 / span 5 !important; }
.col-span-6 { grid-column: span 6 / span 6 !important; }
.col-span-7 { grid-column: span 7 / span 7 !important; }
.col-span-8 { grid-column: span 8 / span 8 !important; }
.col-span-9 { grid-column: span 9 / span 9 !important; }
.col-span-10 { grid-column: span 10 / span 10 !important; }
.col-span-11 { grid-column: span 11 / span 11 !important; }
.col-span-12 { grid-column: span 12 / span 12 !important; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    }
    .lg\:col-span-1 { grid-column: span 1 / span 1 !important; }
    .lg\:col-span-2 { grid-column: span 2 / span 2 !important; }
    .lg\:col-span-3 { grid-column: span 3 / span 3 !important; }
    .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
    .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
    .lg\:col-span-6 { grid-column: span 6 / span 6 !important; }
    .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
    .lg\:col-span-8 { grid-column: span 8 / span 8 !important; }
    .lg\:col-span-9 { grid-column: span 9 / span 9 !important; }
    .lg\:col-span-10 { grid-column: span 10 / span 10 !important; }
    .lg\:col-span-11 { grid-column: span 11 / span 11 !important; }
    .lg\:col-span-12 { grid-column: span 12 / span 12 !important; }

    .lg\:sticky { position: sticky !important; }
    .lg\:top-4 { top: 1rem !important; }
}





