/* ═══════════════════════════════════════════════════════
   WhatsApp Inline Widget (Shortcode) — v4.0
   Official WhatsApp Colors + Noto Sans Devanagari
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800;900&family=Noto+Serif+Devanagari:wght@600;700&display=swap');

.wgw-widget,
.wgw-widget * {
    font-family: 'Noto Sans Devanagari', 'Noto Sans', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.wgw-widget {
    background: #111B21;
    border: 1px solid rgba(37,211,102,0.18);
    border-radius: 20px;
    padding: 22px 20px 16px;
    max-width: 390px;
    width: 100%;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 12px 40px rgba(0,0,0,0.55),
        0 0 80px rgba(37,211,102,0.06);
    position: relative;
    overflow: hidden;
}

/* Top glow */
.wgw-widget::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 240px; height: 100px;
    background: radial-gradient(ellipse, rgba(37,211,102,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Header ── */
.wgw-widget-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}

.wgw-widget-icon {
    background: linear-gradient(145deg, #25D366, #128C7E, #075E54);
    color: #fff;
    border-radius: 14px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 18px rgba(37,211,102,0.4);
    animation: wgwIconGlow 3s ease-in-out infinite;
}
@keyframes wgwIconGlow {
    0%,100% { box-shadow: 0 4px 18px rgba(37,211,102,0.4); }
    50%      { box-shadow: 0 4px 28px rgba(37,211,102,0.7); }
}

.wgw-widget-title {
    color: #E9EDEF;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.1px;
}

.wgw-widget-subtitle {
    color: #8696A0;
    font-size: 12px;
    margin-top: 3px;
    font-weight: 500;
}

/* ── Stats ── */
.wgw-widget-stats {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 13px;
    display: flex;
    align-items: center;
    padding: 13px 18px;
    margin-bottom: 16px;
}

.wgw-ws { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 3px; }

.wgw-ws-num {
    color: #25D366;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
    display: inline-block;
}
.wgw-ws-num.wgw-bounce {
    animation: wgwBounce 0.5s cubic-bezier(0.34, 1.8, 0.64, 1);
}
@keyframes wgwBounce {
    0%   { transform: scale(1) rotate(0); }
    40%  { transform: scale(1.4) rotate(-5deg); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1) rotate(0); }
}

.wgw-ws-label {
    color: #8696A0;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

.wgw-ws-divider { width: 1px; height: 34px; background: rgba(255,255,255,0.08); }

/* ── Groups ── */
.wgw-groups-list { display: flex; flex-direction: column; gap: 9px; }

.wgw-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #202C33;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 13px;
    padding: 11px 13px;
    transition: all 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.wgw-group-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: transparent;
    transition: background 0.2s;
    border-radius: 3px 0 0 3px;
}
.wgw-group-item:hover {
    background: #2A3942;
    border-color: rgba(37,211,102,0.25);
    transform: translateX(-3px);
}
.wgw-group-item:hover::before { background: #25D366; }

.wgw-group-primary {
    background: linear-gradient(135deg, rgba(37,211,102,0.1), rgba(18,140,126,0.07)) !important;
    border-color: rgba(37,211,102,0.2) !important;
}
.wgw-group-primary::before { background: #25D366 !important; }

.wgw-group-info { display: flex; align-items: center; gap: 9px; overflow: hidden; }

.wgw-group-number {
    background: rgba(37,211,102,0.12);
    color: #25D366;
    font-size: 11px;
    font-weight: 800;
    border-radius: 7px;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(37,211,102,0.2);
    font-family: monospace !important;
}

.wgw-group-label {
    color: #E9EDEF;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Join button */
.wgw-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(145deg, #25D366, #128C7E);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
    box-shadow: 0 3px 12px rgba(37,211,102,0.35);
    letter-spacing: 0.2px;
    border: none;
    position: relative;
    overflow: hidden;
}
.wgw-join-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    border-radius: inherit;
}
.wgw-join-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}
.wgw-join-btn:active { transform: scale(0.96); }

.wgw-join-btn.wgw-clicked {
    animation: wgwClickFlash 0.4s ease;
}
@keyframes wgwClickFlash {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.6; background: #075E54; }
}

.wgw-no-groups {
    color: #8696A0;
    text-align: center;
    font-size: 13px;
    padding: 20px 0 10px;
    margin: 0;
}

.wgw-widget-footer {
    color: rgba(255,255,255,0.2);
    font-size: 10.5px;
    text-align: center;
    margin-top: 14px;
    letter-spacing: 0.3px;
    font-weight: 500;
}

@media (max-width: 420px) {
    .wgw-widget { max-width: 100%; border-radius: 16px; }
    .wgw-join-btn { font-size: 11.5px; padding: 7px 11px; }
}
