.glass-radio-group {
    --bg: rgba(255, 255, 255, 0.05);
    --text: rgba(255, 255, 255, 0.45);
    display: flex;
    position: relative;
    background: var(--bg);
    border-radius: 12px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 1px 1px 3px rgba(255,255,255,0.12), inset -1px -1px 5px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.06);
}
.glass-radio-group input { display: none; }
.glass-radio-group label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0;
    cursor: pointer;
    color: var(--text);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease, background 0.3s ease;
}
.glass-radio-group label svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; fill: none; transition: stroke 0.3s ease, transform 0.3s ease; }
.glass-radio-group label:hover { color: rgba(255,255,255,0.8); }
.glass-radio-group label:hover svg { transform: scale(1.15); }
.glass-radio-group input:checked + label { color: #fff; background: rgba(167, 139, 250, 0.2); }
.glass-radio-group input:checked + label svg { stroke: #a78bfa; filter: drop-shadow(0 0 6px rgba(167,139,250,0.5)); }
.glass-glider {
    position: absolute;
    top: 0; bottom: 0;
    width: calc(100% / 4);
    border-radius: 12px;
    z-index: 1;
    background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(244,114,182,0.12));
    border: 1px solid rgba(167,139,250,0.28);
    box-shadow: 0 0 18px rgba(167,139,250,0.22), 0 0 8px rgba(167,139,250,0.1) inset;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease, box-shadow 0.4s ease;
}
#glass-mail:checked ~ .glass-glider { transform: translateX(0%); }
#glass-chat:checked ~ .glass-glider  { transform: translateX(100%); }
#glass-link:checked ~ .glass-glider { transform: translateX(200%); }
#glass-phone:checked ~ .glass-glider{ transform: translateX(300%); }
@media (prefers-reduced-motion: reduce) {
    .glass-glider, .glass-radio-group label, .glass-radio-group label svg { transition: none; }
}
