       /* Base Creamy & Greenish Theme */
        :root {
            --bg-creamy: #fdfbf7;
            --card-bg: #ffffff;
            --green-primary: #66bb6a;
            --green-hover: #4caf50;
            --green-dark: #2e7d32;
            --green-light: #e8f5e9;
            --text-dark: #2c4c3b;
            --text-muted: #607d8b;
            --border-light: #c8e6c9;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-creamy);
            color: var(--text-dark);
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            overflow-x: hidden;
        }

        /* Main Container */
        .main-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px 20px 100px 20px; /* Bottom padding for mobile navbar */
        }

        /* Top Header & Back Button */
        .top-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 30px;
            margin-top: 20px;
        }

        .back-btn {
            text-decoration: none;
            color: var(--green-dark);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 15px;
            background-color: var(--green-light);
            border-radius: 8px;
            transition: 0.3s;
        }

        .back-btn:hover {
            background-color: var(--border-light);
            color: var(--text-dark);
        }

        h1.page-title {
            color: var(--green-dark);
            font-size: 1.8rem;
            margin: 0;
            text-align: center;
            flex-grow: 1; /* Centers the title properly */
        }

        /* ========================================== */
        /* UI FOR 'SELECT' ROUTE (Big Cards)          */
        /* ========================================== */
        .selection-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .select-card {
            background-color: var(--card-bg);
            padding: 30px 20px;
            border-radius: 15px;
            text-align: center;
            text-decoration: none;
            color: var(--text-dark);
            box-shadow: 0 8px 20px rgba(102, 187, 106, 0.1);
            border: 2px solid transparent;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .select-card:hover {
            transform: translateY(-5px);
            border-color: var(--green-primary);
            box-shadow: 0 12px 25px rgba(102, 187, 106, 0.2);
        }

        .select-icon {
            font-size: 3rem;
            color: var(--green-primary);
            margin-bottom: 15px;
            background: var(--green-light);
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .select-card h2 {
            margin: 10px 0 5px 0;
            font-size: 1.4rem;
        }

        .select-card p {
            color: var(--text-muted);
            font-size: 0.95rem;
            margin: 0;
            line-height: 1.4;
        }

        /* ========================================== */
        /* UI FOR 'CHAT LIST' ROUTE                   */
        /* ========================================== */
        .chat-list-container {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 20px;
        }

        .chat-item {
            display: flex;
            align-items: center;
            background: var(--card-bg);
            padding: 15px 20px;
            border-radius: 12px;
            text-decoration: none;
            color: var(--text-dark);
            box-shadow: 0 4px 10px rgba(0,0,0,0.03);
            transition: all 0.2s ease;
            border: 1px solid var(--border-light);
        }

        .chat-item:hover {
            background: var(--green-light);
            transform: translateX(5px);
            border-color: var(--green-primary);
        }

        /* OP Feature: Avatar based on Username initial */
        .avatar {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--green-primary), #43a047);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            font-weight: bold;
            margin-right: 15px;
            text-transform: uppercase;
            flex-shrink: 0;
        }

        .chat-info {
            flex-grow: 1;
        }

        .chat-username {
            font-size: 1.2rem;
            font-weight: 600;
            margin: 0;
        }

        .chat-action-icon {
            color: var(--green-primary);
            font-size: 1.2rem;
            opacity: 0.5;
            transition: 0.3s;
        }

        .chat-item:hover .chat-action-icon {
            opacity: 1;
            transform: translateX(3px);
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 50px 20px;
            color: var(--text-muted);
            background: var(--card-bg);
            border-radius: 12px;
            border: 1px dashed var(--green-primary);
        }
        .empty-state i {
            font-size: 3rem;
            color: var(--border-light);
            margin-bottom: 15px;
        }
        .unseen-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 50px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 10px;
}
.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-info {
    flex: 1;
}

        /* Mobile Fixes */
        @media (max-width: 600px) {
            .top-header { flex-direction: column; gap: 15px; align-items: flex-start; }
            h1.page-title { align-self: center; font-size: 1.5rem; }
        }