.tg-theme {
    background: var(--tg-theme-bg-color, #17212b);
    color: var(--tg-theme-text-color, #ffffff);
    min-height: 100vh;
}

.sos-container {
    position: relative;
    margin: 40vh auto 0;
    transform: translateY(-50%);
}

.sos-button {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #dc3545;
    border: none;
    position: relative;
    cursor: pointer;
    transition: transform 0.1s;
}

.sos-button:active {
    transform: scale(0.95);
}

.sos-text {
    font-size: 3em;
    font-weight: bold;
    color: white;
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(220, 53, 69, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.click-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
}

.sos-button.active .click-effect {
    animation: click 0.5s ease-out;
}

@keyframes click {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.status {
    color: var(--tg-theme-text-color, #ffffff);
    font-size: 1.2em;
    padding: 10px;
}