* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    height: 100%;
    width: 100%;
    background-color: #111b21; /* Fallback color */
    color: #e9edef;
    display: flex;
    flex-direction: column;
}

.app-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Entire page acts as CPA trigger */
}

/* Video Background */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 27, 33, 0.7); /* WhatsApp dark tone with transparency */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
}

/* Header */
.wa-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #202c33;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 20;
}

.wa-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e9edef; /* Warna putih khas font WA */
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.header-btn {
    background: transparent;
    border: none;
    color: #00a884;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

/* Main Invite Card */
.invite-card {
    background-color: #202c33;
    margin-top: -10vh; /* Geser sedikit ke atas */
    width: 90%;
    max-width: 300px; /* Diperbesar sedikit ke 300px */
    border-radius: 12px;
    padding: 24px 16px; /* Padding dikurangi */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 10;
}

.avatar-container {
    margin-bottom: 20px;
}

.group-avatar {
    width: 100px; /* Diperkecil dari 140px */
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #374045;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.group-name {
    font-size: 20px; /* Diperkecil sedikit */
    font-weight: 600;
    color: #e9edef;
    margin-bottom: 6px;
    text-align: center;
}

.invite-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #8696a0;
    margin-bottom: 15px;
}

.member-count {
    font-size: 15px;
    color: #e9edef;
    margin-bottom: 25px;
    transition: color 0.3s;
}

.member-count.updated {
    color: #00a884;
    font-weight: 600;
}

/* Fake mini avatars */
.avatars-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #202c33;
    margin-left: -10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mini-avatar:first-child {
    margin-left: 0;
}

/* Join Button */
.join-btn {
    width: 100%;
    background-color: #00a884;
    color: #111b21;
    border: none;
    border-radius: 24px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.2s, transform 0.1s;
}

.join-btn:hover {
    background-color: #019a79;
}

.join-btn:active {
    transform: scale(0.98);
}

/* Footer & Divider */
.divider {
    width: 100%;
    height: 1px;
    background-color: #2a3942;
    margin: 25px 0 15px 0;
}

.protected-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8696a0;
    font-size: 13px;
    font-weight: 400;
}

.protected-footer svg {
    opacity: 0.8;
}

/* Responsive fixes */
@media (max-width: 400px) {
    .invite-card {
        width: 95%;
        padding: 25px 15px;
    }
}
