/* =========================================
   1. CORE VARIABLES & TYPOGRAPHY
   ========================================= */
:root {
    --font-stack: 'Poppins', sans-serif;
    --primary: #1FC166;
    /* KIIT Green */
    --primary-dark: #0B3D2E;
    /* Dark Forest Green */
    --surface: #FFFFFF;
    /* White Cards */
    --bg-body: #F4F6F8;
    --text-main: #1F2937;
    /* Dark Text */
    --text-muted: #6B7280;
    --sidebar-width: 260px;
    --radius: 12px;
    --gradient-persona: linear-gradient(135deg, #0B3D2E 0%, #1FC166 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-stack);
}

body {
    background-color: var(--primary);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* =========================================
   2. SIDEBAR NAVIGATION
   ========================================= */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-dark);
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 3000;
    padding: 20px;
    transition: left 0.3s ease; /* Smooth slide animation */
}

/* HIDE Mobile Buttons on Desktop */
.mobile-menu-toggle, .sidebar-close-btn {
    display: none !important;
}

.brand {
    padding-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.kiit-logo-wrapper {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.kiit-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.5;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 600;
    padding-left: 10px;
}

.nav-menu a,
.vibe-nav {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active,
.vibe-nav:hover,
.vibe-nav.active {
    background: var(--primary);
    color: white;
}

.nav-menu a i,
.vibe-nav i {
    font-size: 1.2rem;
}

/* Vibe Specific Sidebar Styles */
.vibe-link {
    color: #FFD700 !important;
    font-weight: 700;
}

.new-badge {
    background: #ff4d4d;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    margin-left: 5px;
}

.vibe-menu-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    margin: 20px 0 10px 10px;
    letter-spacing: 1px;
}

/* User Profile (Bottom Left) */
.user-profile {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 80px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    user-select: none; /* STOPS TEXT SELECTION */
    -webkit-user-select: none;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hidden {
    display: none !important;
}

.guest-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

.user-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.user-info p {
    font-size: 0.75rem;
    opacity: 0.7;
    margin: 0;
}

.micro-info {
    font-size: 0.65rem !important;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2px;
}

/* Mini XP Bar in Sidebar */
.xp-mini-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 4px 0;
}

.xp-fill {
    height: 100%;
    background: #FFD700;
    border-radius: 2px;
}

#user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

#logout-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    margin-left: auto;
    font-size: 1.2rem;
}


/* =========================================
   3. MAIN CONTENT AREA
   ========================================= */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    position: relative;
    background-color: #1FC166;
    /* Green Grid Pattern */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, #26d678 0%, #189e54 100%);
    background-size: 50px 50px, 50px 50px, 100% 100%;
}

/* Header Stack */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.header-left-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.header-logo-img {
    height: 85px; /* Increased Size significantly */
    width: auto;
    min-width: 200px; /* Forces it to be wider from left to right */
    object-fit: contain;
    background: white;
    padding: 12px 25px; /* More padding for that "Full" look */
    border-radius: 14px;
    align-self: flex-start;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.welcome-text h1 {
    font-size: 2.2rem; /* Much Larger Text */
    font-weight: 800; /* Extra Bold */
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 10px 0 0 0;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 5px;
}

.search-box {
    background: white;
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-box input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    width: 200px;
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 1.5rem;
    border: none;
    background: none;
}


/* =========================================
   4. DASHBOARD COMPONENTS
   ========================================= */
/* Hero Section */
.hero-banner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 1.2rem 2rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    height: auto;
    min-height: 100px;
}

.hero-text h2 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--primary-dark);
}

.hero-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--text-muted);
    margin: 0;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

.hero-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 8rem;
    opacity: 0.05;
    transform: rotate(-15deg);
    color: black;
}


.utility-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Generic Card */
.card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.card-head h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.tool-card {
    text-align: center;
    padding: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tool-card i {
    font-size: 1.8rem;
}

.tool-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.text-green {
    color: var(--primary);
}

.text-blue {
    color: #3B82F6;
}

.text-orange {
    color: #F97316;
}

.text-purple {
    color: #8B5CF6;
}

/* Dashboard Widgets */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.compact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    background: #F8FAFC;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(31, 193, 102, 0.2);
}

