
    /* --- CSS Reset & Variables --- */
    :root {
        --primary-color: #0056b3;
        --bg-color: #f0f2f5;
        --whatsapp-color: #25D366;
        --whatsapp-dark: #128C7E;
        --white: #ffffff;
        --dark-text: #333;
    }

    body {
        font-family: 'Poppins', sans-serif;
        background-color: var(--bg-color);
        margin: 0;
        padding: 0;
        color: var(--dark-text);
    }

    /* --- Header --- */
    header {
        background: linear-gradient(135deg, #0056b3, #00a8cc);
        color: white;
        padding: 3rem 1rem;
        text-align: center;
    }

    header h1 {
        margin: 0;
        font-size: 2rem;
    }

    header p {
        opacity: 0.9;
        margin-top: 10px;
    }

    /* --- Container --- */
    .container {
        max-width: 800px;
        margin: -40px auto 50px;
        padding: 0 20px;
        position: relative;
        z-index: 10;
        min-height: 300px; /* Space for loading */
    }

    /* --- Group Cards --- */
    .group-card {
        background: var(--white);
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        transition: transform 0.2s;
        border-left: 5px solid var(--whatsapp-color);
        opacity: 0; /* Animation start state */
        animation: fadeIn 0.5s forwards;
    }

    @keyframes fadeIn {
        to { opacity: 1; }
    }

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

    .group-info {
        display: flex;
        align-items: center;
    }

    .group-icon {
        width: 60px;
        height: 60px;
        background-color: #e7fceb;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: var(--whatsapp-dark);
        margin-right: 20px;
        flex-shrink: 0;
    }

    .text-content h3 {
        margin: 0 0 5px;
        font-size: 1.1rem;
    }

    .text-content p {
        margin: 0;
        font-size: 0.85rem;
        color: #666;
    }

    /* --- Join Button --- */
    .join-btn {
        background-color: var(--whatsapp-color);
        color: white;
        text-decoration: none;
        padding: 10px 20px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: background 0.3s;
        white-space: nowrap;
    }

    .join-btn:hover {
        background-color: var(--whatsapp-dark);
        box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    }

    /* --- Footer Note --- */
    .rules-note {
        text-align: center;
        font-size: 0.8rem;
        color: #888;
        margin-top: 30px;
        background: white;
        padding: 20px;
        border-radius: 10px;
    }

    /* Loading State */
    .loading {
        text-align: center;
        padding: 40px;
        color: #666;
    }

    /* --- Mobile Responsive --- */
    @media (max-width: 600px) {
        .group-card {
            flex-direction: column;
            text-align: center;
            padding: 30px 20px;
        }
        .group-info {
            flex-direction: column;
            margin-bottom: 20px;
        }
        .group-icon {
            margin-right: 0;
            margin-bottom: 15px;
        }
        .join-btn {
            width: 100%;
            justify-content: center;
        }
    }