.class-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.class-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    background: #F8FAFC;
    align-items: center;
    border: 1px solid #eee;
}

.class-item.active {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-left: 4px solid var(--primary);
}

.time {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 50px;
    color: var(--text-main);
}

.info strong {
    font-size: 0.9rem;
    display: block;
    font-weight: 600;
}

.info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tag {
    background: #FFF7ED;
    color: #C2410C;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}


/* =========================================
   5. VIBE / SOCIAL PAGE STYLES
   ========================================= */
.vibe-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vibe-tab {
    display: none;
    animation: fadeIn 0.3s ease;
    height: 100%;
}

.vibe-tab.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feed Section */
.vibe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vibe-header h1 {
    font-size: 1.8rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.header-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 2px 0 0 0;
}

.feed-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-tag {
    background: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid #eee;
    white-space: nowrap;
}

.filter-tag.active {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.feed-stream {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feed-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.post-user {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.post-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.anon-avatar {
    width: 32px;
    height: 32px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.u-name {
    color: #1F2937;
}

.u-role {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
    margin-left: 5px;
}

.anon-tag {
    background: #333;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    margin-left: 5px;
}

.post-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
}

.post-actions {
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
}

.action-item {
    cursor: pointer;
    display: flex;
    gap: 5px;
    align-items: center;
}

.action-item:hover {
    color: var(--primary);
}

/* Community Feed Specifics (Right Panel on Dashboard) */
.community-feed {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    height: fit-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.feed-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0B3D2E;
    margin: 0;
}

.live-badge {
    background: #FF4D4D;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.feed-item {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
}

.feed-item:last-child {
    margin: 0;
}

.feed-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.feed-user img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1FC166;
    background-color: #ddd;
    flex-shrink: 0;
}

.feed-user strong {
    font-size: 0.95rem;
    color: #1F2937;
    line-height: 1.2;
}

.badge-founder {
    font-size: 0.65rem;
    background: #FFD700;
    padding: 2px 8px;
    border-radius: 10px;
    color: #000;
    font-weight: 700;
    width: fit-content;
    margin-top: 2px;
}

.badge-top {
    font-size: 0.65rem;
    background: #1FC166;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    width: fit-content;
    margin-top: 2px;
}

/* Directory Grid */
.search-bar-vibe {
    background: white;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-bar-vibe input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

.directory-filters {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    overflow-x: auto;
}

.directory-filters select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: white;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.person-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
}

.person-card:hover {
    transform: translateY(-5px);
}

.pc-header {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.person-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
}

.pc-badge {
    position: absolute;
    bottom: 0;
    right: -10px;
    background: #FFD700;
    color: black;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.person-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.person-role {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.skill-badges {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.s-badge {
    background: #F0FDF4;
    color: #166534;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.connect-btn {
    width: 100%;
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Vibe Messaging Interface */
.chat-interface-container {
    display: flex;
    height: 75vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.chat-list-sidebar {
    width: 300px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.chat-tabs-header {
    display: flex;
    padding: 10px;
    gap: 5px;
    border-bottom: 1px solid #eee;
}

.chat-tabs-header button {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-radius: 6px;
}

.chat-tabs-header button.active {
    background: #F0FDF4;
    color: var(--primary-dark);
}

.chat-list-scroll {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    gap: 10px;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    transition: 0.2s;
    align-items: center;
}

.chat-item:hover {
    background: #f9f9f9;
}

.chat-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.chat-meta {
    overflow: hidden;
    flex: 1;
}

.chat-meta h4 {
    font-size: 0.9rem;
    margin: 0;
    color: #333;
}

.chat-meta p {
    font-size: 0.8rem;
    color: #888;
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time {
    font-size: 0.7rem;
    color: #aaa;
}

.chat-main-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #F8FAFC;
    position: relative;
}

.chat-empty-state {
    margin: auto;
    text-align: center;
    color: #888;
}

.chat-empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 10px;
}

.active-chat-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.active-chat-header {
    padding: 15px;
    background: white;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ac-user-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ac-user-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.ac-user-info h4 {
    font-size: 1rem;
    margin: 0;
}

.status-indicator {
    font-size: 0.7rem;
    color: #1FC166;
    font-weight: 600;
}

.ac-actions button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
}

.ac-messages-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ac-input-bar {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ac-input-bar input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.ac-input-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
}

.ac-send-btn {
    color: var(--primary) !important;
    font-size: 1.4rem !important;
}

/* Safety Lock for DMs */
.safety-lock-view {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: #fff4e5;
}

.lock-content {
    text-align: center;
    max-width: 400px;
    padding: 20px;
}

.lock-btn {
    background: #f59e0b;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
}

/* Stubs */
.stub-container {
    text-align: center;
    padding: 50px;
    color: #888;
    background: white;
    border-radius: 12px;
    margin-top: 20px;
}

.stub-container i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* =========================================
   9. AI SOLVER PAGE SPECIFICS
   ========================================= */
/* Chat Layout */
.chat-layout {
    display: flex;
    flex-direction: column;
    height: 82vh;
    background: #fff;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.chat-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
    justify-content: space-between;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: #F8FAFC;
    scroll-behavior: smooth;
}

/* AI Message Bubbles */
.message-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.user-msg-container {
    align-self: flex-end;
    max-width: 80%;
    display: flex;
    gap: 12px;
    flex-direction: row-reverse;
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.user .avatar {
    background: #1F2937
}

.user-bubble {
    background: #1F2937;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    border-top-right-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
}

/* AI Response Grid */
.ai-response-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    width: 100%;
    margin-top: 5px;
}

.model-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.model-card-header {
    background: #f8fafc;
    padding: 10px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0B3D2E;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.model-card-content {
    padding: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #1e293b;
    overflow-x: auto;
    min-height: 60px;
}

.copy-btn {
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.copy-btn:hover {
    color: #1FC166;
}

/* History Sidebar */
.history-section {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.new-chat-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
}

.new-chat-btn:hover {
    background: #1FC166;
    border-color: #1FC166;
    color: #0B3D2E;
}

.history-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    padding-left: 5px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.2s;
    font-size: 0.85rem;
    margin-bottom: 2px;
    background: transparent;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.history-item.active {
    background: rgba(31, 193, 102, 0.2);
    color: #1FC166;
    font-weight: 600;
}

.history-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.history-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: 0.2s;
}

.history-item:hover .history-actions {
    opacity: 1;
}

.clear-all-container {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.clear-all-btn {
    width: 100%;
    background: none;
    border: none;
    color: #ff4d4d;
    padding: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.clear-all-btn:hover {
    opacity: 1;
    background: rgba(255, 77, 77, 0.1);
    border-radius: 6px;
}

/* Model Dropdown & Inputs */
.model-selector-container {
    position: relative;
}

.model-toggle-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #1e293b;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.model-toggle-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.model-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 320px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.model-dropdown.show {
    display: flex;
}

.dropdown-header {
    padding: 10px 15px;
    background: #f8fafc;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.model-list-scroll {
    max-height: 350px;
    overflow-y: auto;
    padding: 5px;
}

.model-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    transition: 0.1s;
}

.model-option.active:hover {
    background: #f1f5f9;
    cursor: pointer;
}

.model-option.inactive {
    opacity: 0.5;
    cursor: default;
}

.model-option input[type="checkbox"] {
    accent-color: #1FC166;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Image Preview */
#image-preview-container {
    position: absolute;
    bottom: 80px;
    left: 20px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    border: 1px solid #eee
}

#image-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

#remove-img {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

/* Markdown */
pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    color: #d4d4d4;
}

code {
    font-family: monospace;
}


/* =========================================
   10. SUPER PROFILE MODAL
   ========================================= */
.profile-card-container {
    background: white;
    width: 95%;
    max-width: 800px;
    height: 85vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.close-profile-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
    color: white;
}

.layer-persona {
    background: var(--gradient-persona);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.persona-header {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.persona-avatar {
    position: relative;
}

.persona-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #FFD700;
    object-fit: cover;
}

.level-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #FFD700;
    color: black;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.8rem;
}

.vibe-tagline {
    font-style: italic;
    opacity: 0.9;
    margin-top: 5px;
}

.genesis-badge {
    background: linear-gradient(45deg, #FFD700, #FF8C00);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-block;
    margin: 10px 0;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
    color: black;
}

.xp-bar-container {
    margin-top: 10px;
    width: 250px;
}

.xp-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.xp-track {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.xp-progress {
    background: #FFD700;
    height: 100%;
}

.skill-radar-placeholder {
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-graphic {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.skill-tag {
    position: absolute;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.layer-work,
.layer-career {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.project-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    transition: 0.2s;
}

.project-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.project-meta {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    gap: 10px;
}

.career-list li {
    margin-bottom: 10px;
    list-style: none;
    font-size: 0.9rem;
}

.download-resume-btn {
    background: var(--text-main);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

/* Login Modal */
/* START OF MISSING MODAL CSS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000; /* Must be higher than sidebar (100) */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}
/* END OF MISSING MODAL CSS */
.modal-box {
    background: white;
    width: 90%;
    max-width: 380px;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: 0.3s ease;
}

.modal-overlay.show .modal-box {
    transform: translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--primary-dark);
    margin-top: 10px;
    font-size: 1.4rem;
    font-weight: 700;
}

.input-group {
    margin-bottom: 1rem;
    text-align: left;
}

.row-group {
    display: flex;
    gap: 1rem;
}

label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
    margin-bottom: 6px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    outline: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 193, 102, 0.1);
}

.btn-login-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    box-shadow: 0 4px 15px rgba(31, 193, 102, 0.3);
}

.btn-close-modal {
    width: 100%;
    background: transparent;
    color: var(--text-muted);
    padding: 10px;
    border: none;
    margin-top: 5px;
    cursor: pointer;
}

.close-modal-x {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
}

/* =========================================
   RESPONSIVE & MOBILE SIDEBAR
   ========================================= */

@media (max-width: 1024px) {
    /* 1. SIDEBAR: Hidden by default */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%; /* Move off-screen */
        width: 280px;
        height: 100vh;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }

    /* 2. SIDEBAR: Open State */
    .sidebar.open {
        left: 0; /* Slide in */
    }

    /* 3. Show Hamburger & Cross */
    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 2rem;
        color: white;
        cursor: pointer;
        margin-right: 15px;
    }

    .sidebar-close-btn {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
        font-weight: bold;
        color: white;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* 4. Hide Search on Mobile */
    .search-box { display: none; }
    
    /* 5. Stack Layout */
    .hybrid-layout { display: flex; flex-direction: column; }
}

/* UTILITY STACK (Right Sidebar) */
.utility-stack {
    display: none; 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    background: white;
    z-index: 2000;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}
.utility-stack.open { display: flex; flex-direction: column; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.utility-stack {
    /* Hidden on mobile by default, toggled via JS */
    display: none; 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70vh; /* Slide up from bottom */
    background: white;
    z-index: 2000;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.utility-stack.open {
    display: flex; /* Flex column is inherited */
    flex-direction: column;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Mobile Toggle Button (Floating Bottom Right) */
.right-sidebar-toggle {
    display: none; /* Hidden for guests by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0B3D2E;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1001;
    transition: 0.2s;
}

.right-sidebar-toggle:active {
    transform: scale(0.9);
}

/* Close Button in Mobile Menu */
.close-sidebar-btn {
    display: block;
    align-self: flex-end;
    background: #f1f5f9;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
}





/* --- FIX FOR INVISIBLE MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dimmed background */
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Hide it by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.3s ease;
}

.modal-overlay.show {
    /* Show it when JS adds .show */
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Make Guest User Button look clickable */
.user-profile {
    cursor: pointer; /* Shows hand icon */
    user-select: none; /* Stops text highlighting */
}





/* Fix for Course Card in List */
.class-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: 0.2s;
}
.class-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}


/* Auth Tabs Styles */
.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}
.tab-btn.active {
    color: #1FC166;
    border-bottom: 2px solid #1FC166;
}

/* --- FINAL LAYOUT FIX --- */

/* 1. The Main Grid Container */
.hybrid-layout {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 75% Left, 25% Right */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: start;
}

/* 2. Right Sidebar Styling */
.utility-stack {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    /* No weird scrollbars */
    overflow: visible; 
    height: auto;
}

/* 3. New Vertical Tools List (Looks like a menu) */
.tools-grid-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-card-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    background: #F8FAFC;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}

.tool-card-row:hover {
    background: #fff;
    border-color: #1FC166;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(31, 193, 102, 0.1);
}

.tool-card-row span {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* Icons in Sidebar */
.icon-box {
    width: 40px; 
    height: 40px; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}
.icon-box.purple { background: #8B5CF6; }
.icon-box.blue { background: #3B82F6; }
.icon-box.orange { background: #F97316; }

/* 4. Mobile Layout (Stack, Toggles, & Alignment Fixes) */
@media (max-width: 1024px) {
    /* --- HEADER ALIGNMENT --- */
    .top-bar {
        padding: 15px 0;
        width: 100%;
    }
    
    .header-left-stack {
        width: 100%;
        display: flex;
        flex-direction: column; /* Stack Logo on top of Welcome text for mobile */
        align-items: flex-start; /* Align to far left */
        gap: 10px;
    }

    .header-logo-img {
        width: 100%; /* Spans from left to right on mobile */
        max-width: 300px; /* Cap it so it doesn't get absurdly huge */
        height: auto;
        min-height: 60px;
    }

    .mobile-menu-toggle {
        margin-right: 15px; /* Gap between Hamburger and Logo */
        padding: 5px;
    }

    /* --- CONTENT ALIGNMENT (FIXED) --- */
    .main-content {
        padding: 15px 15px 80px 15px; /* Added bottom padding so content isn't covered by bottom nav/buttons */
        width: 100%;
        overflow-x: hidden;
    }

    .hybrid-layout {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .community-feed {
        width: 100% !important;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Fix internal card alignment on mobile */
    .card, .feed-item, .class-item {
        width: 100%;
        box-sizing: border-box;
        margin: 0; /* Remove default margins that push it off screen */
    }
    
    .class-item {
        flex-direction: row; /* Keep row layout even on mobile */
        align-items: center;
        gap: 10px;
    }

    /* --- UTILITY STACK (Mobile Bottom Sheet) --- */
    .utility-stack {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 80vh;
        z-index: 2000;
        background: white;
        padding: 25px;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 50px rgba(0,0,0,0.3);
        overflow-y: auto;
    }
    
    .utility-stack.open {
        display: flex;
        flex-direction: column;
        animation: slideUp 0.3s ease;
    }
    
    .search-box { display: none; }
}


/* =========================================
   FINAL CONSOLIDATED FIXES (CLEAN)
   ========================================= */

/* 1. Modal Visibility Fix */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.3s ease;
}

.modal-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

/* 2. User Profile Cursor Fix */
.user-profile {
    cursor: pointer !important;
    user-select: none;
}

/* 3. Desktop Layout (Centered 1100px Grid) */
@media (min-width: 1025px) {
    .main-content {
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    .top-bar, .hero-banner, .hybrid-layout, .course-hero, .course-layout {
        width: 100%;
        max-width: 1100px;
    }

    .hybrid-layout {
        display: grid;
        grid-template-columns: 3fr 1fr; /* 75% Left, 25% Right */
        gap: 30px;
        align-items: start;
    }
    
    .utility-stack {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        overflow: visible;
    }
    
    .mobile-menu-btn, .right-sidebar-toggle, .close-sidebar-btn {
        display: none !important;
    }
}

/* --- FINAL LAYOUT FIX --- */

/* 1. The Main Grid Container */
.hybrid-layout {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 75% Left, 25% Right */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: start;
}

/* 2. Right Sidebar Styling */
.utility-stack {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    /* No weird scrollbars */
    overflow: visible; 
    height: auto;
}

/* 3. New Vertical Tools List (Looks like a menu) */
.tools-grid-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-card-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    background: #F8FAFC;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}

.tool-card-row:hover {
    background: #fff;
    border-color: #1FC166;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(31, 193, 102, 0.1);
}

.tool-card-row span {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* Icons in Sidebar */
.icon-box {
    width: 40px; 
    height: 40px; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}
.icon-box.purple { background: #8B5CF6; }
.icon-box.blue { background: #3B82F6; }
.icon-box.orange { background: #F97316; }

/* 4. Responsive Fix for Mobile */
@media (max-width: 1024px) {
    .hybrid-layout {
        display: flex;
        flex-direction: column;
    }
    
    .utility-stack {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 2000;
        background: white; /* Explicit background */
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    }
    
    .utility-stack.open {
        display: block;
        animation: slideUp 0.3s ease;
    }
}